[PATCH] Remove dtb file created by wrapper script
authorMark A. Greer <mgreer@mvista.com>
Thu, 9 Nov 2006 00:50:44 +0000 (17:50 -0700)
committerPaul Mackerras <paulus@samba.org>
Mon, 13 Nov 2006 03:48:58 +0000 (14:48 +1100)
When the wrapper script is passed a dts file, it runs 'dtc' to create
a dtb file.  This patch deletes that dtb file once its no longer needed.

Signed-off-by: Mark A. Greer <mgreer@mvista.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/boot/wrapper

index b5fb1fe..024e4d4 100755 (executable)
@@ -184,6 +184,9 @@ fi
 
 if [ -n "$dtb" ]; then
     addsec $tmp "$dtb" .kernel:dtb
+    if [ -n "$dts" ]; then
+       rm $dtb
+    fi
 fi
 
 if [ "$platform" != "miboot" ]; then