packaging: add artik530 tizen build
authorjino.cho <jino.cho@samsung.com>
Mon, 7 Nov 2016 06:43:21 +0000 (15:43 +0900)
committerJaehoon Chung <jh80.chung@samsung.com>
Mon, 21 Jan 2019 05:39:51 +0000 (14:39 +0900)
This patch supports tizen rpmbuild for artik530 and modify artik710
build.

Change-Id: I33fbb92284b69eb1c85f2f3274bfdbf63e0e7c66
Signed-off-by: jino.cho <jino.cho@samsung.com>
packaging/u-boot-artik530.spec [new file with mode: 0644]
packaging/u-boot-artik7.spec

diff --git a/packaging/u-boot-artik530.spec b/packaging/u-boot-artik530.spec
new file mode 100644 (file)
index 0000000..0cdf3d6
--- /dev/null
@@ -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
index a26d399041ba5d8c01ea1a404971d89959d3d5a0..2662ab2b8534f958016be936cdae65879a1f4e13 100644 (file)
@@ -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