packaging: u-boot.spec: add tizen_defconfig support
authorPrzemyslaw Marczak <p.marczak@samsung.com>
Thu, 31 Jul 2014 14:31:55 +0000 (16:31 +0200)
committerLukasz Majewski <l.majewski@samsung.com>
Thu, 30 Oct 2014 12:16:48 +0000 (13:16 +0100)
Signed-off-by: Przemyslaw Marczak <p.marczak@samsung.com>
packaging/u-boot.spec

index 871c167..d710014 100644 (file)
@@ -48,7 +48,7 @@ and modify U-Boot's environment.
 %build
 cp %{SOURCE1001} .
 
-CONFIG=trats2_config
+CONFIG=tizen_defconfig
 
 make mrproper
 
@@ -70,9 +70,14 @@ make HOSTCC="gcc $RPM_OPT_FLAGS" env
 # Build u-boot
 export PATH="$PATH:tools:tools/dtc/"
 make EXTRAVERSION=`echo %{vcs} | sed 's/.*u-boot.*#\(.\{9\}\).*/-g\1-TIZEN.org/'`
-# Sign u-boot-dtb.bin - output is: u-boot-mmc.bin
+
+# Prepare proper dtb image: cat u-boot.bin multi.dtb > u-boot-multi.bin
+chmod 755 tools/mkimage_multidtb.sh
+mkimage_multidtb.sh u-boot.bin
+
+# Sign u-boot-multi.bin - output is: u-boot-mmc.bin
 chmod 755 tools/mkimage_signed.sh
-mkimage_signed.sh u-boot-dtb.bin $CONFIG
+mkimage_signed.sh u-boot-multi.bin $CONFIG
 
 # Generate params.bin
 cp `find . -name "env_common.o"` copy_env_common.o