diff options
author | Marek Szyprowski <m.szyprowski@samsung.com> | 2021-11-16 13:46:04 +0100 |
---|---|---|
committer | Marek Szyprowski <m.szyprowski@samsung.com> | 2021-11-18 13:54:53 +0100 |
commit | f9446241fb0cbcf6b1dbb5732a31f963fec8bdba (patch) | |
tree | 0c55283a5378d478a58620f246e9f5df5ebddf28 | |
parent | 441e1ae850c4c22cada3230f864f0333e0b444b6 (diff) | |
download | u-boot-f9446241fb0cbcf6b1dbb5732a31f963fec8bdba.tar.gz u-boot-f9446241fb0cbcf6b1dbb5732a31f963fec8bdba.tar.bz2 u-boot-f9446241fb0cbcf6b1dbb5732a31f963fec8bdba.zip |
tizen: fix params.bin generation after v2021.10 rebase
Use the script provided by the mainline u-boot to generate default
params.bin instead of open coding its generation.
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
-rw-r--r-- | packaging/u-boot-amlogic.spec | 6 | ||||
-rw-r--r-- | packaging/u-boot-rpi3-32b.spec | 6 | ||||
-rw-r--r-- | packaging/u-boot-rpi3.spec | 6 | ||||
-rw-r--r-- | packaging/u-boot-rpi4-32b.spec | 6 | ||||
-rw-r--r-- | packaging/u-boot-rpi4.spec | 6 | ||||
-rwxr-xr-x | tizen/build-amlogic.sh | 6 |
6 files changed, 12 insertions, 24 deletions
diff --git a/packaging/u-boot-amlogic.spec b/packaging/u-boot-amlogic.spec index c16a91efdc..b1ad5c9263 100644 --- a/packaging/u-boot-amlogic.spec +++ b/packaging/u-boot-amlogic.spec @@ -146,11 +146,9 @@ for i in %{TARGETS}; do --level v3 # 1-6. Generate params.bin - cp `find ./env -name "built-in.o"` copy_env_common.o - objcopy -O binary --only-section=.rodata.default_environment `find . -name "copy_env_common.o"` - tr '\0' '\n' < copy_env_common.o > default_envs.txt + ./scripts/get_default_envs.sh > default_envs.txt mkenvimage -s 16384 -o ${PARAMS} default_envs.txt - rm copy_env_common.o default_envs.txt + rm default_envs.txt done # 1-7. Build Boot script diff --git a/packaging/u-boot-rpi3-32b.spec b/packaging/u-boot-rpi3-32b.spec index bf82cd1244..f4dd7cb4a5 100644 --- a/packaging/u-boot-rpi3-32b.spec +++ b/packaging/u-boot-rpi3-32b.spec @@ -54,11 +54,9 @@ export PATH="$PATH:tools:tools/dtc/" make %{?_smp_mflags} EXTRAVERSION=`echo %{vcs} | sed 's/.*u-boot.*#\(.\{9\}\).*/-g\1-TIZEN.org/'` # Generate uboot.env -cp `find ./env -name "built-in.o"` copy_env_common.o -objcopy -O binary --only-section=.rodata.default_environment `find . -name "copy_env_common.o"` -tr '\0' '\n' < copy_env_common.o > default_envs.txt +./scripts/get_default_envs.sh > default_envs.txt mkenvimage -s 16384 -o uboot.env default_envs.txt -rm copy_env_common.o default_envs.txt +rm default_envs.txt # Build boot.scr mkimage -A arm -T script -C none -n "Tizen RPI3 u-boot helper" -d ./tizen/bootscript/tizen-boot-rpi3.scr ./boot.scr.uimg diff --git a/packaging/u-boot-rpi3.spec b/packaging/u-boot-rpi3.spec index 1eda16e283..1b623ad31e 100644 --- a/packaging/u-boot-rpi3.spec +++ b/packaging/u-boot-rpi3.spec @@ -54,11 +54,9 @@ export PATH="$PATH:tools:tools/dtc/" make %{?_smp_mflags} EXTRAVERSION=`echo %{vcs} | sed 's/.*u-boot.*#\(.\{9\}\).*/-g\1-TIZEN.org/'` # Generate params.bin -cp `find ./env -name "built-in.o"` copy_env_common.o -objcopy -O binary --only-section=.rodata.default_environment `find . -name "copy_env_common.o"` -tr '\0' '\n' < copy_env_common.o > default_envs.txt +./scripts/get_default_envs.sh > default_envs.txt mkenvimage -s 16384 -o uboot.env default_envs.txt -rm copy_env_common.o default_envs.txt +rm default_envs.txt # Build boot.scr mkimage -A arm64 -T script -C none -n "Tizen RPI3 u-boot helper" -d ./tizen/bootscript/tizen-boot-rpi3.scr ./boot.scr.uimg diff --git a/packaging/u-boot-rpi4-32b.spec b/packaging/u-boot-rpi4-32b.spec index 5238086304..bad2d721c5 100644 --- a/packaging/u-boot-rpi4-32b.spec +++ b/packaging/u-boot-rpi4-32b.spec @@ -43,11 +43,9 @@ export PATH="$PATH:tools:tools/dtc/" make %{?_smp_mflags} EXTRAVERSION=`echo %{vcs} | sed 's/.*u-boot.*#\(.\{9\}\).*/-g\1-TIZEN.org/'` # Generate uboot.env -cp `find ./env -name "built-in.o"` copy_env_common.o -objcopy -O binary --only-section=.rodata.default_environment `find . -name "copy_env_common.o"` -tr '\0' '\n' < copy_env_common.o > default_envs.txt +./scripts/get_default_envs.sh > default_envs.txt mkenvimage -s 16384 -o uboot.env default_envs.txt -rm copy_env_common.o default_envs.txt +rm default_envs.txt # Build boot.scr mkimage -A arm -T script -C none -n "Tizen RPI4 u-boot helper" -d ./tizen/bootscript/tizen-boot-rpi4.scr ./boot.scr.uimg diff --git a/packaging/u-boot-rpi4.spec b/packaging/u-boot-rpi4.spec index 38bab3484d..ed0c7d5675 100644 --- a/packaging/u-boot-rpi4.spec +++ b/packaging/u-boot-rpi4.spec @@ -43,11 +43,9 @@ export PATH="$PATH:tools:tools/dtc/" make %{?_smp_mflags} EXTRAVERSION=`echo %{vcs} | sed 's/.*u-boot.*#\(.\{9\}\).*/-g\1-TIZEN.org/'` # Generate uboot.env -cp `find ./env -name "built-in.o"` copy_env_common.o -objcopy -O binary --only-section=.rodata.default_environment `find . -name "copy_env_common.o"` -tr '\0' '\n' < copy_env_common.o > default_envs.txt +./scripts/get_default_envs.sh > default_envs.txt mkenvimage -s 16384 -o uboot.env default_envs.txt -rm copy_env_common.o default_envs.txt +rm default_envs.txt # Build boot.scr mkimage -A arm64 -T script -C none -n "Tizen RPI4 u-boot helper" -d ./tizen/bootscript/tizen-boot-rpi4.scr ./boot.scr.uimg diff --git a/tizen/build-amlogic.sh b/tizen/build-amlogic.sh index a4bf923085..c8d651d2c8 100755 --- a/tizen/build-amlogic.sh +++ b/tizen/build-amlogic.sh @@ -85,11 +85,9 @@ build_uboot() } generate_param() { - cp `find ./env -name "built-in.o"` copy_env_common.o - ${CROSS_COMPILE}objcopy -O binary --only-section=.rodata.default_environment `find . -name "copy_env_common.o"` - tr '\0' '\n' < copy_env_common.o > default_envs.txt + CROSS_COMPILE="$CROSS_COMPILE" ./scripts/get_default_envs.sh > default_envs.txt ./tools/mkenvimage -s 16384 -o params.bin default_envs.txt - rm copy_env_common.o default_envs.txt + rm default_envs.txt } build_amlogic() |