From: jino.cho Date: Mon, 7 Nov 2016 06:43:21 +0000 (+0900) Subject: packaging: add artik530 tizen build X-Git-Tag: submit/tizen/20190213.074817~79 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c7d681fd684e9654fd76c6d37b27eb6a22c4787f;p=profile%2Fcommon%2Fplatform%2Fkernel%2Fu-boot-artik7.git packaging: add artik530 tizen build This patch supports tizen rpmbuild for artik530 and modify artik710 build. Change-Id: I33fbb92284b69eb1c85f2f3274bfdbf63e0e7c66 Signed-off-by: jino.cho --- diff --git a/packaging/u-boot-artik530.spec b/packaging/u-boot-artik530.spec new file mode 100644 index 0000000000..0cdf3d60d7 --- /dev/null +++ b/packaging/u-boot-artik530.spec @@ -0,0 +1,58 @@ +Name: u-boot-artik530 +Summary: Bootloader for Embedded boards based on ARM processor +Version: 2016.01 +Release: 0 +Group: System/Kernel +License: GPL-2.0+ +ExclusiveArch: %{arm} +URL: http://www.denx.de/wiki/U-Boot +Source0: %{name}-%{version}.tar.bz2 + +BuildRequires: u-boot-tools + +%description +bootloader for Embedded boards based on ARM processor + +%prep +%setup -q + +%build + +# Set configuration +make artik530_raptor_config + +# Build tools +make %{?_smp_mflags} HOSTSTRIP=/bin/true tools + +# Build image +make %{?_smp_mflags} EXTRAVERSION=`echo %{vcs} | sed 's/.*u-boot.*#\(.\{9\}\).*/-g\1-TIZEN.org/'` + +# Generate params.bin +cp `find . -name "env_common.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 +tools/mkenvimage -s 16384 -o params.bin default_envs.txt +rm copy_env_common.o default_envs.txt + +# gen_nexell_image +tools/nexell/BOOT_BINGEN \ + -c S5P4418 -t 3rdboot \ + -n tools/nexell/nsih/raptor-emmc.txt \ + -i u-boot.bin \ + -o bootloader.img \ + -l 0x43c00000 -e %0x43c00000 + +%install +rm -rf %{buildroot} + +# u-boot installation +mkdir -p %{buildroot}/boot/u-boot +install -d %{buildroot}/boot/u-boot +install -m 755 bootloader.img %{buildroot}/boot/u-boot +install -m 755 params.bin %{buildroot}/boot/u-boot + +%clean + +%files +%defattr(-,root,root,-) +/boot/u-boot diff --git a/packaging/u-boot-artik7.spec b/packaging/u-boot-artik7.spec index a26d399041..2662ab2b85 100644 --- a/packaging/u-boot-artik7.spec +++ b/packaging/u-boot-artik7.spec @@ -1,14 +1,16 @@ Name: u-boot-artik7 Summary: Bootloader for Embedded boards based on ARM processor -Version: 2012.07 +Version: 2016.01 Release: 0 Group: System/Kernel License: GPL-2.0+ -ExclusiveArch: %{arm} +ExclusiveArch: aarch64 URL: http://www.denx.de/wiki/U-Boot Source0: %{name}-%{version}.tar.bz2 Source1001: packaging/u-boot-artik7.manifest +BuildRequires: u-boot-tools + %description bootloader for Embedded boards based on ARM processor @@ -17,8 +19,9 @@ bootloader for Embedded boards based on ARM processor %build cp %{SOURCE1001} . -make distclean -make artik7_config + +# Set configuration +make artik710_raptor_config # Build tools make %{?_smp_mflags} HOSTSTRIP=/bin/true tools @@ -28,18 +31,29 @@ make %{?_smp_mflags} EXTRAVERSION=`echo %{vcs} | sed 's/.*u-boot.*#\(.\{9\}\).*/ # Generate params.bin cp `find . -name "env_common.o"` copy_env_common.o -objcopy -O binary --only-section=.rodata `find . -name "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 tools/mkenvimage -s 16384 -o params.bin default_envs.txt rm copy_env_common.o default_envs.txt +# gen_fip_image +tools/fip_create/fip_create --dump --bl33 u-boot.bin fip-nonsecure.bin + +# gen_nexell_image +tools/nexell/SECURE_BINGEN \ + -c S5P6818 -t 3rdboot \ + -n tools/nexell/nsih/raptor-64.txt \ + -i fip-nonsecure.bin \ + -o fip-nonsecure.img \ + -l 0x7df00000 -e 0x00000000 + %install rm -rf %{buildroot} # u-boot installation mkdir -p %{buildroot}/boot/u-boot install -d %{buildroot}/boot/u-boot -install -m 755 u-boot.bin %{buildroot}/boot/u-boot +install -m 755 fip-nonsecure.img %{buildroot}/boot/u-boot install -m 755 params.bin %{buildroot}/boot/u-boot %clean