[PATCH] powerpc: Remove dtb file created by wrapper script

Mark A. Greer mgreer at mvista.com
Thu Nov 9 11:50:44 EST 2006


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 at mvista.com>
---

 wrapper |    3 +++
 1 file changed, 3 insertions(+)
---

diff --git a/arch/powerpc/boot/wrapper b/arch/powerpc/boot/wrapper
index b5fb1fe..024e4d4 100755
--- a/arch/powerpc/boot/wrapper
+++ b/arch/powerpc/boot/wrapper
@@ -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



More information about the Linuxppc-dev mailing list