Skip to content
Snippets Groups Projects
Select Git revision
0 results

reform-boundary-uboot

  • Clone with SSH
  • Clone with HTTPS
  • Forked from Reform / reform-boundary-uboot
    Source project has a limited visibility.
    user avatar
    Stephen Warren authored
    Commit 896bbb53 "fdt: avoid bad MAKEALL status" added logic to capture
    the result code from dtc by echoing $? to stdout and capturing it using
    $(). However, dtc emits some diagnostics to stderr and some to stdout.
    The diagnostics send to stdout ended up getting captured via $() rather
    than being echo'd to the user. This caused those diagnostics to be passed
    to the exit command, which would then fail with the following cryptic
    error message:
    
        /bin/sh: line 1: exit: too many arguments
    
    Solve this by redirecting all dtc output to stderr so that $() does not
    capture it. This allows the user to see the actual error message from dtc.
    
    Cc: Wolfgang Denk <wd@denx.de>
    Cc: Simon Glass <sjg@chromium.org>
    Cc: albert.u.boot@aribaud.net
    Cc: Tom Warren <twarren@nvidia.com>
    Signed-off-by: default avatarStephen Warren <swarren@nvidia.com>
    Acked-by: default avatarSimon Glass <sjg@chromium.org>
    58e22f8a
    History
    Name Last commit Last update