packaging: change u-boot binary install directory
authorChanho Park <chanho61.park@samsung.com>
Tue, 25 Mar 2014 04:03:53 +0000 (13:03 +0900)
committerLukasz Majewski <l.majewski@samsung.com>
Wed, 26 Mar 2014 08:37:09 +0000 (09:37 +0100)
Instead of installing the u-boot binary to the /boot/u-boot,
we'll choose /var/tmp/u-boot because it is only required to
find from .ks file which generates the boot image.

Change-Id: I256ac8127a4c38d361f436fc5d06b48a78c2f76e
Signed-off-by: Chanho Park <chanho61.park@samsung.com>
packaging/u-boot.spec

index 7301544..5a1106c 100644 (file)
@@ -71,16 +71,17 @@ install -p -m 0755 tools/env/fw_printenv %{buildroot}%{_bindir}
 ( cd %{buildroot}%{_bindir}; ln -sf fw_printenv fw_setenv )
 
 # u-boot installation
-install -d %{buildroot}/boot/u-boot
-install -m 755 u-boot.bin %{buildroot}/boot/u-boot
-install -m 755 u-boot-mmc.bin %{buildroot}/boot/u-boot
+mkdir -p %{buildroot}/var/tmp/u-boot
+install -d %{buildroot}/var/tmp/u-boot
+install -m 755 u-boot.bin %{buildroot}/var/tmp/u-boot
+install -m 755 u-boot-mmc.bin %{buildroot}/var/tmp/u-boot
 
 %clean
 
 %files
 %manifest u_boot.manifest
 %defattr(-,root,root,-)
-/boot/u-boot/
+/var/tmp/u-boot
 
 %files -n u-boot-tools
 %manifest u_boot.manifest