[PATCH 05/17] bootwrapper: misc device tree fixes

Scott Wood scottwood at freescale.com
Sat Mar 17 04:28:45 EST 2007


1. The dtb should be generated in $tmpdir, rather than the current directory.
Normally, $tmpdir is ".", so it doesn't matter, but the wrapper should obey
the -W option if it should be passed.

2. DTC has a habit of complaining about errors which are not really
errors.  Thus, the -f option is now passed to it, to force it to generate
output regardless.

Signed-off-by: Scott Wood <scottwood at freescale.com>
---
 arch/powerpc/boot/wrapper |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/powerpc/boot/wrapper b/arch/powerpc/boot/wrapper
index f9238f5..a30e45b 100755
--- a/arch/powerpc/boot/wrapper
+++ b/arch/powerpc/boot/wrapper
@@ -108,9 +108,9 @@ done
 
 if [ -n "$dts" ]; then
     if [ -z "$dtb" ]; then
-	dtb="$platform.dtb"
+	dtb="$tmpdir/$platform.dtb"
     fi
-    dtc -O dtb -o "$dtb" -b 0 -V 16 "$dts" || exit 1
+    dtc -f -O dtb -o "$dtb" -b 0 -V 16 "$dts" || exit 1
 fi
 
 if [ -z "$kernel" ]; then
-- 
1.5.0.3




More information about the Linuxppc-dev mailing list