--- /dev/null
+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
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
%build
cp %{SOURCE1001} .
-make distclean
-make artik7_config
+
+# Set configuration
+make artik710_raptor_config
# Build tools
make %{?_smp_mflags} HOSTSTRIP=/bin/true tools
# 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