diff options
author | Jaehoon Chung <jh80.chung@samsung.com> | 2020-11-27 17:24:22 +0900 |
---|---|---|
committer | Jaehoon Chung <jh80.chung@samsung.com> | 2020-11-27 18:12:45 +0900 |
commit | ee248a823fec885cb98a7879106c4324f61e8e17 (patch) | |
tree | 6cafe8e3acfd79c08ab9667d9608838154211d1a /packaging | |
parent | 8f60f24862edf3b9be11b69613a5f4859c0a4d9d (diff) | |
download | u-boot-ee248a823fec885cb98a7879106c4324f61e8e17.tar.gz u-boot-ee248a823fec885cb98a7879106c4324f61e8e17.tar.bz2 u-boot-ee248a823fec885cb98a7879106c4324f61e8e17.zip |
packaging: amlogic: use one boot.scr.uimg script
Use one boot.scr.uimg instead of each scsripts.
To prevent conflict, move to boot.scr.uimg after installed each script.
Also change the place of boot.scr.uimg in build script.
Change-Id: Ia7d0746062f6d548ae1fb36a7111d55d353a1545
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Diffstat (limited to 'packaging')
-rw-r--r-- | packaging/u-boot-c4.spec | 10 | ||||
-rw-r--r-- | packaging/u-boot-kvim3.spec | 10 | ||||
-rw-r--r-- | packaging/u-boot-kvim3l.spec | 10 | ||||
-rw-r--r-- | packaging/u-boot-n2.spec | 10 |
4 files changed, 28 insertions, 12 deletions
diff --git a/packaging/u-boot-c4.spec b/packaging/u-boot-c4.spec index c5a1de9a22..269d5e9521 100644 --- a/packaging/u-boot-c4.spec +++ b/packaging/u-boot-c4.spec @@ -9,6 +9,7 @@ URL: http://git.denx.de/u-boot.git Source0: u-boot-%{version}.tar.bz2 Source1001: u_boot_amlogic.manifest +Requires(post): coreutils BuildRequires: gcc >= 6.0 BuildRequires: flex BuildRequires: bison @@ -70,7 +71,7 @@ mkenvimage -s 16384 -o params.bin default_envs.txt rm copy_env_common.o default_envs.txt # 1-7. Build Boot script -mkimage -A arm64 -T script -C none -n "Tizen ODROID-c4 u-boot helper" -d ./tizen/bootscript/tizen-boot-amlogic-64b.scr ./boot.scr.uimg +mkimage -A arm64 -T script -C none -n "Tizen ODROID-c4 u-boot helper" -d ./tizen/bootscript/tizen-boot-amlogic-64b.scr ./boot.scr.uimg.c4 %install @@ -82,7 +83,10 @@ mkdir -p %{buildroot}/var/tmp/u-boot-amlogic install -d %{buildroot}/var/tmp/u-boot-amlogic install -m 755 u-boot-c4.bin %{buildroot}/var/tmp/u-boot-amlogic install -m 755 params.bin %{buildroot}/boot/odroid-c4 -install -m 755 boot.scr.uimg %{buildroot}/boot/odroid-c4 +install -m 755 boot.scr.uimg.c4 %{buildroot}/boot/ + +%post +mv /boot/boot.scr.uimg.c4 /boot/boot.scr.uimg %clean @@ -91,4 +95,4 @@ install -m 755 boot.scr.uimg %{buildroot}/boot/odroid-c4 %defattr(-,root,root,-) /var/tmp/u-boot-amlogic /boot/odroid-c4/params.bin -/boot/odroid-c4/boot.scr.uimg +/boot/boot.scr.uimg.c4 diff --git a/packaging/u-boot-kvim3.spec b/packaging/u-boot-kvim3.spec index ce08e89431..253476d22c 100644 --- a/packaging/u-boot-kvim3.spec +++ b/packaging/u-boot-kvim3.spec @@ -9,6 +9,7 @@ URL: http://git.denx.de/u-boot.git Source0: u-boot-%{version}.tar.bz2 Source1001: u_boot_amlogic.manifest +Requires(post): coreutils BuildRequires: gcc >= 6.0 BuildRequires: flex BuildRequires: bison @@ -70,7 +71,7 @@ mkenvimage -s 16384 -o params.bin default_envs.txt rm copy_env_common.o default_envs.txt # Build Boot script -mkimage -A arm64 -T script -C none -n "Tizen KVIM3 u-boot helper" -d ./tizen/bootscript/tizen-boot-amlogic-64b.scr ./boot.scr.uimg +mkimage -A arm64 -T script -C none -n "Tizen KVIM3 u-boot helper" -d ./tizen/bootscript/tizen-boot-amlogic-64b.scr ./boot.scr.uimg.vim3 %install rm -rf %{buildroot} @@ -81,7 +82,10 @@ mkdir -p %{buildroot}/var/tmp/u-boot-amlogic install -d %{buildroot}/var/tmp/u-boot-amlogic install -m 755 u-boot-kvim3.bin %{buildroot}/var/tmp/u-boot-amlogic install -m 755 params.bin %{buildroot}/boot/vim3 -install -m 755 boot.scr.uimg %{buildroot}/boot/vim3 +install -m 755 boot.scr.uimg.vim3 %{buildroot}/boot + +%post +mv /boot/boot.scr.uimg.vim3 /boot/boot.scr.uimg %clean @@ -90,4 +94,4 @@ install -m 755 boot.scr.uimg %{buildroot}/boot/vim3 %defattr(-,root,root,-) /var/tmp/u-boot-amlogic /boot/vim3/params.bin -/boot/vim3/boot.scr.uimg +/boot/boot.scr.uimg.vim3 diff --git a/packaging/u-boot-kvim3l.spec b/packaging/u-boot-kvim3l.spec index bffde4f853..5e9c37ee96 100644 --- a/packaging/u-boot-kvim3l.spec +++ b/packaging/u-boot-kvim3l.spec @@ -9,6 +9,7 @@ URL: http://git.denx.de/u-boot.git Source0: u-boot-%{version}.tar.bz2 Source1001: u_boot_amlogic.manifest +Requires(post): coreutils BuildRequires: gcc >= 6.0 BuildRequires: flex BuildRequires: bison @@ -70,7 +71,7 @@ mkenvimage -s 16384 -o params.bin default_envs.txt rm copy_env_common.o default_envs.txt # Build Boot script -mkimage -A arm64 -T script -C none -n "Tizen kvim3l u-boot helper" -d ./tizen/bootscript/tizen-boot-amlogic-64b.scr ./boot.scr.uimg +mkimage -A arm64 -T script -C none -n "Tizen kvim3l u-boot helper" -d ./tizen/bootscript/tizen-boot-amlogic-64b.scr ./boot.scr.uimg.vim3l %install rm -rf %{buildroot} @@ -81,7 +82,10 @@ mkdir -p %{buildroot}/var/tmp/u-boot-amlogic install -d %{buildroot}/var/tmp/u-boot-amlogic install -m 755 u-boot-kvim3l.bin %{buildroot}/var/tmp/u-boot-amlogic install -m 755 params.bin %{buildroot}/boot/vim3l -install -m 755 boot.scr.uimg %{buildroot}/boot/vim3l +install -m 755 boot.scr.uimg.vim3l %{buildroot}/boot + +%post +mv /boot/boot.scr.uimg.vim3l /boot/boot.scr.uimg %clean @@ -90,4 +94,4 @@ install -m 755 boot.scr.uimg %{buildroot}/boot/vim3l %defattr(-,root,root,-) /var/tmp/u-boot-amlogic /boot/vim3l/params.bin -/boot/vim3l/boot.scr.uimg +/boot/boot.scr.uimg.vim3l diff --git a/packaging/u-boot-n2.spec b/packaging/u-boot-n2.spec index 599ba14594..ffc7439475 100644 --- a/packaging/u-boot-n2.spec +++ b/packaging/u-boot-n2.spec @@ -9,6 +9,7 @@ URL: http://git.denx.de/u-boot.git Source0: u-boot-%{version}.tar.bz2 Source1001: u_boot_amlogic.manifest +Requires(post): coreutils BuildRequires: gcc >= 6.0 BuildRequires: flex BuildRequires: bison @@ -70,7 +71,7 @@ mkenvimage -s 16384 -o params.bin default_envs.txt rm copy_env_common.o default_envs.txt # 1-7. Build Boot script -mkimage -A arm64 -T script -C none -n "Tizen ODROID-N2 u-boot helper" -d ./tizen/bootscript/tizen-boot-amlogic-64b.scr ./boot.scr.uimg +mkimage -A arm64 -T script -C none -n "Tizen ODROID-N2 u-boot helper" -d ./tizen/bootscript/tizen-boot-amlogic-64b.scr ./boot.scr.uimg.n2 %install @@ -82,7 +83,10 @@ mkdir -p %{buildroot}/var/tmp/u-boot-amlogic install -d %{buildroot}/var/tmp/u-boot-amlogic install -m 755 u-boot-n2.bin %{buildroot}/var/tmp/u-boot-amlogic install -m 755 params.bin %{buildroot}/boot/odroid-n2 -install -m 755 boot.scr.uimg %{buildroot}/boot/odroid-n2 +install -m 755 boot.scr.uimg.n2 %{buildroot}/boot/ + +%post +mv /boot/boot.scr.uimg.n2 /boot/boot.scr.uimg %clean @@ -91,4 +95,4 @@ install -m 755 boot.scr.uimg %{buildroot}/boot/odroid-n2 %defattr(-,root,root,-) /var/tmp/u-boot-amlogic /boot/odroid-n2/params.bin -/boot/odroid-n2/boot.scr.uimg +/boot/boot.scr.uimg.n2 |