Mageia Bugzilla – Attachment 11872 Details for
Bug 27220
Update u-boot and add bananapro support
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
New spec proposal
u-boot.spec (text/x-matlab), 4.38 KB, created by
Jybz
on 2020-09-08 19:24:19 CEST
(
hide
)
Description:
New spec proposal
Filename:
MIME Type:
Creator:
Jybz
Created:
2020-09-08 19:24:19 CEST
Size:
4.38 KB
patch
obsolete
>%define daterel 2020.07 >%define version 20200706 >%define distname %{name}-%{daterel} > >Name: u-boot >Version: %{version} >Release: %mkrel 1 >Summary: U-Boot Universal Boot Loader >License: GPLv2 >Group: System/Kernel and hardware >Url: http://www.denx.de/wiki/U-Boot >Source0: ftp://ftp.denx.de/pub/%{name}/%{distname}.tar.bz2 >Patch0: http://gitweb.mageia.org/software/mageia4arm/plain/platforms/bananaPro/patch/bananapro_1_Disable_default_distro.patch >Patch1: http://gitweb.mageia.org/software/mageia4arm/plain/platforms/bananaPro/patch/bananapro_2_Disable_USB_mass_storage.patch >Patch2: http://gitweb.mageia.org/software/mageia4arm/plain/platforms/bananaPro/patch/bananapro_3_Reduce_choice_boot_to_1s.patch >Patch3: http://gitweb.mageia.org/software/mageia4arm/plain/platforms/bananaPro/patch/bananapro_4_change_default_boot_device_to_mmc.patch >Patch4: http://gitweb.mageia.org/software/mageia4arm/plain/platforms/bananaPro/patch/bananapro_5_Switch_ENV_From_Fat_to_Ext4.patch > >BuildRequires: pkgconfig(openssl) >BuildRequires: bc >BuildRequires: bison >BuildRequires: flex >BuildRequires: swig >BuildRequires: libpython3-devel >#Actually builds, but complains >BuildRequires: libsdl2.0-devel > >%ifarch armv7hl >%define build_boards 1 >%define boards rpi_2 >%endif >%ifarch aarch64 >%define build_boards 1 >%define boards rpi_3 >%endif > > >%description >Das U-Boot (or just "U-Boot" for short) >is an Open Source Firmware for Embedded PowerPC, ARM, MIPS and x86 processors. > >%package tools >Summary: Tools for the U-Boot Boot Loader >Group: Development/Other > >%description tools >Das U-Boot (or just "U-Boot" for short) >is an Open Source Firmware for Embedded PowerPC, ARM, MIPS and x86 processors. >This package contains: >mkimage a tool that creates kernel bootable images for u-boot. > >%package doc >Summary: Documentation for the U-Boot Boot Loader >Group: Development/Other >Obsoletes: u-boot-tools-doc < 20130723-7 > >%description doc >Das U-Boot (or just "U-Boot" for short) is an Open Source Firmware >for Embedded PowerPC, ARM, MIPS and x86 processors. >This package contains documentation for u-boot firmware > > >%prep >%setup -q -n %{distname} > > >%build >%if %{build_boards} > for board in %{boards}; do > make mrproper > %make_build O=builds/$board ${board}_defconfig V=1 CONFIG_TOOLS_DEBUG=1 > %make_build O=builds/$board V=1 CONFIG_TOOLS_DEBUG=1 > done > > %ifarch armv7hl > make mrproper > %make_build O=builds/bananapro Bananapro_defconfig V=1 CONFIG_TOOLS_DEBUG=1 > patch -i %{PATCH0} -p0 > patch -i %{PATCH1} -p0 > patch -i %{PATCH2} -p0 > patch -i %{PATCH3} -p0 > patch -i %{PATCH4} -p0 > %make_build O=builds/bananapro V=1 CONFIG_TOOLS_DEBUG=1 > ./scripts/get_default_envs.sh >./builds/bananapro/u-boot.env > %endif >%endif >make defconfig >%make_build tools V=1 CONFIG_TOOLS_DEBUG=1 > > >%install >%if %{build_boards} >for board in %{boards}; do >mkdir -p %{buildroot}%{_libdir}/%{name}/${board} >install -D -m 0755 builds/$board/u-boot.bin %{buildroot}%{_libdir}/%{name}/${board}/u-boot.bin >done >%ifarch armv7hl >mkdir -p %{buildroot}%{_libdir}/%{name}/bananapro/ >install -D -m 0755 builds/bananapro/u-boot-sunxi-with-spl.bin %{buildroot}%{_libdir}/%{name}/bananapro/ >install -D -m 0755 builds/bananapro/u-boot.env %{buildroot}%{_libdir}/%{name}/bananapro/ >install -D -m 0755 builds/bananapro/u-boot.dtb %{buildroot}%{_libdir}/%{name}/bananapro/ >%endif >%endif >mkdir -p %{buildroot}%{_bindir} >install -D -m 0755 scripts/get_default_envs.sh %{buildroot}%{_bindir}/get_default_envs.sh >install -D -m 0755 tools/mkimage %{buildroot}%{_bindir}/mkimage >mkdir -p %{buildroot}%{_mandir} >install -D -m 0644 doc/mkimage.1 %{buildroot}%{_mandir}/man1/mkimage.1 >gzip %{buildroot}%{_mandir}/man1/* > > >%if %{build_boards} >%files >%dir /usr/lib/%{name} >%dir /usr/lib/%{name}/* >%{_prefix}/lib/%{name}/*/u-boot.bin >%ifarch armv7hl >%{_prefix}/lib/%{name}/bananapro/u-boot-sunxi-with-spl.bin >%{_prefix}/lib/%{name}/bananapro/u-boot.env >%{_prefix}/lib/%{name}/bananapro/u-boot.dtb >%endif >%endif > > >%files tools >%{_bindir}/get_default_envs.sh >%{_bindir}/mkimage >%{_mandir}/man1/mkimage.1.* >%doc README > > >%files doc >%doc doc/README.autoboot doc/README.commands doc/README.console doc/README.dns >%doc doc/README.hwconfig doc/README.nand doc/README.NetConsole doc/README.serial_multi >%doc doc/README.SNTP doc/README.standalone doc/README.update doc/README.usb >%doc doc/README.video doc/README.VLAN doc/README.silent >%doc doc/README.commands
%define daterel 2020.07 %define version 20200706 %define distname %{name}-%{daterel} Name: u-boot Version: %{version} Release: %mkrel 1 Summary: U-Boot Universal Boot Loader License: GPLv2 Group: System/Kernel and hardware Url: http://www.denx.de/wiki/U-Boot Source0: ftp://ftp.denx.de/pub/%{name}/%{distname}.tar.bz2 Patch0: http://gitweb.mageia.org/software/mageia4arm/plain/platforms/bananaPro/patch/bananapro_1_Disable_default_distro.patch Patch1: http://gitweb.mageia.org/software/mageia4arm/plain/platforms/bananaPro/patch/bananapro_2_Disable_USB_mass_storage.patch Patch2: http://gitweb.mageia.org/software/mageia4arm/plain/platforms/bananaPro/patch/bananapro_3_Reduce_choice_boot_to_1s.patch Patch3: http://gitweb.mageia.org/software/mageia4arm/plain/platforms/bananaPro/patch/bananapro_4_change_default_boot_device_to_mmc.patch Patch4: http://gitweb.mageia.org/software/mageia4arm/plain/platforms/bananaPro/patch/bananapro_5_Switch_ENV_From_Fat_to_Ext4.patch BuildRequires: pkgconfig(openssl) BuildRequires: bc BuildRequires: bison BuildRequires: flex BuildRequires: swig BuildRequires: libpython3-devel #Actually builds, but complains BuildRequires: libsdl2.0-devel %ifarch armv7hl %define build_boards 1 %define boards rpi_2 %endif %ifarch aarch64 %define build_boards 1 %define boards rpi_3 %endif %description Das U-Boot (or just "U-Boot" for short) is an Open Source Firmware for Embedded PowerPC, ARM, MIPS and x86 processors. %package tools Summary: Tools for the U-Boot Boot Loader Group: Development/Other %description tools Das U-Boot (or just "U-Boot" for short) is an Open Source Firmware for Embedded PowerPC, ARM, MIPS and x86 processors. This package contains: mkimage a tool that creates kernel bootable images for u-boot. %package doc Summary: Documentation for the U-Boot Boot Loader Group: Development/Other Obsoletes: u-boot-tools-doc < 20130723-7 %description doc Das U-Boot (or just "U-Boot" for short) is an Open Source Firmware for Embedded PowerPC, ARM, MIPS and x86 processors. This package contains documentation for u-boot firmware %prep %setup -q -n %{distname} %build %if %{build_boards} for board in %{boards}; do make mrproper %make_build O=builds/$board ${board}_defconfig V=1 CONFIG_TOOLS_DEBUG=1 %make_build O=builds/$board V=1 CONFIG_TOOLS_DEBUG=1 done %ifarch armv7hl make mrproper %make_build O=builds/bananapro Bananapro_defconfig V=1 CONFIG_TOOLS_DEBUG=1 patch -i %{PATCH0} -p0 patch -i %{PATCH1} -p0 patch -i %{PATCH2} -p0 patch -i %{PATCH3} -p0 patch -i %{PATCH4} -p0 %make_build O=builds/bananapro V=1 CONFIG_TOOLS_DEBUG=1 ./scripts/get_default_envs.sh >./builds/bananapro/u-boot.env %endif %endif make defconfig %make_build tools V=1 CONFIG_TOOLS_DEBUG=1 %install %if %{build_boards} for board in %{boards}; do mkdir -p %{buildroot}%{_libdir}/%{name}/${board} install -D -m 0755 builds/$board/u-boot.bin %{buildroot}%{_libdir}/%{name}/${board}/u-boot.bin done %ifarch armv7hl mkdir -p %{buildroot}%{_libdir}/%{name}/bananapro/ install -D -m 0755 builds/bananapro/u-boot-sunxi-with-spl.bin %{buildroot}%{_libdir}/%{name}/bananapro/ install -D -m 0755 builds/bananapro/u-boot.env %{buildroot}%{_libdir}/%{name}/bananapro/ install -D -m 0755 builds/bananapro/u-boot.dtb %{buildroot}%{_libdir}/%{name}/bananapro/ %endif %endif mkdir -p %{buildroot}%{_bindir} install -D -m 0755 scripts/get_default_envs.sh %{buildroot}%{_bindir}/get_default_envs.sh install -D -m 0755 tools/mkimage %{buildroot}%{_bindir}/mkimage mkdir -p %{buildroot}%{_mandir} install -D -m 0644 doc/mkimage.1 %{buildroot}%{_mandir}/man1/mkimage.1 gzip %{buildroot}%{_mandir}/man1/* %if %{build_boards} %files %dir /usr/lib/%{name} %dir /usr/lib/%{name}/* %{_prefix}/lib/%{name}/*/u-boot.bin %ifarch armv7hl %{_prefix}/lib/%{name}/bananapro/u-boot-sunxi-with-spl.bin %{_prefix}/lib/%{name}/bananapro/u-boot.env %{_prefix}/lib/%{name}/bananapro/u-boot.dtb %endif %endif %files tools %{_bindir}/get_default_envs.sh %{_bindir}/mkimage %{_mandir}/man1/mkimage.1.* %doc README %files doc %doc doc/README.autoboot doc/README.commands doc/README.console doc/README.dns %doc doc/README.hwconfig doc/README.nand doc/README.NetConsole doc/README.serial_multi %doc doc/README.SNTP doc/README.standalone doc/README.update doc/README.usb %doc doc/README.video doc/README.VLAN doc/README.silent %doc doc/README.commands
View Attachment As Raw
Actions:
View
Attachments on
bug 27220
:
11848
|
11849
|
11850
|
11851
|
11852
|
11853
| 11872 |
11964