Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
Please login to access the resource
SUSE:SLE-12-SP2:GA
u-boot-am335xboneblack
u-boot-qemu-ppce500.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File u-boot-qemu-ppce500.spec of Package u-boot-am335xboneblack
# # spec file for package u-boot-qemu-ppce500 # # Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2010 Texas Instruments Inc by Nishanth Menon # Copyright (c) 2007-2010 by Silvan Calarco <silvan.calarco@mambasoft.it> # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # %define mvebu_spl 0 %define x_loader 0 %define rockchip_spl 0 %define sunxi_spl 0 %define arndale_spl 0 %define cuboxi_spl 0 %define origen_spl 0 %define udoo_spl 0 # archive_version differs from version for RC version only %define archive_version 2016.07 Name: u-boot-qemu-ppce500 Version: 2016.07 Release: 0 Summary: The U-Boot firmware for the qemu-ppce500 platform License: GPL-2.0 Group: System/Boot Url: http://www.denx.de/wiki/U-Boot Source: ftp://ftp.denx.de/pub/u-boot/u-boot-%{archive_version}.tar.bz2 Source2: arndale-bl1.img Source3: update_git.sh Source300: u-boot-rpmlintrc Patch0001: 0001-XXX-openSUSE-XXX-Load-dtb-from-part.patch Patch0002: 0002-XXX-openSUSE-XXX-omap3-Move-to-dist.patch Patch0003: 0003-Revert-Revert-omap3-Use-raw-SPL-by-.patch Patch0004: 0004-efi_loader-Allow-boards-to-implemen.patch Patch0005: 0005-ARM-bcm283x-Implement-EFI-RTS-reset.patch Patch0006: 0006-efi_loader-gop-Expose-fb-when-32bpp.patch Patch0007: 0007-bcm2835-video-Map-frame-buffer-as-3.patch Patch0008: 0008-bcm2835-Reserve-the-spin-table-in-e.patch Patch0009: 0009-Revert-armv8-Enable-CPUECTLR.SMPEN-.patch Patch0010: 0010-bcm2835_gpio-Implement-GPIOF_FUNC.patch Patch0011: 0011-serial-bcm283x_mu-Detect-disabled-s.patch Patch0012: 0012-x86-Move-table-csum-into-separate-h.patch Patch0013: 0013-x86-Move-smbios-generation-into-arc.patch Patch0014: 0014-efi_loader-Expose-efi_install_confi.patch Patch0015: 0015-smbios-Allow-compilation-on-64bit-s.patch Patch0016: 0016-smbios-Expose-in-efi_loader-as-tabl.patch Patch0017: 0017-efi_loader-Fix-efi_install_configur.patch Patch0018: 0018-smbios-Provide-serial-number.patch Patch0019: 0019-common-env_nand-Ensure-that-we-have.patch Patch0020: 0020-bcm2835_gpio-add-device-tree-suppor.patch Patch0021: 0021-serial-bcm283x_mu-add-device-tree-s.patch Patch0022: 0022-serial-pl01x-expose-skip_init-platd.patch Patch0023: 0023-fdt-add-dt-bindings-for-bcm2835.patch Patch0024: 0024-fdt-import-bcm283x-device-tree-sour.patch Patch0025: 0025-serial-bcm283x_mu-support-disabling.patch Patch0026: 0026-board-rpi-move-uart-deactivation-to.patch Patch0027: 0027-ARM-bcm283x-use-OF_CONTROL-for-bcm2.patch Patch0028: 0028-Update-bcm283x-DT-to-kernel-source-.patch Patch0029: 0029-Use-upstream-bcm2835.dtsi-to-fix-rp.patch Patch0030: 0030-Adjust-bcm283x-DT-to-work-with-uboo.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build # Arndale board need DTC >= 1.4 BuildRequires: bc BuildRequires: dtc >= 1.4.0 %if "%{name}" == "u-boot-qemu-ppce500" # Owns /usr/share/qemu directory BuildRequires: qemu Provides: qemu-ppc:%{_datadir}/qemu/u-boot.e500 %endif %if "%{name}" == "u-boot-rpi" || "%{name}" == "u-boot-rpi2" || "%{name}" == "u-boot-rpi3" # Owns /boot/vc directory BuildRequires: raspberrypi-firmware # For mountpoint Requires(post): util-linux %endif Provides: u-boot-loader Conflicts: otherproviders(u-boot-loader) %if %x_loader == 1 Obsoletes: x-loader-qemu-ppce500 Provides: x-loader-qemu-ppce500 %endif ExclusiveArch: ppc %description Das U-Boot (or just "U-Boot" for short) is Open Source Firmware for Embedded PowerPC, ARM, MIPS and x86 processors. This package contains the firmware for the qemu-ppce500 platform. %package doc Summary: Documentation for the U-Boot Firmware Group: Documentation/Other %description doc Das U-Boot (or just "U-Boot" for short) is Open Source Firmware for Embedded PowerPC, ARM, MIPS and x86 processors. This package contains documentation for U-Boot firmware. %prep %setup -q -n u-boot-%{archive_version} %patch0001 -p1 %patch0002 -p1 %patch0003 -p1 %patch0004 -p1 %patch0005 -p1 %patch0006 -p1 %patch0007 -p1 %patch0008 -p1 %patch0009 -p1 %patch0010 -p1 %patch0011 -p1 %patch0012 -p1 %patch0013 -p1 %patch0014 -p1 %patch0015 -p1 %patch0016 -p1 %patch0017 -p1 %patch0018 -p1 %patch0019 -p1 %patch0020 -p1 %patch0021 -p1 %patch0022 -p1 %patch0023 -p1 %patch0024 -p1 %patch0025 -p1 %patch0026 -p1 %patch0027 -p1 %patch0028 -p1 %patch0029 -p1 %patch0030 -p1 %build export SOURCE_DATE_EPOCH=1473851267 make %{?jobs:-j %jobs} CROSS_COMPILE= CFLAGS="$RPM_OPT_FLAGS" qemu-ppce500_defconfig make %{?jobs:-j %jobs} CROSS_COMPILE= CFLAGS="$RPM_OPT_FLAGS" USE_PRIVATE_LIBGG=yes %if "%{name}" == "u-boot-snow" || "%{name}" == "u-boot-spring" # Chromebook ARM (snow) and HP Chromebook 11 (spring) need a uImage format export TEXT_START=$(awk '$NF == "_start" { printf "0x"$1 }' System.map) ./tools/mkimage -A arm -O linux -T kernel -C none -a $TEXT_START -e $TEXT_START -n uboot -d u-boot-dtb.bin u-boot.img %endif %if %rockchip_spl == 1 for t in ; do ./tools/mkimage -n -d spl/u-boot-spl-dtb.bin -T $t u-boot-spl.$t done %endif %install export SOURCE_DATE_EPOCH=1473851267 export NO_BRP_STRIP_DEBUG=true export NO_DEBUGINFO_STRIP_DEBUG=true %define uboot_dir /boot %if "%{name}" == "u-boot-rpi" || "%{name}" == "u-boot-rpi2" || "%{name}" == "u-boot-rpi3" %define uboot_dir /boot/vc %endif %if "%{name}" == "u-boot-qemu-ppce500" %define uboot_dir %{_datadir}/qemu %endif %if "%{name}" == "u-boot-jetson-tk1" # tegra-uboot-flasher needs several intermediate files, under their original name. for f in u-boot u-boot.dtb u-boot-dtb-tegra.bin u-boot-nodtb-tegra.bin spl/u-boot-spl; do install -D -m 0644 $f %{buildroot}/boot/$f done %else # Some times u-boot needs a dtb to configure itself appended to the binary. # In that case prefer the one with a working dtb already appended. if [ -f u-boot-dtb-tegra.bin ]; then install -D -m 0644 u-boot-dtb-tegra.bin %{buildroot}%{uboot_dir}/u-boot.bin elif [ -f u-boot-dtb.bin ]; then install -D -m 0644 u-boot-dtb.bin %{buildroot}%{uboot_dir}/u-boot.bin else install -D -m 0644 u-boot.bin %{buildroot}%{uboot_dir}/u-boot.bin fi %if "%{name}" == "u-boot-qemu-ppce500" mv %{buildroot}%{uboot_dir}/u-boot.bin %{buildroot}%{uboot_dir}/u-boot.e500 %endif %endif %if %x_loader == 1 install -D -m 0755 MLO %{buildroot}/boot/MLO %endif %if %origen_spl == 1 install -D -m 0755 spl/origen-spl.bin %{buildroot}/boot/origen-spl.bin %endif %if %arndale_spl == 1 install -D -m 0755 spl/arndale-spl.bin %{buildroot}/boot/arndale-spl.bin install -D -m 0755 %{SOURCE2} %{buildroot}/boot/arndale-bl1.img %endif %if %mvebu_spl == 1 install -D -m 0755 u-boot-spl.kwb %{buildroot}%{uboot_dir}/u-boot-spl.kwb %endif %if %rockchip_spl == 1 install -D -m 0644 spl/u-boot-spl-dtb.bin %{buildroot}%{uboot_dir}/u-boot-spl-dtb.bin for t in ; do install -D -m 0644 u-boot-spl.$t %{buildroot}%{uboot_dir}/u-boot-spl.$t done %endif %if %sunxi_spl == 1 install -D -m 0755 spl/sunxi-spl.bin %{buildroot}/boot/sunxi-spl.bin install -D -m 0755 u-boot-sunxi-with-spl.bin %{buildroot}/boot/u-boot-sunxi-with-spl.bin %endif %if %cuboxi_spl == 1 install -D -m 0755 SPL %{buildroot}/boot/cuboxi-spl.bin %endif %if %udoo_spl == 1 install -D -m 0755 SPL %{buildroot}/boot/udoo_spl.bin %endif %if "%{name}" == "u-boot-rpi" || "%{name}" == "u-boot-rpi2" || "%{name}" == "u-boot-rpi3" %post # On the Raspberry Pi we chain-load u-boot.bin from bootcode.bin via config.txt. # It needs to be on the first FAT partition, wherever we mounted it. # a) Unmounted, then do nothing. # b) Mounted as /boot/vc, then they're in the right place already. # c) Mounted as /boot/efi, with /boot/vc as symlink, then nothing to be done. # d) Mounted as /boot/efi, with /boot/vc a directory, then copy files over. if mountpoint -q /boot/efi; then [[ "$(readlink -f /boot/efi)" -ef "$(readlink -f %{uboot_dir})" ]] || cp %{uboot_dir}/u-boot.bin /boot/efi/ fi %endif %files %defattr(-,root,root) %{uboot_dir}/* %doc Licenses/gpl-2.0.txt README %files doc %defattr(-,root,root) # Generic documents %doc doc/README.JFFS2 doc/README.JFFS2_NAND doc/README.commands %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/README.POST # Copy some useful kermit scripts as well %doc tools/kermit/dot.kermrc tools/kermit/flash_param tools/kermit/send_cmd tools/kermit/send_image # Now any h/w dependent Documentation %doc doc/README.ARM-memory-map %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor