diff options
author | Jaehoon Chung <jh80.chung@samsung.com> | 2019-11-07 15:32:05 +0900 |
---|---|---|
committer | Jaehoon Chung <jh80.chung@samsung.com> | 2020-10-20 15:13:48 +0900 |
commit | a76600a4dbbd94fb192c7f35044485414f50919a (patch) | |
tree | 96a8eb5fe5cab41e5a78edfcc0117ed6a316bf1a /packaging | |
parent | 50ef86749c9e390ebb10af5ed02130b1efa9125d (diff) | |
download | u-boot-a76600a4dbbd94fb192c7f35044485414f50919a.tar.gz u-boot-a76600a4dbbd94fb192c7f35044485414f50919a.tar.bz2 u-boot-a76600a4dbbd94fb192c7f35044485414f50919a.zip |
packaging: rpi4-32: add rpi4 32bit spec file
Add rpi4 32bit spec file.
Change-Id: I5e2b18275d0e92ec2294f19cd0f56dffe412691d
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Diffstat (limited to 'packaging')
-rw-r--r-- | packaging/u-boot-rpi4-32b.spec | 71 | ||||
-rw-r--r-- | packaging/u_boot_rpi4.manifest | 5 |
2 files changed, 76 insertions, 0 deletions
diff --git a/packaging/u-boot-rpi4-32b.spec b/packaging/u-boot-rpi4-32b.spec new file mode 100644 index 0000000000..e5aa9a2e39 --- /dev/null +++ b/packaging/u-boot-rpi4-32b.spec @@ -0,0 +1,71 @@ +Name: u-boot-rpi4-32b +Version: 2019.10 +Release: 0 +Summary: Das U-Boot - Tizen bootloader +Group: System/Kernel +License: GPL-2.0+ +ExclusiveArch: %{arm} +URL: http://git.denx.de/u-boot.git +Source0: u-boot-%{version}.tar.bz2 +Source1001: u_boot_rpi4.manifest + +BuildRequires: gcc >= 6.0 +BuildRequires: flex +BuildRequires: bison + +%description +u-boot - Tizen bootloader for RPI4 boards based + +%prep +%setup -q -n u-boot-%{version} + +%build +%{?asan:/usr/bin/gcc-unforce-options} +cp %{SOURCE1001} . + +CONFIG=rpi_4_32b_defconfig + +make mrproper + +# Build dtc +make HOSTCC="gcc $RPM_OPT_FLAGS" -C tools/dtc + +# Set configuration +make $CONFIG + +# Build tools +make %{?_smp_mflags} HOSTCC="gcc $RPM_OPT_FLAGS" HOSTSTRIP=/bin/true tools + +make HOSTCC="gcc $RPM_OPT_FLAGS" envtools + +# Build u-boot +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 +mkenvimage -s 16384 -o uboot.env default_envs.txt +rm copy_env_common.o default_envs.txt + +# Build boot.scr +mkimage -A arm -T script -C none -n "Tizen RPI4 u-boot helper" -d ./board/raspberrypi/rpi/tizen-boot-rpi4-32b.scr ./boot.scr.uimg + +%install +rm -rf %{buildroot} + +# u-boot installation +mkdir -p %{buildroot}/boot +install -m 755 u-boot.bin %{buildroot}/boot/ +install -m 755 uboot.env %{buildroot}/boot/ +install -m 755 boot.scr.uimg %{buildroot}/boot/ + +%clean + +%files +%manifest u_boot_rpi4.manifest +%defattr(-,root,root,-) +/boot/u-boot.bin +/boot/uboot.env +/boot/boot.scr.uimg diff --git a/packaging/u_boot_rpi4.manifest b/packaging/u_boot_rpi4.manifest new file mode 100644 index 0000000000..017d22d3af --- /dev/null +++ b/packaging/u_boot_rpi4.manifest @@ -0,0 +1,5 @@ +<manifest> + <request> + <domain name="_"/> + </request> +</manifest> |