Accepting request 536032 from Base:System
1 OBS-URL: https://build.opensuse.org/request/show/536032 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/u-boot?expand=0&rev=91
This commit is contained in:
parent
93353a2a1e
commit
895d2b105d
@ -23,7 +23,7 @@ armv7_boards="$armv7_boards mx53loco mx6cuboxi mx6qsabrelite udoo udoo_neo"
|
||||
armv7_boards="$armv7_boards Bananapi Cubieboard Cubieboard2 Cubietruck Mele_A1000 Merrii_A80_Optimus"
|
||||
armv7_boards="$armv7_boards A10-OLinuXino-Lime A13-OLinuXino A13-OLinuXinoM"
|
||||
armv7_boards="$armv7_boards A20-OLinuXino-Lime A20-OLinuXino-Lime2 A20-OLinuXino_MICRO"
|
||||
armv7_boards="$armv7_boards nanopi_neo nanopi_neo_air orangepi_pc Hyundai_A7HD Lamobo_R1"
|
||||
armv7_boards="$armv7_boards nanopi_neo nanopi_neo_air orangepi_pc Hyundai_A7HD Lamobo_R1 Sinovoip_BPI_M2_Plus"
|
||||
# Broadcom
|
||||
armv7_boards="$armv7_boards rpi_2 rpi_3_32b"
|
||||
# Nvidia
|
||||
@ -44,7 +44,8 @@ aarch64_boards="$aarch64_boards odroid-c2"
|
||||
aarch64_boards="$aarch64_boards mvebu_db-88f3720 mvebu_espressobin-88f3720"
|
||||
aarch64_boards="$aarch64_boards mvebu_db_armada8k mvebu_mcbin-88f8040"
|
||||
# Rockchip
|
||||
aarch64_boards="$aarch64_boards evb-rk3399"
|
||||
aarch64_boards="$aarch64_boards geekbox"
|
||||
aarch64_boards="$aarch64_boards evb-rk3399 firefly-rk3399"
|
||||
|
||||
ppc_boards="qemu-ppce500"
|
||||
|
||||
@ -85,9 +86,7 @@ OMAP_SPL=0
|
||||
ROCKCHIP_SPL=0
|
||||
SUNXI_SPL=0
|
||||
ARNDALE_SPL=0
|
||||
CUBOXI_SPL=0
|
||||
ORIGEN_SPL=0
|
||||
UDOO_SPL=0
|
||||
IMX6_SPL=0
|
||||
SOCFPGA_SPL=0
|
||||
case "$(echo $BOARDCONFIG | sed -e 's/_defconfig//')" in
|
||||
@ -102,24 +101,22 @@ arndale)
|
||||
BINEND=bin
|
||||
ARNDALE_SPL=1
|
||||
;;
|
||||
Bananapi*|Cubieboard*|Cubietruck*|Hyundai_A7HD|Mele_A1000|nanopi_neo|*-OLinuXino*|orangepi_pc|Lamobo_R1)
|
||||
Bananapi*|Cubieboard*|Cubietruck*|Hyundai_A7HD|Mele_A1000|nanopi_neo|*-OLinuXino*|orangepi_pc|Lamobo_R1|Sinovoip_BPI_M2_Plus)
|
||||
BINEND=img
|
||||
SUNXI_SPL=1
|
||||
;;
|
||||
pine64_plus)
|
||||
BINEND=itb
|
||||
SUNXI_SPL=1
|
||||
;;
|
||||
snow|spring)
|
||||
BINEND=img
|
||||
;;
|
||||
mx6cuboxi)
|
||||
BINEND=img
|
||||
CUBOXI_SPL=1
|
||||
IMX6_SPL=1
|
||||
;;
|
||||
udoo)
|
||||
BINEND=img
|
||||
UDOO_SPL=1
|
||||
IMX6_SPL=1
|
||||
;;
|
||||
udoo_neo)
|
||||
udoo|udoo_neo)
|
||||
BINEND=img
|
||||
IMX6_SPL=1
|
||||
;;
|
||||
@ -160,8 +157,6 @@ s/ROCKCHIP_SPL_SOC/$ROCKCHIP_SPL_SOC/g
|
||||
s/ROCKCHIP_SPL/$ROCKCHIP_SPL/g
|
||||
s/SUNXI_SPL/$SUNXI_SPL/g
|
||||
s/TEGRA_SPL/$TEGRA_SPL/g
|
||||
s/CUBOXI_SPL/$CUBOXI_SPL/g
|
||||
s/UDOO_SPL/$UDOO_SPL/g
|
||||
s/IMX6_SPL/$IMX6_SPL/g
|
||||
s/OMAP_SPL/$OMAP_SPL/g" < u-boot.spec.tmp > u-boot-$BOARDNAME.spec
|
||||
|
||||
|
@ -1,3 +1,29 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 16 18:53:36 UTC 2017 - xxxxxmichl@googlemail.com
|
||||
|
||||
- Added Banana Pi M2+ support
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Oct 8 13:17:01 UTC 2017 - afaerber@suse.de
|
||||
|
||||
- Add firefly-rk3399 and geekbox
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Oct 7 00:52:52 UTC 2017 - afaerber@suse.de
|
||||
|
||||
- Drop obsolete CuBox-i i.MX6 SPL packaging, too
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Oct 6 23:26:14 UTC 2017 - afaerber@suse.de
|
||||
|
||||
- Update packaging for Jetson TX1
|
||||
- Cleanups
|
||||
* Drop executable bit from SPL
|
||||
* Consistently use %uboot_dir
|
||||
* u-boot[-tegra]-dtb.bin is obsolete
|
||||
* Drop obsolete UDOO-specific i.MX6 SPL packaging
|
||||
- Package sunxi64 SPL for Pine64
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 2 13:33:40 UTC 2017 - guillaume@opensuse.org
|
||||
|
||||
|
@ -23,9 +23,7 @@
|
||||
%define rockchip_spl 0
|
||||
%define sunxi_spl 1
|
||||
%define arndale_spl 0
|
||||
%define cuboxi_spl 0
|
||||
%define origen_spl 0
|
||||
%define udoo_spl 0
|
||||
%define imx6_spl 0
|
||||
%define socfpga_spl 0
|
||||
|
||||
@ -53,6 +51,9 @@ Patch0002: 0002-Revert-Revert-omap3-Use-raw-SPL-by-.patch
|
||||
Patch0003: 0003-Revert-rockchip-mkimage-remove-plac.patch
|
||||
Patch0004: 0004-Fix-boot-on-Beagleboard-xM-by-disab.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
%if 0
|
||||
BuildRequires: arm-trusted-firmware-pine64
|
||||
%endif
|
||||
BuildRequires: bc
|
||||
# Arndale board needs DTC >= 1.4
|
||||
BuildRequires: dtc >= 1.4.0
|
||||
@ -100,11 +101,21 @@ This package contains documentation for U-Boot firmware.
|
||||
|
||||
%build
|
||||
export SOURCE_DATE_EPOCH=$(date -d "$(head -n 2 %{_sourcedir}/%{name}.changes | tail -n 1 | cut -d- -f1 )" +%s)
|
||||
%if "%{name}" == "u-boot-pine64plus"
|
||||
export BL31=/boot/bl31.bin
|
||||
%endif
|
||||
|
||||
make %{?_smp_mflags} CROSS_COMPILE= HOSTCFLAGS="$RPM_OPT_FLAGS" A10-OLinuXino-Lime_defconfig
|
||||
echo "Attempting to enable fdt apply command (.dtbo) support."
|
||||
echo "CONFIG_OF_LIBFDT_OVERLAY=y" >> .config
|
||||
make %{?_smp_mflags} CROSS_COMPILE= HOSTCFLAGS="$RPM_OPT_FLAGS" USE_PRIVATE_LIBGG=yes
|
||||
|
||||
%ifarch aarch64
|
||||
%if %sunxi_spl == 1
|
||||
cat spl/sunxi-spl.bin u-boot.itb > u-boot-sunxi-with-spl.bin
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%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)
|
||||
@ -131,34 +142,33 @@ export NO_DEBUGINFO_STRIP_DEBUG=true
|
||||
%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
|
||||
install -D -m 0644 $f %{buildroot}%{uboot_dir}/$f
|
||||
done
|
||||
%else
|
||||
%if "%{name}" == "u-boot-p2371-2180"
|
||||
# Jetson TX1 Driver Pack flash.sh needs several intermediate files, under their original name.
|
||||
for f in u-boot u-boot.bin u-boot.dtb u-boot-dtb.bin; do
|
||||
install -D -m 0644 $f %{buildroot}%{uboot_dir}/$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.img %{buildroot}%{uboot_dir}/u-boot.img
|
||||
elif [ -f u-boot-dtb.img ]; then
|
||||
install -D -m 0644 u-boot-dtb.img %{buildroot}%{uboot_dir}/u-boot.img
|
||||
else
|
||||
install -D -m 0644 u-boot.img %{buildroot}%{uboot_dir}/u-boot.img
|
||||
fi
|
||||
%if "%{name}" == "u-boot-qemu-ppce500"
|
||||
mv %{buildroot}%{uboot_dir}/u-boot.img %{buildroot}%{uboot_dir}/u-boot.e500
|
||||
%endif
|
||||
%endif
|
||||
%endif
|
||||
%if %x_loader == 1
|
||||
install -D -m 0755 MLO %{buildroot}/boot/MLO
|
||||
install -D -m 0644 MLO %{buildroot}%{uboot_dir}/MLO
|
||||
%endif
|
||||
%if %origen_spl == 1
|
||||
install -D -m 0755 spl/origen-spl.bin %{buildroot}/boot/origen-spl.bin
|
||||
install -D -m 0644 spl/origen-spl.bin %{buildroot}%{uboot_dir}/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
|
||||
install -D -m 0644 spl/arndale-spl.bin %{buildroot}%{uboot_dir}/arndale-spl.bin
|
||||
install -D -m 0644 %{SOURCE2} %{buildroot}%{uboot_dir}/arndale-bl1.img
|
||||
%endif
|
||||
%if %mvebu_spl == 1
|
||||
install -D -m 0755 u-boot-spl.kwb %{buildroot}%{uboot_dir}/u-boot-spl.kwb
|
||||
install -D -m 0644 u-boot-spl.kwb %{buildroot}%{uboot_dir}/u-boot-spl.kwb
|
||||
%endif
|
||||
%if %rockchip_spl == 1
|
||||
install -D -m 0644 spl/u-boot-spl.bin %{buildroot}%{uboot_dir}/u-boot-spl.bin
|
||||
@ -167,20 +177,14 @@ for t in ; do
|
||||
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
|
||||
install -D -m 0644 spl/sunxi-spl.bin %{buildroot}%{uboot_dir}/sunxi-spl.bin
|
||||
install -D -m 0644 u-boot-sunxi-with-spl.bin %{buildroot}%{uboot_dir}/u-boot-sunxi-with-spl.bin
|
||||
%endif
|
||||
%if %imx6_spl == 1
|
||||
install -D -m 0755 SPL %{buildroot}/boot/imx6-spl.bin
|
||||
install -D -m 0644 SPL %{buildroot}%{uboot_dir}/imx6-spl.bin
|
||||
%endif
|
||||
%if %socfpga_spl == 1
|
||||
install -D -m 0755 u-boot-with-spl.sfp %{buildroot}/boot/u-boot-with-spl.sfp
|
||||
install -D -m 0644 u-boot-with-spl.sfp %{buildroot}%{uboot_dir}/u-boot-with-spl.sfp
|
||||
%endif
|
||||
|
||||
%if 0%{?is_rpi}
|
||||
|
@ -1,3 +1,29 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 16 18:53:36 UTC 2017 - xxxxxmichl@googlemail.com
|
||||
|
||||
- Added Banana Pi M2+ support
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Oct 8 13:17:01 UTC 2017 - afaerber@suse.de
|
||||
|
||||
- Add firefly-rk3399 and geekbox
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Oct 7 00:52:52 UTC 2017 - afaerber@suse.de
|
||||
|
||||
- Drop obsolete CuBox-i i.MX6 SPL packaging, too
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Oct 6 23:26:14 UTC 2017 - afaerber@suse.de
|
||||
|
||||
- Update packaging for Jetson TX1
|
||||
- Cleanups
|
||||
* Drop executable bit from SPL
|
||||
* Consistently use %uboot_dir
|
||||
* u-boot[-tegra]-dtb.bin is obsolete
|
||||
* Drop obsolete UDOO-specific i.MX6 SPL packaging
|
||||
- Package sunxi64 SPL for Pine64
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 2 13:33:40 UTC 2017 - guillaume@opensuse.org
|
||||
|
||||
|
@ -23,9 +23,7 @@
|
||||
%define rockchip_spl 0
|
||||
%define sunxi_spl 1
|
||||
%define arndale_spl 0
|
||||
%define cuboxi_spl 0
|
||||
%define origen_spl 0
|
||||
%define udoo_spl 0
|
||||
%define imx6_spl 0
|
||||
%define socfpga_spl 0
|
||||
|
||||
@ -53,6 +51,9 @@ Patch0002: 0002-Revert-Revert-omap3-Use-raw-SPL-by-.patch
|
||||
Patch0003: 0003-Revert-rockchip-mkimage-remove-plac.patch
|
||||
Patch0004: 0004-Fix-boot-on-Beagleboard-xM-by-disab.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
%if 0
|
||||
BuildRequires: arm-trusted-firmware-pine64
|
||||
%endif
|
||||
BuildRequires: bc
|
||||
# Arndale board needs DTC >= 1.4
|
||||
BuildRequires: dtc >= 1.4.0
|
||||
@ -100,11 +101,21 @@ This package contains documentation for U-Boot firmware.
|
||||
|
||||
%build
|
||||
export SOURCE_DATE_EPOCH=$(date -d "$(head -n 2 %{_sourcedir}/%{name}.changes | tail -n 1 | cut -d- -f1 )" +%s)
|
||||
%if "%{name}" == "u-boot-pine64plus"
|
||||
export BL31=/boot/bl31.bin
|
||||
%endif
|
||||
|
||||
make %{?_smp_mflags} CROSS_COMPILE= HOSTCFLAGS="$RPM_OPT_FLAGS" A13-OLinuXino_defconfig
|
||||
echo "Attempting to enable fdt apply command (.dtbo) support."
|
||||
echo "CONFIG_OF_LIBFDT_OVERLAY=y" >> .config
|
||||
make %{?_smp_mflags} CROSS_COMPILE= HOSTCFLAGS="$RPM_OPT_FLAGS" USE_PRIVATE_LIBGG=yes
|
||||
|
||||
%ifarch aarch64
|
||||
%if %sunxi_spl == 1
|
||||
cat spl/sunxi-spl.bin u-boot.itb > u-boot-sunxi-with-spl.bin
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%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)
|
||||
@ -131,34 +142,33 @@ export NO_DEBUGINFO_STRIP_DEBUG=true
|
||||
%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
|
||||
install -D -m 0644 $f %{buildroot}%{uboot_dir}/$f
|
||||
done
|
||||
%else
|
||||
%if "%{name}" == "u-boot-p2371-2180"
|
||||
# Jetson TX1 Driver Pack flash.sh needs several intermediate files, under their original name.
|
||||
for f in u-boot u-boot.bin u-boot.dtb u-boot-dtb.bin; do
|
||||
install -D -m 0644 $f %{buildroot}%{uboot_dir}/$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.img %{buildroot}%{uboot_dir}/u-boot.img
|
||||
elif [ -f u-boot-dtb.img ]; then
|
||||
install -D -m 0644 u-boot-dtb.img %{buildroot}%{uboot_dir}/u-boot.img
|
||||
else
|
||||
install -D -m 0644 u-boot.img %{buildroot}%{uboot_dir}/u-boot.img
|
||||
fi
|
||||
%if "%{name}" == "u-boot-qemu-ppce500"
|
||||
mv %{buildroot}%{uboot_dir}/u-boot.img %{buildroot}%{uboot_dir}/u-boot.e500
|
||||
%endif
|
||||
%endif
|
||||
%endif
|
||||
%if %x_loader == 1
|
||||
install -D -m 0755 MLO %{buildroot}/boot/MLO
|
||||
install -D -m 0644 MLO %{buildroot}%{uboot_dir}/MLO
|
||||
%endif
|
||||
%if %origen_spl == 1
|
||||
install -D -m 0755 spl/origen-spl.bin %{buildroot}/boot/origen-spl.bin
|
||||
install -D -m 0644 spl/origen-spl.bin %{buildroot}%{uboot_dir}/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
|
||||
install -D -m 0644 spl/arndale-spl.bin %{buildroot}%{uboot_dir}/arndale-spl.bin
|
||||
install -D -m 0644 %{SOURCE2} %{buildroot}%{uboot_dir}/arndale-bl1.img
|
||||
%endif
|
||||
%if %mvebu_spl == 1
|
||||
install -D -m 0755 u-boot-spl.kwb %{buildroot}%{uboot_dir}/u-boot-spl.kwb
|
||||
install -D -m 0644 u-boot-spl.kwb %{buildroot}%{uboot_dir}/u-boot-spl.kwb
|
||||
%endif
|
||||
%if %rockchip_spl == 1
|
||||
install -D -m 0644 spl/u-boot-spl.bin %{buildroot}%{uboot_dir}/u-boot-spl.bin
|
||||
@ -167,20 +177,14 @@ for t in ; do
|
||||
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
|
||||
install -D -m 0644 spl/sunxi-spl.bin %{buildroot}%{uboot_dir}/sunxi-spl.bin
|
||||
install -D -m 0644 u-boot-sunxi-with-spl.bin %{buildroot}%{uboot_dir}/u-boot-sunxi-with-spl.bin
|
||||
%endif
|
||||
%if %imx6_spl == 1
|
||||
install -D -m 0755 SPL %{buildroot}/boot/imx6-spl.bin
|
||||
install -D -m 0644 SPL %{buildroot}%{uboot_dir}/imx6-spl.bin
|
||||
%endif
|
||||
%if %socfpga_spl == 1
|
||||
install -D -m 0755 u-boot-with-spl.sfp %{buildroot}/boot/u-boot-with-spl.sfp
|
||||
install -D -m 0644 u-boot-with-spl.sfp %{buildroot}%{uboot_dir}/u-boot-with-spl.sfp
|
||||
%endif
|
||||
|
||||
%if 0%{?is_rpi}
|
||||
|
@ -1,3 +1,29 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 16 18:53:36 UTC 2017 - xxxxxmichl@googlemail.com
|
||||
|
||||
- Added Banana Pi M2+ support
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Oct 8 13:17:01 UTC 2017 - afaerber@suse.de
|
||||
|
||||
- Add firefly-rk3399 and geekbox
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Oct 7 00:52:52 UTC 2017 - afaerber@suse.de
|
||||
|
||||
- Drop obsolete CuBox-i i.MX6 SPL packaging, too
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Oct 6 23:26:14 UTC 2017 - afaerber@suse.de
|
||||
|
||||
- Update packaging for Jetson TX1
|
||||
- Cleanups
|
||||
* Drop executable bit from SPL
|
||||
* Consistently use %uboot_dir
|
||||
* u-boot[-tegra]-dtb.bin is obsolete
|
||||
* Drop obsolete UDOO-specific i.MX6 SPL packaging
|
||||
- Package sunxi64 SPL for Pine64
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 2 13:33:40 UTC 2017 - guillaume@opensuse.org
|
||||
|
||||
|
@ -23,9 +23,7 @@
|
||||
%define rockchip_spl 0
|
||||
%define sunxi_spl 1
|
||||
%define arndale_spl 0
|
||||
%define cuboxi_spl 0
|
||||
%define origen_spl 0
|
||||
%define udoo_spl 0
|
||||
%define imx6_spl 0
|
||||
%define socfpga_spl 0
|
||||
|
||||
@ -53,6 +51,9 @@ Patch0002: 0002-Revert-Revert-omap3-Use-raw-SPL-by-.patch
|
||||
Patch0003: 0003-Revert-rockchip-mkimage-remove-plac.patch
|
||||
Patch0004: 0004-Fix-boot-on-Beagleboard-xM-by-disab.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
%if 0
|
||||
BuildRequires: arm-trusted-firmware-pine64
|
||||
%endif
|
||||
BuildRequires: bc
|
||||
# Arndale board needs DTC >= 1.4
|
||||
BuildRequires: dtc >= 1.4.0
|
||||
@ -100,11 +101,21 @@ This package contains documentation for U-Boot firmware.
|
||||
|
||||
%build
|
||||
export SOURCE_DATE_EPOCH=$(date -d "$(head -n 2 %{_sourcedir}/%{name}.changes | tail -n 1 | cut -d- -f1 )" +%s)
|
||||
%if "%{name}" == "u-boot-pine64plus"
|
||||
export BL31=/boot/bl31.bin
|
||||
%endif
|
||||
|
||||
make %{?_smp_mflags} CROSS_COMPILE= HOSTCFLAGS="$RPM_OPT_FLAGS" A13-OLinuXinoM_defconfig
|
||||
echo "Attempting to enable fdt apply command (.dtbo) support."
|
||||
echo "CONFIG_OF_LIBFDT_OVERLAY=y" >> .config
|
||||
make %{?_smp_mflags} CROSS_COMPILE= HOSTCFLAGS="$RPM_OPT_FLAGS" USE_PRIVATE_LIBGG=yes
|
||||
|
||||
%ifarch aarch64
|
||||
%if %sunxi_spl == 1
|
||||
cat spl/sunxi-spl.bin u-boot.itb > u-boot-sunxi-with-spl.bin
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%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)
|
||||
@ -131,34 +142,33 @@ export NO_DEBUGINFO_STRIP_DEBUG=true
|
||||
%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
|
||||
install -D -m 0644 $f %{buildroot}%{uboot_dir}/$f
|
||||
done
|
||||
%else
|
||||
%if "%{name}" == "u-boot-p2371-2180"
|
||||
# Jetson TX1 Driver Pack flash.sh needs several intermediate files, under their original name.
|
||||
for f in u-boot u-boot.bin u-boot.dtb u-boot-dtb.bin; do
|
||||
install -D -m 0644 $f %{buildroot}%{uboot_dir}/$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.img %{buildroot}%{uboot_dir}/u-boot.img
|
||||
elif [ -f u-boot-dtb.img ]; then
|
||||
install -D -m 0644 u-boot-dtb.img %{buildroot}%{uboot_dir}/u-boot.img
|
||||
else
|
||||
install -D -m 0644 u-boot.img %{buildroot}%{uboot_dir}/u-boot.img
|
||||
fi
|
||||
%if "%{name}" == "u-boot-qemu-ppce500"
|
||||
mv %{buildroot}%{uboot_dir}/u-boot.img %{buildroot}%{uboot_dir}/u-boot.e500
|
||||
%endif
|
||||
%endif
|
||||
%endif
|
||||
%if %x_loader == 1
|
||||
install -D -m 0755 MLO %{buildroot}/boot/MLO
|
||||
install -D -m 0644 MLO %{buildroot}%{uboot_dir}/MLO
|
||||
%endif
|
||||
%if %origen_spl == 1
|
||||
install -D -m 0755 spl/origen-spl.bin %{buildroot}/boot/origen-spl.bin
|
||||
install -D -m 0644 spl/origen-spl.bin %{buildroot}%{uboot_dir}/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
|
||||
install -D -m 0644 spl/arndale-spl.bin %{buildroot}%{uboot_dir}/arndale-spl.bin
|
||||
install -D -m 0644 %{SOURCE2} %{buildroot}%{uboot_dir}/arndale-bl1.img
|
||||
%endif
|
||||
%if %mvebu_spl == 1
|
||||
install -D -m 0755 u-boot-spl.kwb %{buildroot}%{uboot_dir}/u-boot-spl.kwb
|
||||
install -D -m 0644 u-boot-spl.kwb %{buildroot}%{uboot_dir}/u-boot-spl.kwb
|
||||
%endif
|
||||
%if %rockchip_spl == 1
|
||||
install -D -m 0644 spl/u-boot-spl.bin %{buildroot}%{uboot_dir}/u-boot-spl.bin
|
||||
@ -167,20 +177,14 @@ for t in ; do
|
||||
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
|
||||
install -D -m 0644 spl/sunxi-spl.bin %{buildroot}%{uboot_dir}/sunxi-spl.bin
|
||||
install -D -m 0644 u-boot-sunxi-with-spl.bin %{buildroot}%{uboot_dir}/u-boot-sunxi-with-spl.bin
|
||||
%endif
|
||||
%if %imx6_spl == 1
|
||||
install -D -m 0755 SPL %{buildroot}/boot/imx6-spl.bin
|
||||
install -D -m 0644 SPL %{buildroot}%{uboot_dir}/imx6-spl.bin
|
||||
%endif
|
||||
%if %socfpga_spl == 1
|
||||
install -D -m 0755 u-boot-with-spl.sfp %{buildroot}/boot/u-boot-with-spl.sfp
|
||||
install -D -m 0644 u-boot-with-spl.sfp %{buildroot}%{uboot_dir}/u-boot-with-spl.sfp
|
||||
%endif
|
||||
|
||||
%if 0%{?is_rpi}
|
||||
|
@ -1,3 +1,29 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 16 18:53:36 UTC 2017 - xxxxxmichl@googlemail.com
|
||||
|
||||
- Added Banana Pi M2+ support
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Oct 8 13:17:01 UTC 2017 - afaerber@suse.de
|
||||
|
||||
- Add firefly-rk3399 and geekbox
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Oct 7 00:52:52 UTC 2017 - afaerber@suse.de
|
||||
|
||||
- Drop obsolete CuBox-i i.MX6 SPL packaging, too
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Oct 6 23:26:14 UTC 2017 - afaerber@suse.de
|
||||
|
||||
- Update packaging for Jetson TX1
|
||||
- Cleanups
|
||||
* Drop executable bit from SPL
|
||||
* Consistently use %uboot_dir
|
||||
* u-boot[-tegra]-dtb.bin is obsolete
|
||||
* Drop obsolete UDOO-specific i.MX6 SPL packaging
|
||||
- Package sunxi64 SPL for Pine64
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 2 13:33:40 UTC 2017 - guillaume@opensuse.org
|
||||
|
||||
|
@ -23,9 +23,7 @@
|
||||
%define rockchip_spl 0
|
||||
%define sunxi_spl 1
|
||||
%define arndale_spl 0
|
||||
%define cuboxi_spl 0
|
||||
%define origen_spl 0
|
||||
%define udoo_spl 0
|
||||
%define imx6_spl 0
|
||||
%define socfpga_spl 0
|
||||
|
||||
@ -53,6 +51,9 @@ Patch0002: 0002-Revert-Revert-omap3-Use-raw-SPL-by-.patch
|
||||
Patch0003: 0003-Revert-rockchip-mkimage-remove-plac.patch
|
||||
Patch0004: 0004-Fix-boot-on-Beagleboard-xM-by-disab.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
%if 0
|
||||
BuildRequires: arm-trusted-firmware-pine64
|
||||
%endif
|
||||
BuildRequires: bc
|
||||
# Arndale board needs DTC >= 1.4
|
||||
BuildRequires: dtc >= 1.4.0
|
||||
@ -100,11 +101,21 @@ This package contains documentation for U-Boot firmware.
|
||||
|
||||
%build
|
||||
export SOURCE_DATE_EPOCH=$(date -d "$(head -n 2 %{_sourcedir}/%{name}.changes | tail -n 1 | cut -d- -f1 )" +%s)
|
||||
%if "%{name}" == "u-boot-pine64plus"
|
||||
export BL31=/boot/bl31.bin
|
||||
%endif
|
||||
|
||||
make %{?_smp_mflags} CROSS_COMPILE= HOSTCFLAGS="$RPM_OPT_FLAGS" A20-OLinuXino-Lime_defconfig
|
||||
echo "Attempting to enable fdt apply command (.dtbo) support."
|
||||
echo "CONFIG_OF_LIBFDT_OVERLAY=y" >> .config
|
||||
make %{?_smp_mflags} CROSS_COMPILE= HOSTCFLAGS="$RPM_OPT_FLAGS" USE_PRIVATE_LIBGG=yes
|
||||
|
||||
%ifarch aarch64
|
||||
%if %sunxi_spl == 1
|
||||
cat spl/sunxi-spl.bin u-boot.itb > u-boot-sunxi-with-spl.bin
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%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)
|
||||
@ -131,34 +142,33 @@ export NO_DEBUGINFO_STRIP_DEBUG=true
|
||||
%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
|
||||
install -D -m 0644 $f %{buildroot}%{uboot_dir}/$f
|
||||
done
|
||||
%else
|
||||
%if "%{name}" == "u-boot-p2371-2180"
|
||||
# Jetson TX1 Driver Pack flash.sh needs several intermediate files, under their original name.
|
||||
for f in u-boot u-boot.bin u-boot.dtb u-boot-dtb.bin; do
|
||||
install -D -m 0644 $f %{buildroot}%{uboot_dir}/$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.img %{buildroot}%{uboot_dir}/u-boot.img
|
||||
elif [ -f u-boot-dtb.img ]; then
|
||||
install -D -m 0644 u-boot-dtb.img %{buildroot}%{uboot_dir}/u-boot.img
|
||||
else
|
||||
install -D -m 0644 u-boot.img %{buildroot}%{uboot_dir}/u-boot.img
|
||||
fi
|
||||
%if "%{name}" == "u-boot-qemu-ppce500"
|
||||
mv %{buildroot}%{uboot_dir}/u-boot.img %{buildroot}%{uboot_dir}/u-boot.e500
|
||||
%endif
|
||||
%endif
|
||||
%endif
|
||||
%if %x_loader == 1
|
||||
install -D -m 0755 MLO %{buildroot}/boot/MLO
|
||||
install -D -m 0644 MLO %{buildroot}%{uboot_dir}/MLO
|
||||
%endif
|
||||
%if %origen_spl == 1
|
||||
install -D -m 0755 spl/origen-spl.bin %{buildroot}/boot/origen-spl.bin
|
||||
install -D -m 0644 spl/origen-spl.bin %{buildroot}%{uboot_dir}/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
|
||||
install -D -m 0644 spl/arndale-spl.bin %{buildroot}%{uboot_dir}/arndale-spl.bin
|
||||
install -D -m 0644 %{SOURCE2} %{buildroot}%{uboot_dir}/arndale-bl1.img
|
||||
%endif
|
||||
%if %mvebu_spl == 1
|
||||
install -D -m 0755 u-boot-spl.kwb %{buildroot}%{uboot_dir}/u-boot-spl.kwb
|
||||
install -D -m 0644 u-boot-spl.kwb %{buildroot}%{uboot_dir}/u-boot-spl.kwb
|
||||
%endif
|
||||
%if %rockchip_spl == 1
|
||||
install -D -m 0644 spl/u-boot-spl.bin %{buildroot}%{uboot_dir}/u-boot-spl.bin
|
||||
@ -167,20 +177,14 @@ for t in ; do
|
||||
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
|
||||
install -D -m 0644 spl/sunxi-spl.bin %{buildroot}%{uboot_dir}/sunxi-spl.bin
|
||||
install -D -m 0644 u-boot-sunxi-with-spl.bin %{buildroot}%{uboot_dir}/u-boot-sunxi-with-spl.bin
|
||||
%endif
|
||||
%if %imx6_spl == 1
|
||||
install -D -m 0755 SPL %{buildroot}/boot/imx6-spl.bin
|
||||
install -D -m 0644 SPL %{buildroot}%{uboot_dir}/imx6-spl.bin
|
||||
%endif
|
||||
%if %socfpga_spl == 1
|
||||
install -D -m 0755 u-boot-with-spl.sfp %{buildroot}/boot/u-boot-with-spl.sfp
|
||||
install -D -m 0644 u-boot-with-spl.sfp %{buildroot}%{uboot_dir}/u-boot-with-spl.sfp
|
||||
%endif
|
||||
|
||||
%if 0%{?is_rpi}
|
||||
|
@ -1,3 +1,29 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 16 18:53:36 UTC 2017 - xxxxxmichl@googlemail.com
|
||||
|
||||
- Added Banana Pi M2+ support
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Oct 8 13:17:01 UTC 2017 - afaerber@suse.de
|
||||
|
||||
- Add firefly-rk3399 and geekbox
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Oct 7 00:52:52 UTC 2017 - afaerber@suse.de
|
||||
|
||||
- Drop obsolete CuBox-i i.MX6 SPL packaging, too
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Oct 6 23:26:14 UTC 2017 - afaerber@suse.de
|
||||
|
||||
- Update packaging for Jetson TX1
|
||||
- Cleanups
|
||||
* Drop executable bit from SPL
|
||||
* Consistently use %uboot_dir
|
||||
* u-boot[-tegra]-dtb.bin is obsolete
|
||||
* Drop obsolete UDOO-specific i.MX6 SPL packaging
|
||||
- Package sunxi64 SPL for Pine64
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 2 13:33:40 UTC 2017 - guillaume@opensuse.org
|
||||
|
||||
|
@ -23,9 +23,7 @@
|
||||
%define rockchip_spl 0
|
||||
%define sunxi_spl 1
|
||||
%define arndale_spl 0
|
||||
%define cuboxi_spl 0
|
||||
%define origen_spl 0
|
||||
%define udoo_spl 0
|
||||
%define imx6_spl 0
|
||||
%define socfpga_spl 0
|
||||
|
||||
@ -53,6 +51,9 @@ Patch0002: 0002-Revert-Revert-omap3-Use-raw-SPL-by-.patch
|
||||
Patch0003: 0003-Revert-rockchip-mkimage-remove-plac.patch
|
||||
Patch0004: 0004-Fix-boot-on-Beagleboard-xM-by-disab.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
%if 0
|
||||
BuildRequires: arm-trusted-firmware-pine64
|
||||
%endif
|
||||
BuildRequires: bc
|
||||
# Arndale board needs DTC >= 1.4
|
||||
BuildRequires: dtc >= 1.4.0
|
||||
@ -100,11 +101,21 @@ This package contains documentation for U-Boot firmware.
|
||||
|
||||
%build
|
||||
export SOURCE_DATE_EPOCH=$(date -d "$(head -n 2 %{_sourcedir}/%{name}.changes | tail -n 1 | cut -d- -f1 )" +%s)
|
||||
%if "%{name}" == "u-boot-pine64plus"
|
||||
export BL31=/boot/bl31.bin
|
||||
%endif
|
||||
|
||||
make %{?_smp_mflags} CROSS_COMPILE= HOSTCFLAGS="$RPM_OPT_FLAGS" A20-OLinuXino-Lime2_defconfig
|
||||
echo "Attempting to enable fdt apply command (.dtbo) support."
|
||||
echo "CONFIG_OF_LIBFDT_OVERLAY=y" >> .config
|
||||
make %{?_smp_mflags} CROSS_COMPILE= HOSTCFLAGS="$RPM_OPT_FLAGS" USE_PRIVATE_LIBGG=yes
|
||||
|
||||
%ifarch aarch64
|
||||
%if %sunxi_spl == 1
|
||||
cat spl/sunxi-spl.bin u-boot.itb > u-boot-sunxi-with-spl.bin
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%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)
|
||||
@ -131,34 +142,33 @@ export NO_DEBUGINFO_STRIP_DEBUG=true
|
||||
%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
|
||||
install -D -m 0644 $f %{buildroot}%{uboot_dir}/$f
|
||||
done
|
||||
%else
|
||||
%if "%{name}" == "u-boot-p2371-2180"
|
||||
# Jetson TX1 Driver Pack flash.sh needs several intermediate files, under their original name.
|
||||
for f in u-boot u-boot.bin u-boot.dtb u-boot-dtb.bin; do
|
||||
install -D -m 0644 $f %{buildroot}%{uboot_dir}/$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.img %{buildroot}%{uboot_dir}/u-boot.img
|
||||
elif [ -f u-boot-dtb.img ]; then
|
||||
install -D -m 0644 u-boot-dtb.img %{buildroot}%{uboot_dir}/u-boot.img
|
||||
else
|
||||
install -D -m 0644 u-boot.img %{buildroot}%{uboot_dir}/u-boot.img
|
||||
fi
|
||||
%if "%{name}" == "u-boot-qemu-ppce500"
|
||||
mv %{buildroot}%{uboot_dir}/u-boot.img %{buildroot}%{uboot_dir}/u-boot.e500
|
||||
%endif
|
||||
%endif
|
||||
%endif
|
||||
%if %x_loader == 1
|
||||
install -D -m 0755 MLO %{buildroot}/boot/MLO
|
||||
install -D -m 0644 MLO %{buildroot}%{uboot_dir}/MLO
|
||||
%endif
|
||||
%if %origen_spl == 1
|
||||
install -D -m 0755 spl/origen-spl.bin %{buildroot}/boot/origen-spl.bin
|
||||
install -D -m 0644 spl/origen-spl.bin %{buildroot}%{uboot_dir}/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
|
||||
install -D -m 0644 spl/arndale-spl.bin %{buildroot}%{uboot_dir}/arndale-spl.bin
|
||||
install -D -m 0644 %{SOURCE2} %{buildroot}%{uboot_dir}/arndale-bl1.img
|
||||
%endif
|
||||
%if %mvebu_spl == 1
|
||||
install -D -m 0755 u-boot-spl.kwb %{buildroot}%{uboot_dir}/u-boot-spl.kwb
|
||||
install -D -m 0644 u-boot-spl.kwb %{buildroot}%{uboot_dir}/u-boot-spl.kwb
|
||||
%endif
|
||||
%if %rockchip_spl == 1
|
||||
install -D -m 0644 spl/u-boot-spl.bin %{buildroot}%{uboot_dir}/u-boot-spl.bin
|
||||
@ -167,20 +177,14 @@ for t in ; do
|
||||
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
|
||||
install -D -m 0644 spl/sunxi-spl.bin %{buildroot}%{uboot_dir}/sunxi-spl.bin
|
||||
install -D -m 0644 u-boot-sunxi-with-spl.bin %{buildroot}%{uboot_dir}/u-boot-sunxi-with-spl.bin
|
||||
%endif
|
||||
%if %imx6_spl == 1
|
||||
install -D -m 0755 SPL %{buildroot}/boot/imx6-spl.bin
|
||||
install -D -m 0644 SPL %{buildroot}%{uboot_dir}/imx6-spl.bin
|
||||
%endif
|
||||
%if %socfpga_spl == 1
|
||||
install -D -m 0755 u-boot-with-spl.sfp %{buildroot}/boot/u-boot-with-spl.sfp
|
||||
install -D -m 0644 u-boot-with-spl.sfp %{buildroot}%{uboot_dir}/u-boot-with-spl.sfp
|
||||
%endif
|
||||
|
||||
%if 0%{?is_rpi}
|
||||
|
@ -1,3 +1,29 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 16 18:53:36 UTC 2017 - xxxxxmichl@googlemail.com
|
||||
|
||||
- Added Banana Pi M2+ support
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Oct 8 13:17:01 UTC 2017 - afaerber@suse.de
|
||||
|
||||
- Add firefly-rk3399 and geekbox
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Oct 7 00:52:52 UTC 2017 - afaerber@suse.de
|
||||
|
||||
- Drop obsolete CuBox-i i.MX6 SPL packaging, too
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Oct 6 23:26:14 UTC 2017 - afaerber@suse.de
|
||||
|
||||
- Update packaging for Jetson TX1
|
||||
- Cleanups
|
||||
* Drop executable bit from SPL
|
||||
* Consistently use %uboot_dir
|
||||
* u-boot[-tegra]-dtb.bin is obsolete
|
||||
* Drop obsolete UDOO-specific i.MX6 SPL packaging
|
||||
- Package sunxi64 SPL for Pine64
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 2 13:33:40 UTC 2017 - guillaume@opensuse.org
|
||||
|
||||
|
@ -23,9 +23,7 @@
|
||||
%define rockchip_spl 0
|
||||
%define sunxi_spl 1
|
||||
%define arndale_spl 0
|
||||
%define cuboxi_spl 0
|
||||
%define origen_spl 0
|
||||
%define udoo_spl 0
|
||||
%define imx6_spl 0
|
||||
%define socfpga_spl 0
|
||||
|
||||
@ -53,6 +51,9 @@ Patch0002: 0002-Revert-Revert-omap3-Use-raw-SPL-by-.patch
|
||||
Patch0003: 0003-Revert-rockchip-mkimage-remove-plac.patch
|
||||
Patch0004: 0004-Fix-boot-on-Beagleboard-xM-by-disab.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
%if 0
|
||||
BuildRequires: arm-trusted-firmware-pine64
|
||||
%endif
|
||||
BuildRequires: bc
|
||||
# Arndale board needs DTC >= 1.4
|
||||
BuildRequires: dtc >= 1.4.0
|
||||
@ -100,11 +101,21 @@ This package contains documentation for U-Boot firmware.
|
||||
|
||||
%build
|
||||
export SOURCE_DATE_EPOCH=$(date -d "$(head -n 2 %{_sourcedir}/%{name}.changes | tail -n 1 | cut -d- -f1 )" +%s)
|
||||
%if "%{name}" == "u-boot-pine64plus"
|
||||
export BL31=/boot/bl31.bin
|
||||
%endif
|
||||
|
||||
make %{?_smp_mflags} CROSS_COMPILE= HOSTCFLAGS="$RPM_OPT_FLAGS" A20-OLinuXino_MICRO_defconfig
|
||||
echo "Attempting to enable fdt apply command (.dtbo) support."
|
||||
echo "CONFIG_OF_LIBFDT_OVERLAY=y" >> .config
|
||||
make %{?_smp_mflags} CROSS_COMPILE= HOSTCFLAGS="$RPM_OPT_FLAGS" USE_PRIVATE_LIBGG=yes
|
||||
|
||||
%ifarch aarch64
|
||||
%if %sunxi_spl == 1
|
||||
cat spl/sunxi-spl.bin u-boot.itb > u-boot-sunxi-with-spl.bin
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%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)
|
||||
@ -131,34 +142,33 @@ export NO_DEBUGINFO_STRIP_DEBUG=true
|
||||
%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
|
||||
install -D -m 0644 $f %{buildroot}%{uboot_dir}/$f
|
||||
done
|
||||
%else
|
||||
%if "%{name}" == "u-boot-p2371-2180"
|
||||
# Jetson TX1 Driver Pack flash.sh needs several intermediate files, under their original name.
|
||||
for f in u-boot u-boot.bin u-boot.dtb u-boot-dtb.bin; do
|
||||
install -D -m 0644 $f %{buildroot}%{uboot_dir}/$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.img %{buildroot}%{uboot_dir}/u-boot.img
|
||||
elif [ -f u-boot-dtb.img ]; then
|
||||
install -D -m 0644 u-boot-dtb.img %{buildroot}%{uboot_dir}/u-boot.img
|
||||
else
|
||||
install -D -m 0644 u-boot.img %{buildroot}%{uboot_dir}/u-boot.img
|
||||
fi
|
||||
%if "%{name}" == "u-boot-qemu-ppce500"
|
||||
mv %{buildroot}%{uboot_dir}/u-boot.img %{buildroot}%{uboot_dir}/u-boot.e500
|
||||
%endif
|
||||
%endif
|
||||
%endif
|
||||
%if %x_loader == 1
|
||||
install -D -m 0755 MLO %{buildroot}/boot/MLO
|
||||
install -D -m 0644 MLO %{buildroot}%{uboot_dir}/MLO
|
||||
%endif
|
||||
%if %origen_spl == 1
|
||||
install -D -m 0755 spl/origen-spl.bin %{buildroot}/boot/origen-spl.bin
|
||||
install -D -m 0644 spl/origen-spl.bin %{buildroot}%{uboot_dir}/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
|
||||
install -D -m 0644 spl/arndale-spl.bin %{buildroot}%{uboot_dir}/arndale-spl.bin
|
||||
install -D -m 0644 %{SOURCE2} %{buildroot}%{uboot_dir}/arndale-bl1.img
|
||||
%endif
|
||||
%if %mvebu_spl == 1
|
||||
install -D -m 0755 u-boot-spl.kwb %{buildroot}%{uboot_dir}/u-boot-spl.kwb
|
||||
install -D -m 0644 u-boot-spl.kwb %{buildroot}%{uboot_dir}/u-boot-spl.kwb
|
||||
%endif
|
||||
%if %rockchip_spl == 1
|
||||
install -D -m 0644 spl/u-boot-spl.bin %{buildroot}%{uboot_dir}/u-boot-spl.bin
|
||||
@ -167,20 +177,14 @@ for t in ; do
|
||||
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
|
||||
install -D -m 0644 spl/sunxi-spl.bin %{buildroot}%{uboot_dir}/sunxi-spl.bin
|
||||
install -D -m 0644 u-boot-sunxi-with-spl.bin %{buildroot}%{uboot_dir}/u-boot-sunxi-with-spl.bin
|
||||
%endif
|
||||
%if %imx6_spl == 1
|
||||
install -D -m 0755 SPL %{buildroot}/boot/imx6-spl.bin
|
||||
install -D -m 0644 SPL %{buildroot}%{uboot_dir}/imx6-spl.bin
|
||||
%endif
|
||||
%if %socfpga_spl == 1
|
||||
install -D -m 0755 u-boot-with-spl.sfp %{buildroot}/boot/u-boot-with-spl.sfp
|
||||
install -D -m 0644 u-boot-with-spl.sfp %{buildroot}%{uboot_dir}/u-boot-with-spl.sfp
|
||||
%endif
|
||||
|
||||
%if 0%{?is_rpi}
|
||||
|
@ -1,3 +1,29 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 16 18:53:36 UTC 2017 - xxxxxmichl@googlemail.com
|
||||
|
||||
- Added Banana Pi M2+ support
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Oct 8 13:17:01 UTC 2017 - afaerber@suse.de
|
||||
|
||||
- Add firefly-rk3399 and geekbox
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Oct 7 00:52:52 UTC 2017 - afaerber@suse.de
|
||||
|
||||
- Drop obsolete CuBox-i i.MX6 SPL packaging, too
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Oct 6 23:26:14 UTC 2017 - afaerber@suse.de
|
||||
|
||||
- Update packaging for Jetson TX1
|
||||
- Cleanups
|
||||
* Drop executable bit from SPL
|
||||
* Consistently use %uboot_dir
|
||||
* u-boot[-tegra]-dtb.bin is obsolete
|
||||
* Drop obsolete UDOO-specific i.MX6 SPL packaging
|
||||
- Package sunxi64 SPL for Pine64
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 2 13:33:40 UTC 2017 - guillaume@opensuse.org
|
||||
|
||||
|
@ -23,9 +23,7 @@
|
||||
%define rockchip_spl 0
|
||||
%define sunxi_spl 0
|
||||
%define arndale_spl 0
|
||||
%define cuboxi_spl 0
|
||||
%define origen_spl 0
|
||||
%define udoo_spl 0
|
||||
%define imx6_spl 0
|
||||
%define socfpga_spl 0
|
||||
|
||||
@ -53,6 +51,9 @@ Patch0002: 0002-Revert-Revert-omap3-Use-raw-SPL-by-.patch
|
||||
Patch0003: 0003-Revert-rockchip-mkimage-remove-plac.patch
|
||||
Patch0004: 0004-Fix-boot-on-Beagleboard-xM-by-disab.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
%if 0
|
||||
BuildRequires: arm-trusted-firmware-pine64
|
||||
%endif
|
||||
BuildRequires: bc
|
||||
# Arndale board needs DTC >= 1.4
|
||||
BuildRequires: dtc >= 1.4.0
|
||||
@ -100,11 +101,21 @@ This package contains documentation for U-Boot firmware.
|
||||
|
||||
%build
|
||||
export SOURCE_DATE_EPOCH=$(date -d "$(head -n 2 %{_sourcedir}/%{name}.changes | tail -n 1 | cut -d- -f1 )" +%s)
|
||||
%if "%{name}" == "u-boot-pine64plus"
|
||||
export BL31=/boot/bl31.bin
|
||||
%endif
|
||||
|
||||
make %{?_smp_mflags} CROSS_COMPILE= HOSTCFLAGS="$RPM_OPT_FLAGS" am335x_boneblack_defconfig
|
||||
echo "Attempting to enable fdt apply command (.dtbo) support."
|
||||
echo "CONFIG_OF_LIBFDT_OVERLAY=y" >> .config
|
||||
make %{?_smp_mflags} CROSS_COMPILE= HOSTCFLAGS="$RPM_OPT_FLAGS" USE_PRIVATE_LIBGG=yes
|
||||
|
||||
%ifarch aarch64
|
||||
%if %sunxi_spl == 1
|
||||
cat spl/sunxi-spl.bin u-boot.itb > u-boot-sunxi-with-spl.bin
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%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)
|
||||
@ -131,34 +142,33 @@ export NO_DEBUGINFO_STRIP_DEBUG=true
|
||||
%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
|
||||
install -D -m 0644 $f %{buildroot}%{uboot_dir}/$f
|
||||
done
|
||||
%else
|
||||
%if "%{name}" == "u-boot-p2371-2180"
|
||||
# Jetson TX1 Driver Pack flash.sh needs several intermediate files, under their original name.
|
||||
for f in u-boot u-boot.bin u-boot.dtb u-boot-dtb.bin; do
|
||||
install -D -m 0644 $f %{buildroot}%{uboot_dir}/$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.img %{buildroot}%{uboot_dir}/u-boot.img
|
||||
elif [ -f u-boot-dtb.img ]; then
|
||||
install -D -m 0644 u-boot-dtb.img %{buildroot}%{uboot_dir}/u-boot.img
|
||||
else
|
||||
install -D -m 0644 u-boot.img %{buildroot}%{uboot_dir}/u-boot.img
|
||||
fi
|
||||
%if "%{name}" == "u-boot-qemu-ppce500"
|
||||
mv %{buildroot}%{uboot_dir}/u-boot.img %{buildroot}%{uboot_dir}/u-boot.e500
|
||||
%endif
|
||||
%endif
|
||||
%endif
|
||||
%if %x_loader == 1
|
||||
install -D -m 0755 MLO %{buildroot}/boot/MLO
|
||||
install -D -m 0644 MLO %{buildroot}%{uboot_dir}/MLO
|
||||
%endif
|
||||
%if %origen_spl == 1
|
||||
install -D -m 0755 spl/origen-spl.bin %{buildroot}/boot/origen-spl.bin
|
||||
install -D -m 0644 spl/origen-spl.bin %{buildroot}%{uboot_dir}/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
|
||||
install -D -m 0644 spl/arndale-spl.bin %{buildroot}%{uboot_dir}/arndale-spl.bin
|
||||
install -D -m 0644 %{SOURCE2} %{buildroot}%{uboot_dir}/arndale-bl1.img
|
||||
%endif
|
||||
%if %mvebu_spl == 1
|
||||
install -D -m 0755 u-boot-spl.kwb %{buildroot}%{uboot_dir}/u-boot-spl.kwb
|
||||
install -D -m 0644 u-boot-spl.kwb %{buildroot}%{uboot_dir}/u-boot-spl.kwb
|
||||
%endif
|
||||
%if %rockchip_spl == 1
|
||||
install -D -m 0644 spl/u-boot-spl.bin %{buildroot}%{uboot_dir}/u-boot-spl.bin
|
||||
@ -167,20 +177,14 @@ for t in ; do
|
||||
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
|
||||
install -D -m 0644 spl/sunxi-spl.bin %{buildroot}%{uboot_dir}/sunxi-spl.bin
|
||||
install -D -m 0644 u-boot-sunxi-with-spl.bin %{buildroot}%{uboot_dir}/u-boot-sunxi-with-spl.bin
|
||||
%endif
|
||||
%if %imx6_spl == 1
|
||||
install -D -m 0755 SPL %{buildroot}/boot/imx6-spl.bin
|
||||
install -D -m 0644 SPL %{buildroot}%{uboot_dir}/imx6-spl.bin
|
||||
%endif
|
||||
%if %socfpga_spl == 1
|
||||
install -D -m 0755 u-boot-with-spl.sfp %{buildroot}/boot/u-boot-with-spl.sfp
|
||||
install -D -m 0644 u-boot-with-spl.sfp %{buildroot}%{uboot_dir}/u-boot-with-spl.sfp
|
||||
%endif
|
||||
|
||||
%if 0%{?is_rpi}
|
||||
|
@ -1,3 +1,29 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 16 18:53:36 UTC 2017 - xxxxxmichl@googlemail.com
|
||||
|
||||
- Added Banana Pi M2+ support
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Oct 8 13:17:01 UTC 2017 - afaerber@suse.de
|
||||
|
||||
- Add firefly-rk3399 and geekbox
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Oct 7 00:52:52 UTC 2017 - afaerber@suse.de
|
||||
|
||||
- Drop obsolete CuBox-i i.MX6 SPL packaging, too
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Oct 6 23:26:14 UTC 2017 - afaerber@suse.de
|
||||
|
||||
- Update packaging for Jetson TX1
|
||||
- Cleanups
|
||||
* Drop executable bit from SPL
|
||||
* Consistently use %uboot_dir
|
||||
* u-boot[-tegra]-dtb.bin is obsolete
|
||||
* Drop obsolete UDOO-specific i.MX6 SPL packaging
|
||||
- Package sunxi64 SPL for Pine64
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 2 13:33:40 UTC 2017 - guillaume@opensuse.org
|
||||
|
||||
|
@ -23,9 +23,7 @@
|
||||
%define rockchip_spl 0
|
||||
%define sunxi_spl 0
|
||||
%define arndale_spl 0
|
||||
%define cuboxi_spl 0
|
||||
%define origen_spl 0
|
||||
%define udoo_spl 0
|
||||
%define imx6_spl 0
|
||||
%define socfpga_spl 0
|
||||
|
||||
@ -53,6 +51,9 @@ Patch0002: 0002-Revert-Revert-omap3-Use-raw-SPL-by-.patch
|
||||
Patch0003: 0003-Revert-rockchip-mkimage-remove-plac.patch
|
||||
Patch0004: 0004-Fix-boot-on-Beagleboard-xM-by-disab.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
%if 0
|
||||
BuildRequires: arm-trusted-firmware-pine64
|
||||
%endif
|
||||
BuildRequires: bc
|
||||
# Arndale board needs DTC >= 1.4
|
||||
BuildRequires: dtc >= 1.4.0
|
||||
@ -100,11 +101,21 @@ This package contains documentation for U-Boot firmware.
|
||||
|
||||
%build
|
||||
export SOURCE_DATE_EPOCH=$(date -d "$(head -n 2 %{_sourcedir}/%{name}.changes | tail -n 1 | cut -d- -f1 )" +%s)
|
||||
%if "%{name}" == "u-boot-pine64plus"
|
||||
export BL31=/boot/bl31.bin
|
||||
%endif
|
||||
|
||||
make %{?_smp_mflags} CROSS_COMPILE= HOSTCFLAGS="$RPM_OPT_FLAGS" am335x_evm_defconfig
|
||||
echo "Attempting to enable fdt apply command (.dtbo) support."
|
||||
echo "CONFIG_OF_LIBFDT_OVERLAY=y" >> .config
|
||||
make %{?_smp_mflags} CROSS_COMPILE= HOSTCFLAGS="$RPM_OPT_FLAGS" USE_PRIVATE_LIBGG=yes
|
||||
|
||||
%ifarch aarch64
|
||||
%if %sunxi_spl == 1
|
||||
cat spl/sunxi-spl.bin u-boot.itb > u-boot-sunxi-with-spl.bin
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%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)
|
||||
@ -131,34 +142,33 @@ export NO_DEBUGINFO_STRIP_DEBUG=true
|
||||
%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
|
||||
install -D -m 0644 $f %{buildroot}%{uboot_dir}/$f
|
||||
done
|
||||
%else
|
||||
%if "%{name}" == "u-boot-p2371-2180"
|
||||
# Jetson TX1 Driver Pack flash.sh needs several intermediate files, under their original name.
|
||||
for f in u-boot u-boot.bin u-boot.dtb u-boot-dtb.bin; do
|
||||
install -D -m 0644 $f %{buildroot}%{uboot_dir}/$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.img %{buildroot}%{uboot_dir}/u-boot.img
|
||||
elif [ -f u-boot-dtb.img ]; then
|
||||
install -D -m 0644 u-boot-dtb.img %{buildroot}%{uboot_dir}/u-boot.img
|
||||
else
|
||||
install -D -m 0644 u-boot.img %{buildroot}%{uboot_dir}/u-boot.img
|
||||
fi
|
||||
%if "%{name}" == "u-boot-qemu-ppce500"
|
||||
mv %{buildroot}%{uboot_dir}/u-boot.img %{buildroot}%{uboot_dir}/u-boot.e500
|
||||
%endif
|
||||
%endif
|
||||
%endif
|
||||
%if %x_loader == 1
|
||||
install -D -m 0755 MLO %{buildroot}/boot/MLO
|
||||
install -D -m 0644 MLO %{buildroot}%{uboot_dir}/MLO
|
||||
%endif
|
||||
%if %origen_spl == 1
|
||||
install -D -m 0755 spl/origen-spl.bin %{buildroot}/boot/origen-spl.bin
|
||||
install -D -m 0644 spl/origen-spl.bin %{buildroot}%{uboot_dir}/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
|
||||
install -D -m 0644 spl/arndale-spl.bin %{buildroot}%{uboot_dir}/arndale-spl.bin
|
||||
install -D -m 0644 %{SOURCE2} %{buildroot}%{uboot_dir}/arndale-bl1.img
|
||||
%endif
|
||||
%if %mvebu_spl == 1
|
||||
install -D -m 0755 u-boot-spl.kwb %{buildroot}%{uboot_dir}/u-boot-spl.kwb
|
||||
install -D -m 0644 u-boot-spl.kwb %{buildroot}%{uboot_dir}/u-boot-spl.kwb
|
||||
%endif
|
||||
%if %rockchip_spl == 1
|
||||
install -D -m 0644 spl/u-boot-spl.bin %{buildroot}%{uboot_dir}/u-boot-spl.bin
|
||||
@ -167,20 +177,14 @@ for t in ; do
|
||||
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
|
||||
install -D -m 0644 spl/sunxi-spl.bin %{buildroot}%{uboot_dir}/sunxi-spl.bin
|
||||
install -D -m 0644 u-boot-sunxi-with-spl.bin %{buildroot}%{uboot_dir}/u-boot-sunxi-with-spl.bin
|
||||
%endif
|
||||
%if %imx6_spl == 1
|
||||
install -D -m 0755 SPL %{buildroot}/boot/imx6-spl.bin
|
||||
install -D -m 0644 SPL %{buildroot}%{uboot_dir}/imx6-spl.bin
|
||||
%endif
|
||||
%if %socfpga_spl == 1
|
||||
install -D -m 0755 u-boot-with-spl.sfp %{buildroot}/boot/u-boot-with-spl.sfp
|
||||
install -D -m 0644 u-boot-with-spl.sfp %{buildroot}%{uboot_dir}/u-boot-with-spl.sfp
|
||||
%endif
|
||||
|
||||
%if 0%{?is_rpi}
|
||||
|
@ -1,3 +1,29 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 16 18:53:36 UTC 2017 - xxxxxmichl@googlemail.com
|
||||
|
||||
- Added Banana Pi M2+ support
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Oct 8 13:17:01 UTC 2017 - afaerber@suse.de
|
||||
|
||||
- Add firefly-rk3399 and geekbox
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Oct 7 00:52:52 UTC 2017 - afaerber@suse.de
|
||||
|
||||
- Drop obsolete CuBox-i i.MX6 SPL packaging, too
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Oct 6 23:26:14 UTC 2017 - afaerber@suse.de
|
||||
|
||||
- Update packaging for Jetson TX1
|
||||
- Cleanups
|
||||
* Drop executable bit from SPL
|
||||
* Consistently use %uboot_dir
|
||||
* u-boot[-tegra]-dtb.bin is obsolete
|
||||
* Drop obsolete UDOO-specific i.MX6 SPL packaging
|
||||
- Package sunxi64 SPL for Pine64
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 2 13:33:40 UTC 2017 - guillaume@opensuse.org
|
||||
|
||||
|
@ -23,9 +23,7 @@
|
||||
%define rockchip_spl 0
|
||||
%define sunxi_spl 0
|
||||
%define arndale_spl 0
|
||||
%define cuboxi_spl 0
|
||||
%define origen_spl 0
|
||||
%define udoo_spl 0
|
||||
%define imx6_spl 0
|
||||
%define socfpga_spl 0
|
||||
|
||||
@ -53,6 +51,9 @@ Patch0002: 0002-Revert-Revert-omap3-Use-raw-SPL-by-.patch
|
||||
Patch0003: 0003-Revert-rockchip-mkimage-remove-plac.patch
|
||||
Patch0004: 0004-Fix-boot-on-Beagleboard-xM-by-disab.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
%if 0
|
||||
BuildRequires: arm-trusted-firmware-pine64
|
||||
%endif
|
||||
BuildRequires: bc
|
||||
# Arndale board needs DTC >= 1.4
|
||||
BuildRequires: dtc >= 1.4.0
|
||||
@ -100,11 +101,21 @@ This package contains documentation for U-Boot firmware.
|
||||
|
||||
%build
|
||||
export SOURCE_DATE_EPOCH=$(date -d "$(head -n 2 %{_sourcedir}/%{name}.changes | tail -n 1 | cut -d- -f1 )" +%s)
|
||||
%if "%{name}" == "u-boot-pine64plus"
|
||||
export BL31=/boot/bl31.bin
|
||||
%endif
|
||||
|
||||
make %{?_smp_mflags} CROSS_COMPILE= HOSTCFLAGS="$RPM_OPT_FLAGS" am57xx_evm_defconfig
|
||||
echo "Attempting to enable fdt apply command (.dtbo) support."
|
||||
echo "CONFIG_OF_LIBFDT_OVERLAY=y" >> .config
|
||||
make %{?_smp_mflags} CROSS_COMPILE= HOSTCFLAGS="$RPM_OPT_FLAGS" USE_PRIVATE_LIBGG=yes
|
||||
|
||||
%ifarch aarch64
|
||||
%if %sunxi_spl == 1
|
||||
cat spl/sunxi-spl.bin u-boot.itb > u-boot-sunxi-with-spl.bin
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%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)
|
||||
@ -131,34 +142,33 @@ export NO_DEBUGINFO_STRIP_DEBUG=true
|
||||
%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
|
||||
install -D -m 0644 $f %{buildroot}%{uboot_dir}/$f
|
||||
done
|
||||
%else
|
||||
%if "%{name}" == "u-boot-p2371-2180"
|
||||
# Jetson TX1 Driver Pack flash.sh needs several intermediate files, under their original name.
|
||||
for f in u-boot u-boot.bin u-boot.dtb u-boot-dtb.bin; do
|
||||
install -D -m 0644 $f %{buildroot}%{uboot_dir}/$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
|
||||
%endif
|
||||
%if %x_loader == 1
|
||||
install -D -m 0755 MLO %{buildroot}/boot/MLO
|
||||
install -D -m 0644 MLO %{buildroot}%{uboot_dir}/MLO
|
||||
%endif
|
||||
%if %origen_spl == 1
|
||||
install -D -m 0755 spl/origen-spl.bin %{buildroot}/boot/origen-spl.bin
|
||||
install -D -m 0644 spl/origen-spl.bin %{buildroot}%{uboot_dir}/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
|
||||
install -D -m 0644 spl/arndale-spl.bin %{buildroot}%{uboot_dir}/arndale-spl.bin
|
||||
install -D -m 0644 %{SOURCE2} %{buildroot}%{uboot_dir}/arndale-bl1.img
|
||||
%endif
|
||||
%if %mvebu_spl == 1
|
||||
install -D -m 0755 u-boot-spl.kwb %{buildroot}%{uboot_dir}/u-boot-spl.kwb
|
||||
install -D -m 0644 u-boot-spl.kwb %{buildroot}%{uboot_dir}/u-boot-spl.kwb
|
||||
%endif
|
||||
%if %rockchip_spl == 1
|
||||
install -D -m 0644 spl/u-boot-spl.bin %{buildroot}%{uboot_dir}/u-boot-spl.bin
|
||||
@ -167,20 +177,14 @@ for t in ; do
|
||||
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
|
||||
install -D -m 0644 spl/sunxi-spl.bin %{buildroot}%{uboot_dir}/sunxi-spl.bin
|
||||
install -D -m 0644 u-boot-sunxi-with-spl.bin %{buildroot}%{uboot_dir}/u-boot-sunxi-with-spl.bin
|
||||
%endif
|
||||
%if %imx6_spl == 1
|
||||
install -D -m 0755 SPL %{buildroot}/boot/imx6-spl.bin
|
||||
install -D -m 0644 SPL %{buildroot}%{uboot_dir}/imx6-spl.bin
|
||||
%endif
|
||||
%if %socfpga_spl == 1
|
||||
install -D -m 0755 u-boot-with-spl.sfp %{buildroot}/boot/u-boot-with-spl.sfp
|
||||
install -D -m 0644 u-boot-with-spl.sfp %{buildroot}%{uboot_dir}/u-boot-with-spl.sfp
|
||||
%endif
|
||||
|
||||
%if 0%{?is_rpi}
|
||||
|
@ -1,3 +1,29 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 16 18:53:36 UTC 2017 - xxxxxmichl@googlemail.com
|
||||
|
||||
- Added Banana Pi M2+ support
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Oct 8 13:17:01 UTC 2017 - afaerber@suse.de
|
||||
|
||||
- Add firefly-rk3399 and geekbox
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Oct 7 00:52:52 UTC 2017 - afaerber@suse.de
|
||||
|
||||
- Drop obsolete CuBox-i i.MX6 SPL packaging, too
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Oct 6 23:26:14 UTC 2017 - afaerber@suse.de
|
||||
|
||||
- Update packaging for Jetson TX1
|
||||
- Cleanups
|
||||
* Drop executable bit from SPL
|
||||
* Consistently use %uboot_dir
|
||||
* u-boot[-tegra]-dtb.bin is obsolete
|
||||
* Drop obsolete UDOO-specific i.MX6 SPL packaging
|
||||
- Package sunxi64 SPL for Pine64
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 2 13:33:40 UTC 2017 - guillaume@opensuse.org
|
||||
|
||||
|
@ -23,9 +23,7 @@
|
||||
%define rockchip_spl 0
|
||||
%define sunxi_spl 0
|
||||
%define arndale_spl 0
|
||||
%define cuboxi_spl 0
|
||||
%define origen_spl 0
|
||||
%define udoo_spl 0
|
||||
%define imx6_spl 0
|
||||
%define socfpga_spl 0
|
||||
|
||||
@ -53,6 +51,9 @@ Patch0002: 0002-Revert-Revert-omap3-Use-raw-SPL-by-.patch
|
||||
Patch0003: 0003-Revert-rockchip-mkimage-remove-plac.patch
|
||||
Patch0004: 0004-Fix-boot-on-Beagleboard-xM-by-disab.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
%if 0
|
||||
BuildRequires: arm-trusted-firmware-pine64
|
||||
%endif
|
||||
BuildRequires: bc
|
||||
# Arndale board needs DTC >= 1.4
|
||||
BuildRequires: dtc >= 1.4.0
|
||||
@ -100,11 +101,21 @@ This package contains documentation for U-Boot firmware.
|
||||
|
||||
%build
|
||||
export SOURCE_DATE_EPOCH=$(date -d "$(head -n 2 %{_sourcedir}/%{name}.changes | tail -n 1 | cut -d- -f1 )" +%s)
|
||||
%if "%{name}" == "u-boot-pine64plus"
|
||||
export BL31=/boot/bl31.bin
|
||||
%endif
|
||||
|
||||
make %{?_smp_mflags} CROSS_COMPILE= HOSTCFLAGS="$RPM_OPT_FLAGS" am57xx_evm_nodt_defconfig
|
||||
echo "Attempting to enable fdt apply command (.dtbo) support."
|
||||
echo "CONFIG_OF_LIBFDT_OVERLAY=y" >> .config
|
||||
make %{?_smp_mflags} CROSS_COMPILE= HOSTCFLAGS="$RPM_OPT_FLAGS" USE_PRIVATE_LIBGG=yes
|
||||
|
||||
%ifarch aarch64
|
||||
%if %sunxi_spl == 1
|
||||
cat spl/sunxi-spl.bin u-boot.itb > u-boot-sunxi-with-spl.bin
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%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)
|
||||
@ -131,34 +142,33 @@ export NO_DEBUGINFO_STRIP_DEBUG=true
|
||||
%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
|
||||
install -D -m 0644 $f %{buildroot}%{uboot_dir}/$f
|
||||
done
|
||||
%else
|
||||
%if "%{name}" == "u-boot-p2371-2180"
|
||||
# Jetson TX1 Driver Pack flash.sh needs several intermediate files, under their original name.
|
||||
for f in u-boot u-boot.bin u-boot.dtb u-boot-dtb.bin; do
|
||||
install -D -m 0644 $f %{buildroot}%{uboot_dir}/$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
|
||||
%endif
|
||||
%if %x_loader == 1
|
||||
install -D -m 0755 MLO %{buildroot}/boot/MLO
|
||||
install -D -m 0644 MLO %{buildroot}%{uboot_dir}/MLO
|
||||
%endif
|
||||
%if %origen_spl == 1
|
||||
install -D -m 0755 spl/origen-spl.bin %{buildroot}/boot/origen-spl.bin
|
||||
install -D -m 0644 spl/origen-spl.bin %{buildroot}%{uboot_dir}/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
|
||||
install -D -m 0644 spl/arndale-spl.bin %{buildroot}%{uboot_dir}/arndale-spl.bin
|
||||
install -D -m 0644 %{SOURCE2} %{buildroot}%{uboot_dir}/arndale-bl1.img
|
||||
%endif
|
||||
%if %mvebu_spl == 1
|
||||
install -D -m 0755 u-boot-spl.kwb %{buildroot}%{uboot_dir}/u-boot-spl.kwb
|
||||
install -D -m 0644 u-boot-spl.kwb %{buildroot}%{uboot_dir}/u-boot-spl.kwb
|
||||
%endif
|
||||
%if %rockchip_spl == 1
|
||||
install -D -m 0644 spl/u-boot-spl.bin %{buildroot}%{uboot_dir}/u-boot-spl.bin
|
||||
@ -167,20 +177,14 @@ for t in ; do
|
||||
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
|
||||
install -D -m 0644 spl/sunxi-spl.bin %{buildroot}%{uboot_dir}/sunxi-spl.bin
|
||||
install -D -m 0644 u-boot-sunxi-with-spl.bin %{buildroot}%{uboot_dir}/u-boot-sunxi-with-spl.bin
|
||||
%endif
|
||||
%if %imx6_spl == 1
|
||||
install -D -m 0755 SPL %{buildroot}/boot/imx6-spl.bin
|
||||
install -D -m 0644 SPL %{buildroot}%{uboot_dir}/imx6-spl.bin
|
||||
%endif
|
||||
%if %socfpga_spl == 1
|
||||
install -D -m 0755 u-boot-with-spl.sfp %{buildroot}/boot/u-boot-with-spl.sfp
|
||||
install -D -m 0644 u-boot-with-spl.sfp %{buildroot}%{uboot_dir}/u-boot-with-spl.sfp
|
||||
%endif
|
||||
|
||||
%if 0%{?is_rpi}
|
||||
|
@ -1,3 +1,29 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 16 18:53:36 UTC 2017 - xxxxxmichl@googlemail.com
|
||||
|
||||
- Added Banana Pi M2+ support
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Oct 8 13:17:01 UTC 2017 - afaerber@suse.de
|
||||
|
||||
- Add firefly-rk3399 and geekbox
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Oct 7 00:52:52 UTC 2017 - afaerber@suse.de
|
||||
|
||||
- Drop obsolete CuBox-i i.MX6 SPL packaging, too
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Oct 6 23:26:14 UTC 2017 - afaerber@suse.de
|
||||
|
||||
- Update packaging for Jetson TX1
|
||||
- Cleanups
|
||||
* Drop executable bit from SPL
|
||||
* Consistently use %uboot_dir
|
||||
* u-boot[-tegra]-dtb.bin is obsolete
|
||||
* Drop obsolete UDOO-specific i.MX6 SPL packaging
|
||||
- Package sunxi64 SPL for Pine64
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 2 13:33:40 UTC 2017 - guillaume@opensuse.org
|
||||
|
||||
|
@ -23,9 +23,7 @@
|
||||
%define rockchip_spl 0
|
||||
%define sunxi_spl 0
|
||||
%define arndale_spl 1
|
||||
%define cuboxi_spl 0
|
||||
%define origen_spl 0
|
||||
%define udoo_spl 0
|
||||
%define imx6_spl 0
|
||||
%define socfpga_spl 0
|
||||
|
||||
@ -53,6 +51,9 @@ Patch0002: 0002-Revert-Revert-omap3-Use-raw-SPL-by-.patch
|
||||
Patch0003: 0003-Revert-rockchip-mkimage-remove-plac.patch
|
||||
Patch0004: 0004-Fix-boot-on-Beagleboard-xM-by-disab.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
%if 0
|
||||
BuildRequires: arm-trusted-firmware-pine64
|
||||
%endif
|
||||
BuildRequires: bc
|
||||
# Arndale board needs DTC >= 1.4
|
||||
BuildRequires: dtc >= 1.4.0
|
||||
@ -100,11 +101,21 @@ This package contains documentation for U-Boot firmware.
|
||||
|
||||
%build
|
||||
export SOURCE_DATE_EPOCH=$(date -d "$(head -n 2 %{_sourcedir}/%{name}.changes | tail -n 1 | cut -d- -f1 )" +%s)
|
||||
%if "%{name}" == "u-boot-pine64plus"
|
||||
export BL31=/boot/bl31.bin
|
||||
%endif
|
||||
|
||||
make %{?_smp_mflags} CROSS_COMPILE= HOSTCFLAGS="$RPM_OPT_FLAGS" arndale_defconfig
|
||||
echo "Attempting to enable fdt apply command (.dtbo) support."
|
||||
echo "CONFIG_OF_LIBFDT_OVERLAY=y" >> .config
|
||||
make %{?_smp_mflags} CROSS_COMPILE= HOSTCFLAGS="$RPM_OPT_FLAGS" USE_PRIVATE_LIBGG=yes
|
||||
|
||||
%ifarch aarch64
|
||||
%if %sunxi_spl == 1
|
||||
cat spl/sunxi-spl.bin u-boot.itb > u-boot-sunxi-with-spl.bin
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%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)
|
||||
@ -131,34 +142,33 @@ export NO_DEBUGINFO_STRIP_DEBUG=true
|
||||
%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
|
||||
install -D -m 0644 $f %{buildroot}%{uboot_dir}/$f
|
||||
done
|
||||
%else
|
||||
%if "%{name}" == "u-boot-p2371-2180"
|
||||
# Jetson TX1 Driver Pack flash.sh needs several intermediate files, under their original name.
|
||||
for f in u-boot u-boot.bin u-boot.dtb u-boot-dtb.bin; do
|
||||
install -D -m 0644 $f %{buildroot}%{uboot_dir}/$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
|
||||
%endif
|
||||
%if %x_loader == 1
|
||||
install -D -m 0755 MLO %{buildroot}/boot/MLO
|
||||
install -D -m 0644 MLO %{buildroot}%{uboot_dir}/MLO
|
||||
%endif
|
||||
%if %origen_spl == 1
|
||||
install -D -m 0755 spl/origen-spl.bin %{buildroot}/boot/origen-spl.bin
|
||||
install -D -m 0644 spl/origen-spl.bin %{buildroot}%{uboot_dir}/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
|
||||
install -D -m 0644 spl/arndale-spl.bin %{buildroot}%{uboot_dir}/arndale-spl.bin
|
||||
install -D -m 0644 %{SOURCE2} %{buildroot}%{uboot_dir}/arndale-bl1.img
|
||||
%endif
|
||||
%if %mvebu_spl == 1
|
||||
install -D -m 0755 u-boot-spl.kwb %{buildroot}%{uboot_dir}/u-boot-spl.kwb
|
||||
install -D -m 0644 u-boot-spl.kwb %{buildroot}%{uboot_dir}/u-boot-spl.kwb
|
||||
%endif
|
||||
%if %rockchip_spl == 1
|
||||
install -D -m 0644 spl/u-boot-spl.bin %{buildroot}%{uboot_dir}/u-boot-spl.bin
|
||||
@ -167,20 +177,14 @@ for t in ; do
|
||||
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
|
||||
install -D -m 0644 spl/sunxi-spl.bin %{buildroot}%{uboot_dir}/sunxi-spl.bin
|
||||
install -D -m 0644 u-boot-sunxi-with-spl.bin %{buildroot}%{uboot_dir}/u-boot-sunxi-with-spl.bin
|
||||
%endif
|
||||
%if %imx6_spl == 1
|
||||
install -D -m 0755 SPL %{buildroot}/boot/imx6-spl.bin
|
||||
install -D -m 0644 SPL %{buildroot}%{uboot_dir}/imx6-spl.bin
|
||||
%endif
|
||||
%if %socfpga_spl == 1
|
||||
install -D -m 0755 u-boot-with-spl.sfp %{buildroot}/boot/u-boot-with-spl.sfp
|
||||
install -D -m 0644 u-boot-with-spl.sfp %{buildroot}%{uboot_dir}/u-boot-with-spl.sfp
|
||||
%endif
|
||||
|
||||
%if 0%{?is_rpi}
|
||||
|
@ -1,3 +1,29 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 16 18:53:36 UTC 2017 - xxxxxmichl@googlemail.com
|
||||
|
||||
- Added Banana Pi M2+ support
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Oct 8 13:17:01 UTC 2017 - afaerber@suse.de
|
||||
|
||||
- Add firefly-rk3399 and geekbox
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Oct 7 00:52:52 UTC 2017 - afaerber@suse.de
|
||||
|
||||
- Drop obsolete CuBox-i i.MX6 SPL packaging, too
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Oct 6 23:26:14 UTC 2017 - afaerber@suse.de
|
||||
|
||||
- Update packaging for Jetson TX1
|
||||
- Cleanups
|
||||
* Drop executable bit from SPL
|
||||
* Consistently use %uboot_dir
|
||||
* u-boot[-tegra]-dtb.bin is obsolete
|
||||
* Drop obsolete UDOO-specific i.MX6 SPL packaging
|
||||
- Package sunxi64 SPL for Pine64
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 2 13:33:40 UTC 2017 - guillaume@opensuse.org
|
||||
|
||||
|
@ -23,9 +23,7 @@
|
||||
%define rockchip_spl 0
|
||||
%define sunxi_spl 1
|
||||
%define arndale_spl 0
|
||||
%define cuboxi_spl 0
|
||||
%define origen_spl 0
|
||||
%define udoo_spl 0
|
||||
%define imx6_spl 0
|
||||
%define socfpga_spl 0
|
||||
|
||||
@ -53,6 +51,9 @@ Patch0002: 0002-Revert-Revert-omap3-Use-raw-SPL-by-.patch
|
||||
Patch0003: 0003-Revert-rockchip-mkimage-remove-plac.patch
|
||||
Patch0004: 0004-Fix-boot-on-Beagleboard-xM-by-disab.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
%if 0
|
||||
BuildRequires: arm-trusted-firmware-pine64
|
||||
%endif
|
||||
BuildRequires: bc
|
||||
# Arndale board needs DTC >= 1.4
|
||||
BuildRequires: dtc >= 1.4.0
|
||||
@ -100,11 +101,21 @@ This package contains documentation for U-Boot firmware.
|
||||
|
||||
%build
|
||||
export SOURCE_DATE_EPOCH=$(date -d "$(head -n 2 %{_sourcedir}/%{name}.changes | tail -n 1 | cut -d- -f1 )" +%s)
|
||||
%if "%{name}" == "u-boot-pine64plus"
|
||||
export BL31=/boot/bl31.bin
|
||||
%endif
|
||||
|
||||
make %{?_smp_mflags} CROSS_COMPILE= HOSTCFLAGS="$RPM_OPT_FLAGS" Bananapi_defconfig
|
||||
echo "Attempting to enable fdt apply command (.dtbo) support."
|
||||
echo "CONFIG_OF_LIBFDT_OVERLAY=y" >> .config
|
||||
make %{?_smp_mflags} CROSS_COMPILE= HOSTCFLAGS="$RPM_OPT_FLAGS" USE_PRIVATE_LIBGG=yes
|
||||
|
||||
%ifarch aarch64
|
||||
%if %sunxi_spl == 1
|
||||
cat spl/sunxi-spl.bin u-boot.itb > u-boot-sunxi-with-spl.bin
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%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)
|
||||
@ -131,34 +142,33 @@ export NO_DEBUGINFO_STRIP_DEBUG=true
|
||||
%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
|
||||
install -D -m 0644 $f %{buildroot}%{uboot_dir}/$f
|
||||
done
|
||||
%else
|
||||
%if "%{name}" == "u-boot-p2371-2180"
|
||||
# Jetson TX1 Driver Pack flash.sh needs several intermediate files, under their original name.
|
||||
for f in u-boot u-boot.bin u-boot.dtb u-boot-dtb.bin; do
|
||||
install -D -m 0644 $f %{buildroot}%{uboot_dir}/$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.img %{buildroot}%{uboot_dir}/u-boot.img
|
||||
elif [ -f u-boot-dtb.img ]; then
|
||||
install -D -m 0644 u-boot-dtb.img %{buildroot}%{uboot_dir}/u-boot.img
|
||||
else
|
||||
install -D -m 0644 u-boot.img %{buildroot}%{uboot_dir}/u-boot.img
|
||||
fi
|
||||
%if "%{name}" == "u-boot-qemu-ppce500"
|
||||
mv %{buildroot}%{uboot_dir}/u-boot.img %{buildroot}%{uboot_dir}/u-boot.e500
|
||||
%endif
|
||||
%endif
|
||||
%endif
|
||||
%if %x_loader == 1
|
||||
install -D -m 0755 MLO %{buildroot}/boot/MLO
|
||||
install -D -m 0644 MLO %{buildroot}%{uboot_dir}/MLO
|
||||
%endif
|
||||
%if %origen_spl == 1
|
||||
install -D -m 0755 spl/origen-spl.bin %{buildroot}/boot/origen-spl.bin
|
||||
install -D -m 0644 spl/origen-spl.bin %{buildroot}%{uboot_dir}/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
|
||||
install -D -m 0644 spl/arndale-spl.bin %{buildroot}%{uboot_dir}/arndale-spl.bin
|
||||
install -D -m 0644 %{SOURCE2} %{buildroot}%{uboot_dir}/arndale-bl1.img
|
||||
%endif
|
||||
%if %mvebu_spl == 1
|
||||
install -D -m 0755 u-boot-spl.kwb %{buildroot}%{uboot_dir}/u-boot-spl.kwb
|
||||
install -D -m 0644 u-boot-spl.kwb %{buildroot}%{uboot_dir}/u-boot-spl.kwb
|
||||
%endif
|
||||
%if %rockchip_spl == 1
|
||||
install -D -m 0644 spl/u-boot-spl.bin %{buildroot}%{uboot_dir}/u-boot-spl.bin
|
||||
@ -167,20 +177,14 @@ for t in ; do
|
||||
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
|
||||
install -D -m 0644 spl/sunxi-spl.bin %{buildroot}%{uboot_dir}/sunxi-spl.bin
|
||||
install -D -m 0644 u-boot-sunxi-with-spl.bin %{buildroot}%{uboot_dir}/u-boot-sunxi-with-spl.bin
|
||||
%endif
|
||||
%if %imx6_spl == 1
|
||||
install -D -m 0755 SPL %{buildroot}/boot/imx6-spl.bin
|
||||
install -D -m 0644 SPL %{buildroot}%{uboot_dir}/imx6-spl.bin
|
||||
%endif
|
||||
%if %socfpga_spl == 1
|
||||
install -D -m 0755 u-boot-with-spl.sfp %{buildroot}/boot/u-boot-with-spl.sfp
|
||||
install -D -m 0644 u-boot-with-spl.sfp %{buildroot}%{uboot_dir}/u-boot-with-spl.sfp
|
||||
%endif
|
||||
|
||||
%if 0%{?is_rpi}
|
||||
|
@ -1,3 +1,29 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 16 18:53:36 UTC 2017 - xxxxxmichl@googlemail.com
|
||||
|
||||
- Added Banana Pi M2+ support
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Oct 8 13:17:01 UTC 2017 - afaerber@suse.de
|
||||
|
||||
- Add firefly-rk3399 and geekbox
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Oct 7 00:52:52 UTC 2017 - afaerber@suse.de
|
||||
|
||||
- Drop obsolete CuBox-i i.MX6 SPL packaging, too
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Oct 6 23:26:14 UTC 2017 - afaerber@suse.de
|
||||
|
||||
- Update packaging for Jetson TX1
|
||||
- Cleanups
|
||||
* Drop executable bit from SPL
|
||||
* Consistently use %uboot_dir
|
||||
* u-boot[-tegra]-dtb.bin is obsolete
|
||||
* Drop obsolete UDOO-specific i.MX6 SPL packaging
|
||||
- Package sunxi64 SPL for Pine64
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 2 13:33:40 UTC 2017 - guillaume@opensuse.org
|
||||
|
||||
|
@ -23,9 +23,7 @@
|
||||
%define rockchip_spl 0
|
||||
%define sunxi_spl 0
|
||||
%define arndale_spl 0
|
||||
%define cuboxi_spl 0
|
||||
%define origen_spl 0
|
||||
%define udoo_spl 0
|
||||
%define imx6_spl 0
|
||||
%define socfpga_spl 0
|
||||
|
||||
@ -53,6 +51,9 @@ Patch0002: 0002-Revert-Revert-omap3-Use-raw-SPL-by-.patch
|
||||
Patch0003: 0003-Revert-rockchip-mkimage-remove-plac.patch
|
||||
Patch0004: 0004-Fix-boot-on-Beagleboard-xM-by-disab.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
%if 0
|
||||
BuildRequires: arm-trusted-firmware-pine64
|
||||
%endif
|
||||
BuildRequires: bc
|
||||
# Arndale board needs DTC >= 1.4
|
||||
BuildRequires: dtc >= 1.4.0
|
||||
@ -100,11 +101,21 @@ This package contains documentation for U-Boot firmware.
|
||||
|
||||
%build
|
||||
export SOURCE_DATE_EPOCH=$(date -d "$(head -n 2 %{_sourcedir}/%{name}.changes | tail -n 1 | cut -d- -f1 )" +%s)
|
||||
%if "%{name}" == "u-boot-pine64plus"
|
||||
export BL31=/boot/bl31.bin
|
||||
%endif
|
||||
|
||||
make %{?_smp_mflags} CROSS_COMPILE= HOSTCFLAGS="$RPM_OPT_FLAGS" clearfog_defconfig
|
||||
echo "Attempting to enable fdt apply command (.dtbo) support."
|
||||
echo "CONFIG_OF_LIBFDT_OVERLAY=y" >> .config
|
||||
make %{?_smp_mflags} CROSS_COMPILE= HOSTCFLAGS="$RPM_OPT_FLAGS" USE_PRIVATE_LIBGG=yes
|
||||
|
||||
%ifarch aarch64
|
||||
%if %sunxi_spl == 1
|
||||
cat spl/sunxi-spl.bin u-boot.itb > u-boot-sunxi-with-spl.bin
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%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)
|
||||
@ -131,34 +142,33 @@ export NO_DEBUGINFO_STRIP_DEBUG=true
|
||||
%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
|
||||
install -D -m 0644 $f %{buildroot}%{uboot_dir}/$f
|
||||
done
|
||||
%else
|
||||
%if "%{name}" == "u-boot-p2371-2180"
|
||||
# Jetson TX1 Driver Pack flash.sh needs several intermediate files, under their original name.
|
||||
for f in u-boot u-boot.bin u-boot.dtb u-boot-dtb.bin; do
|
||||
install -D -m 0644 $f %{buildroot}%{uboot_dir}/$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.img %{buildroot}%{uboot_dir}/u-boot.img
|
||||
elif [ -f u-boot-dtb.img ]; then
|
||||
install -D -m 0644 u-boot-dtb.img %{buildroot}%{uboot_dir}/u-boot.img
|
||||
else
|
||||
install -D -m 0644 u-boot.img %{buildroot}%{uboot_dir}/u-boot.img
|
||||
fi
|
||||
%if "%{name}" == "u-boot-qemu-ppce500"
|
||||
mv %{buildroot}%{uboot_dir}/u-boot.img %{buildroot}%{uboot_dir}/u-boot.e500
|
||||
%endif
|
||||
%endif
|
||||
%endif
|
||||
%if %x_loader == 1
|
||||
install -D -m 0755 MLO %{buildroot}/boot/MLO
|
||||
install -D -m 0644 MLO %{buildroot}%{uboot_dir}/MLO
|
||||
%endif
|
||||
%if %origen_spl == 1
|
||||
install -D -m 0755 spl/origen-spl.bin %{buildroot}/boot/origen-spl.bin
|
||||
install -D -m 0644 spl/origen-spl.bin %{buildroot}%{uboot_dir}/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
|
||||
install -D -m 0644 spl/arndale-spl.bin %{buildroot}%{uboot_dir}/arndale-spl.bin
|
||||
install -D -m 0644 %{SOURCE2} %{buildroot}%{uboot_dir}/arndale-bl1.img
|
||||
%endif
|
||||
%if %mvebu_spl == 1
|
||||
install -D -m 0755 u-boot-spl.kwb %{buildroot}%{uboot_dir}/u-boot-spl.kwb
|
||||
install -D -m 0644 u-boot-spl.kwb %{buildroot}%{uboot_dir}/u-boot-spl.kwb
|
||||
%endif
|
||||
%if %rockchip_spl == 1
|
||||
install -D -m 0644 spl/u-boot-spl.bin %{buildroot}%{uboot_dir}/u-boot-spl.bin
|
||||
@ -167,20 +177,14 @@ for t in ; do
|
||||
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
|
||||
install -D -m 0644 spl/sunxi-spl.bin %{buildroot}%{uboot_dir}/sunxi-spl.bin
|
||||
install -D -m 0644 u-boot-sunxi-with-spl.bin %{buildroot}%{uboot_dir}/u-boot-sunxi-with-spl.bin
|
||||
%endif
|
||||
%if %imx6_spl == 1
|
||||
install -D -m 0755 SPL %{buildroot}/boot/imx6-spl.bin
|
||||
install -D -m 0644 SPL %{buildroot}%{uboot_dir}/imx6-spl.bin
|
||||
%endif
|
||||
%if %socfpga_spl == 1
|
||||
install -D -m 0755 u-boot-with-spl.sfp %{buildroot}/boot/u-boot-with-spl.sfp
|
||||
install -D -m 0644 u-boot-with-spl.sfp %{buildroot}%{uboot_dir}/u-boot-with-spl.sfp
|
||||
%endif
|
||||
|
||||
%if 0%{?is_rpi}
|
||||
|
@ -1,3 +1,29 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 16 18:53:36 UTC 2017 - xxxxxmichl@googlemail.com
|
||||
|
||||
- Added Banana Pi M2+ support
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Oct 8 13:17:01 UTC 2017 - afaerber@suse.de
|
||||
|
||||
- Add firefly-rk3399 and geekbox
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Oct 7 00:52:52 UTC 2017 - afaerber@suse.de
|
||||
|
||||
- Drop obsolete CuBox-i i.MX6 SPL packaging, too
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Oct 6 23:26:14 UTC 2017 - afaerber@suse.de
|
||||
|
||||
- Update packaging for Jetson TX1
|
||||
- Cleanups
|
||||
* Drop executable bit from SPL
|
||||
* Consistently use %uboot_dir
|
||||
* u-boot[-tegra]-dtb.bin is obsolete
|
||||
* Drop obsolete UDOO-specific i.MX6 SPL packaging
|
||||
- Package sunxi64 SPL for Pine64
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 2 13:33:40 UTC 2017 - guillaume@opensuse.org
|
||||
|
||||
|
@ -23,9 +23,7 @@
|
||||
%define rockchip_spl 0
|
||||
%define sunxi_spl 0
|
||||
%define arndale_spl 0
|
||||
%define cuboxi_spl 0
|
||||
%define origen_spl 0
|
||||
%define udoo_spl 0
|
||||
%define imx6_spl 0
|
||||
%define socfpga_spl 0
|
||||
|
||||
@ -53,6 +51,9 @@ Patch0002: 0002-Revert-Revert-omap3-Use-raw-SPL-by-.patch
|
||||
Patch0003: 0003-Revert-rockchip-mkimage-remove-plac.patch
|
||||
Patch0004: 0004-Fix-boot-on-Beagleboard-xM-by-disab.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
%if 0
|
||||
BuildRequires: arm-trusted-firmware-pine64
|
||||
%endif
|
||||
BuildRequires: bc
|
||||
# Arndale board needs DTC >= 1.4
|
||||
BuildRequires: dtc >= 1.4.0
|
||||
@ -100,11 +101,21 @@ This package contains documentation for U-Boot firmware.
|
||||
|
||||
%build
|
||||
export SOURCE_DATE_EPOCH=$(date -d "$(head -n 2 %{_sourcedir}/%{name}.changes | tail -n 1 | cut -d- -f1 )" +%s)
|
||||
%if "%{name}" == "u-boot-pine64plus"
|
||||
export BL31=/boot/bl31.bin
|
||||
%endif
|
||||
|
||||
make %{?_smp_mflags} CROSS_COMPILE= HOSTCFLAGS="$RPM_OPT_FLAGS" colibri_t20_defconfig
|
||||
echo "Attempting to enable fdt apply command (.dtbo) support."
|
||||
echo "CONFIG_OF_LIBFDT_OVERLAY=y" >> .config
|
||||
make %{?_smp_mflags} CROSS_COMPILE= HOSTCFLAGS="$RPM_OPT_FLAGS" USE_PRIVATE_LIBGG=yes
|
||||
|
||||
%ifarch aarch64
|
||||
%if %sunxi_spl == 1
|
||||
cat spl/sunxi-spl.bin u-boot.itb > u-boot-sunxi-with-spl.bin
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%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)
|
||||
@ -131,34 +142,33 @@ export NO_DEBUGINFO_STRIP_DEBUG=true
|
||||
%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
|
||||
install -D -m 0644 $f %{buildroot}%{uboot_dir}/$f
|
||||
done
|
||||
%else
|
||||
%if "%{name}" == "u-boot-p2371-2180"
|
||||
# Jetson TX1 Driver Pack flash.sh needs several intermediate files, under their original name.
|
||||
for f in u-boot u-boot.bin u-boot.dtb u-boot-dtb.bin; do
|
||||
install -D -m 0644 $f %{buildroot}%{uboot_dir}/$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
|
||||
%endif
|
||||
%if %x_loader == 1
|
||||
install -D -m 0755 MLO %{buildroot}/boot/MLO
|
||||
install -D -m 0644 MLO %{buildroot}%{uboot_dir}/MLO
|
||||
%endif
|
||||
%if %origen_spl == 1
|
||||
install -D -m 0755 spl/origen-spl.bin %{buildroot}/boot/origen-spl.bin
|
||||
install -D -m 0644 spl/origen-spl.bin %{buildroot}%{uboot_dir}/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
|
||||
install -D -m 0644 spl/arndale-spl.bin %{buildroot}%{uboot_dir}/arndale-spl.bin
|
||||
install -D -m 0644 %{SOURCE2} %{buildroot}%{uboot_dir}/arndale-bl1.img
|
||||
%endif
|
||||
%if %mvebu_spl == 1
|
||||
install -D -m 0755 u-boot-spl.kwb %{buildroot}%{uboot_dir}/u-boot-spl.kwb
|
||||
install -D -m 0644 u-boot-spl.kwb %{buildroot}%{uboot_dir}/u-boot-spl.kwb
|
||||
%endif
|
||||
%if %rockchip_spl == 1
|
||||
install -D -m 0644 spl/u-boot-spl.bin %{buildroot}%{uboot_dir}/u-boot-spl.bin
|
||||
@ -167,20 +177,14 @@ for t in ; do
|
||||
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
|
||||
install -D -m 0644 spl/sunxi-spl.bin %{buildroot}%{uboot_dir}/sunxi-spl.bin
|
||||
install -D -m 0644 u-boot-sunxi-with-spl.bin %{buildroot}%{uboot_dir}/u-boot-sunxi-with-spl.bin
|
||||
%endif
|
||||
%if %imx6_spl == 1
|
||||
install -D -m 0755 SPL %{buildroot}/boot/imx6-spl.bin
|
||||
install -D -m 0644 SPL %{buildroot}%{uboot_dir}/imx6-spl.bin
|
||||
%endif
|
||||
%if %socfpga_spl == 1
|
||||
install -D -m 0755 u-boot-with-spl.sfp %{buildroot}/boot/u-boot-with-spl.sfp
|
||||
install -D -m 0644 u-boot-with-spl.sfp %{buildroot}%{uboot_dir}/u-boot-with-spl.sfp
|
||||
%endif
|
||||
|
||||
%if 0%{?is_rpi}
|
||||
|
@ -1,3 +1,29 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 16 18:53:36 UTC 2017 - xxxxxmichl@googlemail.com
|
||||
|
||||
- Added Banana Pi M2+ support
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Oct 8 13:17:01 UTC 2017 - afaerber@suse.de
|
||||
|
||||
- Add firefly-rk3399 and geekbox
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Oct 7 00:52:52 UTC 2017 - afaerber@suse.de
|
||||
|
||||
- Drop obsolete CuBox-i i.MX6 SPL packaging, too
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Oct 6 23:26:14 UTC 2017 - afaerber@suse.de
|
||||
|
||||
- Update packaging for Jetson TX1
|
||||
- Cleanups
|
||||
* Drop executable bit from SPL
|
||||
* Consistently use %uboot_dir
|
||||
* u-boot[-tegra]-dtb.bin is obsolete
|
||||
* Drop obsolete UDOO-specific i.MX6 SPL packaging
|
||||
- Package sunxi64 SPL for Pine64
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 2 13:33:40 UTC 2017 - guillaume@opensuse.org
|
||||
|
||||
|
@ -23,9 +23,7 @@
|
||||
%define rockchip_spl 0
|
||||
%define sunxi_spl 1
|
||||
%define arndale_spl 0
|
||||
%define cuboxi_spl 0
|
||||
%define origen_spl 0
|
||||
%define udoo_spl 0
|
||||
%define imx6_spl 0
|
||||
%define socfpga_spl 0
|
||||
|
||||
@ -53,6 +51,9 @@ Patch0002: 0002-Revert-Revert-omap3-Use-raw-SPL-by-.patch
|
||||
Patch0003: 0003-Revert-rockchip-mkimage-remove-plac.patch
|
||||
Patch0004: 0004-Fix-boot-on-Beagleboard-xM-by-disab.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
%if 0
|
||||
BuildRequires: arm-trusted-firmware-pine64
|
||||
%endif
|
||||
BuildRequires: bc
|
||||
# Arndale board needs DTC >= 1.4
|
||||
BuildRequires: dtc >= 1.4.0
|
||||
@ -100,11 +101,21 @@ This package contains documentation for U-Boot firmware.
|
||||
|
||||
%build
|
||||
export SOURCE_DATE_EPOCH=$(date -d "$(head -n 2 %{_sourcedir}/%{name}.changes | tail -n 1 | cut -d- -f1 )" +%s)
|
||||
%if "%{name}" == "u-boot-pine64plus"
|
||||
export BL31=/boot/bl31.bin
|
||||
%endif
|
||||
|
||||
make %{?_smp_mflags} CROSS_COMPILE= HOSTCFLAGS="$RPM_OPT_FLAGS" Cubieboard_defconfig
|
||||
echo "Attempting to enable fdt apply command (.dtbo) support."
|
||||
echo "CONFIG_OF_LIBFDT_OVERLAY=y" >> .config
|
||||
make %{?_smp_mflags} CROSS_COMPILE= HOSTCFLAGS="$RPM_OPT_FLAGS" USE_PRIVATE_LIBGG=yes
|
||||
|
||||
%ifarch aarch64
|
||||
%if %sunxi_spl == 1
|
||||
cat spl/sunxi-spl.bin u-boot.itb > u-boot-sunxi-with-spl.bin
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%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)
|
||||
@ -131,34 +142,33 @@ export NO_DEBUGINFO_STRIP_DEBUG=true
|
||||
%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
|
||||
install -D -m 0644 $f %{buildroot}%{uboot_dir}/$f
|
||||
done
|
||||
%else
|
||||
%if "%{name}" == "u-boot-p2371-2180"
|
||||
# Jetson TX1 Driver Pack flash.sh needs several intermediate files, under their original name.
|
||||
for f in u-boot u-boot.bin u-boot.dtb u-boot-dtb.bin; do
|
||||
install -D -m 0644 $f %{buildroot}%{uboot_dir}/$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.img %{buildroot}%{uboot_dir}/u-boot.img
|
||||
elif [ -f u-boot-dtb.img ]; then
|
||||
install -D -m 0644 u-boot-dtb.img %{buildroot}%{uboot_dir}/u-boot.img
|
||||
else
|
||||
install -D -m 0644 u-boot.img %{buildroot}%{uboot_dir}/u-boot.img
|
||||
fi
|
||||
%if "%{name}" == "u-boot-qemu-ppce500"
|
||||
mv %{buildroot}%{uboot_dir}/u-boot.img %{buildroot}%{uboot_dir}/u-boot.e500
|
||||
%endif
|
||||
%endif
|
||||
%endif
|
||||
%if %x_loader == 1
|
||||
install -D -m 0755 MLO %{buildroot}/boot/MLO
|
||||
install -D -m 0644 MLO %{buildroot}%{uboot_dir}/MLO
|
||||
%endif
|
||||
%if %origen_spl == 1
|
||||
install -D -m 0755 spl/origen-spl.bin %{buildroot}/boot/origen-spl.bin
|
||||
install -D -m 0644 spl/origen-spl.bin %{buildroot}%{uboot_dir}/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
|
||||
install -D -m 0644 spl/arndale-spl.bin %{buildroot}%{uboot_dir}/arndale-spl.bin
|
||||
install -D -m 0644 %{SOURCE2} %{buildroot}%{uboot_dir}/arndale-bl1.img
|
||||
%endif
|
||||
%if %mvebu_spl == 1
|
||||
install -D -m 0755 u-boot-spl.kwb %{buildroot}%{uboot_dir}/u-boot-spl.kwb
|
||||
install -D -m 0644 u-boot-spl.kwb %{buildroot}%{uboot_dir}/u-boot-spl.kwb
|
||||
%endif
|
||||
%if %rockchip_spl == 1
|
||||
install -D -m 0644 spl/u-boot-spl.bin %{buildroot}%{uboot_dir}/u-boot-spl.bin
|
||||
@ -167,20 +177,14 @@ for t in ; do
|
||||
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
|
||||
install -D -m 0644 spl/sunxi-spl.bin %{buildroot}%{uboot_dir}/sunxi-spl.bin
|
||||
install -D -m 0644 u-boot-sunxi-with-spl.bin %{buildroot}%{uboot_dir}/u-boot-sunxi-with-spl.bin
|
||||
%endif
|
||||
%if %imx6_spl == 1
|
||||
install -D -m 0755 SPL %{buildroot}/boot/imx6-spl.bin
|
||||
install -D -m 0644 SPL %{buildroot}%{uboot_dir}/imx6-spl.bin
|
||||
%endif
|
||||
%if %socfpga_spl == 1
|
||||
install -D -m 0755 u-boot-with-spl.sfp %{buildroot}/boot/u-boot-with-spl.sfp
|
||||
install -D -m 0644 u-boot-with-spl.sfp %{buildroot}%{uboot_dir}/u-boot-with-spl.sfp
|
||||
%endif
|
||||
|
||||
%if 0%{?is_rpi}
|
||||
|
@ -1,3 +1,29 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 16 18:53:36 UTC 2017 - xxxxxmichl@googlemail.com
|
||||
|
||||
- Added Banana Pi M2+ support
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Oct 8 13:17:01 UTC 2017 - afaerber@suse.de
|
||||
|
||||
- Add firefly-rk3399 and geekbox
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Oct 7 00:52:52 UTC 2017 - afaerber@suse.de
|
||||
|
||||
- Drop obsolete CuBox-i i.MX6 SPL packaging, too
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Oct 6 23:26:14 UTC 2017 - afaerber@suse.de
|
||||
|
||||
- Update packaging for Jetson TX1
|
||||
- Cleanups
|
||||
* Drop executable bit from SPL
|
||||
* Consistently use %uboot_dir
|
||||
* u-boot[-tegra]-dtb.bin is obsolete
|
||||
* Drop obsolete UDOO-specific i.MX6 SPL packaging
|
||||
- Package sunxi64 SPL for Pine64
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 2 13:33:40 UTC 2017 - guillaume@opensuse.org
|
||||
|
||||
|
@ -23,9 +23,7 @@
|
||||
%define rockchip_spl 0
|
||||
%define sunxi_spl 1
|
||||
%define arndale_spl 0
|
||||
%define cuboxi_spl 0
|
||||
%define origen_spl 0
|
||||
%define udoo_spl 0
|
||||
%define imx6_spl 0
|
||||
%define socfpga_spl 0
|
||||
|
||||
@ -53,6 +51,9 @@ Patch0002: 0002-Revert-Revert-omap3-Use-raw-SPL-by-.patch
|
||||
Patch0003: 0003-Revert-rockchip-mkimage-remove-plac.patch
|
||||
Patch0004: 0004-Fix-boot-on-Beagleboard-xM-by-disab.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
%if 0
|
||||
BuildRequires: arm-trusted-firmware-pine64
|
||||
%endif
|
||||
BuildRequires: bc
|
||||
# Arndale board needs DTC >= 1.4
|
||||
BuildRequires: dtc >= 1.4.0
|
||||
@ -100,11 +101,21 @@ This package contains documentation for U-Boot firmware.
|
||||
|
||||
%build
|
||||
export SOURCE_DATE_EPOCH=$(date -d "$(head -n 2 %{_sourcedir}/%{name}.changes | tail -n 1 | cut -d- -f1 )" +%s)
|
||||
%if "%{name}" == "u-boot-pine64plus"
|
||||
export BL31=/boot/bl31.bin
|
||||
%endif
|
||||
|
||||
make %{?_smp_mflags} CROSS_COMPILE= HOSTCFLAGS="$RPM_OPT_FLAGS" Cubieboard2_defconfig
|
||||
echo "Attempting to enable fdt apply command (.dtbo) support."
|
||||
echo "CONFIG_OF_LIBFDT_OVERLAY=y" >> .config
|
||||
make %{?_smp_mflags} CROSS_COMPILE= HOSTCFLAGS="$RPM_OPT_FLAGS" USE_PRIVATE_LIBGG=yes
|
||||
|
||||
%ifarch aarch64
|
||||
%if %sunxi_spl == 1
|
||||
cat spl/sunxi-spl.bin u-boot.itb > u-boot-sunxi-with-spl.bin
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%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)
|
||||
@ -131,34 +142,33 @@ export NO_DEBUGINFO_STRIP_DEBUG=true
|
||||
%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
|
||||
install -D -m 0644 $f %{buildroot}%{uboot_dir}/$f
|
||||
done
|
||||
%else
|
||||
%if "%{name}" == "u-boot-p2371-2180"
|
||||
# Jetson TX1 Driver Pack flash.sh needs several intermediate files, under their original name.
|
||||
for f in u-boot u-boot.bin u-boot.dtb u-boot-dtb.bin; do
|
||||
install -D -m 0644 $f %{buildroot}%{uboot_dir}/$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.img %{buildroot}%{uboot_dir}/u-boot.img
|
||||
elif [ -f u-boot-dtb.img ]; then
|
||||
install -D -m 0644 u-boot-dtb.img %{buildroot}%{uboot_dir}/u-boot.img
|
||||
else
|
||||
install -D -m 0644 u-boot.img %{buildroot}%{uboot_dir}/u-boot.img
|
||||
fi
|
||||
%if "%{name}" == "u-boot-qemu-ppce500"
|
||||
mv %{buildroot}%{uboot_dir}/u-boot.img %{buildroot}%{uboot_dir}/u-boot.e500
|
||||
%endif
|
||||
%endif
|
||||
%endif
|
||||
%if %x_loader == 1
|
||||
install -D -m 0755 MLO %{buildroot}/boot/MLO
|
||||
install -D -m 0644 MLO %{buildroot}%{uboot_dir}/MLO
|
||||
%endif
|
||||
%if %origen_spl == 1
|
||||
install -D -m 0755 spl/origen-spl.bin %{buildroot}/boot/origen-spl.bin
|
||||
install -D -m 0644 spl/origen-spl.bin %{buildroot}%{uboot_dir}/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
|
||||
install -D -m 0644 spl/arndale-spl.bin %{buildroot}%{uboot_dir}/arndale-spl.bin
|
||||
install -D -m 0644 %{SOURCE2} %{buildroot}%{uboot_dir}/arndale-bl1.img
|
||||
%endif
|
||||
%if %mvebu_spl == 1
|
||||
install -D -m 0755 u-boot-spl.kwb %{buildroot}%{uboot_dir}/u-boot-spl.kwb
|
||||
install -D -m 0644 u-boot-spl.kwb %{buildroot}%{uboot_dir}/u-boot-spl.kwb
|
||||
%endif
|
||||
%if %rockchip_spl == 1
|
||||
install -D -m 0644 spl/u-boot-spl.bin %{buildroot}%{uboot_dir}/u-boot-spl.bin
|
||||
@ -167,20 +177,14 @@ for t in ; do
|
||||
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
|
||||
install -D -m 0644 spl/sunxi-spl.bin %{buildroot}%{uboot_dir}/sunxi-spl.bin
|
||||
install -D -m 0644 u-boot-sunxi-with-spl.bin %{buildroot}%{uboot_dir}/u-boot-sunxi-with-spl.bin
|
||||
%endif
|
||||
%if %imx6_spl == 1
|
||||
install -D -m 0755 SPL %{buildroot}/boot/imx6-spl.bin
|
||||
install -D -m 0644 SPL %{buildroot}%{uboot_dir}/imx6-spl.bin
|
||||
%endif
|
||||
%if %socfpga_spl == 1
|
||||
install -D -m 0755 u-boot-with-spl.sfp %{buildroot}/boot/u-boot-with-spl.sfp
|
||||
install -D -m 0644 u-boot-with-spl.sfp %{buildroot}%{uboot_dir}/u-boot-with-spl.sfp
|
||||
%endif
|
||||
|
||||
%if 0%{?is_rpi}
|
||||
|
@ -1,3 +1,29 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 16 18:53:36 UTC 2017 - xxxxxmichl@googlemail.com
|
||||
|
||||
- Added Banana Pi M2+ support
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Oct 8 13:17:01 UTC 2017 - afaerber@suse.de
|
||||
|
||||
- Add firefly-rk3399 and geekbox
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Oct 7 00:52:52 UTC 2017 - afaerber@suse.de
|
||||
|
||||
- Drop obsolete CuBox-i i.MX6 SPL packaging, too
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Oct 6 23:26:14 UTC 2017 - afaerber@suse.de
|
||||
|
||||
- Update packaging for Jetson TX1
|
||||
- Cleanups
|
||||
* Drop executable bit from SPL
|
||||
* Consistently use %uboot_dir
|
||||
* u-boot[-tegra]-dtb.bin is obsolete
|
||||
* Drop obsolete UDOO-specific i.MX6 SPL packaging
|
||||
- Package sunxi64 SPL for Pine64
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 2 13:33:40 UTC 2017 - guillaume@opensuse.org
|
||||
|
||||
|
@ -23,9 +23,7 @@
|
||||
%define rockchip_spl 0
|
||||
%define sunxi_spl 1
|
||||
%define arndale_spl 0
|
||||
%define cuboxi_spl 0
|
||||
%define origen_spl 0
|
||||
%define udoo_spl 0
|
||||
%define imx6_spl 0
|
||||
%define socfpga_spl 0
|
||||
|
||||
@ -53,6 +51,9 @@ Patch0002: 0002-Revert-Revert-omap3-Use-raw-SPL-by-.patch
|
||||
Patch0003: 0003-Revert-rockchip-mkimage-remove-plac.patch
|
||||
Patch0004: 0004-Fix-boot-on-Beagleboard-xM-by-disab.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
%if 0
|
||||
BuildRequires: arm-trusted-firmware-pine64
|
||||
%endif
|
||||
BuildRequires: bc
|
||||
# Arndale board needs DTC >= 1.4
|
||||
BuildRequires: dtc >= 1.4.0
|
||||
@ -100,11 +101,21 @@ This package contains documentation for U-Boot firmware.
|
||||
|
||||
%build
|
||||
export SOURCE_DATE_EPOCH=$(date -d "$(head -n 2 %{_sourcedir}/%{name}.changes | tail -n 1 | cut -d- -f1 )" +%s)
|
||||
%if "%{name}" == "u-boot-pine64plus"
|
||||
export BL31=/boot/bl31.bin
|
||||
%endif
|
||||
|
||||
make %{?_smp_mflags} CROSS_COMPILE= HOSTCFLAGS="$RPM_OPT_FLAGS" Cubietruck_defconfig
|
||||
echo "Attempting to enable fdt apply command (.dtbo) support."
|
||||
echo "CONFIG_OF_LIBFDT_OVERLAY=y" >> .config
|
||||
make %{?_smp_mflags} CROSS_COMPILE= HOSTCFLAGS="$RPM_OPT_FLAGS" USE_PRIVATE_LIBGG=yes
|
||||
|
||||
%ifarch aarch64
|
||||
%if %sunxi_spl == 1
|
||||
cat spl/sunxi-spl.bin u-boot.itb > u-boot-sunxi-with-spl.bin
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%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)
|
||||
@ -131,34 +142,33 @@ export NO_DEBUGINFO_STRIP_DEBUG=true
|
||||
%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
|
||||
install -D -m 0644 $f %{buildroot}%{uboot_dir}/$f
|
||||
done
|
||||
%else
|
||||
%if "%{name}" == "u-boot-p2371-2180"
|
||||
# Jetson TX1 Driver Pack flash.sh needs several intermediate files, under their original name.
|
||||
for f in u-boot u-boot.bin u-boot.dtb u-boot-dtb.bin; do
|
||||
install -D -m 0644 $f %{buildroot}%{uboot_dir}/$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.img %{buildroot}%{uboot_dir}/u-boot.img
|
||||
elif [ -f u-boot-dtb.img ]; then
|
||||
install -D -m 0644 u-boot-dtb.img %{buildroot}%{uboot_dir}/u-boot.img
|
||||
else
|
||||
install -D -m 0644 u-boot.img %{buildroot}%{uboot_dir}/u-boot.img
|
||||
fi
|
||||
%if "%{name}" == "u-boot-qemu-ppce500"
|
||||
mv %{buildroot}%{uboot_dir}/u-boot.img %{buildroot}%{uboot_dir}/u-boot.e500
|
||||
%endif
|
||||
%endif
|
||||
%endif
|
||||
%if %x_loader == 1
|
||||
install -D -m 0755 MLO %{buildroot}/boot/MLO
|
||||
install -D -m 0644 MLO %{buildroot}%{uboot_dir}/MLO
|
||||
%endif
|
||||
%if %origen_spl == 1
|
||||
install -D -m 0755 spl/origen-spl.bin %{buildroot}/boot/origen-spl.bin
|
||||
install -D -m 0644 spl/origen-spl.bin %{buildroot}%{uboot_dir}/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
|
||||
install -D -m 0644 spl/arndale-spl.bin %{buildroot}%{uboot_dir}/arndale-spl.bin
|
||||
install -D -m 0644 %{SOURCE2} %{buildroot}%{uboot_dir}/arndale-bl1.img
|
||||
%endif
|
||||
%if %mvebu_spl == 1
|
||||
install -D -m 0755 u-boot-spl.kwb %{buildroot}%{uboot_dir}/u-boot-spl.kwb
|
||||
install -D -m 0644 u-boot-spl.kwb %{buildroot}%{uboot_dir}/u-boot-spl.kwb
|
||||
%endif
|
||||
%if %rockchip_spl == 1
|
||||
install -D -m 0644 spl/u-boot-spl.bin %{buildroot}%{uboot_dir}/u-boot-spl.bin
|
||||
@ -167,20 +177,14 @@ for t in ; do
|
||||
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
|
||||
install -D -m 0644 spl/sunxi-spl.bin %{buildroot}%{uboot_dir}/sunxi-spl.bin
|
||||
install -D -m 0644 u-boot-sunxi-with-spl.bin %{buildroot}%{uboot_dir}/u-boot-sunxi-with-spl.bin
|
||||
%endif
|
||||
%if %imx6_spl == 1
|
||||
install -D -m 0755 SPL %{buildroot}/boot/imx6-spl.bin
|
||||
install -D -m 0644 SPL %{buildroot}%{uboot_dir}/imx6-spl.bin
|
||||
%endif
|
||||
%if %socfpga_spl == 1
|
||||
install -D -m 0755 u-boot-with-spl.sfp %{buildroot}/boot/u-boot-with-spl.sfp
|
||||
install -D -m 0644 u-boot-with-spl.sfp %{buildroot}%{uboot_dir}/u-boot-with-spl.sfp
|
||||
%endif
|
||||
|
||||
%if 0%{?is_rpi}
|
||||
|
@ -1,3 +1,29 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 16 18:53:36 UTC 2017 - xxxxxmichl@googlemail.com
|
||||
|
||||
- Added Banana Pi M2+ support
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Oct 8 13:17:01 UTC 2017 - afaerber@suse.de
|
||||
|
||||
- Add firefly-rk3399 and geekbox
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Oct 7 00:52:52 UTC 2017 - afaerber@suse.de
|
||||
|
||||
- Drop obsolete CuBox-i i.MX6 SPL packaging, too
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Oct 6 23:26:14 UTC 2017 - afaerber@suse.de
|
||||
|
||||
- Update packaging for Jetson TX1
|
||||
- Cleanups
|
||||
* Drop executable bit from SPL
|
||||
* Consistently use %uboot_dir
|
||||
* u-boot[-tegra]-dtb.bin is obsolete
|
||||
* Drop obsolete UDOO-specific i.MX6 SPL packaging
|
||||
- Package sunxi64 SPL for Pine64
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 2 13:33:40 UTC 2017 - guillaume@opensuse.org
|
||||
|
||||
|
@ -23,9 +23,7 @@
|
||||
%define rockchip_spl 0
|
||||
%define sunxi_spl 0
|
||||
%define arndale_spl 0
|
||||
%define cuboxi_spl 0
|
||||
%define origen_spl 0
|
||||
%define udoo_spl 0
|
||||
%define imx6_spl 0
|
||||
%define socfpga_spl 0
|
||||
|
||||
@ -53,6 +51,9 @@ Patch0002: 0002-Revert-Revert-omap3-Use-raw-SPL-by-.patch
|
||||
Patch0003: 0003-Revert-rockchip-mkimage-remove-plac.patch
|
||||
Patch0004: 0004-Fix-boot-on-Beagleboard-xM-by-disab.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
%if 0
|
||||
BuildRequires: arm-trusted-firmware-pine64
|
||||
%endif
|
||||
BuildRequires: bc
|
||||
# Arndale board needs DTC >= 1.4
|
||||
BuildRequires: dtc >= 1.4.0
|
||||
@ -100,11 +101,21 @@ This package contains documentation for U-Boot firmware.
|
||||
|
||||
%build
|
||||
export SOURCE_DATE_EPOCH=$(date -d "$(head -n 2 %{_sourcedir}/%{name}.changes | tail -n 1 | cut -d- -f1 )" +%s)
|
||||
%if "%{name}" == "u-boot-pine64plus"
|
||||
export BL31=/boot/bl31.bin
|
||||
%endif
|
||||
|
||||
make %{?_smp_mflags} CROSS_COMPILE= HOSTCFLAGS="$RPM_OPT_FLAGS" dragonboard410c_defconfig
|
||||
echo "Attempting to enable fdt apply command (.dtbo) support."
|
||||
echo "CONFIG_OF_LIBFDT_OVERLAY=y" >> .config
|
||||
make %{?_smp_mflags} CROSS_COMPILE= HOSTCFLAGS="$RPM_OPT_FLAGS" USE_PRIVATE_LIBGG=yes
|
||||
|
||||
%ifarch aarch64
|
||||
%if %sunxi_spl == 1
|
||||
cat spl/sunxi-spl.bin u-boot.itb > u-boot-sunxi-with-spl.bin
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%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)
|
||||
@ -131,34 +142,33 @@ export NO_DEBUGINFO_STRIP_DEBUG=true
|
||||
%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
|
||||
install -D -m 0644 $f %{buildroot}%{uboot_dir}/$f
|
||||
done
|
||||
%else
|
||||
%if "%{name}" == "u-boot-p2371-2180"
|
||||
# Jetson TX1 Driver Pack flash.sh needs several intermediate files, under their original name.
|
||||
for f in u-boot u-boot.bin u-boot.dtb u-boot-dtb.bin; do
|
||||
install -D -m 0644 $f %{buildroot}%{uboot_dir}/$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
|
||||
%endif
|
||||
%if %x_loader == 1
|
||||
install -D -m 0755 MLO %{buildroot}/boot/MLO
|
||||
install -D -m 0644 MLO %{buildroot}%{uboot_dir}/MLO
|
||||
%endif
|
||||
%if %origen_spl == 1
|
||||
install -D -m 0755 spl/origen-spl.bin %{buildroot}/boot/origen-spl.bin
|
||||
install -D -m 0644 spl/origen-spl.bin %{buildroot}%{uboot_dir}/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
|
||||
install -D -m 0644 spl/arndale-spl.bin %{buildroot}%{uboot_dir}/arndale-spl.bin
|
||||
install -D -m 0644 %{SOURCE2} %{buildroot}%{uboot_dir}/arndale-bl1.img
|
||||
%endif
|
||||
%if %mvebu_spl == 1
|
||||
install -D -m 0755 u-boot-spl.kwb %{buildroot}%{uboot_dir}/u-boot-spl.kwb
|
||||
install -D -m 0644 u-boot-spl.kwb %{buildroot}%{uboot_dir}/u-boot-spl.kwb
|
||||
%endif
|
||||
%if %rockchip_spl == 1
|
||||
install -D -m 0644 spl/u-boot-spl.bin %{buildroot}%{uboot_dir}/u-boot-spl.bin
|
||||
@ -167,20 +177,14 @@ for t in ; do
|
||||
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
|
||||
install -D -m 0644 spl/sunxi-spl.bin %{buildroot}%{uboot_dir}/sunxi-spl.bin
|
||||
install -D -m 0644 u-boot-sunxi-with-spl.bin %{buildroot}%{uboot_dir}/u-boot-sunxi-with-spl.bin
|
||||
%endif
|
||||
%if %imx6_spl == 1
|
||||
install -D -m 0755 SPL %{buildroot}/boot/imx6-spl.bin
|
||||
install -D -m 0644 SPL %{buildroot}%{uboot_dir}/imx6-spl.bin
|
||||
%endif
|
||||
%if %socfpga_spl == 1
|
||||
install -D -m 0755 u-boot-with-spl.sfp %{buildroot}/boot/u-boot-with-spl.sfp
|
||||
install -D -m 0644 u-boot-with-spl.sfp %{buildroot}%{uboot_dir}/u-boot-with-spl.sfp
|
||||
%endif
|
||||
|
||||
%if 0%{?is_rpi}
|
||||
|
@ -1,3 +1,29 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 16 18:53:36 UTC 2017 - xxxxxmichl@googlemail.com
|
||||
|
||||
- Added Banana Pi M2+ support
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Oct 8 13:17:01 UTC 2017 - afaerber@suse.de
|
||||
|
||||
- Add firefly-rk3399 and geekbox
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Oct 7 00:52:52 UTC 2017 - afaerber@suse.de
|
||||
|
||||
- Drop obsolete CuBox-i i.MX6 SPL packaging, too
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Oct 6 23:26:14 UTC 2017 - afaerber@suse.de
|
||||
|
||||
- Update packaging for Jetson TX1
|
||||
- Cleanups
|
||||
* Drop executable bit from SPL
|
||||
* Consistently use %uboot_dir
|
||||
* u-boot[-tegra]-dtb.bin is obsolete
|
||||
* Drop obsolete UDOO-specific i.MX6 SPL packaging
|
||||
- Package sunxi64 SPL for Pine64
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 2 13:33:40 UTC 2017 - guillaume@opensuse.org
|
||||
|
||||
|
@ -23,9 +23,7 @@
|
||||
%define rockchip_spl 0
|
||||
%define sunxi_spl 0
|
||||
%define arndale_spl 0
|
||||
%define cuboxi_spl 0
|
||||
%define origen_spl 0
|
||||
%define udoo_spl 0
|
||||
%define imx6_spl 0
|
||||
%define socfpga_spl 0
|
||||
|
||||
@ -53,6 +51,9 @@ Patch0002: 0002-Revert-Revert-omap3-Use-raw-SPL-by-.patch
|
||||
Patch0003: 0003-Revert-rockchip-mkimage-remove-plac.patch
|
||||
Patch0004: 0004-Fix-boot-on-Beagleboard-xM-by-disab.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
%if 0
|
||||
BuildRequires: arm-trusted-firmware-pine64
|
||||
%endif
|
||||
BuildRequires: bc
|
||||
# Arndale board needs DTC >= 1.4
|
||||
BuildRequires: dtc >= 1.4.0
|
||||
@ -100,11 +101,21 @@ This package contains documentation for U-Boot firmware.
|
||||
|
||||
%build
|
||||
export SOURCE_DATE_EPOCH=$(date -d "$(head -n 2 %{_sourcedir}/%{name}.changes | tail -n 1 | cut -d- -f1 )" +%s)
|
||||
%if "%{name}" == "u-boot-pine64plus"
|
||||
export BL31=/boot/bl31.bin
|
||||
%endif
|
||||
|
||||
make %{?_smp_mflags} CROSS_COMPILE= HOSTCFLAGS="$RPM_OPT_FLAGS" evb-rk3399_defconfig
|
||||
echo "Attempting to enable fdt apply command (.dtbo) support."
|
||||
echo "CONFIG_OF_LIBFDT_OVERLAY=y" >> .config
|
||||
make %{?_smp_mflags} CROSS_COMPILE= HOSTCFLAGS="$RPM_OPT_FLAGS" USE_PRIVATE_LIBGG=yes
|
||||
|
||||
%ifarch aarch64
|
||||
%if %sunxi_spl == 1
|
||||
cat spl/sunxi-spl.bin u-boot.itb > u-boot-sunxi-with-spl.bin
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%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)
|
||||
@ -131,34 +142,33 @@ export NO_DEBUGINFO_STRIP_DEBUG=true
|
||||
%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
|
||||
install -D -m 0644 $f %{buildroot}%{uboot_dir}/$f
|
||||
done
|
||||
%else
|
||||
%if "%{name}" == "u-boot-p2371-2180"
|
||||
# Jetson TX1 Driver Pack flash.sh needs several intermediate files, under their original name.
|
||||
for f in u-boot u-boot.bin u-boot.dtb u-boot-dtb.bin; do
|
||||
install -D -m 0644 $f %{buildroot}%{uboot_dir}/$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
|
||||
%endif
|
||||
%if %x_loader == 1
|
||||
install -D -m 0755 MLO %{buildroot}/boot/MLO
|
||||
install -D -m 0644 MLO %{buildroot}%{uboot_dir}/MLO
|
||||
%endif
|
||||
%if %origen_spl == 1
|
||||
install -D -m 0755 spl/origen-spl.bin %{buildroot}/boot/origen-spl.bin
|
||||
install -D -m 0644 spl/origen-spl.bin %{buildroot}%{uboot_dir}/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
|
||||
install -D -m 0644 spl/arndale-spl.bin %{buildroot}%{uboot_dir}/arndale-spl.bin
|
||||
install -D -m 0644 %{SOURCE2} %{buildroot}%{uboot_dir}/arndale-bl1.img
|
||||
%endif
|
||||
%if %mvebu_spl == 1
|
||||
install -D -m 0755 u-boot-spl.kwb %{buildroot}%{uboot_dir}/u-boot-spl.kwb
|
||||
install -D -m 0644 u-boot-spl.kwb %{buildroot}%{uboot_dir}/u-boot-spl.kwb
|
||||
%endif
|
||||
%if %rockchip_spl == 1
|
||||
install -D -m 0644 spl/u-boot-spl.bin %{buildroot}%{uboot_dir}/u-boot-spl.bin
|
||||
@ -167,20 +177,14 @@ for t in ; do
|
||||
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
|
||||
install -D -m 0644 spl/sunxi-spl.bin %{buildroot}%{uboot_dir}/sunxi-spl.bin
|
||||
install -D -m 0644 u-boot-sunxi-with-spl.bin %{buildroot}%{uboot_dir}/u-boot-sunxi-with-spl.bin
|
||||
%endif
|
||||
%if %imx6_spl == 1
|
||||
install -D -m 0755 SPL %{buildroot}/boot/imx6-spl.bin
|
||||
install -D -m 0644 SPL %{buildroot}%{uboot_dir}/imx6-spl.bin
|
||||
%endif
|
||||
%if %socfpga_spl == 1
|
||||
install -D -m 0755 u-boot-with-spl.sfp %{buildroot}/boot/u-boot-with-spl.sfp
|
||||
install -D -m 0644 u-boot-with-spl.sfp %{buildroot}%{uboot_dir}/u-boot-with-spl.sfp
|
||||
%endif
|
||||
|
||||
%if 0%{?is_rpi}
|
||||
|
@ -1,3 +1,29 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 16 18:53:36 UTC 2017 - xxxxxmichl@googlemail.com
|
||||
|
||||
- Added Banana Pi M2+ support
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Oct 8 13:17:01 UTC 2017 - afaerber@suse.de
|
||||
|
||||
- Add firefly-rk3399 and geekbox
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Oct 7 00:52:52 UTC 2017 - afaerber@suse.de
|
||||
|
||||
- Drop obsolete CuBox-i i.MX6 SPL packaging, too
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Oct 6 23:26:14 UTC 2017 - afaerber@suse.de
|
||||
|
||||
- Update packaging for Jetson TX1
|
||||
- Cleanups
|
||||
* Drop executable bit from SPL
|
||||
* Consistently use %uboot_dir
|
||||
* u-boot[-tegra]-dtb.bin is obsolete
|
||||
* Drop obsolete UDOO-specific i.MX6 SPL packaging
|
||||
- Package sunxi64 SPL for Pine64
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 2 13:33:40 UTC 2017 - guillaume@opensuse.org
|
||||
|
||||
|
@ -23,9 +23,7 @@
|
||||
%define rockchip_spl 1
|
||||
%define sunxi_spl 0
|
||||
%define arndale_spl 0
|
||||
%define cuboxi_spl 0
|
||||
%define origen_spl 0
|
||||
%define udoo_spl 0
|
||||
%define imx6_spl 0
|
||||
%define socfpga_spl 0
|
||||
|
||||
@ -53,6 +51,9 @@ Patch0002: 0002-Revert-Revert-omap3-Use-raw-SPL-by-.patch
|
||||
Patch0003: 0003-Revert-rockchip-mkimage-remove-plac.patch
|
||||
Patch0004: 0004-Fix-boot-on-Beagleboard-xM-by-disab.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
%if 0
|
||||
BuildRequires: arm-trusted-firmware-pine64
|
||||
%endif
|
||||
BuildRequires: bc
|
||||
# Arndale board needs DTC >= 1.4
|
||||
BuildRequires: dtc >= 1.4.0
|
||||
@ -100,11 +101,21 @@ This package contains documentation for U-Boot firmware.
|
||||
|
||||
%build
|
||||
export SOURCE_DATE_EPOCH=$(date -d "$(head -n 2 %{_sourcedir}/%{name}.changes | tail -n 1 | cut -d- -f1 )" +%s)
|
||||
%if "%{name}" == "u-boot-pine64plus"
|
||||
export BL31=/boot/bl31.bin
|
||||
%endif
|
||||
|
||||
make %{?_smp_mflags} CROSS_COMPILE= HOSTCFLAGS="$RPM_OPT_FLAGS" firefly-rk3288_defconfig
|
||||
echo "Attempting to enable fdt apply command (.dtbo) support."
|
||||
echo "CONFIG_OF_LIBFDT_OVERLAY=y" >> .config
|
||||
make %{?_smp_mflags} CROSS_COMPILE= HOSTCFLAGS="$RPM_OPT_FLAGS" USE_PRIVATE_LIBGG=yes
|
||||
|
||||
%ifarch aarch64
|
||||
%if %sunxi_spl == 1
|
||||
cat spl/sunxi-spl.bin u-boot.itb > u-boot-sunxi-with-spl.bin
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%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)
|
||||
@ -131,34 +142,33 @@ export NO_DEBUGINFO_STRIP_DEBUG=true
|
||||
%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
|
||||
install -D -m 0644 $f %{buildroot}%{uboot_dir}/$f
|
||||
done
|
||||
%else
|
||||
%if "%{name}" == "u-boot-p2371-2180"
|
||||
# Jetson TX1 Driver Pack flash.sh needs several intermediate files, under their original name.
|
||||
for f in u-boot u-boot.bin u-boot.dtb u-boot-dtb.bin; do
|
||||
install -D -m 0644 $f %{buildroot}%{uboot_dir}/$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
|
||||
%endif
|
||||
%if %x_loader == 1
|
||||
install -D -m 0755 MLO %{buildroot}/boot/MLO
|
||||
install -D -m 0644 MLO %{buildroot}%{uboot_dir}/MLO
|
||||
%endif
|
||||
%if %origen_spl == 1
|
||||
install -D -m 0755 spl/origen-spl.bin %{buildroot}/boot/origen-spl.bin
|
||||
install -D -m 0644 spl/origen-spl.bin %{buildroot}%{uboot_dir}/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
|
||||
install -D -m 0644 spl/arndale-spl.bin %{buildroot}%{uboot_dir}/arndale-spl.bin
|
||||
install -D -m 0644 %{SOURCE2} %{buildroot}%{uboot_dir}/arndale-bl1.img
|
||||
%endif
|
||||
%if %mvebu_spl == 1
|
||||
install -D -m 0755 u-boot-spl.kwb %{buildroot}%{uboot_dir}/u-boot-spl.kwb
|
||||
install -D -m 0644 u-boot-spl.kwb %{buildroot}%{uboot_dir}/u-boot-spl.kwb
|
||||
%endif
|
||||
%if %rockchip_spl == 1
|
||||
install -D -m 0644 spl/u-boot-spl.bin %{buildroot}%{uboot_dir}/u-boot-spl.bin
|
||||
@ -167,20 +177,14 @@ for t in rksd rkimage; do
|
||||
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
|
||||
install -D -m 0644 spl/sunxi-spl.bin %{buildroot}%{uboot_dir}/sunxi-spl.bin
|
||||
install -D -m 0644 u-boot-sunxi-with-spl.bin %{buildroot}%{uboot_dir}/u-boot-sunxi-with-spl.bin
|
||||
%endif
|
||||
%if %imx6_spl == 1
|
||||
install -D -m 0755 SPL %{buildroot}/boot/imx6-spl.bin
|
||||
install -D -m 0644 SPL %{buildroot}%{uboot_dir}/imx6-spl.bin
|
||||
%endif
|
||||
%if %socfpga_spl == 1
|
||||
install -D -m 0755 u-boot-with-spl.sfp %{buildroot}/boot/u-boot-with-spl.sfp
|
||||
install -D -m 0644 u-boot-with-spl.sfp %{buildroot}%{uboot_dir}/u-boot-with-spl.sfp
|
||||
%endif
|
||||
|
||||
%if 0%{?is_rpi}
|
||||
|
1675
u-boot-firefly-rk3399.changes
Normal file
1675
u-boot-firefly-rk3399.changes
Normal file
File diff suppressed because it is too large
Load Diff
221
u-boot-firefly-rk3399.spec
Normal file
221
u-boot-firefly-rk3399.spec
Normal file
@ -0,0 +1,221 @@
|
||||
#
|
||||
# spec file for package u-boot-firefly-rk3399
|
||||
#
|
||||
# Copyright (c) 2017 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 origen_spl 0
|
||||
%define imx6_spl 0
|
||||
%define socfpga_spl 0
|
||||
|
||||
%if "firefly-rk3399" == "rpi" || "firefly-rk3399" == "rpi2" || "firefly-rk3399" == "rpi332b" || "firefly-rk3399" == "rpi3"
|
||||
%define is_rpi 1
|
||||
%endif
|
||||
|
||||
# archive_version differs from version for RC version only
|
||||
%define archive_version 2017.09
|
||||
|
||||
Name: u-boot-firefly-rk3399
|
||||
Version: 2017.09
|
||||
Release: 0
|
||||
Summary: The U-Boot firmware for the firefly-rk3399 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
|
||||
Source1: ftp://ftp.denx.de/pub/u-boot/u-boot-%{archive_version}.tar.bz2.sig
|
||||
Source2: arndale-bl1.img
|
||||
Source3: update_git.sh
|
||||
Source300: u-boot-rpmlintrc
|
||||
Patch0001: 0001-XXX-openSUSE-XXX-Load-dtb-from-part.patch
|
||||
Patch0002: 0002-Revert-Revert-omap3-Use-raw-SPL-by-.patch
|
||||
Patch0003: 0003-Revert-rockchip-mkimage-remove-plac.patch
|
||||
Patch0004: 0004-Fix-boot-on-Beagleboard-xM-by-disab.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
%if 0
|
||||
BuildRequires: arm-trusted-firmware-pine64
|
||||
%endif
|
||||
BuildRequires: bc
|
||||
# Arndale board needs DTC >= 1.4
|
||||
BuildRequires: dtc >= 1.4.0
|
||||
# u-boot-clearfog (tools/kwbimage.c) needs openssl to build
|
||||
BuildRequires: libopenssl-devel
|
||||
BuildRequires: python-devel
|
||||
BuildRequires: swig
|
||||
%if "%{name}" == "u-boot-qemu-ppce500"
|
||||
# Owns /usr/share/qemu directory
|
||||
BuildRequires: qemu
|
||||
Provides: qemu-ppc:%{_datadir}/qemu/u-boot.e500
|
||||
%endif
|
||||
%if 0%{?is_rpi}
|
||||
# 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-firefly-rk3399
|
||||
Provides: x-loader-firefly-rk3399
|
||||
%endif
|
||||
ExclusiveArch: aarch64
|
||||
|
||||
%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 firefly-rk3399 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
|
||||
|
||||
%build
|
||||
export SOURCE_DATE_EPOCH=$(date -d "$(head -n 2 %{_sourcedir}/%{name}.changes | tail -n 1 | cut -d- -f1 )" +%s)
|
||||
%if "%{name}" == "u-boot-pine64plus"
|
||||
export BL31=/boot/bl31.bin
|
||||
%endif
|
||||
|
||||
make %{?_smp_mflags} CROSS_COMPILE= HOSTCFLAGS="$RPM_OPT_FLAGS" firefly-rk3399_defconfig
|
||||
echo "Attempting to enable fdt apply command (.dtbo) support."
|
||||
echo "CONFIG_OF_LIBFDT_OVERLAY=y" >> .config
|
||||
make %{?_smp_mflags} CROSS_COMPILE= HOSTCFLAGS="$RPM_OPT_FLAGS" USE_PRIVATE_LIBGG=yes
|
||||
|
||||
%ifarch aarch64
|
||||
%if %sunxi_spl == 1
|
||||
cat spl/sunxi-spl.bin u-boot.itb > u-boot-sunxi-with-spl.bin
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%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.bin -T $t u-boot-spl.$t
|
||||
done
|
||||
%endif
|
||||
|
||||
%install
|
||||
export SOURCE_DATE_EPOCH=$(date -d "$(head -n 2 %{_sourcedir}/%{name}.changes | tail -n 1 | cut -d- -f1 )" +%s)
|
||||
export NO_BRP_STRIP_DEBUG=true
|
||||
export NO_DEBUGINFO_STRIP_DEBUG=true
|
||||
%define uboot_dir /boot
|
||||
%if 0%{?is_rpi}
|
||||
%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}%{uboot_dir}/$f
|
||||
done
|
||||
%else
|
||||
%if "%{name}" == "u-boot-p2371-2180"
|
||||
# Jetson TX1 Driver Pack flash.sh needs several intermediate files, under their original name.
|
||||
for f in u-boot u-boot.bin u-boot.dtb u-boot-dtb.bin; do
|
||||
install -D -m 0644 $f %{buildroot}%{uboot_dir}/$f
|
||||
done
|
||||
%else
|
||||
install -D -m 0644 u-boot.bin %{buildroot}%{uboot_dir}/u-boot.bin
|
||||
%if "%{name}" == "u-boot-qemu-ppce500"
|
||||
mv %{buildroot}%{uboot_dir}/u-boot.bin %{buildroot}%{uboot_dir}/u-boot.e500
|
||||
%endif
|
||||
%endif
|
||||
%endif
|
||||
%if %x_loader == 1
|
||||
install -D -m 0644 MLO %{buildroot}%{uboot_dir}/MLO
|
||||
%endif
|
||||
%if %origen_spl == 1
|
||||
install -D -m 0644 spl/origen-spl.bin %{buildroot}%{uboot_dir}/origen-spl.bin
|
||||
%endif
|
||||
%if %arndale_spl == 1
|
||||
install -D -m 0644 spl/arndale-spl.bin %{buildroot}%{uboot_dir}/arndale-spl.bin
|
||||
install -D -m 0644 %{SOURCE2} %{buildroot}%{uboot_dir}/arndale-bl1.img
|
||||
%endif
|
||||
%if %mvebu_spl == 1
|
||||
install -D -m 0644 u-boot-spl.kwb %{buildroot}%{uboot_dir}/u-boot-spl.kwb
|
||||
%endif
|
||||
%if %rockchip_spl == 1
|
||||
install -D -m 0644 spl/u-boot-spl.bin %{buildroot}%{uboot_dir}/u-boot-spl.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 0644 spl/sunxi-spl.bin %{buildroot}%{uboot_dir}/sunxi-spl.bin
|
||||
install -D -m 0644 u-boot-sunxi-with-spl.bin %{buildroot}%{uboot_dir}/u-boot-sunxi-with-spl.bin
|
||||
%endif
|
||||
%if %imx6_spl == 1
|
||||
install -D -m 0644 SPL %{buildroot}%{uboot_dir}/imx6-spl.bin
|
||||
%endif
|
||||
%if %socfpga_spl == 1
|
||||
install -D -m 0644 u-boot-with-spl.sfp %{buildroot}%{uboot_dir}/u-boot-with-spl.sfp
|
||||
%endif
|
||||
|
||||
%if 0%{?is_rpi}
|
||||
%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
|
1675
u-boot-geekbox.changes
Normal file
1675
u-boot-geekbox.changes
Normal file
File diff suppressed because it is too large
Load Diff
221
u-boot-geekbox.spec
Normal file
221
u-boot-geekbox.spec
Normal file
@ -0,0 +1,221 @@
|
||||
#
|
||||
# spec file for package u-boot-geekbox
|
||||
#
|
||||
# Copyright (c) 2017 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 origen_spl 0
|
||||
%define imx6_spl 0
|
||||
%define socfpga_spl 0
|
||||
|
||||
%if "geekbox" == "rpi" || "geekbox" == "rpi2" || "geekbox" == "rpi332b" || "geekbox" == "rpi3"
|
||||
%define is_rpi 1
|
||||
%endif
|
||||
|
||||
# archive_version differs from version for RC version only
|
||||
%define archive_version 2017.09
|
||||
|
||||
Name: u-boot-geekbox
|
||||
Version: 2017.09
|
||||
Release: 0
|
||||
Summary: The U-Boot firmware for the geekbox 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
|
||||
Source1: ftp://ftp.denx.de/pub/u-boot/u-boot-%{archive_version}.tar.bz2.sig
|
||||
Source2: arndale-bl1.img
|
||||
Source3: update_git.sh
|
||||
Source300: u-boot-rpmlintrc
|
||||
Patch0001: 0001-XXX-openSUSE-XXX-Load-dtb-from-part.patch
|
||||
Patch0002: 0002-Revert-Revert-omap3-Use-raw-SPL-by-.patch
|
||||
Patch0003: 0003-Revert-rockchip-mkimage-remove-plac.patch
|
||||
Patch0004: 0004-Fix-boot-on-Beagleboard-xM-by-disab.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
%if 0
|
||||
BuildRequires: arm-trusted-firmware-pine64
|
||||
%endif
|
||||
BuildRequires: bc
|
||||
# Arndale board needs DTC >= 1.4
|
||||
BuildRequires: dtc >= 1.4.0
|
||||
# u-boot-clearfog (tools/kwbimage.c) needs openssl to build
|
||||
BuildRequires: libopenssl-devel
|
||||
BuildRequires: python-devel
|
||||
BuildRequires: swig
|
||||
%if "%{name}" == "u-boot-qemu-ppce500"
|
||||
# Owns /usr/share/qemu directory
|
||||
BuildRequires: qemu
|
||||
Provides: qemu-ppc:%{_datadir}/qemu/u-boot.e500
|
||||
%endif
|
||||
%if 0%{?is_rpi}
|
||||
# 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-geekbox
|
||||
Provides: x-loader-geekbox
|
||||
%endif
|
||||
ExclusiveArch: aarch64
|
||||
|
||||
%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 geekbox 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
|
||||
|
||||
%build
|
||||
export SOURCE_DATE_EPOCH=$(date -d "$(head -n 2 %{_sourcedir}/%{name}.changes | tail -n 1 | cut -d- -f1 )" +%s)
|
||||
%if "%{name}" == "u-boot-pine64plus"
|
||||
export BL31=/boot/bl31.bin
|
||||
%endif
|
||||
|
||||
make %{?_smp_mflags} CROSS_COMPILE= HOSTCFLAGS="$RPM_OPT_FLAGS" geekbox_defconfig
|
||||
echo "Attempting to enable fdt apply command (.dtbo) support."
|
||||
echo "CONFIG_OF_LIBFDT_OVERLAY=y" >> .config
|
||||
make %{?_smp_mflags} CROSS_COMPILE= HOSTCFLAGS="$RPM_OPT_FLAGS" USE_PRIVATE_LIBGG=yes
|
||||
|
||||
%ifarch aarch64
|
||||
%if %sunxi_spl == 1
|
||||
cat spl/sunxi-spl.bin u-boot.itb > u-boot-sunxi-with-spl.bin
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%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.bin -T $t u-boot-spl.$t
|
||||
done
|
||||
%endif
|
||||
|
||||
%install
|
||||
export SOURCE_DATE_EPOCH=$(date -d "$(head -n 2 %{_sourcedir}/%{name}.changes | tail -n 1 | cut -d- -f1 )" +%s)
|
||||
export NO_BRP_STRIP_DEBUG=true
|
||||
export NO_DEBUGINFO_STRIP_DEBUG=true
|
||||
%define uboot_dir /boot
|
||||
%if 0%{?is_rpi}
|
||||
%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}%{uboot_dir}/$f
|
||||
done
|
||||
%else
|
||||
%if "%{name}" == "u-boot-p2371-2180"
|
||||
# Jetson TX1 Driver Pack flash.sh needs several intermediate files, under their original name.
|
||||
for f in u-boot u-boot.bin u-boot.dtb u-boot-dtb.bin; do
|
||||
install -D -m 0644 $f %{buildroot}%{uboot_dir}/$f
|
||||
done
|
||||
%else
|
||||
install -D -m 0644 u-boot.bin %{buildroot}%{uboot_dir}/u-boot.bin
|
||||
%if "%{name}" == "u-boot-qemu-ppce500"
|
||||
mv %{buildroot}%{uboot_dir}/u-boot.bin %{buildroot}%{uboot_dir}/u-boot.e500
|
||||
%endif
|
||||
%endif
|
||||
%endif
|
||||
%if %x_loader == 1
|
||||
install -D -m 0644 MLO %{buildroot}%{uboot_dir}/MLO
|
||||
%endif
|
||||
%if %origen_spl == 1
|
||||
install -D -m 0644 spl/origen-spl.bin %{buildroot}%{uboot_dir}/origen-spl.bin
|
||||
%endif
|
||||
%if %arndale_spl == 1
|
||||
install -D -m 0644 spl/arndale-spl.bin %{buildroot}%{uboot_dir}/arndale-spl.bin
|
||||
install -D -m 0644 %{SOURCE2} %{buildroot}%{uboot_dir}/arndale-bl1.img
|
||||
%endif
|
||||
%if %mvebu_spl == 1
|
||||
install -D -m 0644 u-boot-spl.kwb %{buildroot}%{uboot_dir}/u-boot-spl.kwb
|
||||
%endif
|
||||
%if %rockchip_spl == 1
|
||||
install -D -m 0644 spl/u-boot-spl.bin %{buildroot}%{uboot_dir}/u-boot-spl.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 0644 spl/sunxi-spl.bin %{buildroot}%{uboot_dir}/sunxi-spl.bin
|
||||
install -D -m 0644 u-boot-sunxi-with-spl.bin %{buildroot}%{uboot_dir}/u-boot-sunxi-with-spl.bin
|
||||
%endif
|
||||
%if %imx6_spl == 1
|
||||
install -D -m 0644 SPL %{buildroot}%{uboot_dir}/imx6-spl.bin
|
||||
%endif
|
||||
%if %socfpga_spl == 1
|
||||
install -D -m 0644 u-boot-with-spl.sfp %{buildroot}%{uboot_dir}/u-boot-with-spl.sfp
|
||||
%endif
|
||||
|
||||
%if 0%{?is_rpi}
|
||||
%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
|
@ -1,3 +1,29 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 16 18:53:36 UTC 2017 - xxxxxmichl@googlemail.com
|
||||
|
||||
- Added Banana Pi M2+ support
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Oct 8 13:17:01 UTC 2017 - afaerber@suse.de
|
||||
|
||||
- Add firefly-rk3399 and geekbox
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Oct 7 00:52:52 UTC 2017 - afaerber@suse.de
|
||||
|
||||
- Drop obsolete CuBox-i i.MX6 SPL packaging, too
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Oct 6 23:26:14 UTC 2017 - afaerber@suse.de
|
||||
|
||||
- Update packaging for Jetson TX1
|
||||
- Cleanups
|
||||
* Drop executable bit from SPL
|
||||
* Consistently use %uboot_dir
|
||||
* u-boot[-tegra]-dtb.bin is obsolete
|
||||
* Drop obsolete UDOO-specific i.MX6 SPL packaging
|
||||
- Package sunxi64 SPL for Pine64
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 2 13:33:40 UTC 2017 - guillaume@opensuse.org
|
||||
|
||||
|
@ -23,9 +23,7 @@
|
||||
%define rockchip_spl 0
|
||||
%define sunxi_spl 0
|
||||
%define arndale_spl 0
|
||||
%define cuboxi_spl 0
|
||||
%define origen_spl 0
|
||||
%define udoo_spl 0
|
||||
%define imx6_spl 0
|
||||
%define socfpga_spl 0
|
||||
|
||||
@ -53,6 +51,9 @@ Patch0002: 0002-Revert-Revert-omap3-Use-raw-SPL-by-.patch
|
||||
Patch0003: 0003-Revert-rockchip-mkimage-remove-plac.patch
|
||||
Patch0004: 0004-Fix-boot-on-Beagleboard-xM-by-disab.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
%if 0
|
||||
BuildRequires: arm-trusted-firmware-pine64
|
||||
%endif
|
||||
BuildRequires: bc
|
||||
# Arndale board needs DTC >= 1.4
|
||||
BuildRequires: dtc >= 1.4.0
|
||||
@ -100,11 +101,21 @@ This package contains documentation for U-Boot firmware.
|
||||
|
||||
%build
|
||||
export SOURCE_DATE_EPOCH=$(date -d "$(head -n 2 %{_sourcedir}/%{name}.changes | tail -n 1 | cut -d- -f1 )" +%s)
|
||||
%if "%{name}" == "u-boot-pine64plus"
|
||||
export BL31=/boot/bl31.bin
|
||||
%endif
|
||||
|
||||
make %{?_smp_mflags} CROSS_COMPILE= HOSTCFLAGS="$RPM_OPT_FLAGS" highbank_defconfig
|
||||
echo "Attempting to enable fdt apply command (.dtbo) support."
|
||||
echo "CONFIG_OF_LIBFDT_OVERLAY=y" >> .config
|
||||
make %{?_smp_mflags} CROSS_COMPILE= HOSTCFLAGS="$RPM_OPT_FLAGS" USE_PRIVATE_LIBGG=yes
|
||||
|
||||
%ifarch aarch64
|
||||
%if %sunxi_spl == 1
|
||||
cat spl/sunxi-spl.bin u-boot.itb > u-boot-sunxi-with-spl.bin
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%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)
|
||||
@ -131,34 +142,33 @@ export NO_DEBUGINFO_STRIP_DEBUG=true
|
||||
%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
|
||||
install -D -m 0644 $f %{buildroot}%{uboot_dir}/$f
|
||||
done
|
||||
%else
|
||||
%if "%{name}" == "u-boot-p2371-2180"
|
||||
# Jetson TX1 Driver Pack flash.sh needs several intermediate files, under their original name.
|
||||
for f in u-boot u-boot.bin u-boot.dtb u-boot-dtb.bin; do
|
||||
install -D -m 0644 $f %{buildroot}%{uboot_dir}/$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
|
||||
%endif
|
||||
%if %x_loader == 1
|
||||
install -D -m 0755 MLO %{buildroot}/boot/MLO
|
||||
install -D -m 0644 MLO %{buildroot}%{uboot_dir}/MLO
|
||||
%endif
|
||||
%if %origen_spl == 1
|
||||
install -D -m 0755 spl/origen-spl.bin %{buildroot}/boot/origen-spl.bin
|
||||
install -D -m 0644 spl/origen-spl.bin %{buildroot}%{uboot_dir}/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
|
||||
install -D -m 0644 spl/arndale-spl.bin %{buildroot}%{uboot_dir}/arndale-spl.bin
|
||||
install -D -m 0644 %{SOURCE2} %{buildroot}%{uboot_dir}/arndale-bl1.img
|
||||
%endif
|
||||
%if %mvebu_spl == 1
|
||||
install -D -m 0755 u-boot-spl.kwb %{buildroot}%{uboot_dir}/u-boot-spl.kwb
|
||||
install -D -m 0644 u-boot-spl.kwb %{buildroot}%{uboot_dir}/u-boot-spl.kwb
|
||||
%endif
|
||||
%if %rockchip_spl == 1
|
||||
install -D -m 0644 spl/u-boot-spl.bin %{buildroot}%{uboot_dir}/u-boot-spl.bin
|
||||
@ -167,20 +177,14 @@ for t in ; do
|
||||
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
|
||||
install -D -m 0644 spl/sunxi-spl.bin %{buildroot}%{uboot_dir}/sunxi-spl.bin
|
||||
install -D -m 0644 u-boot-sunxi-with-spl.bin %{buildroot}%{uboot_dir}/u-boot-sunxi-with-spl.bin
|
||||
%endif
|
||||
%if %imx6_spl == 1
|
||||
install -D -m 0755 SPL %{buildroot}/boot/imx6-spl.bin
|
||||
install -D -m 0644 SPL %{buildroot}%{uboot_dir}/imx6-spl.bin
|
||||
%endif
|
||||
%if %socfpga_spl == 1
|
||||
install -D -m 0755 u-boot-with-spl.sfp %{buildroot}/boot/u-boot-with-spl.sfp
|
||||
install -D -m 0644 u-boot-with-spl.sfp %{buildroot}%{uboot_dir}/u-boot-with-spl.sfp
|
||||
%endif
|
||||
|
||||
%if 0%{?is_rpi}
|
||||
|
@ -1,3 +1,29 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 16 18:53:36 UTC 2017 - xxxxxmichl@googlemail.com
|
||||
|
||||
- Added Banana Pi M2+ support
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Oct 8 13:17:01 UTC 2017 - afaerber@suse.de
|
||||
|
||||
- Add firefly-rk3399 and geekbox
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Oct 7 00:52:52 UTC 2017 - afaerber@suse.de
|
||||
|
||||
- Drop obsolete CuBox-i i.MX6 SPL packaging, too
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Oct 6 23:26:14 UTC 2017 - afaerber@suse.de
|
||||
|
||||
- Update packaging for Jetson TX1
|
||||
- Cleanups
|
||||
* Drop executable bit from SPL
|
||||
* Consistently use %uboot_dir
|
||||
* u-boot[-tegra]-dtb.bin is obsolete
|
||||
* Drop obsolete UDOO-specific i.MX6 SPL packaging
|
||||
- Package sunxi64 SPL for Pine64
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 2 13:33:40 UTC 2017 - guillaume@opensuse.org
|
||||
|
||||
|
@ -23,9 +23,7 @@
|
||||
%define rockchip_spl 0
|
||||
%define sunxi_spl 0
|
||||
%define arndale_spl 0
|
||||
%define cuboxi_spl 0
|
||||
%define origen_spl 0
|
||||
%define udoo_spl 0
|
||||
%define imx6_spl 0
|
||||
%define socfpga_spl 0
|
||||
|
||||
@ -53,6 +51,9 @@ Patch0002: 0002-Revert-Revert-omap3-Use-raw-SPL-by-.patch
|
||||
Patch0003: 0003-Revert-rockchip-mkimage-remove-plac.patch
|
||||
Patch0004: 0004-Fix-boot-on-Beagleboard-xM-by-disab.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
%if 0
|
||||
BuildRequires: arm-trusted-firmware-pine64
|
||||
%endif
|
||||
BuildRequires: bc
|
||||
# Arndale board needs DTC >= 1.4
|
||||
BuildRequires: dtc >= 1.4.0
|
||||
@ -100,11 +101,21 @@ This package contains documentation for U-Boot firmware.
|
||||
|
||||
%build
|
||||
export SOURCE_DATE_EPOCH=$(date -d "$(head -n 2 %{_sourcedir}/%{name}.changes | tail -n 1 | cut -d- -f1 )" +%s)
|
||||
%if "%{name}" == "u-boot-pine64plus"
|
||||
export BL31=/boot/bl31.bin
|
||||
%endif
|
||||
|
||||
make %{?_smp_mflags} CROSS_COMPILE= HOSTCFLAGS="$RPM_OPT_FLAGS" hikey_defconfig
|
||||
echo "Attempting to enable fdt apply command (.dtbo) support."
|
||||
echo "CONFIG_OF_LIBFDT_OVERLAY=y" >> .config
|
||||
make %{?_smp_mflags} CROSS_COMPILE= HOSTCFLAGS="$RPM_OPT_FLAGS" USE_PRIVATE_LIBGG=yes
|
||||
|
||||
%ifarch aarch64
|
||||
%if %sunxi_spl == 1
|
||||
cat spl/sunxi-spl.bin u-boot.itb > u-boot-sunxi-with-spl.bin
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%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)
|
||||
@ -131,34 +142,33 @@ export NO_DEBUGINFO_STRIP_DEBUG=true
|
||||
%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
|
||||
install -D -m 0644 $f %{buildroot}%{uboot_dir}/$f
|
||||
done
|
||||
%else
|
||||
%if "%{name}" == "u-boot-p2371-2180"
|
||||
# Jetson TX1 Driver Pack flash.sh needs several intermediate files, under their original name.
|
||||
for f in u-boot u-boot.bin u-boot.dtb u-boot-dtb.bin; do
|
||||
install -D -m 0644 $f %{buildroot}%{uboot_dir}/$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
|
||||
%endif
|
||||
%if %x_loader == 1
|
||||
install -D -m 0755 MLO %{buildroot}/boot/MLO
|
||||
install -D -m 0644 MLO %{buildroot}%{uboot_dir}/MLO
|
||||
%endif
|
||||
%if %origen_spl == 1
|
||||
install -D -m 0755 spl/origen-spl.bin %{buildroot}/boot/origen-spl.bin
|
||||
install -D -m 0644 spl/origen-spl.bin %{buildroot}%{uboot_dir}/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
|
||||
install -D -m 0644 spl/arndale-spl.bin %{buildroot}%{uboot_dir}/arndale-spl.bin
|
||||
install -D -m 0644 %{SOURCE2} %{buildroot}%{uboot_dir}/arndale-bl1.img
|
||||
%endif
|
||||
%if %mvebu_spl == 1
|
||||
install -D -m 0755 u-boot-spl.kwb %{buildroot}%{uboot_dir}/u-boot-spl.kwb
|
||||
install -D -m 0644 u-boot-spl.kwb %{buildroot}%{uboot_dir}/u-boot-spl.kwb
|
||||
%endif
|
||||
%if %rockchip_spl == 1
|
||||
install -D -m 0644 spl/u-boot-spl.bin %{buildroot}%{uboot_dir}/u-boot-spl.bin
|
||||
@ -167,20 +177,14 @@ for t in ; do
|
||||
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
|
||||
install -D -m 0644 spl/sunxi-spl.bin %{buildroot}%{uboot_dir}/sunxi-spl.bin
|
||||
install -D -m 0644 u-boot-sunxi-with-spl.bin %{buildroot}%{uboot_dir}/u-boot-sunxi-with-spl.bin
|
||||
%endif
|
||||
%if %imx6_spl == 1
|
||||
install -D -m 0755 SPL %{buildroot}/boot/imx6-spl.bin
|
||||
install -D -m 0644 SPL %{buildroot}%{uboot_dir}/imx6-spl.bin
|
||||
%endif
|
||||
%if %socfpga_spl == 1
|
||||
install -D -m 0755 u-boot-with-spl.sfp %{buildroot}/boot/u-boot-with-spl.sfp
|
||||
install -D -m 0644 u-boot-with-spl.sfp %{buildroot}%{uboot_dir}/u-boot-with-spl.sfp
|
||||
%endif
|
||||
|
||||
%if 0%{?is_rpi}
|
||||
|
@ -1,3 +1,29 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 16 18:53:36 UTC 2017 - xxxxxmichl@googlemail.com
|
||||
|
||||
- Added Banana Pi M2+ support
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Oct 8 13:17:01 UTC 2017 - afaerber@suse.de
|
||||
|
||||
- Add firefly-rk3399 and geekbox
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Oct 7 00:52:52 UTC 2017 - afaerber@suse.de
|
||||
|
||||
- Drop obsolete CuBox-i i.MX6 SPL packaging, too
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Oct 6 23:26:14 UTC 2017 - afaerber@suse.de
|
||||
|
||||
- Update packaging for Jetson TX1
|
||||
- Cleanups
|
||||
* Drop executable bit from SPL
|
||||
* Consistently use %uboot_dir
|
||||
* u-boot[-tegra]-dtb.bin is obsolete
|
||||
* Drop obsolete UDOO-specific i.MX6 SPL packaging
|
||||
- Package sunxi64 SPL for Pine64
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 2 13:33:40 UTC 2017 - guillaume@opensuse.org
|
||||
|
||||
|
@ -23,9 +23,7 @@
|
||||
%define rockchip_spl 0
|
||||
%define sunxi_spl 1
|
||||
%define arndale_spl 0
|
||||
%define cuboxi_spl 0
|
||||
%define origen_spl 0
|
||||
%define udoo_spl 0
|
||||
%define imx6_spl 0
|
||||
%define socfpga_spl 0
|
||||
|
||||
@ -53,6 +51,9 @@ Patch0002: 0002-Revert-Revert-omap3-Use-raw-SPL-by-.patch
|
||||
Patch0003: 0003-Revert-rockchip-mkimage-remove-plac.patch
|
||||
Patch0004: 0004-Fix-boot-on-Beagleboard-xM-by-disab.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
%if 0
|
||||
BuildRequires: arm-trusted-firmware-pine64
|
||||
%endif
|
||||
BuildRequires: bc
|
||||
# Arndale board needs DTC >= 1.4
|
||||
BuildRequires: dtc >= 1.4.0
|
||||
@ -100,11 +101,21 @@ This package contains documentation for U-Boot firmware.
|
||||
|
||||
%build
|
||||
export SOURCE_DATE_EPOCH=$(date -d "$(head -n 2 %{_sourcedir}/%{name}.changes | tail -n 1 | cut -d- -f1 )" +%s)
|
||||
%if "%{name}" == "u-boot-pine64plus"
|
||||
export BL31=/boot/bl31.bin
|
||||
%endif
|
||||
|
||||
make %{?_smp_mflags} CROSS_COMPILE= HOSTCFLAGS="$RPM_OPT_FLAGS" Hyundai_A7HD_defconfig
|
||||
echo "Attempting to enable fdt apply command (.dtbo) support."
|
||||
echo "CONFIG_OF_LIBFDT_OVERLAY=y" >> .config
|
||||
make %{?_smp_mflags} CROSS_COMPILE= HOSTCFLAGS="$RPM_OPT_FLAGS" USE_PRIVATE_LIBGG=yes
|
||||
|
||||
%ifarch aarch64
|
||||
%if %sunxi_spl == 1
|
||||
cat spl/sunxi-spl.bin u-boot.itb > u-boot-sunxi-with-spl.bin
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%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)
|
||||
@ -131,34 +142,33 @@ export NO_DEBUGINFO_STRIP_DEBUG=true
|
||||
%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
|
||||
install -D -m 0644 $f %{buildroot}%{uboot_dir}/$f
|
||||
done
|
||||
%else
|
||||
%if "%{name}" == "u-boot-p2371-2180"
|
||||
# Jetson TX1 Driver Pack flash.sh needs several intermediate files, under their original name.
|
||||
for f in u-boot u-boot.bin u-boot.dtb u-boot-dtb.bin; do
|
||||
install -D -m 0644 $f %{buildroot}%{uboot_dir}/$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.img %{buildroot}%{uboot_dir}/u-boot.img
|
||||
elif [ -f u-boot-dtb.img ]; then
|
||||
install -D -m 0644 u-boot-dtb.img %{buildroot}%{uboot_dir}/u-boot.img
|
||||
else
|
||||
install -D -m 0644 u-boot.img %{buildroot}%{uboot_dir}/u-boot.img
|
||||
fi
|
||||
%if "%{name}" == "u-boot-qemu-ppce500"
|
||||
mv %{buildroot}%{uboot_dir}/u-boot.img %{buildroot}%{uboot_dir}/u-boot.e500
|
||||
%endif
|
||||
%endif
|
||||
%endif
|
||||
%if %x_loader == 1
|
||||
install -D -m 0755 MLO %{buildroot}/boot/MLO
|
||||
install -D -m 0644 MLO %{buildroot}%{uboot_dir}/MLO
|
||||
%endif
|
||||
%if %origen_spl == 1
|
||||
install -D -m 0755 spl/origen-spl.bin %{buildroot}/boot/origen-spl.bin
|
||||
install -D -m 0644 spl/origen-spl.bin %{buildroot}%{uboot_dir}/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
|
||||
install -D -m 0644 spl/arndale-spl.bin %{buildroot}%{uboot_dir}/arndale-spl.bin
|
||||
install -D -m 0644 %{SOURCE2} %{buildroot}%{uboot_dir}/arndale-bl1.img
|
||||
%endif
|
||||
%if %mvebu_spl == 1
|
||||
install -D -m 0755 u-boot-spl.kwb %{buildroot}%{uboot_dir}/u-boot-spl.kwb
|
||||
install -D -m 0644 u-boot-spl.kwb %{buildroot}%{uboot_dir}/u-boot-spl.kwb
|
||||
%endif
|
||||
%if %rockchip_spl == 1
|
||||
install -D -m 0644 spl/u-boot-spl.bin %{buildroot}%{uboot_dir}/u-boot-spl.bin
|
||||
@ -167,20 +177,14 @@ for t in ; do
|
||||
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
|
||||
install -D -m 0644 spl/sunxi-spl.bin %{buildroot}%{uboot_dir}/sunxi-spl.bin
|
||||
install -D -m 0644 u-boot-sunxi-with-spl.bin %{buildroot}%{uboot_dir}/u-boot-sunxi-with-spl.bin
|
||||
%endif
|
||||
%if %imx6_spl == 1
|
||||
install -D -m 0755 SPL %{buildroot}/boot/imx6-spl.bin
|
||||
install -D -m 0644 SPL %{buildroot}%{uboot_dir}/imx6-spl.bin
|
||||
%endif
|
||||
%if %socfpga_spl == 1
|
||||
install -D -m 0755 u-boot-with-spl.sfp %{buildroot}/boot/u-boot-with-spl.sfp
|
||||
install -D -m 0644 u-boot-with-spl.sfp %{buildroot}%{uboot_dir}/u-boot-with-spl.sfp
|
||||
%endif
|
||||
|
||||
%if 0%{?is_rpi}
|
||||
|
@ -1,3 +1,29 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 16 18:53:36 UTC 2017 - xxxxxmichl@googlemail.com
|
||||
|
||||
- Added Banana Pi M2+ support
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Oct 8 13:17:01 UTC 2017 - afaerber@suse.de
|
||||
|
||||
- Add firefly-rk3399 and geekbox
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Oct 7 00:52:52 UTC 2017 - afaerber@suse.de
|
||||
|
||||
- Drop obsolete CuBox-i i.MX6 SPL packaging, too
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Oct 6 23:26:14 UTC 2017 - afaerber@suse.de
|
||||
|
||||
- Update packaging for Jetson TX1
|
||||
- Cleanups
|
||||
* Drop executable bit from SPL
|
||||
* Consistently use %uboot_dir
|
||||
* u-boot[-tegra]-dtb.bin is obsolete
|
||||
* Drop obsolete UDOO-specific i.MX6 SPL packaging
|
||||
- Package sunxi64 SPL for Pine64
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 2 13:33:40 UTC 2017 - guillaume@opensuse.org
|
||||
|
||||
|
@ -23,9 +23,7 @@
|
||||
%define rockchip_spl 0
|
||||
%define sunxi_spl 0
|
||||
%define arndale_spl 0
|
||||
%define cuboxi_spl 0
|
||||
%define origen_spl 0
|
||||
%define udoo_spl 0
|
||||
%define imx6_spl 0
|
||||
%define socfpga_spl 0
|
||||
|
||||
@ -53,6 +51,9 @@ Patch0002: 0002-Revert-Revert-omap3-Use-raw-SPL-by-.patch
|
||||
Patch0003: 0003-Revert-rockchip-mkimage-remove-plac.patch
|
||||
Patch0004: 0004-Fix-boot-on-Beagleboard-xM-by-disab.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
%if 0
|
||||
BuildRequires: arm-trusted-firmware-pine64
|
||||
%endif
|
||||
BuildRequires: bc
|
||||
# Arndale board needs DTC >= 1.4
|
||||
BuildRequires: dtc >= 1.4.0
|
||||
@ -100,11 +101,21 @@ This package contains documentation for U-Boot firmware.
|
||||
|
||||
%build
|
||||
export SOURCE_DATE_EPOCH=$(date -d "$(head -n 2 %{_sourcedir}/%{name}.changes | tail -n 1 | cut -d- -f1 )" +%s)
|
||||
%if "%{name}" == "u-boot-pine64plus"
|
||||
export BL31=/boot/bl31.bin
|
||||
%endif
|
||||
|
||||
make %{?_smp_mflags} CROSS_COMPILE= HOSTCFLAGS="$RPM_OPT_FLAGS" jetson-tk1_defconfig
|
||||
echo "Attempting to enable fdt apply command (.dtbo) support."
|
||||
echo "CONFIG_OF_LIBFDT_OVERLAY=y" >> .config
|
||||
make %{?_smp_mflags} CROSS_COMPILE= HOSTCFLAGS="$RPM_OPT_FLAGS" USE_PRIVATE_LIBGG=yes
|
||||
|
||||
%ifarch aarch64
|
||||
%if %sunxi_spl == 1
|
||||
cat spl/sunxi-spl.bin u-boot.itb > u-boot-sunxi-with-spl.bin
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%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)
|
||||
@ -131,34 +142,33 @@ export NO_DEBUGINFO_STRIP_DEBUG=true
|
||||
%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
|
||||
install -D -m 0644 $f %{buildroot}%{uboot_dir}/$f
|
||||
done
|
||||
%else
|
||||
%if "%{name}" == "u-boot-p2371-2180"
|
||||
# Jetson TX1 Driver Pack flash.sh needs several intermediate files, under their original name.
|
||||
for f in u-boot u-boot.bin u-boot.dtb u-boot-dtb.bin; do
|
||||
install -D -m 0644 $f %{buildroot}%{uboot_dir}/$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
|
||||
%endif
|
||||
%if %x_loader == 1
|
||||
install -D -m 0755 MLO %{buildroot}/boot/MLO
|
||||
install -D -m 0644 MLO %{buildroot}%{uboot_dir}/MLO
|
||||
%endif
|
||||
%if %origen_spl == 1
|
||||
install -D -m 0755 spl/origen-spl.bin %{buildroot}/boot/origen-spl.bin
|
||||
install -D -m 0644 spl/origen-spl.bin %{buildroot}%{uboot_dir}/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
|
||||
install -D -m 0644 spl/arndale-spl.bin %{buildroot}%{uboot_dir}/arndale-spl.bin
|
||||
install -D -m 0644 %{SOURCE2} %{buildroot}%{uboot_dir}/arndale-bl1.img
|
||||
%endif
|
||||
%if %mvebu_spl == 1
|
||||
install -D -m 0755 u-boot-spl.kwb %{buildroot}%{uboot_dir}/u-boot-spl.kwb
|
||||
install -D -m 0644 u-boot-spl.kwb %{buildroot}%{uboot_dir}/u-boot-spl.kwb
|
||||
%endif
|
||||
%if %rockchip_spl == 1
|
||||
install -D -m 0644 spl/u-boot-spl.bin %{buildroot}%{uboot_dir}/u-boot-spl.bin
|
||||
@ -167,20 +177,14 @@ for t in ; do
|
||||
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
|
||||
install -D -m 0644 spl/sunxi-spl.bin %{buildroot}%{uboot_dir}/sunxi-spl.bin
|
||||
install -D -m 0644 u-boot-sunxi-with-spl.bin %{buildroot}%{uboot_dir}/u-boot-sunxi-with-spl.bin
|
||||
%endif
|
||||
%if %imx6_spl == 1
|
||||
install -D -m 0755 SPL %{buildroot}/boot/imx6-spl.bin
|
||||
install -D -m 0644 SPL %{buildroot}%{uboot_dir}/imx6-spl.bin
|
||||
%endif
|
||||
%if %socfpga_spl == 1
|
||||
install -D -m 0755 u-boot-with-spl.sfp %{buildroot}/boot/u-boot-with-spl.sfp
|
||||
install -D -m 0644 u-boot-with-spl.sfp %{buildroot}%{uboot_dir}/u-boot-with-spl.sfp
|
||||
%endif
|
||||
|
||||
%if 0%{?is_rpi}
|
||||
|
@ -1,3 +1,29 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 16 18:53:36 UTC 2017 - xxxxxmichl@googlemail.com
|
||||
|
||||
- Added Banana Pi M2+ support
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Oct 8 13:17:01 UTC 2017 - afaerber@suse.de
|
||||
|
||||
- Add firefly-rk3399 and geekbox
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Oct 7 00:52:52 UTC 2017 - afaerber@suse.de
|
||||
|
||||
- Drop obsolete CuBox-i i.MX6 SPL packaging, too
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Oct 6 23:26:14 UTC 2017 - afaerber@suse.de
|
||||
|
||||
- Update packaging for Jetson TX1
|
||||
- Cleanups
|
||||
* Drop executable bit from SPL
|
||||
* Consistently use %uboot_dir
|
||||
* u-boot[-tegra]-dtb.bin is obsolete
|
||||
* Drop obsolete UDOO-specific i.MX6 SPL packaging
|
||||
- Package sunxi64 SPL for Pine64
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 2 13:33:40 UTC 2017 - guillaume@opensuse.org
|
||||
|
||||
|
@ -23,9 +23,7 @@
|
||||
%define rockchip_spl 0
|
||||
%define sunxi_spl 1
|
||||
%define arndale_spl 0
|
||||
%define cuboxi_spl 0
|
||||
%define origen_spl 0
|
||||
%define udoo_spl 0
|
||||
%define imx6_spl 0
|
||||
%define socfpga_spl 0
|
||||
|
||||
@ -53,6 +51,9 @@ Patch0002: 0002-Revert-Revert-omap3-Use-raw-SPL-by-.patch
|
||||
Patch0003: 0003-Revert-rockchip-mkimage-remove-plac.patch
|
||||
Patch0004: 0004-Fix-boot-on-Beagleboard-xM-by-disab.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
%if 0
|
||||
BuildRequires: arm-trusted-firmware-pine64
|
||||
%endif
|
||||
BuildRequires: bc
|
||||
# Arndale board needs DTC >= 1.4
|
||||
BuildRequires: dtc >= 1.4.0
|
||||
@ -100,11 +101,21 @@ This package contains documentation for U-Boot firmware.
|
||||
|
||||
%build
|
||||
export SOURCE_DATE_EPOCH=$(date -d "$(head -n 2 %{_sourcedir}/%{name}.changes | tail -n 1 | cut -d- -f1 )" +%s)
|
||||
%if "%{name}" == "u-boot-pine64plus"
|
||||
export BL31=/boot/bl31.bin
|
||||
%endif
|
||||
|
||||
make %{?_smp_mflags} CROSS_COMPILE= HOSTCFLAGS="$RPM_OPT_FLAGS" Lamobo_R1_defconfig
|
||||
echo "Attempting to enable fdt apply command (.dtbo) support."
|
||||
echo "CONFIG_OF_LIBFDT_OVERLAY=y" >> .config
|
||||
make %{?_smp_mflags} CROSS_COMPILE= HOSTCFLAGS="$RPM_OPT_FLAGS" USE_PRIVATE_LIBGG=yes
|
||||
|
||||
%ifarch aarch64
|
||||
%if %sunxi_spl == 1
|
||||
cat spl/sunxi-spl.bin u-boot.itb > u-boot-sunxi-with-spl.bin
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%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)
|
||||
@ -131,34 +142,33 @@ export NO_DEBUGINFO_STRIP_DEBUG=true
|
||||
%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
|
||||
install -D -m 0644 $f %{buildroot}%{uboot_dir}/$f
|
||||
done
|
||||
%else
|
||||
%if "%{name}" == "u-boot-p2371-2180"
|
||||
# Jetson TX1 Driver Pack flash.sh needs several intermediate files, under their original name.
|
||||
for f in u-boot u-boot.bin u-boot.dtb u-boot-dtb.bin; do
|
||||
install -D -m 0644 $f %{buildroot}%{uboot_dir}/$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.img %{buildroot}%{uboot_dir}/u-boot.img
|
||||
elif [ -f u-boot-dtb.img ]; then
|
||||
install -D -m 0644 u-boot-dtb.img %{buildroot}%{uboot_dir}/u-boot.img
|
||||
else
|
||||
install -D -m 0644 u-boot.img %{buildroot}%{uboot_dir}/u-boot.img
|
||||
fi
|
||||
%if "%{name}" == "u-boot-qemu-ppce500"
|
||||
mv %{buildroot}%{uboot_dir}/u-boot.img %{buildroot}%{uboot_dir}/u-boot.e500
|
||||
%endif
|
||||
%endif
|
||||
%endif
|
||||
%if %x_loader == 1
|
||||
install -D -m 0755 MLO %{buildroot}/boot/MLO
|
||||
install -D -m 0644 MLO %{buildroot}%{uboot_dir}/MLO
|
||||
%endif
|
||||
%if %origen_spl == 1
|
||||
install -D -m 0755 spl/origen-spl.bin %{buildroot}/boot/origen-spl.bin
|
||||
install -D -m 0644 spl/origen-spl.bin %{buildroot}%{uboot_dir}/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
|
||||
install -D -m 0644 spl/arndale-spl.bin %{buildroot}%{uboot_dir}/arndale-spl.bin
|
||||
install -D -m 0644 %{SOURCE2} %{buildroot}%{uboot_dir}/arndale-bl1.img
|
||||
%endif
|
||||
%if %mvebu_spl == 1
|
||||
install -D -m 0755 u-boot-spl.kwb %{buildroot}%{uboot_dir}/u-boot-spl.kwb
|
||||
install -D -m 0644 u-boot-spl.kwb %{buildroot}%{uboot_dir}/u-boot-spl.kwb
|
||||
%endif
|
||||
%if %rockchip_spl == 1
|
||||
install -D -m 0644 spl/u-boot-spl.bin %{buildroot}%{uboot_dir}/u-boot-spl.bin
|
||||
@ -167,20 +177,14 @@ for t in ; do
|
||||
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
|
||||
install -D -m 0644 spl/sunxi-spl.bin %{buildroot}%{uboot_dir}/sunxi-spl.bin
|
||||
install -D -m 0644 u-boot-sunxi-with-spl.bin %{buildroot}%{uboot_dir}/u-boot-sunxi-with-spl.bin
|
||||
%endif
|
||||
%if %imx6_spl == 1
|
||||
install -D -m 0755 SPL %{buildroot}/boot/imx6-spl.bin
|
||||
install -D -m 0644 SPL %{buildroot}%{uboot_dir}/imx6-spl.bin
|
||||
%endif
|
||||
%if %socfpga_spl == 1
|
||||
install -D -m 0755 u-boot-with-spl.sfp %{buildroot}/boot/u-boot-with-spl.sfp
|
||||
install -D -m 0644 u-boot-with-spl.sfp %{buildroot}%{uboot_dir}/u-boot-with-spl.sfp
|
||||
%endif
|
||||
|
||||
%if 0%{?is_rpi}
|
||||
|
@ -1,3 +1,29 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 16 18:53:36 UTC 2017 - xxxxxmichl@googlemail.com
|
||||
|
||||
- Added Banana Pi M2+ support
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Oct 8 13:17:01 UTC 2017 - afaerber@suse.de
|
||||
|
||||
- Add firefly-rk3399 and geekbox
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Oct 7 00:52:52 UTC 2017 - afaerber@suse.de
|
||||
|
||||
- Drop obsolete CuBox-i i.MX6 SPL packaging, too
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Oct 6 23:26:14 UTC 2017 - afaerber@suse.de
|
||||
|
||||
- Update packaging for Jetson TX1
|
||||
- Cleanups
|
||||
* Drop executable bit from SPL
|
||||
* Consistently use %uboot_dir
|
||||
* u-boot[-tegra]-dtb.bin is obsolete
|
||||
* Drop obsolete UDOO-specific i.MX6 SPL packaging
|
||||
- Package sunxi64 SPL for Pine64
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 2 13:33:40 UTC 2017 - guillaume@opensuse.org
|
||||
|
||||
|
@ -23,9 +23,7 @@
|
||||
%define rockchip_spl 0
|
||||
%define sunxi_spl 0
|
||||
%define arndale_spl 0
|
||||
%define cuboxi_spl 0
|
||||
%define origen_spl 0
|
||||
%define udoo_spl 0
|
||||
%define imx6_spl 0
|
||||
%define socfpga_spl 0
|
||||
|
||||
@ -53,6 +51,9 @@ Patch0002: 0002-Revert-Revert-omap3-Use-raw-SPL-by-.patch
|
||||
Patch0003: 0003-Revert-rockchip-mkimage-remove-plac.patch
|
||||
Patch0004: 0004-Fix-boot-on-Beagleboard-xM-by-disab.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
%if 0
|
||||
BuildRequires: arm-trusted-firmware-pine64
|
||||
%endif
|
||||
BuildRequires: bc
|
||||
# Arndale board needs DTC >= 1.4
|
||||
BuildRequires: dtc >= 1.4.0
|
||||
@ -100,11 +101,21 @@ This package contains documentation for U-Boot firmware.
|
||||
|
||||
%build
|
||||
export SOURCE_DATE_EPOCH=$(date -d "$(head -n 2 %{_sourcedir}/%{name}.changes | tail -n 1 | cut -d- -f1 )" +%s)
|
||||
%if "%{name}" == "u-boot-pine64plus"
|
||||
export BL31=/boot/bl31.bin
|
||||
%endif
|
||||
|
||||
make %{?_smp_mflags} CROSS_COMPILE= HOSTCFLAGS="$RPM_OPT_FLAGS" ls1012afrdm_qspi_defconfig
|
||||
echo "Attempting to enable fdt apply command (.dtbo) support."
|
||||
echo "CONFIG_OF_LIBFDT_OVERLAY=y" >> .config
|
||||
make %{?_smp_mflags} CROSS_COMPILE= HOSTCFLAGS="$RPM_OPT_FLAGS" USE_PRIVATE_LIBGG=yes
|
||||
|
||||
%ifarch aarch64
|
||||
%if %sunxi_spl == 1
|
||||
cat spl/sunxi-spl.bin u-boot.itb > u-boot-sunxi-with-spl.bin
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%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)
|
||||
@ -131,34 +142,33 @@ export NO_DEBUGINFO_STRIP_DEBUG=true
|
||||
%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
|
||||
install -D -m 0644 $f %{buildroot}%{uboot_dir}/$f
|
||||
done
|
||||
%else
|
||||
%if "%{name}" == "u-boot-p2371-2180"
|
||||
# Jetson TX1 Driver Pack flash.sh needs several intermediate files, under their original name.
|
||||
for f in u-boot u-boot.bin u-boot.dtb u-boot-dtb.bin; do
|
||||
install -D -m 0644 $f %{buildroot}%{uboot_dir}/$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
|
||||
%endif
|
||||
%if %x_loader == 1
|
||||
install -D -m 0755 MLO %{buildroot}/boot/MLO
|
||||
install -D -m 0644 MLO %{buildroot}%{uboot_dir}/MLO
|
||||
%endif
|
||||
%if %origen_spl == 1
|
||||
install -D -m 0755 spl/origen-spl.bin %{buildroot}/boot/origen-spl.bin
|
||||
install -D -m 0644 spl/origen-spl.bin %{buildroot}%{uboot_dir}/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
|
||||
install -D -m 0644 spl/arndale-spl.bin %{buildroot}%{uboot_dir}/arndale-spl.bin
|
||||
install -D -m 0644 %{SOURCE2} %{buildroot}%{uboot_dir}/arndale-bl1.img
|
||||
%endif
|
||||
%if %mvebu_spl == 1
|
||||
install -D -m 0755 u-boot-spl.kwb %{buildroot}%{uboot_dir}/u-boot-spl.kwb
|
||||
install -D -m 0644 u-boot-spl.kwb %{buildroot}%{uboot_dir}/u-boot-spl.kwb
|
||||
%endif
|
||||
%if %rockchip_spl == 1
|
||||
install -D -m 0644 spl/u-boot-spl.bin %{buildroot}%{uboot_dir}/u-boot-spl.bin
|
||||
@ -167,20 +177,14 @@ for t in ; do
|
||||
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
|
||||
install -D -m 0644 spl/sunxi-spl.bin %{buildroot}%{uboot_dir}/sunxi-spl.bin
|
||||
install -D -m 0644 u-boot-sunxi-with-spl.bin %{buildroot}%{uboot_dir}/u-boot-sunxi-with-spl.bin
|
||||
%endif
|
||||
%if %imx6_spl == 1
|
||||
install -D -m 0755 SPL %{buildroot}/boot/imx6-spl.bin
|
||||
install -D -m 0644 SPL %{buildroot}%{uboot_dir}/imx6-spl.bin
|
||||
%endif
|
||||
%if %socfpga_spl == 1
|
||||
install -D -m 0755 u-boot-with-spl.sfp %{buildroot}/boot/u-boot-with-spl.sfp
|
||||
install -D -m 0644 u-boot-with-spl.sfp %{buildroot}%{uboot_dir}/u-boot-with-spl.sfp
|
||||
%endif
|
||||
|
||||
%if 0%{?is_rpi}
|
||||
|
@ -1,3 +1,29 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 16 18:53:36 UTC 2017 - xxxxxmichl@googlemail.com
|
||||
|
||||
- Added Banana Pi M2+ support
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Oct 8 13:17:01 UTC 2017 - afaerber@suse.de
|
||||
|
||||
- Add firefly-rk3399 and geekbox
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Oct 7 00:52:52 UTC 2017 - afaerber@suse.de
|
||||
|
||||
- Drop obsolete CuBox-i i.MX6 SPL packaging, too
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Oct 6 23:26:14 UTC 2017 - afaerber@suse.de
|
||||
|
||||
- Update packaging for Jetson TX1
|
||||
- Cleanups
|
||||
* Drop executable bit from SPL
|
||||
* Consistently use %uboot_dir
|
||||
* u-boot[-tegra]-dtb.bin is obsolete
|
||||
* Drop obsolete UDOO-specific i.MX6 SPL packaging
|
||||
- Package sunxi64 SPL for Pine64
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 2 13:33:40 UTC 2017 - guillaume@opensuse.org
|
||||
|
||||
|
@ -23,9 +23,7 @@
|
||||
%define rockchip_spl 0
|
||||
%define sunxi_spl 1
|
||||
%define arndale_spl 0
|
||||
%define cuboxi_spl 0
|
||||
%define origen_spl 0
|
||||
%define udoo_spl 0
|
||||
%define imx6_spl 0
|
||||
%define socfpga_spl 0
|
||||
|
||||
@ -53,6 +51,9 @@ Patch0002: 0002-Revert-Revert-omap3-Use-raw-SPL-by-.patch
|
||||
Patch0003: 0003-Revert-rockchip-mkimage-remove-plac.patch
|
||||
Patch0004: 0004-Fix-boot-on-Beagleboard-xM-by-disab.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
%if 0
|
||||
BuildRequires: arm-trusted-firmware-pine64
|
||||
%endif
|
||||
BuildRequires: bc
|
||||
# Arndale board needs DTC >= 1.4
|
||||
BuildRequires: dtc >= 1.4.0
|
||||
@ -100,11 +101,21 @@ This package contains documentation for U-Boot firmware.
|
||||
|
||||
%build
|
||||
export SOURCE_DATE_EPOCH=$(date -d "$(head -n 2 %{_sourcedir}/%{name}.changes | tail -n 1 | cut -d- -f1 )" +%s)
|
||||
%if "%{name}" == "u-boot-pine64plus"
|
||||
export BL31=/boot/bl31.bin
|
||||
%endif
|
||||
|
||||
make %{?_smp_mflags} CROSS_COMPILE= HOSTCFLAGS="$RPM_OPT_FLAGS" Mele_A1000_defconfig
|
||||
echo "Attempting to enable fdt apply command (.dtbo) support."
|
||||
echo "CONFIG_OF_LIBFDT_OVERLAY=y" >> .config
|
||||
make %{?_smp_mflags} CROSS_COMPILE= HOSTCFLAGS="$RPM_OPT_FLAGS" USE_PRIVATE_LIBGG=yes
|
||||
|
||||
%ifarch aarch64
|
||||
%if %sunxi_spl == 1
|
||||
cat spl/sunxi-spl.bin u-boot.itb > u-boot-sunxi-with-spl.bin
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%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)
|
||||
@ -131,34 +142,33 @@ export NO_DEBUGINFO_STRIP_DEBUG=true
|
||||
%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
|
||||
install -D -m 0644 $f %{buildroot}%{uboot_dir}/$f
|
||||
done
|
||||
%else
|
||||
%if "%{name}" == "u-boot-p2371-2180"
|
||||
# Jetson TX1 Driver Pack flash.sh needs several intermediate files, under their original name.
|
||||
for f in u-boot u-boot.bin u-boot.dtb u-boot-dtb.bin; do
|
||||
install -D -m 0644 $f %{buildroot}%{uboot_dir}/$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.img %{buildroot}%{uboot_dir}/u-boot.img
|
||||
elif [ -f u-boot-dtb.img ]; then
|
||||
install -D -m 0644 u-boot-dtb.img %{buildroot}%{uboot_dir}/u-boot.img
|
||||
else
|
||||
install -D -m 0644 u-boot.img %{buildroot}%{uboot_dir}/u-boot.img
|
||||
fi
|
||||
%if "%{name}" == "u-boot-qemu-ppce500"
|
||||
mv %{buildroot}%{uboot_dir}/u-boot.img %{buildroot}%{uboot_dir}/u-boot.e500
|
||||
%endif
|
||||
%endif
|
||||
%endif
|
||||
%if %x_loader == 1
|
||||
install -D -m 0755 MLO %{buildroot}/boot/MLO
|
||||
install -D -m 0644 MLO %{buildroot}%{uboot_dir}/MLO
|
||||
%endif
|
||||
%if %origen_spl == 1
|
||||
install -D -m 0755 spl/origen-spl.bin %{buildroot}/boot/origen-spl.bin
|
||||
install -D -m 0644 spl/origen-spl.bin %{buildroot}%{uboot_dir}/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
|
||||
install -D -m 0644 spl/arndale-spl.bin %{buildroot}%{uboot_dir}/arndale-spl.bin
|
||||
install -D -m 0644 %{SOURCE2} %{buildroot}%{uboot_dir}/arndale-bl1.img
|
||||
%endif
|
||||
%if %mvebu_spl == 1
|
||||
install -D -m 0755 u-boot-spl.kwb %{buildroot}%{uboot_dir}/u-boot-spl.kwb
|
||||
install -D -m 0644 u-boot-spl.kwb %{buildroot}%{uboot_dir}/u-boot-spl.kwb
|
||||
%endif
|
||||
%if %rockchip_spl == 1
|
||||
install -D -m 0644 spl/u-boot-spl.bin %{buildroot}%{uboot_dir}/u-boot-spl.bin
|
||||
@ -167,20 +177,14 @@ for t in ; do
|
||||
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
|
||||
install -D -m 0644 spl/sunxi-spl.bin %{buildroot}%{uboot_dir}/sunxi-spl.bin
|
||||
install -D -m 0644 u-boot-sunxi-with-spl.bin %{buildroot}%{uboot_dir}/u-boot-sunxi-with-spl.bin
|
||||
%endif
|
||||
%if %imx6_spl == 1
|
||||
install -D -m 0755 SPL %{buildroot}/boot/imx6-spl.bin
|
||||
install -D -m 0644 SPL %{buildroot}%{uboot_dir}/imx6-spl.bin
|
||||
%endif
|
||||
%if %socfpga_spl == 1
|
||||
install -D -m 0755 u-boot-with-spl.sfp %{buildroot}/boot/u-boot-with-spl.sfp
|
||||
install -D -m 0644 u-boot-with-spl.sfp %{buildroot}%{uboot_dir}/u-boot-with-spl.sfp
|
||||
%endif
|
||||
|
||||
%if 0%{?is_rpi}
|
||||
|
@ -1,3 +1,29 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 16 18:53:36 UTC 2017 - xxxxxmichl@googlemail.com
|
||||
|
||||
- Added Banana Pi M2+ support
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Oct 8 13:17:01 UTC 2017 - afaerber@suse.de
|
||||
|
||||
- Add firefly-rk3399 and geekbox
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Oct 7 00:52:52 UTC 2017 - afaerber@suse.de
|
||||
|
||||
- Drop obsolete CuBox-i i.MX6 SPL packaging, too
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Oct 6 23:26:14 UTC 2017 - afaerber@suse.de
|
||||
|
||||
- Update packaging for Jetson TX1
|
||||
- Cleanups
|
||||
* Drop executable bit from SPL
|
||||
* Consistently use %uboot_dir
|
||||
* u-boot[-tegra]-dtb.bin is obsolete
|
||||
* Drop obsolete UDOO-specific i.MX6 SPL packaging
|
||||
- Package sunxi64 SPL for Pine64
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 2 13:33:40 UTC 2017 - guillaume@opensuse.org
|
||||
|
||||
|
@ -23,9 +23,7 @@
|
||||
%define rockchip_spl 0
|
||||
%define sunxi_spl 0
|
||||
%define arndale_spl 0
|
||||
%define cuboxi_spl 0
|
||||
%define origen_spl 0
|
||||
%define udoo_spl 0
|
||||
%define imx6_spl 0
|
||||
%define socfpga_spl 0
|
||||
|
||||
@ -53,6 +51,9 @@ Patch0002: 0002-Revert-Revert-omap3-Use-raw-SPL-by-.patch
|
||||
Patch0003: 0003-Revert-rockchip-mkimage-remove-plac.patch
|
||||
Patch0004: 0004-Fix-boot-on-Beagleboard-xM-by-disab.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
%if 0
|
||||
BuildRequires: arm-trusted-firmware-pine64
|
||||
%endif
|
||||
BuildRequires: bc
|
||||
# Arndale board needs DTC >= 1.4
|
||||
BuildRequires: dtc >= 1.4.0
|
||||
@ -100,11 +101,21 @@ This package contains documentation for U-Boot firmware.
|
||||
|
||||
%build
|
||||
export SOURCE_DATE_EPOCH=$(date -d "$(head -n 2 %{_sourcedir}/%{name}.changes | tail -n 1 | cut -d- -f1 )" +%s)
|
||||
%if "%{name}" == "u-boot-pine64plus"
|
||||
export BL31=/boot/bl31.bin
|
||||
%endif
|
||||
|
||||
make %{?_smp_mflags} CROSS_COMPILE= HOSTCFLAGS="$RPM_OPT_FLAGS" Merrii_A80_Optimus_defconfig
|
||||
echo "Attempting to enable fdt apply command (.dtbo) support."
|
||||
echo "CONFIG_OF_LIBFDT_OVERLAY=y" >> .config
|
||||
make %{?_smp_mflags} CROSS_COMPILE= HOSTCFLAGS="$RPM_OPT_FLAGS" USE_PRIVATE_LIBGG=yes
|
||||
|
||||
%ifarch aarch64
|
||||
%if %sunxi_spl == 1
|
||||
cat spl/sunxi-spl.bin u-boot.itb > u-boot-sunxi-with-spl.bin
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%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)
|
||||
@ -131,34 +142,33 @@ export NO_DEBUGINFO_STRIP_DEBUG=true
|
||||
%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
|
||||
install -D -m 0644 $f %{buildroot}%{uboot_dir}/$f
|
||||
done
|
||||
%else
|
||||
%if "%{name}" == "u-boot-p2371-2180"
|
||||
# Jetson TX1 Driver Pack flash.sh needs several intermediate files, under their original name.
|
||||
for f in u-boot u-boot.bin u-boot.dtb u-boot-dtb.bin; do
|
||||
install -D -m 0644 $f %{buildroot}%{uboot_dir}/$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
|
||||
%endif
|
||||
%if %x_loader == 1
|
||||
install -D -m 0755 MLO %{buildroot}/boot/MLO
|
||||
install -D -m 0644 MLO %{buildroot}%{uboot_dir}/MLO
|
||||
%endif
|
||||
%if %origen_spl == 1
|
||||
install -D -m 0755 spl/origen-spl.bin %{buildroot}/boot/origen-spl.bin
|
||||
install -D -m 0644 spl/origen-spl.bin %{buildroot}%{uboot_dir}/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
|
||||
install -D -m 0644 spl/arndale-spl.bin %{buildroot}%{uboot_dir}/arndale-spl.bin
|
||||
install -D -m 0644 %{SOURCE2} %{buildroot}%{uboot_dir}/arndale-bl1.img
|
||||
%endif
|
||||
%if %mvebu_spl == 1
|
||||
install -D -m 0755 u-boot-spl.kwb %{buildroot}%{uboot_dir}/u-boot-spl.kwb
|
||||
install -D -m 0644 u-boot-spl.kwb %{buildroot}%{uboot_dir}/u-boot-spl.kwb
|
||||
%endif
|
||||
%if %rockchip_spl == 1
|
||||
install -D -m 0644 spl/u-boot-spl.bin %{buildroot}%{uboot_dir}/u-boot-spl.bin
|
||||
@ -167,20 +177,14 @@ for t in ; do
|
||||
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
|
||||
install -D -m 0644 spl/sunxi-spl.bin %{buildroot}%{uboot_dir}/sunxi-spl.bin
|
||||
install -D -m 0644 u-boot-sunxi-with-spl.bin %{buildroot}%{uboot_dir}/u-boot-sunxi-with-spl.bin
|
||||
%endif
|
||||
%if %imx6_spl == 1
|
||||
install -D -m 0755 SPL %{buildroot}/boot/imx6-spl.bin
|
||||
install -D -m 0644 SPL %{buildroot}%{uboot_dir}/imx6-spl.bin
|
||||
%endif
|
||||
%if %socfpga_spl == 1
|
||||
install -D -m 0755 u-boot-with-spl.sfp %{buildroot}/boot/u-boot-with-spl.sfp
|
||||
install -D -m 0644 u-boot-with-spl.sfp %{buildroot}%{uboot_dir}/u-boot-with-spl.sfp
|
||||
%endif
|
||||
|
||||
%if 0%{?is_rpi}
|
||||
|
@ -1,3 +1,29 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 16 18:53:36 UTC 2017 - xxxxxmichl@googlemail.com
|
||||
|
||||
- Added Banana Pi M2+ support
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Oct 8 13:17:01 UTC 2017 - afaerber@suse.de
|
||||
|
||||
- Add firefly-rk3399 and geekbox
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Oct 7 00:52:52 UTC 2017 - afaerber@suse.de
|
||||
|
||||
- Drop obsolete CuBox-i i.MX6 SPL packaging, too
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Oct 6 23:26:14 UTC 2017 - afaerber@suse.de
|
||||
|
||||
- Update packaging for Jetson TX1
|
||||
- Cleanups
|
||||
* Drop executable bit from SPL
|
||||
* Consistently use %uboot_dir
|
||||
* u-boot[-tegra]-dtb.bin is obsolete
|
||||
* Drop obsolete UDOO-specific i.MX6 SPL packaging
|
||||
- Package sunxi64 SPL for Pine64
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 2 13:33:40 UTC 2017 - guillaume@opensuse.org
|
||||
|
||||
|
@ -23,9 +23,7 @@
|
||||
%define rockchip_spl 0
|
||||
%define sunxi_spl 0
|
||||
%define arndale_spl 0
|
||||
%define cuboxi_spl 0
|
||||
%define origen_spl 0
|
||||
%define udoo_spl 0
|
||||
%define imx6_spl 0
|
||||
%define socfpga_spl 0
|
||||
|
||||
@ -53,6 +51,9 @@ Patch0002: 0002-Revert-Revert-omap3-Use-raw-SPL-by-.patch
|
||||
Patch0003: 0003-Revert-rockchip-mkimage-remove-plac.patch
|
||||
Patch0004: 0004-Fix-boot-on-Beagleboard-xM-by-disab.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
%if 0
|
||||
BuildRequires: arm-trusted-firmware-pine64
|
||||
%endif
|
||||
BuildRequires: bc
|
||||
# Arndale board needs DTC >= 1.4
|
||||
BuildRequires: dtc >= 1.4.0
|
||||
@ -100,11 +101,21 @@ This package contains documentation for U-Boot firmware.
|
||||
|
||||
%build
|
||||
export SOURCE_DATE_EPOCH=$(date -d "$(head -n 2 %{_sourcedir}/%{name}.changes | tail -n 1 | cut -d- -f1 )" +%s)
|
||||
%if "%{name}" == "u-boot-pine64plus"
|
||||
export BL31=/boot/bl31.bin
|
||||
%endif
|
||||
|
||||
make %{?_smp_mflags} CROSS_COMPILE= HOSTCFLAGS="$RPM_OPT_FLAGS" mvebu_db-88f3720_defconfig
|
||||
echo "Attempting to enable fdt apply command (.dtbo) support."
|
||||
echo "CONFIG_OF_LIBFDT_OVERLAY=y" >> .config
|
||||
make %{?_smp_mflags} CROSS_COMPILE= HOSTCFLAGS="$RPM_OPT_FLAGS" USE_PRIVATE_LIBGG=yes
|
||||
|
||||
%ifarch aarch64
|
||||
%if %sunxi_spl == 1
|
||||
cat spl/sunxi-spl.bin u-boot.itb > u-boot-sunxi-with-spl.bin
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%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)
|
||||
@ -131,34 +142,33 @@ export NO_DEBUGINFO_STRIP_DEBUG=true
|
||||
%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
|
||||
install -D -m 0644 $f %{buildroot}%{uboot_dir}/$f
|
||||
done
|
||||
%else
|
||||
%if "%{name}" == "u-boot-p2371-2180"
|
||||
# Jetson TX1 Driver Pack flash.sh needs several intermediate files, under their original name.
|
||||
for f in u-boot u-boot.bin u-boot.dtb u-boot-dtb.bin; do
|
||||
install -D -m 0644 $f %{buildroot}%{uboot_dir}/$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
|
||||
%endif
|
||||
%if %x_loader == 1
|
||||
install -D -m 0755 MLO %{buildroot}/boot/MLO
|
||||
install -D -m 0644 MLO %{buildroot}%{uboot_dir}/MLO
|
||||
%endif
|
||||
%if %origen_spl == 1
|
||||
install -D -m 0755 spl/origen-spl.bin %{buildroot}/boot/origen-spl.bin
|
||||
install -D -m 0644 spl/origen-spl.bin %{buildroot}%{uboot_dir}/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
|
||||
install -D -m 0644 spl/arndale-spl.bin %{buildroot}%{uboot_dir}/arndale-spl.bin
|
||||
install -D -m 0644 %{SOURCE2} %{buildroot}%{uboot_dir}/arndale-bl1.img
|
||||
%endif
|
||||
%if %mvebu_spl == 1
|
||||
install -D -m 0755 u-boot-spl.kwb %{buildroot}%{uboot_dir}/u-boot-spl.kwb
|
||||
install -D -m 0644 u-boot-spl.kwb %{buildroot}%{uboot_dir}/u-boot-spl.kwb
|
||||
%endif
|
||||
%if %rockchip_spl == 1
|
||||
install -D -m 0644 spl/u-boot-spl.bin %{buildroot}%{uboot_dir}/u-boot-spl.bin
|
||||
@ -167,20 +177,14 @@ for t in ; do
|
||||
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
|
||||
install -D -m 0644 spl/sunxi-spl.bin %{buildroot}%{uboot_dir}/sunxi-spl.bin
|
||||
install -D -m 0644 u-boot-sunxi-with-spl.bin %{buildroot}%{uboot_dir}/u-boot-sunxi-with-spl.bin
|
||||
%endif
|
||||
%if %imx6_spl == 1
|
||||
install -D -m 0755 SPL %{buildroot}/boot/imx6-spl.bin
|
||||
install -D -m 0644 SPL %{buildroot}%{uboot_dir}/imx6-spl.bin
|
||||
%endif
|
||||
%if %socfpga_spl == 1
|
||||
install -D -m 0755 u-boot-with-spl.sfp %{buildroot}/boot/u-boot-with-spl.sfp
|
||||
install -D -m 0644 u-boot-with-spl.sfp %{buildroot}%{uboot_dir}/u-boot-with-spl.sfp
|
||||
%endif
|
||||
|
||||
%if 0%{?is_rpi}
|
||||
|
@ -1,3 +1,29 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 16 18:53:36 UTC 2017 - xxxxxmichl@googlemail.com
|
||||
|
||||
- Added Banana Pi M2+ support
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Oct 8 13:17:01 UTC 2017 - afaerber@suse.de
|
||||
|
||||
- Add firefly-rk3399 and geekbox
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Oct 7 00:52:52 UTC 2017 - afaerber@suse.de
|
||||
|
||||
- Drop obsolete CuBox-i i.MX6 SPL packaging, too
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Oct 6 23:26:14 UTC 2017 - afaerber@suse.de
|
||||
|
||||
- Update packaging for Jetson TX1
|
||||
- Cleanups
|
||||
* Drop executable bit from SPL
|
||||
* Consistently use %uboot_dir
|
||||
* u-boot[-tegra]-dtb.bin is obsolete
|
||||
* Drop obsolete UDOO-specific i.MX6 SPL packaging
|
||||
- Package sunxi64 SPL for Pine64
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 2 13:33:40 UTC 2017 - guillaume@opensuse.org
|
||||
|
||||
|
@ -23,9 +23,7 @@
|
||||
%define rockchip_spl 0
|
||||
%define sunxi_spl 0
|
||||
%define arndale_spl 0
|
||||
%define cuboxi_spl 0
|
||||
%define origen_spl 0
|
||||
%define udoo_spl 0
|
||||
%define imx6_spl 0
|
||||
%define socfpga_spl 0
|
||||
|
||||
@ -53,6 +51,9 @@ Patch0002: 0002-Revert-Revert-omap3-Use-raw-SPL-by-.patch
|
||||
Patch0003: 0003-Revert-rockchip-mkimage-remove-plac.patch
|
||||
Patch0004: 0004-Fix-boot-on-Beagleboard-xM-by-disab.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
%if 0
|
||||
BuildRequires: arm-trusted-firmware-pine64
|
||||
%endif
|
||||
BuildRequires: bc
|
||||
# Arndale board needs DTC >= 1.4
|
||||
BuildRequires: dtc >= 1.4.0
|
||||
@ -100,11 +101,21 @@ This package contains documentation for U-Boot firmware.
|
||||
|
||||
%build
|
||||
export SOURCE_DATE_EPOCH=$(date -d "$(head -n 2 %{_sourcedir}/%{name}.changes | tail -n 1 | cut -d- -f1 )" +%s)
|
||||
%if "%{name}" == "u-boot-pine64plus"
|
||||
export BL31=/boot/bl31.bin
|
||||
%endif
|
||||
|
||||
make %{?_smp_mflags} CROSS_COMPILE= HOSTCFLAGS="$RPM_OPT_FLAGS" mvebu_db_armada8k_defconfig
|
||||
echo "Attempting to enable fdt apply command (.dtbo) support."
|
||||
echo "CONFIG_OF_LIBFDT_OVERLAY=y" >> .config
|
||||
make %{?_smp_mflags} CROSS_COMPILE= HOSTCFLAGS="$RPM_OPT_FLAGS" USE_PRIVATE_LIBGG=yes
|
||||
|
||||
%ifarch aarch64
|
||||
%if %sunxi_spl == 1
|
||||
cat spl/sunxi-spl.bin u-boot.itb > u-boot-sunxi-with-spl.bin
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%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)
|
||||
@ -131,34 +142,33 @@ export NO_DEBUGINFO_STRIP_DEBUG=true
|
||||
%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
|
||||
install -D -m 0644 $f %{buildroot}%{uboot_dir}/$f
|
||||
done
|
||||
%else
|
||||
%if "%{name}" == "u-boot-p2371-2180"
|
||||
# Jetson TX1 Driver Pack flash.sh needs several intermediate files, under their original name.
|
||||
for f in u-boot u-boot.bin u-boot.dtb u-boot-dtb.bin; do
|
||||
install -D -m 0644 $f %{buildroot}%{uboot_dir}/$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
|
||||
%endif
|
||||
%if %x_loader == 1
|
||||
install -D -m 0755 MLO %{buildroot}/boot/MLO
|
||||
install -D -m 0644 MLO %{buildroot}%{uboot_dir}/MLO
|
||||
%endif
|
||||
%if %origen_spl == 1
|
||||
install -D -m 0755 spl/origen-spl.bin %{buildroot}/boot/origen-spl.bin
|
||||
install -D -m 0644 spl/origen-spl.bin %{buildroot}%{uboot_dir}/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
|
||||
install -D -m 0644 spl/arndale-spl.bin %{buildroot}%{uboot_dir}/arndale-spl.bin
|
||||
install -D -m 0644 %{SOURCE2} %{buildroot}%{uboot_dir}/arndale-bl1.img
|
||||
%endif
|
||||
%if %mvebu_spl == 1
|
||||
install -D -m 0755 u-boot-spl.kwb %{buildroot}%{uboot_dir}/u-boot-spl.kwb
|
||||
install -D -m 0644 u-boot-spl.kwb %{buildroot}%{uboot_dir}/u-boot-spl.kwb
|
||||
%endif
|
||||
%if %rockchip_spl == 1
|
||||
install -D -m 0644 spl/u-boot-spl.bin %{buildroot}%{uboot_dir}/u-boot-spl.bin
|
||||
@ -167,20 +177,14 @@ for t in ; do
|
||||
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
|
||||
install -D -m 0644 spl/sunxi-spl.bin %{buildroot}%{uboot_dir}/sunxi-spl.bin
|
||||
install -D -m 0644 u-boot-sunxi-with-spl.bin %{buildroot}%{uboot_dir}/u-boot-sunxi-with-spl.bin
|
||||
%endif
|
||||
%if %imx6_spl == 1
|
||||
install -D -m 0755 SPL %{buildroot}/boot/imx6-spl.bin
|
||||
install -D -m 0644 SPL %{buildroot}%{uboot_dir}/imx6-spl.bin
|
||||
%endif
|
||||
%if %socfpga_spl == 1
|
||||
install -D -m 0755 u-boot-with-spl.sfp %{buildroot}/boot/u-boot-with-spl.sfp
|
||||
install -D -m 0644 u-boot-with-spl.sfp %{buildroot}%{uboot_dir}/u-boot-with-spl.sfp
|
||||
%endif
|
||||
|
||||
%if 0%{?is_rpi}
|
||||
|
@ -1,3 +1,29 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 16 18:53:36 UTC 2017 - xxxxxmichl@googlemail.com
|
||||
|
||||
- Added Banana Pi M2+ support
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Oct 8 13:17:01 UTC 2017 - afaerber@suse.de
|
||||
|
||||
- Add firefly-rk3399 and geekbox
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Oct 7 00:52:52 UTC 2017 - afaerber@suse.de
|
||||
|
||||
- Drop obsolete CuBox-i i.MX6 SPL packaging, too
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Oct 6 23:26:14 UTC 2017 - afaerber@suse.de
|
||||
|
||||
- Update packaging for Jetson TX1
|
||||
- Cleanups
|
||||
* Drop executable bit from SPL
|
||||
* Consistently use %uboot_dir
|
||||
* u-boot[-tegra]-dtb.bin is obsolete
|
||||
* Drop obsolete UDOO-specific i.MX6 SPL packaging
|
||||
- Package sunxi64 SPL for Pine64
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 2 13:33:40 UTC 2017 - guillaume@opensuse.org
|
||||
|
||||
|
@ -23,9 +23,7 @@
|
||||
%define rockchip_spl 0
|
||||
%define sunxi_spl 0
|
||||
%define arndale_spl 0
|
||||
%define cuboxi_spl 0
|
||||
%define origen_spl 0
|
||||
%define udoo_spl 0
|
||||
%define imx6_spl 0
|
||||
%define socfpga_spl 0
|
||||
|
||||
@ -53,6 +51,9 @@ Patch0002: 0002-Revert-Revert-omap3-Use-raw-SPL-by-.patch
|
||||
Patch0003: 0003-Revert-rockchip-mkimage-remove-plac.patch
|
||||
Patch0004: 0004-Fix-boot-on-Beagleboard-xM-by-disab.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
%if 0
|
||||
BuildRequires: arm-trusted-firmware-pine64
|
||||
%endif
|
||||
BuildRequires: bc
|
||||
# Arndale board needs DTC >= 1.4
|
||||
BuildRequires: dtc >= 1.4.0
|
||||
@ -100,11 +101,21 @@ This package contains documentation for U-Boot firmware.
|
||||
|
||||
%build
|
||||
export SOURCE_DATE_EPOCH=$(date -d "$(head -n 2 %{_sourcedir}/%{name}.changes | tail -n 1 | cut -d- -f1 )" +%s)
|
||||
%if "%{name}" == "u-boot-pine64plus"
|
||||
export BL31=/boot/bl31.bin
|
||||
%endif
|
||||
|
||||
make %{?_smp_mflags} CROSS_COMPILE= HOSTCFLAGS="$RPM_OPT_FLAGS" mvebu_espressobin-88f3720_defconfig
|
||||
echo "Attempting to enable fdt apply command (.dtbo) support."
|
||||
echo "CONFIG_OF_LIBFDT_OVERLAY=y" >> .config
|
||||
make %{?_smp_mflags} CROSS_COMPILE= HOSTCFLAGS="$RPM_OPT_FLAGS" USE_PRIVATE_LIBGG=yes
|
||||
|
||||
%ifarch aarch64
|
||||
%if %sunxi_spl == 1
|
||||
cat spl/sunxi-spl.bin u-boot.itb > u-boot-sunxi-with-spl.bin
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%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)
|
||||
@ -131,34 +142,33 @@ export NO_DEBUGINFO_STRIP_DEBUG=true
|
||||
%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
|
||||
install -D -m 0644 $f %{buildroot}%{uboot_dir}/$f
|
||||
done
|
||||
%else
|
||||
%if "%{name}" == "u-boot-p2371-2180"
|
||||
# Jetson TX1 Driver Pack flash.sh needs several intermediate files, under their original name.
|
||||
for f in u-boot u-boot.bin u-boot.dtb u-boot-dtb.bin; do
|
||||
install -D -m 0644 $f %{buildroot}%{uboot_dir}/$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
|
||||
%endif
|
||||
%if %x_loader == 1
|
||||
install -D -m 0755 MLO %{buildroot}/boot/MLO
|
||||
install -D -m 0644 MLO %{buildroot}%{uboot_dir}/MLO
|
||||
%endif
|
||||
%if %origen_spl == 1
|
||||
install -D -m 0755 spl/origen-spl.bin %{buildroot}/boot/origen-spl.bin
|
||||
install -D -m 0644 spl/origen-spl.bin %{buildroot}%{uboot_dir}/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
|
||||
install -D -m 0644 spl/arndale-spl.bin %{buildroot}%{uboot_dir}/arndale-spl.bin
|
||||
install -D -m 0644 %{SOURCE2} %{buildroot}%{uboot_dir}/arndale-bl1.img
|
||||
%endif
|
||||
%if %mvebu_spl == 1
|
||||
install -D -m 0755 u-boot-spl.kwb %{buildroot}%{uboot_dir}/u-boot-spl.kwb
|
||||
install -D -m 0644 u-boot-spl.kwb %{buildroot}%{uboot_dir}/u-boot-spl.kwb
|
||||
%endif
|
||||
%if %rockchip_spl == 1
|
||||
install -D -m 0644 spl/u-boot-spl.bin %{buildroot}%{uboot_dir}/u-boot-spl.bin
|
||||
@ -167,20 +177,14 @@ for t in ; do
|
||||
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
|
||||
install -D -m 0644 spl/sunxi-spl.bin %{buildroot}%{uboot_dir}/sunxi-spl.bin
|
||||
install -D -m 0644 u-boot-sunxi-with-spl.bin %{buildroot}%{uboot_dir}/u-boot-sunxi-with-spl.bin
|
||||
%endif
|
||||
%if %imx6_spl == 1
|
||||
install -D -m 0755 SPL %{buildroot}/boot/imx6-spl.bin
|
||||
install -D -m 0644 SPL %{buildroot}%{uboot_dir}/imx6-spl.bin
|
||||
%endif
|
||||
%if %socfpga_spl == 1
|
||||
install -D -m 0755 u-boot-with-spl.sfp %{buildroot}/boot/u-boot-with-spl.sfp
|
||||
install -D -m 0644 u-boot-with-spl.sfp %{buildroot}%{uboot_dir}/u-boot-with-spl.sfp
|
||||
%endif
|
||||
|
||||
%if 0%{?is_rpi}
|
||||
|
@ -1,3 +1,29 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 16 18:53:36 UTC 2017 - xxxxxmichl@googlemail.com
|
||||
|
||||
- Added Banana Pi M2+ support
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Oct 8 13:17:01 UTC 2017 - afaerber@suse.de
|
||||
|
||||
- Add firefly-rk3399 and geekbox
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Oct 7 00:52:52 UTC 2017 - afaerber@suse.de
|
||||
|
||||
- Drop obsolete CuBox-i i.MX6 SPL packaging, too
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Oct 6 23:26:14 UTC 2017 - afaerber@suse.de
|
||||
|
||||
- Update packaging for Jetson TX1
|
||||
- Cleanups
|
||||
* Drop executable bit from SPL
|
||||
* Consistently use %uboot_dir
|
||||
* u-boot[-tegra]-dtb.bin is obsolete
|
||||
* Drop obsolete UDOO-specific i.MX6 SPL packaging
|
||||
- Package sunxi64 SPL for Pine64
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 2 13:33:40 UTC 2017 - guillaume@opensuse.org
|
||||
|
||||
|
@ -23,9 +23,7 @@
|
||||
%define rockchip_spl 0
|
||||
%define sunxi_spl 0
|
||||
%define arndale_spl 0
|
||||
%define cuboxi_spl 0
|
||||
%define origen_spl 0
|
||||
%define udoo_spl 0
|
||||
%define imx6_spl 0
|
||||
%define socfpga_spl 0
|
||||
|
||||
@ -53,6 +51,9 @@ Patch0002: 0002-Revert-Revert-omap3-Use-raw-SPL-by-.patch
|
||||
Patch0003: 0003-Revert-rockchip-mkimage-remove-plac.patch
|
||||
Patch0004: 0004-Fix-boot-on-Beagleboard-xM-by-disab.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
%if 0
|
||||
BuildRequires: arm-trusted-firmware-pine64
|
||||
%endif
|
||||
BuildRequires: bc
|
||||
# Arndale board needs DTC >= 1.4
|
||||
BuildRequires: dtc >= 1.4.0
|
||||
@ -100,11 +101,21 @@ This package contains documentation for U-Boot firmware.
|
||||
|
||||
%build
|
||||
export SOURCE_DATE_EPOCH=$(date -d "$(head -n 2 %{_sourcedir}/%{name}.changes | tail -n 1 | cut -d- -f1 )" +%s)
|
||||
%if "%{name}" == "u-boot-pine64plus"
|
||||
export BL31=/boot/bl31.bin
|
||||
%endif
|
||||
|
||||
make %{?_smp_mflags} CROSS_COMPILE= HOSTCFLAGS="$RPM_OPT_FLAGS" mvebu_mcbin-88f8040_defconfig
|
||||
echo "Attempting to enable fdt apply command (.dtbo) support."
|
||||
echo "CONFIG_OF_LIBFDT_OVERLAY=y" >> .config
|
||||
make %{?_smp_mflags} CROSS_COMPILE= HOSTCFLAGS="$RPM_OPT_FLAGS" USE_PRIVATE_LIBGG=yes
|
||||
|
||||
%ifarch aarch64
|
||||
%if %sunxi_spl == 1
|
||||
cat spl/sunxi-spl.bin u-boot.itb > u-boot-sunxi-with-spl.bin
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%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)
|
||||
@ -131,34 +142,33 @@ export NO_DEBUGINFO_STRIP_DEBUG=true
|
||||
%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
|
||||
install -D -m 0644 $f %{buildroot}%{uboot_dir}/$f
|
||||
done
|
||||
%else
|
||||
%if "%{name}" == "u-boot-p2371-2180"
|
||||
# Jetson TX1 Driver Pack flash.sh needs several intermediate files, under their original name.
|
||||
for f in u-boot u-boot.bin u-boot.dtb u-boot-dtb.bin; do
|
||||
install -D -m 0644 $f %{buildroot}%{uboot_dir}/$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
|
||||
%endif
|
||||
%if %x_loader == 1
|
||||
install -D -m 0755 MLO %{buildroot}/boot/MLO
|
||||
install -D -m 0644 MLO %{buildroot}%{uboot_dir}/MLO
|
||||
%endif
|
||||
%if %origen_spl == 1
|
||||
install -D -m 0755 spl/origen-spl.bin %{buildroot}/boot/origen-spl.bin
|
||||
install -D -m 0644 spl/origen-spl.bin %{buildroot}%{uboot_dir}/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
|
||||
install -D -m 0644 spl/arndale-spl.bin %{buildroot}%{uboot_dir}/arndale-spl.bin
|
||||
install -D -m 0644 %{SOURCE2} %{buildroot}%{uboot_dir}/arndale-bl1.img
|
||||
%endif
|
||||
%if %mvebu_spl == 1
|
||||
install -D -m 0755 u-boot-spl.kwb %{buildroot}%{uboot_dir}/u-boot-spl.kwb
|
||||
install -D -m 0644 u-boot-spl.kwb %{buildroot}%{uboot_dir}/u-boot-spl.kwb
|
||||
%endif
|
||||
%if %rockchip_spl == 1
|
||||
install -D -m 0644 spl/u-boot-spl.bin %{buildroot}%{uboot_dir}/u-boot-spl.bin
|
||||
@ -167,20 +177,14 @@ for t in ; do
|
||||
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
|
||||
install -D -m 0644 spl/sunxi-spl.bin %{buildroot}%{uboot_dir}/sunxi-spl.bin
|
||||
install -D -m 0644 u-boot-sunxi-with-spl.bin %{buildroot}%{uboot_dir}/u-boot-sunxi-with-spl.bin
|
||||
%endif
|
||||
%if %imx6_spl == 1
|
||||
install -D -m 0755 SPL %{buildroot}/boot/imx6-spl.bin
|
||||
install -D -m 0644 SPL %{buildroot}%{uboot_dir}/imx6-spl.bin
|
||||
%endif
|
||||
%if %socfpga_spl == 1
|
||||
install -D -m 0755 u-boot-with-spl.sfp %{buildroot}/boot/u-boot-with-spl.sfp
|
||||
install -D -m 0644 u-boot-with-spl.sfp %{buildroot}%{uboot_dir}/u-boot-with-spl.sfp
|
||||
%endif
|
||||
|
||||
%if 0%{?is_rpi}
|
||||
|
@ -1,3 +1,29 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 16 18:53:36 UTC 2017 - xxxxxmichl@googlemail.com
|
||||
|
||||
- Added Banana Pi M2+ support
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Oct 8 13:17:01 UTC 2017 - afaerber@suse.de
|
||||
|
||||
- Add firefly-rk3399 and geekbox
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Oct 7 00:52:52 UTC 2017 - afaerber@suse.de
|
||||
|
||||
- Drop obsolete CuBox-i i.MX6 SPL packaging, too
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Oct 6 23:26:14 UTC 2017 - afaerber@suse.de
|
||||
|
||||
- Update packaging for Jetson TX1
|
||||
- Cleanups
|
||||
* Drop executable bit from SPL
|
||||
* Consistently use %uboot_dir
|
||||
* u-boot[-tegra]-dtb.bin is obsolete
|
||||
* Drop obsolete UDOO-specific i.MX6 SPL packaging
|
||||
- Package sunxi64 SPL for Pine64
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 2 13:33:40 UTC 2017 - guillaume@opensuse.org
|
||||
|
||||
|
@ -23,9 +23,7 @@
|
||||
%define rockchip_spl 0
|
||||
%define sunxi_spl 0
|
||||
%define arndale_spl 0
|
||||
%define cuboxi_spl 0
|
||||
%define origen_spl 0
|
||||
%define udoo_spl 0
|
||||
%define imx6_spl 0
|
||||
%define socfpga_spl 0
|
||||
|
||||
@ -53,6 +51,9 @@ Patch0002: 0002-Revert-Revert-omap3-Use-raw-SPL-by-.patch
|
||||
Patch0003: 0003-Revert-rockchip-mkimage-remove-plac.patch
|
||||
Patch0004: 0004-Fix-boot-on-Beagleboard-xM-by-disab.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
%if 0
|
||||
BuildRequires: arm-trusted-firmware-pine64
|
||||
%endif
|
||||
BuildRequires: bc
|
||||
# Arndale board needs DTC >= 1.4
|
||||
BuildRequires: dtc >= 1.4.0
|
||||
@ -100,11 +101,21 @@ This package contains documentation for U-Boot firmware.
|
||||
|
||||
%build
|
||||
export SOURCE_DATE_EPOCH=$(date -d "$(head -n 2 %{_sourcedir}/%{name}.changes | tail -n 1 | cut -d- -f1 )" +%s)
|
||||
%if "%{name}" == "u-boot-pine64plus"
|
||||
export BL31=/boot/bl31.bin
|
||||
%endif
|
||||
|
||||
make %{?_smp_mflags} CROSS_COMPILE= HOSTCFLAGS="$RPM_OPT_FLAGS" mx53loco_defconfig
|
||||
echo "Attempting to enable fdt apply command (.dtbo) support."
|
||||
echo "CONFIG_OF_LIBFDT_OVERLAY=y" >> .config
|
||||
make %{?_smp_mflags} CROSS_COMPILE= HOSTCFLAGS="$RPM_OPT_FLAGS" USE_PRIVATE_LIBGG=yes
|
||||
|
||||
%ifarch aarch64
|
||||
%if %sunxi_spl == 1
|
||||
cat spl/sunxi-spl.bin u-boot.itb > u-boot-sunxi-with-spl.bin
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%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)
|
||||
@ -131,34 +142,33 @@ export NO_DEBUGINFO_STRIP_DEBUG=true
|
||||
%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
|
||||
install -D -m 0644 $f %{buildroot}%{uboot_dir}/$f
|
||||
done
|
||||
%else
|
||||
%if "%{name}" == "u-boot-p2371-2180"
|
||||
# Jetson TX1 Driver Pack flash.sh needs several intermediate files, under their original name.
|
||||
for f in u-boot u-boot.bin u-boot.dtb u-boot-dtb.bin; do
|
||||
install -D -m 0644 $f %{buildroot}%{uboot_dir}/$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.imx %{buildroot}%{uboot_dir}/u-boot.imx
|
||||
elif [ -f u-boot-dtb.imx ]; then
|
||||
install -D -m 0644 u-boot-dtb.imx %{buildroot}%{uboot_dir}/u-boot.imx
|
||||
else
|
||||
install -D -m 0644 u-boot.imx %{buildroot}%{uboot_dir}/u-boot.imx
|
||||
fi
|
||||
%if "%{name}" == "u-boot-qemu-ppce500"
|
||||
mv %{buildroot}%{uboot_dir}/u-boot.imx %{buildroot}%{uboot_dir}/u-boot.e500
|
||||
%endif
|
||||
%endif
|
||||
%endif
|
||||
%if %x_loader == 1
|
||||
install -D -m 0755 MLO %{buildroot}/boot/MLO
|
||||
install -D -m 0644 MLO %{buildroot}%{uboot_dir}/MLO
|
||||
%endif
|
||||
%if %origen_spl == 1
|
||||
install -D -m 0755 spl/origen-spl.bin %{buildroot}/boot/origen-spl.bin
|
||||
install -D -m 0644 spl/origen-spl.bin %{buildroot}%{uboot_dir}/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
|
||||
install -D -m 0644 spl/arndale-spl.bin %{buildroot}%{uboot_dir}/arndale-spl.bin
|
||||
install -D -m 0644 %{SOURCE2} %{buildroot}%{uboot_dir}/arndale-bl1.img
|
||||
%endif
|
||||
%if %mvebu_spl == 1
|
||||
install -D -m 0755 u-boot-spl.kwb %{buildroot}%{uboot_dir}/u-boot-spl.kwb
|
||||
install -D -m 0644 u-boot-spl.kwb %{buildroot}%{uboot_dir}/u-boot-spl.kwb
|
||||
%endif
|
||||
%if %rockchip_spl == 1
|
||||
install -D -m 0644 spl/u-boot-spl.bin %{buildroot}%{uboot_dir}/u-boot-spl.bin
|
||||
@ -167,20 +177,14 @@ for t in ; do
|
||||
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
|
||||
install -D -m 0644 spl/sunxi-spl.bin %{buildroot}%{uboot_dir}/sunxi-spl.bin
|
||||
install -D -m 0644 u-boot-sunxi-with-spl.bin %{buildroot}%{uboot_dir}/u-boot-sunxi-with-spl.bin
|
||||
%endif
|
||||
%if %imx6_spl == 1
|
||||
install -D -m 0755 SPL %{buildroot}/boot/imx6-spl.bin
|
||||
install -D -m 0644 SPL %{buildroot}%{uboot_dir}/imx6-spl.bin
|
||||
%endif
|
||||
%if %socfpga_spl == 1
|
||||
install -D -m 0755 u-boot-with-spl.sfp %{buildroot}/boot/u-boot-with-spl.sfp
|
||||
install -D -m 0644 u-boot-with-spl.sfp %{buildroot}%{uboot_dir}/u-boot-with-spl.sfp
|
||||
%endif
|
||||
|
||||
%if 0%{?is_rpi}
|
||||
|
@ -1,3 +1,29 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 16 18:53:36 UTC 2017 - xxxxxmichl@googlemail.com
|
||||
|
||||
- Added Banana Pi M2+ support
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Oct 8 13:17:01 UTC 2017 - afaerber@suse.de
|
||||
|
||||
- Add firefly-rk3399 and geekbox
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Oct 7 00:52:52 UTC 2017 - afaerber@suse.de
|
||||
|
||||
- Drop obsolete CuBox-i i.MX6 SPL packaging, too
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Oct 6 23:26:14 UTC 2017 - afaerber@suse.de
|
||||
|
||||
- Update packaging for Jetson TX1
|
||||
- Cleanups
|
||||
* Drop executable bit from SPL
|
||||
* Consistently use %uboot_dir
|
||||
* u-boot[-tegra]-dtb.bin is obsolete
|
||||
* Drop obsolete UDOO-specific i.MX6 SPL packaging
|
||||
- Package sunxi64 SPL for Pine64
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 2 13:33:40 UTC 2017 - guillaume@opensuse.org
|
||||
|
||||
|
@ -23,9 +23,7 @@
|
||||
%define rockchip_spl 0
|
||||
%define sunxi_spl 0
|
||||
%define arndale_spl 0
|
||||
%define cuboxi_spl 1
|
||||
%define origen_spl 0
|
||||
%define udoo_spl 0
|
||||
%define imx6_spl 1
|
||||
%define socfpga_spl 0
|
||||
|
||||
@ -53,6 +51,9 @@ Patch0002: 0002-Revert-Revert-omap3-Use-raw-SPL-by-.patch
|
||||
Patch0003: 0003-Revert-rockchip-mkimage-remove-plac.patch
|
||||
Patch0004: 0004-Fix-boot-on-Beagleboard-xM-by-disab.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
%if 0
|
||||
BuildRequires: arm-trusted-firmware-pine64
|
||||
%endif
|
||||
BuildRequires: bc
|
||||
# Arndale board needs DTC >= 1.4
|
||||
BuildRequires: dtc >= 1.4.0
|
||||
@ -100,11 +101,21 @@ This package contains documentation for U-Boot firmware.
|
||||
|
||||
%build
|
||||
export SOURCE_DATE_EPOCH=$(date -d "$(head -n 2 %{_sourcedir}/%{name}.changes | tail -n 1 | cut -d- -f1 )" +%s)
|
||||
%if "%{name}" == "u-boot-pine64plus"
|
||||
export BL31=/boot/bl31.bin
|
||||
%endif
|
||||
|
||||
make %{?_smp_mflags} CROSS_COMPILE= HOSTCFLAGS="$RPM_OPT_FLAGS" mx6cuboxi_defconfig
|
||||
echo "Attempting to enable fdt apply command (.dtbo) support."
|
||||
echo "CONFIG_OF_LIBFDT_OVERLAY=y" >> .config
|
||||
make %{?_smp_mflags} CROSS_COMPILE= HOSTCFLAGS="$RPM_OPT_FLAGS" USE_PRIVATE_LIBGG=yes
|
||||
|
||||
%ifarch aarch64
|
||||
%if %sunxi_spl == 1
|
||||
cat spl/sunxi-spl.bin u-boot.itb > u-boot-sunxi-with-spl.bin
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%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)
|
||||
@ -131,34 +142,33 @@ export NO_DEBUGINFO_STRIP_DEBUG=true
|
||||
%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
|
||||
install -D -m 0644 $f %{buildroot}%{uboot_dir}/$f
|
||||
done
|
||||
%else
|
||||
%if "%{name}" == "u-boot-p2371-2180"
|
||||
# Jetson TX1 Driver Pack flash.sh needs several intermediate files, under their original name.
|
||||
for f in u-boot u-boot.bin u-boot.dtb u-boot-dtb.bin; do
|
||||
install -D -m 0644 $f %{buildroot}%{uboot_dir}/$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.img %{buildroot}%{uboot_dir}/u-boot.img
|
||||
elif [ -f u-boot-dtb.img ]; then
|
||||
install -D -m 0644 u-boot-dtb.img %{buildroot}%{uboot_dir}/u-boot.img
|
||||
else
|
||||
install -D -m 0644 u-boot.img %{buildroot}%{uboot_dir}/u-boot.img
|
||||
fi
|
||||
%if "%{name}" == "u-boot-qemu-ppce500"
|
||||
mv %{buildroot}%{uboot_dir}/u-boot.img %{buildroot}%{uboot_dir}/u-boot.e500
|
||||
%endif
|
||||
%endif
|
||||
%endif
|
||||
%if %x_loader == 1
|
||||
install -D -m 0755 MLO %{buildroot}/boot/MLO
|
||||
install -D -m 0644 MLO %{buildroot}%{uboot_dir}/MLO
|
||||
%endif
|
||||
%if %origen_spl == 1
|
||||
install -D -m 0755 spl/origen-spl.bin %{buildroot}/boot/origen-spl.bin
|
||||
install -D -m 0644 spl/origen-spl.bin %{buildroot}%{uboot_dir}/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
|
||||
install -D -m 0644 spl/arndale-spl.bin %{buildroot}%{uboot_dir}/arndale-spl.bin
|
||||
install -D -m 0644 %{SOURCE2} %{buildroot}%{uboot_dir}/arndale-bl1.img
|
||||
%endif
|
||||
%if %mvebu_spl == 1
|
||||
install -D -m 0755 u-boot-spl.kwb %{buildroot}%{uboot_dir}/u-boot-spl.kwb
|
||||
install -D -m 0644 u-boot-spl.kwb %{buildroot}%{uboot_dir}/u-boot-spl.kwb
|
||||
%endif
|
||||
%if %rockchip_spl == 1
|
||||
install -D -m 0644 spl/u-boot-spl.bin %{buildroot}%{uboot_dir}/u-boot-spl.bin
|
||||
@ -167,20 +177,14 @@ for t in ; do
|
||||
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
|
||||
install -D -m 0644 spl/sunxi-spl.bin %{buildroot}%{uboot_dir}/sunxi-spl.bin
|
||||
install -D -m 0644 u-boot-sunxi-with-spl.bin %{buildroot}%{uboot_dir}/u-boot-sunxi-with-spl.bin
|
||||
%endif
|
||||
%if %imx6_spl == 1
|
||||
install -D -m 0755 SPL %{buildroot}/boot/imx6-spl.bin
|
||||
install -D -m 0644 SPL %{buildroot}%{uboot_dir}/imx6-spl.bin
|
||||
%endif
|
||||
%if %socfpga_spl == 1
|
||||
install -D -m 0755 u-boot-with-spl.sfp %{buildroot}/boot/u-boot-with-spl.sfp
|
||||
install -D -m 0644 u-boot-with-spl.sfp %{buildroot}%{uboot_dir}/u-boot-with-spl.sfp
|
||||
%endif
|
||||
|
||||
%if 0%{?is_rpi}
|
||||
|
@ -1,3 +1,29 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 16 18:53:36 UTC 2017 - xxxxxmichl@googlemail.com
|
||||
|
||||
- Added Banana Pi M2+ support
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Oct 8 13:17:01 UTC 2017 - afaerber@suse.de
|
||||
|
||||
- Add firefly-rk3399 and geekbox
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Oct 7 00:52:52 UTC 2017 - afaerber@suse.de
|
||||
|
||||
- Drop obsolete CuBox-i i.MX6 SPL packaging, too
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Oct 6 23:26:14 UTC 2017 - afaerber@suse.de
|
||||
|
||||
- Update packaging for Jetson TX1
|
||||
- Cleanups
|
||||
* Drop executable bit from SPL
|
||||
* Consistently use %uboot_dir
|
||||
* u-boot[-tegra]-dtb.bin is obsolete
|
||||
* Drop obsolete UDOO-specific i.MX6 SPL packaging
|
||||
- Package sunxi64 SPL for Pine64
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 2 13:33:40 UTC 2017 - guillaume@opensuse.org
|
||||
|
||||
|
@ -23,9 +23,7 @@
|
||||
%define rockchip_spl 0
|
||||
%define sunxi_spl 0
|
||||
%define arndale_spl 0
|
||||
%define cuboxi_spl 0
|
||||
%define origen_spl 0
|
||||
%define udoo_spl 0
|
||||
%define imx6_spl 0
|
||||
%define socfpga_spl 0
|
||||
|
||||
@ -53,6 +51,9 @@ Patch0002: 0002-Revert-Revert-omap3-Use-raw-SPL-by-.patch
|
||||
Patch0003: 0003-Revert-rockchip-mkimage-remove-plac.patch
|
||||
Patch0004: 0004-Fix-boot-on-Beagleboard-xM-by-disab.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
%if 0
|
||||
BuildRequires: arm-trusted-firmware-pine64
|
||||
%endif
|
||||
BuildRequires: bc
|
||||
# Arndale board needs DTC >= 1.4
|
||||
BuildRequires: dtc >= 1.4.0
|
||||
@ -100,11 +101,21 @@ This package contains documentation for U-Boot firmware.
|
||||
|
||||
%build
|
||||
export SOURCE_DATE_EPOCH=$(date -d "$(head -n 2 %{_sourcedir}/%{name}.changes | tail -n 1 | cut -d- -f1 )" +%s)
|
||||
%if "%{name}" == "u-boot-pine64plus"
|
||||
export BL31=/boot/bl31.bin
|
||||
%endif
|
||||
|
||||
make %{?_smp_mflags} CROSS_COMPILE= HOSTCFLAGS="$RPM_OPT_FLAGS" mx6qsabrelite_defconfig
|
||||
echo "Attempting to enable fdt apply command (.dtbo) support."
|
||||
echo "CONFIG_OF_LIBFDT_OVERLAY=y" >> .config
|
||||
make %{?_smp_mflags} CROSS_COMPILE= HOSTCFLAGS="$RPM_OPT_FLAGS" USE_PRIVATE_LIBGG=yes
|
||||
|
||||
%ifarch aarch64
|
||||
%if %sunxi_spl == 1
|
||||
cat spl/sunxi-spl.bin u-boot.itb > u-boot-sunxi-with-spl.bin
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%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)
|
||||
@ -131,34 +142,33 @@ export NO_DEBUGINFO_STRIP_DEBUG=true
|
||||
%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
|
||||
install -D -m 0644 $f %{buildroot}%{uboot_dir}/$f
|
||||
done
|
||||
%else
|
||||
%if "%{name}" == "u-boot-p2371-2180"
|
||||
# Jetson TX1 Driver Pack flash.sh needs several intermediate files, under their original name.
|
||||
for f in u-boot u-boot.bin u-boot.dtb u-boot-dtb.bin; do
|
||||
install -D -m 0644 $f %{buildroot}%{uboot_dir}/$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.imx %{buildroot}%{uboot_dir}/u-boot.imx
|
||||
elif [ -f u-boot-dtb.imx ]; then
|
||||
install -D -m 0644 u-boot-dtb.imx %{buildroot}%{uboot_dir}/u-boot.imx
|
||||
else
|
||||
install -D -m 0644 u-boot.imx %{buildroot}%{uboot_dir}/u-boot.imx
|
||||
fi
|
||||
%if "%{name}" == "u-boot-qemu-ppce500"
|
||||
mv %{buildroot}%{uboot_dir}/u-boot.imx %{buildroot}%{uboot_dir}/u-boot.e500
|
||||
%endif
|
||||
%endif
|
||||
%endif
|
||||
%if %x_loader == 1
|
||||
install -D -m 0755 MLO %{buildroot}/boot/MLO
|
||||
install -D -m 0644 MLO %{buildroot}%{uboot_dir}/MLO
|
||||
%endif
|
||||
%if %origen_spl == 1
|
||||
install -D -m 0755 spl/origen-spl.bin %{buildroot}/boot/origen-spl.bin
|
||||
install -D -m 0644 spl/origen-spl.bin %{buildroot}%{uboot_dir}/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
|
||||
install -D -m 0644 spl/arndale-spl.bin %{buildroot}%{uboot_dir}/arndale-spl.bin
|
||||
install -D -m 0644 %{SOURCE2} %{buildroot}%{uboot_dir}/arndale-bl1.img
|
||||
%endif
|
||||
%if %mvebu_spl == 1
|
||||
install -D -m 0755 u-boot-spl.kwb %{buildroot}%{uboot_dir}/u-boot-spl.kwb
|
||||
install -D -m 0644 u-boot-spl.kwb %{buildroot}%{uboot_dir}/u-boot-spl.kwb
|
||||
%endif
|
||||
%if %rockchip_spl == 1
|
||||
install -D -m 0644 spl/u-boot-spl.bin %{buildroot}%{uboot_dir}/u-boot-spl.bin
|
||||
@ -167,20 +177,14 @@ for t in ; do
|
||||
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
|
||||
install -D -m 0644 spl/sunxi-spl.bin %{buildroot}%{uboot_dir}/sunxi-spl.bin
|
||||
install -D -m 0644 u-boot-sunxi-with-spl.bin %{buildroot}%{uboot_dir}/u-boot-sunxi-with-spl.bin
|
||||
%endif
|
||||
%if %imx6_spl == 1
|
||||
install -D -m 0755 SPL %{buildroot}/boot/imx6-spl.bin
|
||||
install -D -m 0644 SPL %{buildroot}%{uboot_dir}/imx6-spl.bin
|
||||
%endif
|
||||
%if %socfpga_spl == 1
|
||||
install -D -m 0755 u-boot-with-spl.sfp %{buildroot}/boot/u-boot-with-spl.sfp
|
||||
install -D -m 0644 u-boot-with-spl.sfp %{buildroot}%{uboot_dir}/u-boot-with-spl.sfp
|
||||
%endif
|
||||
|
||||
%if 0%{?is_rpi}
|
||||
|
@ -1,3 +1,29 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 16 18:53:36 UTC 2017 - xxxxxmichl@googlemail.com
|
||||
|
||||
- Added Banana Pi M2+ support
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Oct 8 13:17:01 UTC 2017 - afaerber@suse.de
|
||||
|
||||
- Add firefly-rk3399 and geekbox
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Oct 7 00:52:52 UTC 2017 - afaerber@suse.de
|
||||
|
||||
- Drop obsolete CuBox-i i.MX6 SPL packaging, too
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Oct 6 23:26:14 UTC 2017 - afaerber@suse.de
|
||||
|
||||
- Update packaging for Jetson TX1
|
||||
- Cleanups
|
||||
* Drop executable bit from SPL
|
||||
* Consistently use %uboot_dir
|
||||
* u-boot[-tegra]-dtb.bin is obsolete
|
||||
* Drop obsolete UDOO-specific i.MX6 SPL packaging
|
||||
- Package sunxi64 SPL for Pine64
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 2 13:33:40 UTC 2017 - guillaume@opensuse.org
|
||||
|
||||
|
@ -23,9 +23,7 @@
|
||||
%define rockchip_spl 0
|
||||
%define sunxi_spl 1
|
||||
%define arndale_spl 0
|
||||
%define cuboxi_spl 0
|
||||
%define origen_spl 0
|
||||
%define udoo_spl 0
|
||||
%define imx6_spl 0
|
||||
%define socfpga_spl 0
|
||||
|
||||
@ -53,6 +51,9 @@ Patch0002: 0002-Revert-Revert-omap3-Use-raw-SPL-by-.patch
|
||||
Patch0003: 0003-Revert-rockchip-mkimage-remove-plac.patch
|
||||
Patch0004: 0004-Fix-boot-on-Beagleboard-xM-by-disab.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
%if 0
|
||||
BuildRequires: arm-trusted-firmware-pine64
|
||||
%endif
|
||||
BuildRequires: bc
|
||||
# Arndale board needs DTC >= 1.4
|
||||
BuildRequires: dtc >= 1.4.0
|
||||
@ -100,11 +101,21 @@ This package contains documentation for U-Boot firmware.
|
||||
|
||||
%build
|
||||
export SOURCE_DATE_EPOCH=$(date -d "$(head -n 2 %{_sourcedir}/%{name}.changes | tail -n 1 | cut -d- -f1 )" +%s)
|
||||
%if "%{name}" == "u-boot-pine64plus"
|
||||
export BL31=/boot/bl31.bin
|
||||
%endif
|
||||
|
||||
make %{?_smp_mflags} CROSS_COMPILE= HOSTCFLAGS="$RPM_OPT_FLAGS" nanopi_neo_defconfig
|
||||
echo "Attempting to enable fdt apply command (.dtbo) support."
|
||||
echo "CONFIG_OF_LIBFDT_OVERLAY=y" >> .config
|
||||
make %{?_smp_mflags} CROSS_COMPILE= HOSTCFLAGS="$RPM_OPT_FLAGS" USE_PRIVATE_LIBGG=yes
|
||||
|
||||
%ifarch aarch64
|
||||
%if %sunxi_spl == 1
|
||||
cat spl/sunxi-spl.bin u-boot.itb > u-boot-sunxi-with-spl.bin
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%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)
|
||||
@ -131,34 +142,33 @@ export NO_DEBUGINFO_STRIP_DEBUG=true
|
||||
%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
|
||||
install -D -m 0644 $f %{buildroot}%{uboot_dir}/$f
|
||||
done
|
||||
%else
|
||||
%if "%{name}" == "u-boot-p2371-2180"
|
||||
# Jetson TX1 Driver Pack flash.sh needs several intermediate files, under their original name.
|
||||
for f in u-boot u-boot.bin u-boot.dtb u-boot-dtb.bin; do
|
||||
install -D -m 0644 $f %{buildroot}%{uboot_dir}/$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.img %{buildroot}%{uboot_dir}/u-boot.img
|
||||
elif [ -f u-boot-dtb.img ]; then
|
||||
install -D -m 0644 u-boot-dtb.img %{buildroot}%{uboot_dir}/u-boot.img
|
||||
else
|
||||
install -D -m 0644 u-boot.img %{buildroot}%{uboot_dir}/u-boot.img
|
||||
fi
|
||||
%if "%{name}" == "u-boot-qemu-ppce500"
|
||||
mv %{buildroot}%{uboot_dir}/u-boot.img %{buildroot}%{uboot_dir}/u-boot.e500
|
||||
%endif
|
||||
%endif
|
||||
%endif
|
||||
%if %x_loader == 1
|
||||
install -D -m 0755 MLO %{buildroot}/boot/MLO
|
||||
install -D -m 0644 MLO %{buildroot}%{uboot_dir}/MLO
|
||||
%endif
|
||||
%if %origen_spl == 1
|
||||
install -D -m 0755 spl/origen-spl.bin %{buildroot}/boot/origen-spl.bin
|
||||
install -D -m 0644 spl/origen-spl.bin %{buildroot}%{uboot_dir}/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
|
||||
install -D -m 0644 spl/arndale-spl.bin %{buildroot}%{uboot_dir}/arndale-spl.bin
|
||||
install -D -m 0644 %{SOURCE2} %{buildroot}%{uboot_dir}/arndale-bl1.img
|
||||
%endif
|
||||
%if %mvebu_spl == 1
|
||||
install -D -m 0755 u-boot-spl.kwb %{buildroot}%{uboot_dir}/u-boot-spl.kwb
|
||||
install -D -m 0644 u-boot-spl.kwb %{buildroot}%{uboot_dir}/u-boot-spl.kwb
|
||||
%endif
|
||||
%if %rockchip_spl == 1
|
||||
install -D -m 0644 spl/u-boot-spl.bin %{buildroot}%{uboot_dir}/u-boot-spl.bin
|
||||
@ -167,20 +177,14 @@ for t in ; do
|
||||
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
|
||||
install -D -m 0644 spl/sunxi-spl.bin %{buildroot}%{uboot_dir}/sunxi-spl.bin
|
||||
install -D -m 0644 u-boot-sunxi-with-spl.bin %{buildroot}%{uboot_dir}/u-boot-sunxi-with-spl.bin
|
||||
%endif
|
||||
%if %imx6_spl == 1
|
||||
install -D -m 0755 SPL %{buildroot}/boot/imx6-spl.bin
|
||||
install -D -m 0644 SPL %{buildroot}%{uboot_dir}/imx6-spl.bin
|
||||
%endif
|
||||
%if %socfpga_spl == 1
|
||||
install -D -m 0755 u-boot-with-spl.sfp %{buildroot}/boot/u-boot-with-spl.sfp
|
||||
install -D -m 0644 u-boot-with-spl.sfp %{buildroot}%{uboot_dir}/u-boot-with-spl.sfp
|
||||
%endif
|
||||
|
||||
%if 0%{?is_rpi}
|
||||
|
@ -1,3 +1,29 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 16 18:53:36 UTC 2017 - xxxxxmichl@googlemail.com
|
||||
|
||||
- Added Banana Pi M2+ support
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Oct 8 13:17:01 UTC 2017 - afaerber@suse.de
|
||||
|
||||
- Add firefly-rk3399 and geekbox
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Oct 7 00:52:52 UTC 2017 - afaerber@suse.de
|
||||
|
||||
- Drop obsolete CuBox-i i.MX6 SPL packaging, too
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Oct 6 23:26:14 UTC 2017 - afaerber@suse.de
|
||||
|
||||
- Update packaging for Jetson TX1
|
||||
- Cleanups
|
||||
* Drop executable bit from SPL
|
||||
* Consistently use %uboot_dir
|
||||
* u-boot[-tegra]-dtb.bin is obsolete
|
||||
* Drop obsolete UDOO-specific i.MX6 SPL packaging
|
||||
- Package sunxi64 SPL for Pine64
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 2 13:33:40 UTC 2017 - guillaume@opensuse.org
|
||||
|
||||
|
@ -23,9 +23,7 @@
|
||||
%define rockchip_spl 0
|
||||
%define sunxi_spl 0
|
||||
%define arndale_spl 0
|
||||
%define cuboxi_spl 0
|
||||
%define origen_spl 0
|
||||
%define udoo_spl 0
|
||||
%define imx6_spl 0
|
||||
%define socfpga_spl 0
|
||||
|
||||
@ -53,6 +51,9 @@ Patch0002: 0002-Revert-Revert-omap3-Use-raw-SPL-by-.patch
|
||||
Patch0003: 0003-Revert-rockchip-mkimage-remove-plac.patch
|
||||
Patch0004: 0004-Fix-boot-on-Beagleboard-xM-by-disab.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
%if 0
|
||||
BuildRequires: arm-trusted-firmware-pine64
|
||||
%endif
|
||||
BuildRequires: bc
|
||||
# Arndale board needs DTC >= 1.4
|
||||
BuildRequires: dtc >= 1.4.0
|
||||
@ -100,11 +101,21 @@ This package contains documentation for U-Boot firmware.
|
||||
|
||||
%build
|
||||
export SOURCE_DATE_EPOCH=$(date -d "$(head -n 2 %{_sourcedir}/%{name}.changes | tail -n 1 | cut -d- -f1 )" +%s)
|
||||
%if "%{name}" == "u-boot-pine64plus"
|
||||
export BL31=/boot/bl31.bin
|
||||
%endif
|
||||
|
||||
make %{?_smp_mflags} CROSS_COMPILE= HOSTCFLAGS="$RPM_OPT_FLAGS" nanopi_neo_air_defconfig
|
||||
echo "Attempting to enable fdt apply command (.dtbo) support."
|
||||
echo "CONFIG_OF_LIBFDT_OVERLAY=y" >> .config
|
||||
make %{?_smp_mflags} CROSS_COMPILE= HOSTCFLAGS="$RPM_OPT_FLAGS" USE_PRIVATE_LIBGG=yes
|
||||
|
||||
%ifarch aarch64
|
||||
%if %sunxi_spl == 1
|
||||
cat spl/sunxi-spl.bin u-boot.itb > u-boot-sunxi-with-spl.bin
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%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)
|
||||
@ -131,34 +142,33 @@ export NO_DEBUGINFO_STRIP_DEBUG=true
|
||||
%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
|
||||
install -D -m 0644 $f %{buildroot}%{uboot_dir}/$f
|
||||
done
|
||||
%else
|
||||
%if "%{name}" == "u-boot-p2371-2180"
|
||||
# Jetson TX1 Driver Pack flash.sh needs several intermediate files, under their original name.
|
||||
for f in u-boot u-boot.bin u-boot.dtb u-boot-dtb.bin; do
|
||||
install -D -m 0644 $f %{buildroot}%{uboot_dir}/$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
|
||||
%endif
|
||||
%if %x_loader == 1
|
||||
install -D -m 0755 MLO %{buildroot}/boot/MLO
|
||||
install -D -m 0644 MLO %{buildroot}%{uboot_dir}/MLO
|
||||
%endif
|
||||
%if %origen_spl == 1
|
||||
install -D -m 0755 spl/origen-spl.bin %{buildroot}/boot/origen-spl.bin
|
||||
install -D -m 0644 spl/origen-spl.bin %{buildroot}%{uboot_dir}/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
|
||||
install -D -m 0644 spl/arndale-spl.bin %{buildroot}%{uboot_dir}/arndale-spl.bin
|
||||
install -D -m 0644 %{SOURCE2} %{buildroot}%{uboot_dir}/arndale-bl1.img
|
||||
%endif
|
||||
%if %mvebu_spl == 1
|
||||
install -D -m 0755 u-boot-spl.kwb %{buildroot}%{uboot_dir}/u-boot-spl.kwb
|
||||
install -D -m 0644 u-boot-spl.kwb %{buildroot}%{uboot_dir}/u-boot-spl.kwb
|
||||
%endif
|
||||
%if %rockchip_spl == 1
|
||||
install -D -m 0644 spl/u-boot-spl.bin %{buildroot}%{uboot_dir}/u-boot-spl.bin
|
||||
@ -167,20 +177,14 @@ for t in ; do
|
||||
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
|
||||
install -D -m 0644 spl/sunxi-spl.bin %{buildroot}%{uboot_dir}/sunxi-spl.bin
|
||||
install -D -m 0644 u-boot-sunxi-with-spl.bin %{buildroot}%{uboot_dir}/u-boot-sunxi-with-spl.bin
|
||||
%endif
|
||||
%if %imx6_spl == 1
|
||||
install -D -m 0755 SPL %{buildroot}/boot/imx6-spl.bin
|
||||
install -D -m 0644 SPL %{buildroot}%{uboot_dir}/imx6-spl.bin
|
||||
%endif
|
||||
%if %socfpga_spl == 1
|
||||
install -D -m 0755 u-boot-with-spl.sfp %{buildroot}/boot/u-boot-with-spl.sfp
|
||||
install -D -m 0644 u-boot-with-spl.sfp %{buildroot}%{uboot_dir}/u-boot-with-spl.sfp
|
||||
%endif
|
||||
|
||||
%if 0%{?is_rpi}
|
||||
|
@ -1,3 +1,29 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 16 18:53:36 UTC 2017 - xxxxxmichl@googlemail.com
|
||||
|
||||
- Added Banana Pi M2+ support
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Oct 8 13:17:01 UTC 2017 - afaerber@suse.de
|
||||
|
||||
- Add firefly-rk3399 and geekbox
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Oct 7 00:52:52 UTC 2017 - afaerber@suse.de
|
||||
|
||||
- Drop obsolete CuBox-i i.MX6 SPL packaging, too
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Oct 6 23:26:14 UTC 2017 - afaerber@suse.de
|
||||
|
||||
- Update packaging for Jetson TX1
|
||||
- Cleanups
|
||||
* Drop executable bit from SPL
|
||||
* Consistently use %uboot_dir
|
||||
* u-boot[-tegra]-dtb.bin is obsolete
|
||||
* Drop obsolete UDOO-specific i.MX6 SPL packaging
|
||||
- Package sunxi64 SPL for Pine64
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 2 13:33:40 UTC 2017 - guillaume@opensuse.org
|
||||
|
||||
|
@ -23,9 +23,7 @@
|
||||
%define rockchip_spl 0
|
||||
%define sunxi_spl 0
|
||||
%define arndale_spl 0
|
||||
%define cuboxi_spl 0
|
||||
%define origen_spl 0
|
||||
%define udoo_spl 0
|
||||
%define imx6_spl 0
|
||||
%define socfpga_spl 0
|
||||
|
||||
@ -53,6 +51,9 @@ Patch0002: 0002-Revert-Revert-omap3-Use-raw-SPL-by-.patch
|
||||
Patch0003: 0003-Revert-rockchip-mkimage-remove-plac.patch
|
||||
Patch0004: 0004-Fix-boot-on-Beagleboard-xM-by-disab.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
%if 0
|
||||
BuildRequires: arm-trusted-firmware-pine64
|
||||
%endif
|
||||
BuildRequires: bc
|
||||
# Arndale board needs DTC >= 1.4
|
||||
BuildRequires: dtc >= 1.4.0
|
||||
@ -100,11 +101,21 @@ This package contains documentation for U-Boot firmware.
|
||||
|
||||
%build
|
||||
export SOURCE_DATE_EPOCH=$(date -d "$(head -n 2 %{_sourcedir}/%{name}.changes | tail -n 1 | cut -d- -f1 )" +%s)
|
||||
%if "%{name}" == "u-boot-pine64plus"
|
||||
export BL31=/boot/bl31.bin
|
||||
%endif
|
||||
|
||||
make %{?_smp_mflags} CROSS_COMPILE= HOSTCFLAGS="$RPM_OPT_FLAGS" odroid-c2_defconfig
|
||||
echo "Attempting to enable fdt apply command (.dtbo) support."
|
||||
echo "CONFIG_OF_LIBFDT_OVERLAY=y" >> .config
|
||||
make %{?_smp_mflags} CROSS_COMPILE= HOSTCFLAGS="$RPM_OPT_FLAGS" USE_PRIVATE_LIBGG=yes
|
||||
|
||||
%ifarch aarch64
|
||||
%if %sunxi_spl == 1
|
||||
cat spl/sunxi-spl.bin u-boot.itb > u-boot-sunxi-with-spl.bin
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%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)
|
||||
@ -131,34 +142,33 @@ export NO_DEBUGINFO_STRIP_DEBUG=true
|
||||
%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
|
||||
install -D -m 0644 $f %{buildroot}%{uboot_dir}/$f
|
||||
done
|
||||
%else
|
||||
%if "%{name}" == "u-boot-p2371-2180"
|
||||
# Jetson TX1 Driver Pack flash.sh needs several intermediate files, under their original name.
|
||||
for f in u-boot u-boot.bin u-boot.dtb u-boot-dtb.bin; do
|
||||
install -D -m 0644 $f %{buildroot}%{uboot_dir}/$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
|
||||
%endif
|
||||
%if %x_loader == 1
|
||||
install -D -m 0755 MLO %{buildroot}/boot/MLO
|
||||
install -D -m 0644 MLO %{buildroot}%{uboot_dir}/MLO
|
||||
%endif
|
||||
%if %origen_spl == 1
|
||||
install -D -m 0755 spl/origen-spl.bin %{buildroot}/boot/origen-spl.bin
|
||||
install -D -m 0644 spl/origen-spl.bin %{buildroot}%{uboot_dir}/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
|
||||
install -D -m 0644 spl/arndale-spl.bin %{buildroot}%{uboot_dir}/arndale-spl.bin
|
||||
install -D -m 0644 %{SOURCE2} %{buildroot}%{uboot_dir}/arndale-bl1.img
|
||||
%endif
|
||||
%if %mvebu_spl == 1
|
||||
install -D -m 0755 u-boot-spl.kwb %{buildroot}%{uboot_dir}/u-boot-spl.kwb
|
||||
install -D -m 0644 u-boot-spl.kwb %{buildroot}%{uboot_dir}/u-boot-spl.kwb
|
||||
%endif
|
||||
%if %rockchip_spl == 1
|
||||
install -D -m 0644 spl/u-boot-spl.bin %{buildroot}%{uboot_dir}/u-boot-spl.bin
|
||||
@ -167,20 +177,14 @@ for t in ; do
|
||||
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
|
||||
install -D -m 0644 spl/sunxi-spl.bin %{buildroot}%{uboot_dir}/sunxi-spl.bin
|
||||
install -D -m 0644 u-boot-sunxi-with-spl.bin %{buildroot}%{uboot_dir}/u-boot-sunxi-with-spl.bin
|
||||
%endif
|
||||
%if %imx6_spl == 1
|
||||
install -D -m 0755 SPL %{buildroot}/boot/imx6-spl.bin
|
||||
install -D -m 0644 SPL %{buildroot}%{uboot_dir}/imx6-spl.bin
|
||||
%endif
|
||||
%if %socfpga_spl == 1
|
||||
install -D -m 0755 u-boot-with-spl.sfp %{buildroot}/boot/u-boot-with-spl.sfp
|
||||
install -D -m 0644 u-boot-with-spl.sfp %{buildroot}%{uboot_dir}/u-boot-with-spl.sfp
|
||||
%endif
|
||||
|
||||
%if 0%{?is_rpi}
|
||||
|
@ -1,3 +1,29 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 16 18:53:36 UTC 2017 - xxxxxmichl@googlemail.com
|
||||
|
||||
- Added Banana Pi M2+ support
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Oct 8 13:17:01 UTC 2017 - afaerber@suse.de
|
||||
|
||||
- Add firefly-rk3399 and geekbox
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Oct 7 00:52:52 UTC 2017 - afaerber@suse.de
|
||||
|
||||
- Drop obsolete CuBox-i i.MX6 SPL packaging, too
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Oct 6 23:26:14 UTC 2017 - afaerber@suse.de
|
||||
|
||||
- Update packaging for Jetson TX1
|
||||
- Cleanups
|
||||
* Drop executable bit from SPL
|
||||
* Consistently use %uboot_dir
|
||||
* u-boot[-tegra]-dtb.bin is obsolete
|
||||
* Drop obsolete UDOO-specific i.MX6 SPL packaging
|
||||
- Package sunxi64 SPL for Pine64
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 2 13:33:40 UTC 2017 - guillaume@opensuse.org
|
||||
|
||||
|
@ -23,9 +23,7 @@
|
||||
%define rockchip_spl 0
|
||||
%define sunxi_spl 0
|
||||
%define arndale_spl 0
|
||||
%define cuboxi_spl 0
|
||||
%define origen_spl 0
|
||||
%define udoo_spl 0
|
||||
%define imx6_spl 0
|
||||
%define socfpga_spl 0
|
||||
|
||||
@ -53,6 +51,9 @@ Patch0002: 0002-Revert-Revert-omap3-Use-raw-SPL-by-.patch
|
||||
Patch0003: 0003-Revert-rockchip-mkimage-remove-plac.patch
|
||||
Patch0004: 0004-Fix-boot-on-Beagleboard-xM-by-disab.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
%if 0
|
||||
BuildRequires: arm-trusted-firmware-pine64
|
||||
%endif
|
||||
BuildRequires: bc
|
||||
# Arndale board needs DTC >= 1.4
|
||||
BuildRequires: dtc >= 1.4.0
|
||||
@ -100,11 +101,21 @@ This package contains documentation for U-Boot firmware.
|
||||
|
||||
%build
|
||||
export SOURCE_DATE_EPOCH=$(date -d "$(head -n 2 %{_sourcedir}/%{name}.changes | tail -n 1 | cut -d- -f1 )" +%s)
|
||||
%if "%{name}" == "u-boot-pine64plus"
|
||||
export BL31=/boot/bl31.bin
|
||||
%endif
|
||||
|
||||
make %{?_smp_mflags} CROSS_COMPILE= HOSTCFLAGS="$RPM_OPT_FLAGS" odroid-xu3_defconfig
|
||||
echo "Attempting to enable fdt apply command (.dtbo) support."
|
||||
echo "CONFIG_OF_LIBFDT_OVERLAY=y" >> .config
|
||||
make %{?_smp_mflags} CROSS_COMPILE= HOSTCFLAGS="$RPM_OPT_FLAGS" USE_PRIVATE_LIBGG=yes
|
||||
|
||||
%ifarch aarch64
|
||||
%if %sunxi_spl == 1
|
||||
cat spl/sunxi-spl.bin u-boot.itb > u-boot-sunxi-with-spl.bin
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%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)
|
||||
@ -131,34 +142,33 @@ export NO_DEBUGINFO_STRIP_DEBUG=true
|
||||
%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
|
||||
install -D -m 0644 $f %{buildroot}%{uboot_dir}/$f
|
||||
done
|
||||
%else
|
||||
%if "%{name}" == "u-boot-p2371-2180"
|
||||
# Jetson TX1 Driver Pack flash.sh needs several intermediate files, under their original name.
|
||||
for f in u-boot u-boot.bin u-boot.dtb u-boot-dtb.bin; do
|
||||
install -D -m 0644 $f %{buildroot}%{uboot_dir}/$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
|
||||
%endif
|
||||
%if %x_loader == 1
|
||||
install -D -m 0755 MLO %{buildroot}/boot/MLO
|
||||
install -D -m 0644 MLO %{buildroot}%{uboot_dir}/MLO
|
||||
%endif
|
||||
%if %origen_spl == 1
|
||||
install -D -m 0755 spl/origen-spl.bin %{buildroot}/boot/origen-spl.bin
|
||||
install -D -m 0644 spl/origen-spl.bin %{buildroot}%{uboot_dir}/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
|
||||
install -D -m 0644 spl/arndale-spl.bin %{buildroot}%{uboot_dir}/arndale-spl.bin
|
||||
install -D -m 0644 %{SOURCE2} %{buildroot}%{uboot_dir}/arndale-bl1.img
|
||||
%endif
|
||||
%if %mvebu_spl == 1
|
||||
install -D -m 0755 u-boot-spl.kwb %{buildroot}%{uboot_dir}/u-boot-spl.kwb
|
||||
install -D -m 0644 u-boot-spl.kwb %{buildroot}%{uboot_dir}/u-boot-spl.kwb
|
||||
%endif
|
||||
%if %rockchip_spl == 1
|
||||
install -D -m 0644 spl/u-boot-spl.bin %{buildroot}%{uboot_dir}/u-boot-spl.bin
|
||||
@ -167,20 +177,14 @@ for t in ; do
|
||||
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
|
||||
install -D -m 0644 spl/sunxi-spl.bin %{buildroot}%{uboot_dir}/sunxi-spl.bin
|
||||
install -D -m 0644 u-boot-sunxi-with-spl.bin %{buildroot}%{uboot_dir}/u-boot-sunxi-with-spl.bin
|
||||
%endif
|
||||
%if %imx6_spl == 1
|
||||
install -D -m 0755 SPL %{buildroot}/boot/imx6-spl.bin
|
||||
install -D -m 0644 SPL %{buildroot}%{uboot_dir}/imx6-spl.bin
|
||||
%endif
|
||||
%if %socfpga_spl == 1
|
||||
install -D -m 0755 u-boot-with-spl.sfp %{buildroot}/boot/u-boot-with-spl.sfp
|
||||
install -D -m 0644 u-boot-with-spl.sfp %{buildroot}%{uboot_dir}/u-boot-with-spl.sfp
|
||||
%endif
|
||||
|
||||
%if 0%{?is_rpi}
|
||||
|
@ -1,3 +1,29 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 16 18:53:36 UTC 2017 - xxxxxmichl@googlemail.com
|
||||
|
||||
- Added Banana Pi M2+ support
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Oct 8 13:17:01 UTC 2017 - afaerber@suse.de
|
||||
|
||||
- Add firefly-rk3399 and geekbox
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Oct 7 00:52:52 UTC 2017 - afaerber@suse.de
|
||||
|
||||
- Drop obsolete CuBox-i i.MX6 SPL packaging, too
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Oct 6 23:26:14 UTC 2017 - afaerber@suse.de
|
||||
|
||||
- Update packaging for Jetson TX1
|
||||
- Cleanups
|
||||
* Drop executable bit from SPL
|
||||
* Consistently use %uboot_dir
|
||||
* u-boot[-tegra]-dtb.bin is obsolete
|
||||
* Drop obsolete UDOO-specific i.MX6 SPL packaging
|
||||
- Package sunxi64 SPL for Pine64
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 2 13:33:40 UTC 2017 - guillaume@opensuse.org
|
||||
|
||||
|
@ -23,9 +23,7 @@
|
||||
%define rockchip_spl 0
|
||||
%define sunxi_spl 0
|
||||
%define arndale_spl 0
|
||||
%define cuboxi_spl 0
|
||||
%define origen_spl 0
|
||||
%define udoo_spl 0
|
||||
%define imx6_spl 0
|
||||
%define socfpga_spl 0
|
||||
|
||||
@ -53,6 +51,9 @@ Patch0002: 0002-Revert-Revert-omap3-Use-raw-SPL-by-.patch
|
||||
Patch0003: 0003-Revert-rockchip-mkimage-remove-plac.patch
|
||||
Patch0004: 0004-Fix-boot-on-Beagleboard-xM-by-disab.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
%if 0
|
||||
BuildRequires: arm-trusted-firmware-pine64
|
||||
%endif
|
||||
BuildRequires: bc
|
||||
# Arndale board needs DTC >= 1.4
|
||||
BuildRequires: dtc >= 1.4.0
|
||||
@ -100,11 +101,21 @@ This package contains documentation for U-Boot firmware.
|
||||
|
||||
%build
|
||||
export SOURCE_DATE_EPOCH=$(date -d "$(head -n 2 %{_sourcedir}/%{name}.changes | tail -n 1 | cut -d- -f1 )" +%s)
|
||||
%if "%{name}" == "u-boot-pine64plus"
|
||||
export BL31=/boot/bl31.bin
|
||||
%endif
|
||||
|
||||
make %{?_smp_mflags} CROSS_COMPILE= HOSTCFLAGS="$RPM_OPT_FLAGS" odroid_defconfig
|
||||
echo "Attempting to enable fdt apply command (.dtbo) support."
|
||||
echo "CONFIG_OF_LIBFDT_OVERLAY=y" >> .config
|
||||
make %{?_smp_mflags} CROSS_COMPILE= HOSTCFLAGS="$RPM_OPT_FLAGS" USE_PRIVATE_LIBGG=yes
|
||||
|
||||
%ifarch aarch64
|
||||
%if %sunxi_spl == 1
|
||||
cat spl/sunxi-spl.bin u-boot.itb > u-boot-sunxi-with-spl.bin
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%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)
|
||||
@ -131,34 +142,33 @@ export NO_DEBUGINFO_STRIP_DEBUG=true
|
||||
%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
|
||||
install -D -m 0644 $f %{buildroot}%{uboot_dir}/$f
|
||||
done
|
||||
%else
|
||||
%if "%{name}" == "u-boot-p2371-2180"
|
||||
# Jetson TX1 Driver Pack flash.sh needs several intermediate files, under their original name.
|
||||
for f in u-boot u-boot.bin u-boot.dtb u-boot-dtb.bin; do
|
||||
install -D -m 0644 $f %{buildroot}%{uboot_dir}/$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
|
||||
%endif
|
||||
%if %x_loader == 1
|
||||
install -D -m 0755 MLO %{buildroot}/boot/MLO
|
||||
install -D -m 0644 MLO %{buildroot}%{uboot_dir}/MLO
|
||||
%endif
|
||||
%if %origen_spl == 1
|
||||
install -D -m 0755 spl/origen-spl.bin %{buildroot}/boot/origen-spl.bin
|
||||
install -D -m 0644 spl/origen-spl.bin %{buildroot}%{uboot_dir}/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
|
||||
install -D -m 0644 spl/arndale-spl.bin %{buildroot}%{uboot_dir}/arndale-spl.bin
|
||||
install -D -m 0644 %{SOURCE2} %{buildroot}%{uboot_dir}/arndale-bl1.img
|
||||
%endif
|
||||
%if %mvebu_spl == 1
|
||||
install -D -m 0755 u-boot-spl.kwb %{buildroot}%{uboot_dir}/u-boot-spl.kwb
|
||||
install -D -m 0644 u-boot-spl.kwb %{buildroot}%{uboot_dir}/u-boot-spl.kwb
|
||||
%endif
|
||||
%if %rockchip_spl == 1
|
||||
install -D -m 0644 spl/u-boot-spl.bin %{buildroot}%{uboot_dir}/u-boot-spl.bin
|
||||
@ -167,20 +177,14 @@ for t in ; do
|
||||
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
|
||||
install -D -m 0644 spl/sunxi-spl.bin %{buildroot}%{uboot_dir}/sunxi-spl.bin
|
||||
install -D -m 0644 u-boot-sunxi-with-spl.bin %{buildroot}%{uboot_dir}/u-boot-sunxi-with-spl.bin
|
||||
%endif
|
||||
%if %imx6_spl == 1
|
||||
install -D -m 0755 SPL %{buildroot}/boot/imx6-spl.bin
|
||||
install -D -m 0644 SPL %{buildroot}%{uboot_dir}/imx6-spl.bin
|
||||
%endif
|
||||
%if %socfpga_spl == 1
|
||||
install -D -m 0755 u-boot-with-spl.sfp %{buildroot}/boot/u-boot-with-spl.sfp
|
||||
install -D -m 0644 u-boot-with-spl.sfp %{buildroot}%{uboot_dir}/u-boot-with-spl.sfp
|
||||
%endif
|
||||
|
||||
%if 0%{?is_rpi}
|
||||
|
@ -1,3 +1,29 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 16 18:53:36 UTC 2017 - xxxxxmichl@googlemail.com
|
||||
|
||||
- Added Banana Pi M2+ support
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Oct 8 13:17:01 UTC 2017 - afaerber@suse.de
|
||||
|
||||
- Add firefly-rk3399 and geekbox
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Oct 7 00:52:52 UTC 2017 - afaerber@suse.de
|
||||
|
||||
- Drop obsolete CuBox-i i.MX6 SPL packaging, too
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Oct 6 23:26:14 UTC 2017 - afaerber@suse.de
|
||||
|
||||
- Update packaging for Jetson TX1
|
||||
- Cleanups
|
||||
* Drop executable bit from SPL
|
||||
* Consistently use %uboot_dir
|
||||
* u-boot[-tegra]-dtb.bin is obsolete
|
||||
* Drop obsolete UDOO-specific i.MX6 SPL packaging
|
||||
- Package sunxi64 SPL for Pine64
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 2 13:33:40 UTC 2017 - guillaume@opensuse.org
|
||||
|
||||
|
@ -23,9 +23,7 @@
|
||||
%define rockchip_spl 0
|
||||
%define sunxi_spl 0
|
||||
%define arndale_spl 0
|
||||
%define cuboxi_spl 0
|
||||
%define origen_spl 0
|
||||
%define udoo_spl 0
|
||||
%define imx6_spl 0
|
||||
%define socfpga_spl 0
|
||||
|
||||
@ -53,6 +51,9 @@ Patch0002: 0002-Revert-Revert-omap3-Use-raw-SPL-by-.patch
|
||||
Patch0003: 0003-Revert-rockchip-mkimage-remove-plac.patch
|
||||
Patch0004: 0004-Fix-boot-on-Beagleboard-xM-by-disab.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
%if 0
|
||||
BuildRequires: arm-trusted-firmware-pine64
|
||||
%endif
|
||||
BuildRequires: bc
|
||||
# Arndale board needs DTC >= 1.4
|
||||
BuildRequires: dtc >= 1.4.0
|
||||
@ -100,11 +101,21 @@ This package contains documentation for U-Boot firmware.
|
||||
|
||||
%build
|
||||
export SOURCE_DATE_EPOCH=$(date -d "$(head -n 2 %{_sourcedir}/%{name}.changes | tail -n 1 | cut -d- -f1 )" +%s)
|
||||
%if "%{name}" == "u-boot-pine64plus"
|
||||
export BL31=/boot/bl31.bin
|
||||
%endif
|
||||
|
||||
make %{?_smp_mflags} CROSS_COMPILE= HOSTCFLAGS="$RPM_OPT_FLAGS" omap3_beagle_defconfig
|
||||
echo "Attempting to enable fdt apply command (.dtbo) support."
|
||||
echo "CONFIG_OF_LIBFDT_OVERLAY=y" >> .config
|
||||
make %{?_smp_mflags} CROSS_COMPILE= HOSTCFLAGS="$RPM_OPT_FLAGS" USE_PRIVATE_LIBGG=yes
|
||||
|
||||
%ifarch aarch64
|
||||
%if %sunxi_spl == 1
|
||||
cat spl/sunxi-spl.bin u-boot.itb > u-boot-sunxi-with-spl.bin
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%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)
|
||||
@ -131,34 +142,33 @@ export NO_DEBUGINFO_STRIP_DEBUG=true
|
||||
%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
|
||||
install -D -m 0644 $f %{buildroot}%{uboot_dir}/$f
|
||||
done
|
||||
%else
|
||||
%if "%{name}" == "u-boot-p2371-2180"
|
||||
# Jetson TX1 Driver Pack flash.sh needs several intermediate files, under their original name.
|
||||
for f in u-boot u-boot.bin u-boot.dtb u-boot-dtb.bin; do
|
||||
install -D -m 0644 $f %{buildroot}%{uboot_dir}/$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.img %{buildroot}%{uboot_dir}/u-boot.img
|
||||
elif [ -f u-boot-dtb.img ]; then
|
||||
install -D -m 0644 u-boot-dtb.img %{buildroot}%{uboot_dir}/u-boot.img
|
||||
else
|
||||
install -D -m 0644 u-boot.img %{buildroot}%{uboot_dir}/u-boot.img
|
||||
fi
|
||||
%if "%{name}" == "u-boot-qemu-ppce500"
|
||||
mv %{buildroot}%{uboot_dir}/u-boot.img %{buildroot}%{uboot_dir}/u-boot.e500
|
||||
%endif
|
||||
%endif
|
||||
%endif
|
||||
%if %x_loader == 1
|
||||
install -D -m 0755 MLO %{buildroot}/boot/MLO
|
||||
install -D -m 0644 MLO %{buildroot}%{uboot_dir}/MLO
|
||||
%endif
|
||||
%if %origen_spl == 1
|
||||
install -D -m 0755 spl/origen-spl.bin %{buildroot}/boot/origen-spl.bin
|
||||
install -D -m 0644 spl/origen-spl.bin %{buildroot}%{uboot_dir}/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
|
||||
install -D -m 0644 spl/arndale-spl.bin %{buildroot}%{uboot_dir}/arndale-spl.bin
|
||||
install -D -m 0644 %{SOURCE2} %{buildroot}%{uboot_dir}/arndale-bl1.img
|
||||
%endif
|
||||
%if %mvebu_spl == 1
|
||||
install -D -m 0755 u-boot-spl.kwb %{buildroot}%{uboot_dir}/u-boot-spl.kwb
|
||||
install -D -m 0644 u-boot-spl.kwb %{buildroot}%{uboot_dir}/u-boot-spl.kwb
|
||||
%endif
|
||||
%if %rockchip_spl == 1
|
||||
install -D -m 0644 spl/u-boot-spl.bin %{buildroot}%{uboot_dir}/u-boot-spl.bin
|
||||
@ -167,20 +177,14 @@ for t in ; do
|
||||
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
|
||||
install -D -m 0644 spl/sunxi-spl.bin %{buildroot}%{uboot_dir}/sunxi-spl.bin
|
||||
install -D -m 0644 u-boot-sunxi-with-spl.bin %{buildroot}%{uboot_dir}/u-boot-sunxi-with-spl.bin
|
||||
%endif
|
||||
%if %imx6_spl == 1
|
||||
install -D -m 0755 SPL %{buildroot}/boot/imx6-spl.bin
|
||||
install -D -m 0644 SPL %{buildroot}%{uboot_dir}/imx6-spl.bin
|
||||
%endif
|
||||
%if %socfpga_spl == 1
|
||||
install -D -m 0755 u-boot-with-spl.sfp %{buildroot}/boot/u-boot-with-spl.sfp
|
||||
install -D -m 0644 u-boot-with-spl.sfp %{buildroot}%{uboot_dir}/u-boot-with-spl.sfp
|
||||
%endif
|
||||
|
||||
%if 0%{?is_rpi}
|
||||
|
@ -1,3 +1,29 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 16 18:53:36 UTC 2017 - xxxxxmichl@googlemail.com
|
||||
|
||||
- Added Banana Pi M2+ support
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Oct 8 13:17:01 UTC 2017 - afaerber@suse.de
|
||||
|
||||
- Add firefly-rk3399 and geekbox
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Oct 7 00:52:52 UTC 2017 - afaerber@suse.de
|
||||
|
||||
- Drop obsolete CuBox-i i.MX6 SPL packaging, too
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Oct 6 23:26:14 UTC 2017 - afaerber@suse.de
|
||||
|
||||
- Update packaging for Jetson TX1
|
||||
- Cleanups
|
||||
* Drop executable bit from SPL
|
||||
* Consistently use %uboot_dir
|
||||
* u-boot[-tegra]-dtb.bin is obsolete
|
||||
* Drop obsolete UDOO-specific i.MX6 SPL packaging
|
||||
- Package sunxi64 SPL for Pine64
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 2 13:33:40 UTC 2017 - guillaume@opensuse.org
|
||||
|
||||
|
@ -23,9 +23,7 @@
|
||||
%define rockchip_spl 0
|
||||
%define sunxi_spl 0
|
||||
%define arndale_spl 0
|
||||
%define cuboxi_spl 0
|
||||
%define origen_spl 0
|
||||
%define udoo_spl 0
|
||||
%define imx6_spl 0
|
||||
%define socfpga_spl 0
|
||||
|
||||
@ -53,6 +51,9 @@ Patch0002: 0002-Revert-Revert-omap3-Use-raw-SPL-by-.patch
|
||||
Patch0003: 0003-Revert-rockchip-mkimage-remove-plac.patch
|
||||
Patch0004: 0004-Fix-boot-on-Beagleboard-xM-by-disab.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
%if 0
|
||||
BuildRequires: arm-trusted-firmware-pine64
|
||||
%endif
|
||||
BuildRequires: bc
|
||||
# Arndale board needs DTC >= 1.4
|
||||
BuildRequires: dtc >= 1.4.0
|
||||
@ -100,11 +101,21 @@ This package contains documentation for U-Boot firmware.
|
||||
|
||||
%build
|
||||
export SOURCE_DATE_EPOCH=$(date -d "$(head -n 2 %{_sourcedir}/%{name}.changes | tail -n 1 | cut -d- -f1 )" +%s)
|
||||
%if "%{name}" == "u-boot-pine64plus"
|
||||
export BL31=/boot/bl31.bin
|
||||
%endif
|
||||
|
||||
make %{?_smp_mflags} CROSS_COMPILE= HOSTCFLAGS="$RPM_OPT_FLAGS" omap4_panda_defconfig
|
||||
echo "Attempting to enable fdt apply command (.dtbo) support."
|
||||
echo "CONFIG_OF_LIBFDT_OVERLAY=y" >> .config
|
||||
make %{?_smp_mflags} CROSS_COMPILE= HOSTCFLAGS="$RPM_OPT_FLAGS" USE_PRIVATE_LIBGG=yes
|
||||
|
||||
%ifarch aarch64
|
||||
%if %sunxi_spl == 1
|
||||
cat spl/sunxi-spl.bin u-boot.itb > u-boot-sunxi-with-spl.bin
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%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)
|
||||
@ -131,34 +142,33 @@ export NO_DEBUGINFO_STRIP_DEBUG=true
|
||||
%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
|
||||
install -D -m 0644 $f %{buildroot}%{uboot_dir}/$f
|
||||
done
|
||||
%else
|
||||
%if "%{name}" == "u-boot-p2371-2180"
|
||||
# Jetson TX1 Driver Pack flash.sh needs several intermediate files, under their original name.
|
||||
for f in u-boot u-boot.bin u-boot.dtb u-boot-dtb.bin; do
|
||||
install -D -m 0644 $f %{buildroot}%{uboot_dir}/$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.img %{buildroot}%{uboot_dir}/u-boot.img
|
||||
elif [ -f u-boot-dtb.img ]; then
|
||||
install -D -m 0644 u-boot-dtb.img %{buildroot}%{uboot_dir}/u-boot.img
|
||||
else
|
||||
install -D -m 0644 u-boot.img %{buildroot}%{uboot_dir}/u-boot.img
|
||||
fi
|
||||
%if "%{name}" == "u-boot-qemu-ppce500"
|
||||
mv %{buildroot}%{uboot_dir}/u-boot.img %{buildroot}%{uboot_dir}/u-boot.e500
|
||||
%endif
|
||||
%endif
|
||||
%endif
|
||||
%if %x_loader == 1
|
||||
install -D -m 0755 MLO %{buildroot}/boot/MLO
|
||||
install -D -m 0644 MLO %{buildroot}%{uboot_dir}/MLO
|
||||
%endif
|
||||
%if %origen_spl == 1
|
||||
install -D -m 0755 spl/origen-spl.bin %{buildroot}/boot/origen-spl.bin
|
||||
install -D -m 0644 spl/origen-spl.bin %{buildroot}%{uboot_dir}/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
|
||||
install -D -m 0644 spl/arndale-spl.bin %{buildroot}%{uboot_dir}/arndale-spl.bin
|
||||
install -D -m 0644 %{SOURCE2} %{buildroot}%{uboot_dir}/arndale-bl1.img
|
||||
%endif
|
||||
%if %mvebu_spl == 1
|
||||
install -D -m 0755 u-boot-spl.kwb %{buildroot}%{uboot_dir}/u-boot-spl.kwb
|
||||
install -D -m 0644 u-boot-spl.kwb %{buildroot}%{uboot_dir}/u-boot-spl.kwb
|
||||
%endif
|
||||
%if %rockchip_spl == 1
|
||||
install -D -m 0644 spl/u-boot-spl.bin %{buildroot}%{uboot_dir}/u-boot-spl.bin
|
||||
@ -167,20 +177,14 @@ for t in ; do
|
||||
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
|
||||
install -D -m 0644 spl/sunxi-spl.bin %{buildroot}%{uboot_dir}/sunxi-spl.bin
|
||||
install -D -m 0644 u-boot-sunxi-with-spl.bin %{buildroot}%{uboot_dir}/u-boot-sunxi-with-spl.bin
|
||||
%endif
|
||||
%if %imx6_spl == 1
|
||||
install -D -m 0755 SPL %{buildroot}/boot/imx6-spl.bin
|
||||
install -D -m 0644 SPL %{buildroot}%{uboot_dir}/imx6-spl.bin
|
||||
%endif
|
||||
%if %socfpga_spl == 1
|
||||
install -D -m 0755 u-boot-with-spl.sfp %{buildroot}/boot/u-boot-with-spl.sfp
|
||||
install -D -m 0644 u-boot-with-spl.sfp %{buildroot}%{uboot_dir}/u-boot-with-spl.sfp
|
||||
%endif
|
||||
|
||||
%if 0%{?is_rpi}
|
||||
|
@ -1,3 +1,29 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 16 18:53:36 UTC 2017 - xxxxxmichl@googlemail.com
|
||||
|
||||
- Added Banana Pi M2+ support
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Oct 8 13:17:01 UTC 2017 - afaerber@suse.de
|
||||
|
||||
- Add firefly-rk3399 and geekbox
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Oct 7 00:52:52 UTC 2017 - afaerber@suse.de
|
||||
|
||||
- Drop obsolete CuBox-i i.MX6 SPL packaging, too
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Oct 6 23:26:14 UTC 2017 - afaerber@suse.de
|
||||
|
||||
- Update packaging for Jetson TX1
|
||||
- Cleanups
|
||||
* Drop executable bit from SPL
|
||||
* Consistently use %uboot_dir
|
||||
* u-boot[-tegra]-dtb.bin is obsolete
|
||||
* Drop obsolete UDOO-specific i.MX6 SPL packaging
|
||||
- Package sunxi64 SPL for Pine64
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 2 13:33:40 UTC 2017 - guillaume@opensuse.org
|
||||
|
||||
|
@ -23,9 +23,7 @@
|
||||
%define rockchip_spl 0
|
||||
%define sunxi_spl 1
|
||||
%define arndale_spl 0
|
||||
%define cuboxi_spl 0
|
||||
%define origen_spl 0
|
||||
%define udoo_spl 0
|
||||
%define imx6_spl 0
|
||||
%define socfpga_spl 0
|
||||
|
||||
@ -53,6 +51,9 @@ Patch0002: 0002-Revert-Revert-omap3-Use-raw-SPL-by-.patch
|
||||
Patch0003: 0003-Revert-rockchip-mkimage-remove-plac.patch
|
||||
Patch0004: 0004-Fix-boot-on-Beagleboard-xM-by-disab.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
%if 0
|
||||
BuildRequires: arm-trusted-firmware-pine64
|
||||
%endif
|
||||
BuildRequires: bc
|
||||
# Arndale board needs DTC >= 1.4
|
||||
BuildRequires: dtc >= 1.4.0
|
||||
@ -100,11 +101,21 @@ This package contains documentation for U-Boot firmware.
|
||||
|
||||
%build
|
||||
export SOURCE_DATE_EPOCH=$(date -d "$(head -n 2 %{_sourcedir}/%{name}.changes | tail -n 1 | cut -d- -f1 )" +%s)
|
||||
%if "%{name}" == "u-boot-pine64plus"
|
||||
export BL31=/boot/bl31.bin
|
||||
%endif
|
||||
|
||||
make %{?_smp_mflags} CROSS_COMPILE= HOSTCFLAGS="$RPM_OPT_FLAGS" orangepi_pc_defconfig
|
||||
echo "Attempting to enable fdt apply command (.dtbo) support."
|
||||
echo "CONFIG_OF_LIBFDT_OVERLAY=y" >> .config
|
||||
make %{?_smp_mflags} CROSS_COMPILE= HOSTCFLAGS="$RPM_OPT_FLAGS" USE_PRIVATE_LIBGG=yes
|
||||
|
||||
%ifarch aarch64
|
||||
%if %sunxi_spl == 1
|
||||
cat spl/sunxi-spl.bin u-boot.itb > u-boot-sunxi-with-spl.bin
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%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)
|
||||
@ -131,34 +142,33 @@ export NO_DEBUGINFO_STRIP_DEBUG=true
|
||||
%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
|
||||
install -D -m 0644 $f %{buildroot}%{uboot_dir}/$f
|
||||
done
|
||||
%else
|
||||
%if "%{name}" == "u-boot-p2371-2180"
|
||||
# Jetson TX1 Driver Pack flash.sh needs several intermediate files, under their original name.
|
||||
for f in u-boot u-boot.bin u-boot.dtb u-boot-dtb.bin; do
|
||||
install -D -m 0644 $f %{buildroot}%{uboot_dir}/$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.img %{buildroot}%{uboot_dir}/u-boot.img
|
||||
elif [ -f u-boot-dtb.img ]; then
|
||||
install -D -m 0644 u-boot-dtb.img %{buildroot}%{uboot_dir}/u-boot.img
|
||||
else
|
||||
install -D -m 0644 u-boot.img %{buildroot}%{uboot_dir}/u-boot.img
|
||||
fi
|
||||
%if "%{name}" == "u-boot-qemu-ppce500"
|
||||
mv %{buildroot}%{uboot_dir}/u-boot.img %{buildroot}%{uboot_dir}/u-boot.e500
|
||||
%endif
|
||||
%endif
|
||||
%endif
|
||||
%if %x_loader == 1
|
||||
install -D -m 0755 MLO %{buildroot}/boot/MLO
|
||||
install -D -m 0644 MLO %{buildroot}%{uboot_dir}/MLO
|
||||
%endif
|
||||
%if %origen_spl == 1
|
||||
install -D -m 0755 spl/origen-spl.bin %{buildroot}/boot/origen-spl.bin
|
||||
install -D -m 0644 spl/origen-spl.bin %{buildroot}%{uboot_dir}/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
|
||||
install -D -m 0644 spl/arndale-spl.bin %{buildroot}%{uboot_dir}/arndale-spl.bin
|
||||
install -D -m 0644 %{SOURCE2} %{buildroot}%{uboot_dir}/arndale-bl1.img
|
||||
%endif
|
||||
%if %mvebu_spl == 1
|
||||
install -D -m 0755 u-boot-spl.kwb %{buildroot}%{uboot_dir}/u-boot-spl.kwb
|
||||
install -D -m 0644 u-boot-spl.kwb %{buildroot}%{uboot_dir}/u-boot-spl.kwb
|
||||
%endif
|
||||
%if %rockchip_spl == 1
|
||||
install -D -m 0644 spl/u-boot-spl.bin %{buildroot}%{uboot_dir}/u-boot-spl.bin
|
||||
@ -167,20 +177,14 @@ for t in ; do
|
||||
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
|
||||
install -D -m 0644 spl/sunxi-spl.bin %{buildroot}%{uboot_dir}/sunxi-spl.bin
|
||||
install -D -m 0644 u-boot-sunxi-with-spl.bin %{buildroot}%{uboot_dir}/u-boot-sunxi-with-spl.bin
|
||||
%endif
|
||||
%if %imx6_spl == 1
|
||||
install -D -m 0755 SPL %{buildroot}/boot/imx6-spl.bin
|
||||
install -D -m 0644 SPL %{buildroot}%{uboot_dir}/imx6-spl.bin
|
||||
%endif
|
||||
%if %socfpga_spl == 1
|
||||
install -D -m 0755 u-boot-with-spl.sfp %{buildroot}/boot/u-boot-with-spl.sfp
|
||||
install -D -m 0644 u-boot-with-spl.sfp %{buildroot}%{uboot_dir}/u-boot-with-spl.sfp
|
||||
%endif
|
||||
|
||||
%if 0%{?is_rpi}
|
||||
|
@ -1,3 +1,29 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 16 18:53:36 UTC 2017 - xxxxxmichl@googlemail.com
|
||||
|
||||
- Added Banana Pi M2+ support
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Oct 8 13:17:01 UTC 2017 - afaerber@suse.de
|
||||
|
||||
- Add firefly-rk3399 and geekbox
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Oct 7 00:52:52 UTC 2017 - afaerber@suse.de
|
||||
|
||||
- Drop obsolete CuBox-i i.MX6 SPL packaging, too
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Oct 6 23:26:14 UTC 2017 - afaerber@suse.de
|
||||
|
||||
- Update packaging for Jetson TX1
|
||||
- Cleanups
|
||||
* Drop executable bit from SPL
|
||||
* Consistently use %uboot_dir
|
||||
* u-boot[-tegra]-dtb.bin is obsolete
|
||||
* Drop obsolete UDOO-specific i.MX6 SPL packaging
|
||||
- Package sunxi64 SPL for Pine64
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 2 13:33:40 UTC 2017 - guillaume@opensuse.org
|
||||
|
||||
|
@ -23,9 +23,7 @@
|
||||
%define rockchip_spl 0
|
||||
%define sunxi_spl 0
|
||||
%define arndale_spl 0
|
||||
%define cuboxi_spl 0
|
||||
%define origen_spl 0
|
||||
%define udoo_spl 0
|
||||
%define imx6_spl 0
|
||||
%define socfpga_spl 0
|
||||
|
||||
@ -53,6 +51,9 @@ Patch0002: 0002-Revert-Revert-omap3-Use-raw-SPL-by-.patch
|
||||
Patch0003: 0003-Revert-rockchip-mkimage-remove-plac.patch
|
||||
Patch0004: 0004-Fix-boot-on-Beagleboard-xM-by-disab.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
%if 0
|
||||
BuildRequires: arm-trusted-firmware-pine64
|
||||
%endif
|
||||
BuildRequires: bc
|
||||
# Arndale board needs DTC >= 1.4
|
||||
BuildRequires: dtc >= 1.4.0
|
||||
@ -100,11 +101,21 @@ This package contains documentation for U-Boot firmware.
|
||||
|
||||
%build
|
||||
export SOURCE_DATE_EPOCH=$(date -d "$(head -n 2 %{_sourcedir}/%{name}.changes | tail -n 1 | cut -d- -f1 )" +%s)
|
||||
%if "%{name}" == "u-boot-pine64plus"
|
||||
export BL31=/boot/bl31.bin
|
||||
%endif
|
||||
|
||||
make %{?_smp_mflags} CROSS_COMPILE= HOSTCFLAGS="$RPM_OPT_FLAGS" orangepi_pc2_defconfig
|
||||
echo "Attempting to enable fdt apply command (.dtbo) support."
|
||||
echo "CONFIG_OF_LIBFDT_OVERLAY=y" >> .config
|
||||
make %{?_smp_mflags} CROSS_COMPILE= HOSTCFLAGS="$RPM_OPT_FLAGS" USE_PRIVATE_LIBGG=yes
|
||||
|
||||
%ifarch aarch64
|
||||
%if %sunxi_spl == 1
|
||||
cat spl/sunxi-spl.bin u-boot.itb > u-boot-sunxi-with-spl.bin
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%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)
|
||||
@ -131,34 +142,33 @@ export NO_DEBUGINFO_STRIP_DEBUG=true
|
||||
%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
|
||||
install -D -m 0644 $f %{buildroot}%{uboot_dir}/$f
|
||||
done
|
||||
%else
|
||||
%if "%{name}" == "u-boot-p2371-2180"
|
||||
# Jetson TX1 Driver Pack flash.sh needs several intermediate files, under their original name.
|
||||
for f in u-boot u-boot.bin u-boot.dtb u-boot-dtb.bin; do
|
||||
install -D -m 0644 $f %{buildroot}%{uboot_dir}/$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
|
||||
%endif
|
||||
%if %x_loader == 1
|
||||
install -D -m 0755 MLO %{buildroot}/boot/MLO
|
||||
install -D -m 0644 MLO %{buildroot}%{uboot_dir}/MLO
|
||||
%endif
|
||||
%if %origen_spl == 1
|
||||
install -D -m 0755 spl/origen-spl.bin %{buildroot}/boot/origen-spl.bin
|
||||
install -D -m 0644 spl/origen-spl.bin %{buildroot}%{uboot_dir}/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
|
||||
install -D -m 0644 spl/arndale-spl.bin %{buildroot}%{uboot_dir}/arndale-spl.bin
|
||||
install -D -m 0644 %{SOURCE2} %{buildroot}%{uboot_dir}/arndale-bl1.img
|
||||
%endif
|
||||
%if %mvebu_spl == 1
|
||||
install -D -m 0755 u-boot-spl.kwb %{buildroot}%{uboot_dir}/u-boot-spl.kwb
|
||||
install -D -m 0644 u-boot-spl.kwb %{buildroot}%{uboot_dir}/u-boot-spl.kwb
|
||||
%endif
|
||||
%if %rockchip_spl == 1
|
||||
install -D -m 0644 spl/u-boot-spl.bin %{buildroot}%{uboot_dir}/u-boot-spl.bin
|
||||
@ -167,20 +177,14 @@ for t in ; do
|
||||
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
|
||||
install -D -m 0644 spl/sunxi-spl.bin %{buildroot}%{uboot_dir}/sunxi-spl.bin
|
||||
install -D -m 0644 u-boot-sunxi-with-spl.bin %{buildroot}%{uboot_dir}/u-boot-sunxi-with-spl.bin
|
||||
%endif
|
||||
%if %imx6_spl == 1
|
||||
install -D -m 0755 SPL %{buildroot}/boot/imx6-spl.bin
|
||||
install -D -m 0644 SPL %{buildroot}%{uboot_dir}/imx6-spl.bin
|
||||
%endif
|
||||
%if %socfpga_spl == 1
|
||||
install -D -m 0755 u-boot-with-spl.sfp %{buildroot}/boot/u-boot-with-spl.sfp
|
||||
install -D -m 0644 u-boot-with-spl.sfp %{buildroot}%{uboot_dir}/u-boot-with-spl.sfp
|
||||
%endif
|
||||
|
||||
%if 0%{?is_rpi}
|
||||
|
@ -1,3 +1,29 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 16 18:53:36 UTC 2017 - xxxxxmichl@googlemail.com
|
||||
|
||||
- Added Banana Pi M2+ support
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Oct 8 13:17:01 UTC 2017 - afaerber@suse.de
|
||||
|
||||
- Add firefly-rk3399 and geekbox
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Oct 7 00:52:52 UTC 2017 - afaerber@suse.de
|
||||
|
||||
- Drop obsolete CuBox-i i.MX6 SPL packaging, too
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Oct 6 23:26:14 UTC 2017 - afaerber@suse.de
|
||||
|
||||
- Update packaging for Jetson TX1
|
||||
- Cleanups
|
||||
* Drop executable bit from SPL
|
||||
* Consistently use %uboot_dir
|
||||
* u-boot[-tegra]-dtb.bin is obsolete
|
||||
* Drop obsolete UDOO-specific i.MX6 SPL packaging
|
||||
- Package sunxi64 SPL for Pine64
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 2 13:33:40 UTC 2017 - guillaume@opensuse.org
|
||||
|
||||
|
@ -23,9 +23,7 @@
|
||||
%define rockchip_spl 0
|
||||
%define sunxi_spl 0
|
||||
%define arndale_spl 0
|
||||
%define cuboxi_spl 0
|
||||
%define origen_spl 0
|
||||
%define udoo_spl 0
|
||||
%define imx6_spl 0
|
||||
%define socfpga_spl 0
|
||||
|
||||
@ -53,6 +51,9 @@ Patch0002: 0002-Revert-Revert-omap3-Use-raw-SPL-by-.patch
|
||||
Patch0003: 0003-Revert-rockchip-mkimage-remove-plac.patch
|
||||
Patch0004: 0004-Fix-boot-on-Beagleboard-xM-by-disab.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
%if 0
|
||||
BuildRequires: arm-trusted-firmware-pine64
|
||||
%endif
|
||||
BuildRequires: bc
|
||||
# Arndale board needs DTC >= 1.4
|
||||
BuildRequires: dtc >= 1.4.0
|
||||
@ -100,11 +101,21 @@ This package contains documentation for U-Boot firmware.
|
||||
|
||||
%build
|
||||
export SOURCE_DATE_EPOCH=$(date -d "$(head -n 2 %{_sourcedir}/%{name}.changes | tail -n 1 | cut -d- -f1 )" +%s)
|
||||
%if "%{name}" == "u-boot-pine64plus"
|
||||
export BL31=/boot/bl31.bin
|
||||
%endif
|
||||
|
||||
make %{?_smp_mflags} CROSS_COMPILE= HOSTCFLAGS="$RPM_OPT_FLAGS" p2371-2180_defconfig
|
||||
echo "Attempting to enable fdt apply command (.dtbo) support."
|
||||
echo "CONFIG_OF_LIBFDT_OVERLAY=y" >> .config
|
||||
make %{?_smp_mflags} CROSS_COMPILE= HOSTCFLAGS="$RPM_OPT_FLAGS" USE_PRIVATE_LIBGG=yes
|
||||
|
||||
%ifarch aarch64
|
||||
%if %sunxi_spl == 1
|
||||
cat spl/sunxi-spl.bin u-boot.itb > u-boot-sunxi-with-spl.bin
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%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)
|
||||
@ -131,34 +142,33 @@ export NO_DEBUGINFO_STRIP_DEBUG=true
|
||||
%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
|
||||
install -D -m 0644 $f %{buildroot}%{uboot_dir}/$f
|
||||
done
|
||||
%else
|
||||
%if "%{name}" == "u-boot-p2371-2180"
|
||||
# Jetson TX1 Driver Pack flash.sh needs several intermediate files, under their original name.
|
||||
for f in u-boot u-boot.bin u-boot.dtb u-boot-dtb.bin; do
|
||||
install -D -m 0644 $f %{buildroot}%{uboot_dir}/$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
|
||||
%endif
|
||||
%if %x_loader == 1
|
||||
install -D -m 0755 MLO %{buildroot}/boot/MLO
|
||||
install -D -m 0644 MLO %{buildroot}%{uboot_dir}/MLO
|
||||
%endif
|
||||
%if %origen_spl == 1
|
||||
install -D -m 0755 spl/origen-spl.bin %{buildroot}/boot/origen-spl.bin
|
||||
install -D -m 0644 spl/origen-spl.bin %{buildroot}%{uboot_dir}/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
|
||||
install -D -m 0644 spl/arndale-spl.bin %{buildroot}%{uboot_dir}/arndale-spl.bin
|
||||
install -D -m 0644 %{SOURCE2} %{buildroot}%{uboot_dir}/arndale-bl1.img
|
||||
%endif
|
||||
%if %mvebu_spl == 1
|
||||
install -D -m 0755 u-boot-spl.kwb %{buildroot}%{uboot_dir}/u-boot-spl.kwb
|
||||
install -D -m 0644 u-boot-spl.kwb %{buildroot}%{uboot_dir}/u-boot-spl.kwb
|
||||
%endif
|
||||
%if %rockchip_spl == 1
|
||||
install -D -m 0644 spl/u-boot-spl.bin %{buildroot}%{uboot_dir}/u-boot-spl.bin
|
||||
@ -167,20 +177,14 @@ for t in ; do
|
||||
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
|
||||
install -D -m 0644 spl/sunxi-spl.bin %{buildroot}%{uboot_dir}/sunxi-spl.bin
|
||||
install -D -m 0644 u-boot-sunxi-with-spl.bin %{buildroot}%{uboot_dir}/u-boot-sunxi-with-spl.bin
|
||||
%endif
|
||||
%if %imx6_spl == 1
|
||||
install -D -m 0755 SPL %{buildroot}/boot/imx6-spl.bin
|
||||
install -D -m 0644 SPL %{buildroot}%{uboot_dir}/imx6-spl.bin
|
||||
%endif
|
||||
%if %socfpga_spl == 1
|
||||
install -D -m 0755 u-boot-with-spl.sfp %{buildroot}/boot/u-boot-with-spl.sfp
|
||||
install -D -m 0644 u-boot-with-spl.sfp %{buildroot}%{uboot_dir}/u-boot-with-spl.sfp
|
||||
%endif
|
||||
|
||||
%if 0%{?is_rpi}
|
||||
|
@ -1,3 +1,29 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 16 18:53:36 UTC 2017 - xxxxxmichl@googlemail.com
|
||||
|
||||
- Added Banana Pi M2+ support
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Oct 8 13:17:01 UTC 2017 - afaerber@suse.de
|
||||
|
||||
- Add firefly-rk3399 and geekbox
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Oct 7 00:52:52 UTC 2017 - afaerber@suse.de
|
||||
|
||||
- Drop obsolete CuBox-i i.MX6 SPL packaging, too
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Oct 6 23:26:14 UTC 2017 - afaerber@suse.de
|
||||
|
||||
- Update packaging for Jetson TX1
|
||||
- Cleanups
|
||||
* Drop executable bit from SPL
|
||||
* Consistently use %uboot_dir
|
||||
* u-boot[-tegra]-dtb.bin is obsolete
|
||||
* Drop obsolete UDOO-specific i.MX6 SPL packaging
|
||||
- Package sunxi64 SPL for Pine64
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 2 13:33:40 UTC 2017 - guillaume@opensuse.org
|
||||
|
||||
|
@ -23,9 +23,7 @@
|
||||
%define rockchip_spl 0
|
||||
%define sunxi_spl 0
|
||||
%define arndale_spl 0
|
||||
%define cuboxi_spl 0
|
||||
%define origen_spl 0
|
||||
%define udoo_spl 0
|
||||
%define imx6_spl 0
|
||||
%define socfpga_spl 0
|
||||
|
||||
@ -53,6 +51,9 @@ Patch0002: 0002-Revert-Revert-omap3-Use-raw-SPL-by-.patch
|
||||
Patch0003: 0003-Revert-rockchip-mkimage-remove-plac.patch
|
||||
Patch0004: 0004-Fix-boot-on-Beagleboard-xM-by-disab.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
%if 0
|
||||
BuildRequires: arm-trusted-firmware-pine64
|
||||
%endif
|
||||
BuildRequires: bc
|
||||
# Arndale board needs DTC >= 1.4
|
||||
BuildRequires: dtc >= 1.4.0
|
||||
@ -100,11 +101,21 @@ This package contains documentation for U-Boot firmware.
|
||||
|
||||
%build
|
||||
export SOURCE_DATE_EPOCH=$(date -d "$(head -n 2 %{_sourcedir}/%{name}.changes | tail -n 1 | cut -d- -f1 )" +%s)
|
||||
%if "%{name}" == "u-boot-pine64plus"
|
||||
export BL31=/boot/bl31.bin
|
||||
%endif
|
||||
|
||||
make %{?_smp_mflags} CROSS_COMPILE= HOSTCFLAGS="$RPM_OPT_FLAGS" paz00_defconfig
|
||||
echo "Attempting to enable fdt apply command (.dtbo) support."
|
||||
echo "CONFIG_OF_LIBFDT_OVERLAY=y" >> .config
|
||||
make %{?_smp_mflags} CROSS_COMPILE= HOSTCFLAGS="$RPM_OPT_FLAGS" USE_PRIVATE_LIBGG=yes
|
||||
|
||||
%ifarch aarch64
|
||||
%if %sunxi_spl == 1
|
||||
cat spl/sunxi-spl.bin u-boot.itb > u-boot-sunxi-with-spl.bin
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%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)
|
||||
@ -131,34 +142,33 @@ export NO_DEBUGINFO_STRIP_DEBUG=true
|
||||
%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
|
||||
install -D -m 0644 $f %{buildroot}%{uboot_dir}/$f
|
||||
done
|
||||
%else
|
||||
%if "%{name}" == "u-boot-p2371-2180"
|
||||
# Jetson TX1 Driver Pack flash.sh needs several intermediate files, under their original name.
|
||||
for f in u-boot u-boot.bin u-boot.dtb u-boot-dtb.bin; do
|
||||
install -D -m 0644 $f %{buildroot}%{uboot_dir}/$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
|
||||
%endif
|
||||
%if %x_loader == 1
|
||||
install -D -m 0755 MLO %{buildroot}/boot/MLO
|
||||
install -D -m 0644 MLO %{buildroot}%{uboot_dir}/MLO
|
||||
%endif
|
||||
%if %origen_spl == 1
|
||||
install -D -m 0755 spl/origen-spl.bin %{buildroot}/boot/origen-spl.bin
|
||||
install -D -m 0644 spl/origen-spl.bin %{buildroot}%{uboot_dir}/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
|
||||
install -D -m 0644 spl/arndale-spl.bin %{buildroot}%{uboot_dir}/arndale-spl.bin
|
||||
install -D -m 0644 %{SOURCE2} %{buildroot}%{uboot_dir}/arndale-bl1.img
|
||||
%endif
|
||||
%if %mvebu_spl == 1
|
||||
install -D -m 0755 u-boot-spl.kwb %{buildroot}%{uboot_dir}/u-boot-spl.kwb
|
||||
install -D -m 0644 u-boot-spl.kwb %{buildroot}%{uboot_dir}/u-boot-spl.kwb
|
||||
%endif
|
||||
%if %rockchip_spl == 1
|
||||
install -D -m 0644 spl/u-boot-spl.bin %{buildroot}%{uboot_dir}/u-boot-spl.bin
|
||||
@ -167,20 +177,14 @@ for t in ; do
|
||||
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
|
||||
install -D -m 0644 spl/sunxi-spl.bin %{buildroot}%{uboot_dir}/sunxi-spl.bin
|
||||
install -D -m 0644 u-boot-sunxi-with-spl.bin %{buildroot}%{uboot_dir}/u-boot-sunxi-with-spl.bin
|
||||
%endif
|
||||
%if %imx6_spl == 1
|
||||
install -D -m 0755 SPL %{buildroot}/boot/imx6-spl.bin
|
||||
install -D -m 0644 SPL %{buildroot}%{uboot_dir}/imx6-spl.bin
|
||||
%endif
|
||||
%if %socfpga_spl == 1
|
||||
install -D -m 0755 u-boot-with-spl.sfp %{buildroot}/boot/u-boot-with-spl.sfp
|
||||
install -D -m 0644 u-boot-with-spl.sfp %{buildroot}%{uboot_dir}/u-boot-with-spl.sfp
|
||||
%endif
|
||||
|
||||
%if 0%{?is_rpi}
|
||||
|
@ -1,3 +1,29 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 16 18:53:36 UTC 2017 - xxxxxmichl@googlemail.com
|
||||
|
||||
- Added Banana Pi M2+ support
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Oct 8 13:17:01 UTC 2017 - afaerber@suse.de
|
||||
|
||||
- Add firefly-rk3399 and geekbox
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Oct 7 00:52:52 UTC 2017 - afaerber@suse.de
|
||||
|
||||
- Drop obsolete CuBox-i i.MX6 SPL packaging, too
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Oct 6 23:26:14 UTC 2017 - afaerber@suse.de
|
||||
|
||||
- Update packaging for Jetson TX1
|
||||
- Cleanups
|
||||
* Drop executable bit from SPL
|
||||
* Consistently use %uboot_dir
|
||||
* u-boot[-tegra]-dtb.bin is obsolete
|
||||
* Drop obsolete UDOO-specific i.MX6 SPL packaging
|
||||
- Package sunxi64 SPL for Pine64
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 2 13:33:40 UTC 2017 - guillaume@opensuse.org
|
||||
|
||||
|
@ -23,9 +23,7 @@
|
||||
%define rockchip_spl 0
|
||||
%define sunxi_spl 0
|
||||
%define arndale_spl 0
|
||||
%define cuboxi_spl 0
|
||||
%define origen_spl 0
|
||||
%define udoo_spl 0
|
||||
%define imx6_spl 0
|
||||
%define socfpga_spl 0
|
||||
|
||||
@ -53,6 +51,9 @@ Patch0002: 0002-Revert-Revert-omap3-Use-raw-SPL-by-.patch
|
||||
Patch0003: 0003-Revert-rockchip-mkimage-remove-plac.patch
|
||||
Patch0004: 0004-Fix-boot-on-Beagleboard-xM-by-disab.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
%if 0
|
||||
BuildRequires: arm-trusted-firmware-pine64
|
||||
%endif
|
||||
BuildRequires: bc
|
||||
# Arndale board needs DTC >= 1.4
|
||||
BuildRequires: dtc >= 1.4.0
|
||||
@ -100,11 +101,21 @@ This package contains documentation for U-Boot firmware.
|
||||
|
||||
%build
|
||||
export SOURCE_DATE_EPOCH=$(date -d "$(head -n 2 %{_sourcedir}/%{name}.changes | tail -n 1 | cut -d- -f1 )" +%s)
|
||||
%if "%{name}" == "u-boot-pine64plus"
|
||||
export BL31=/boot/bl31.bin
|
||||
%endif
|
||||
|
||||
make %{?_smp_mflags} CROSS_COMPILE= HOSTCFLAGS="$RPM_OPT_FLAGS" pcm051_rev3_defconfig
|
||||
echo "Attempting to enable fdt apply command (.dtbo) support."
|
||||
echo "CONFIG_OF_LIBFDT_OVERLAY=y" >> .config
|
||||
make %{?_smp_mflags} CROSS_COMPILE= HOSTCFLAGS="$RPM_OPT_FLAGS" USE_PRIVATE_LIBGG=yes
|
||||
|
||||
%ifarch aarch64
|
||||
%if %sunxi_spl == 1
|
||||
cat spl/sunxi-spl.bin u-boot.itb > u-boot-sunxi-with-spl.bin
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%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)
|
||||
@ -131,34 +142,33 @@ export NO_DEBUGINFO_STRIP_DEBUG=true
|
||||
%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
|
||||
install -D -m 0644 $f %{buildroot}%{uboot_dir}/$f
|
||||
done
|
||||
%else
|
||||
%if "%{name}" == "u-boot-p2371-2180"
|
||||
# Jetson TX1 Driver Pack flash.sh needs several intermediate files, under their original name.
|
||||
for f in u-boot u-boot.bin u-boot.dtb u-boot-dtb.bin; do
|
||||
install -D -m 0644 $f %{buildroot}%{uboot_dir}/$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.img %{buildroot}%{uboot_dir}/u-boot.img
|
||||
elif [ -f u-boot-dtb.img ]; then
|
||||
install -D -m 0644 u-boot-dtb.img %{buildroot}%{uboot_dir}/u-boot.img
|
||||
else
|
||||
install -D -m 0644 u-boot.img %{buildroot}%{uboot_dir}/u-boot.img
|
||||
fi
|
||||
%if "%{name}" == "u-boot-qemu-ppce500"
|
||||
mv %{buildroot}%{uboot_dir}/u-boot.img %{buildroot}%{uboot_dir}/u-boot.e500
|
||||
%endif
|
||||
%endif
|
||||
%endif
|
||||
%if %x_loader == 1
|
||||
install -D -m 0755 MLO %{buildroot}/boot/MLO
|
||||
install -D -m 0644 MLO %{buildroot}%{uboot_dir}/MLO
|
||||
%endif
|
||||
%if %origen_spl == 1
|
||||
install -D -m 0755 spl/origen-spl.bin %{buildroot}/boot/origen-spl.bin
|
||||
install -D -m 0644 spl/origen-spl.bin %{buildroot}%{uboot_dir}/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
|
||||
install -D -m 0644 spl/arndale-spl.bin %{buildroot}%{uboot_dir}/arndale-spl.bin
|
||||
install -D -m 0644 %{SOURCE2} %{buildroot}%{uboot_dir}/arndale-bl1.img
|
||||
%endif
|
||||
%if %mvebu_spl == 1
|
||||
install -D -m 0755 u-boot-spl.kwb %{buildroot}%{uboot_dir}/u-boot-spl.kwb
|
||||
install -D -m 0644 u-boot-spl.kwb %{buildroot}%{uboot_dir}/u-boot-spl.kwb
|
||||
%endif
|
||||
%if %rockchip_spl == 1
|
||||
install -D -m 0644 spl/u-boot-spl.bin %{buildroot}%{uboot_dir}/u-boot-spl.bin
|
||||
@ -167,20 +177,14 @@ for t in ; do
|
||||
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
|
||||
install -D -m 0644 spl/sunxi-spl.bin %{buildroot}%{uboot_dir}/sunxi-spl.bin
|
||||
install -D -m 0644 u-boot-sunxi-with-spl.bin %{buildroot}%{uboot_dir}/u-boot-sunxi-with-spl.bin
|
||||
%endif
|
||||
%if %imx6_spl == 1
|
||||
install -D -m 0755 SPL %{buildroot}/boot/imx6-spl.bin
|
||||
install -D -m 0644 SPL %{buildroot}%{uboot_dir}/imx6-spl.bin
|
||||
%endif
|
||||
%if %socfpga_spl == 1
|
||||
install -D -m 0755 u-boot-with-spl.sfp %{buildroot}/boot/u-boot-with-spl.sfp
|
||||
install -D -m 0644 u-boot-with-spl.sfp %{buildroot}%{uboot_dir}/u-boot-with-spl.sfp
|
||||
%endif
|
||||
|
||||
%if 0%{?is_rpi}
|
||||
|
@ -1,3 +1,29 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 16 18:53:36 UTC 2017 - xxxxxmichl@googlemail.com
|
||||
|
||||
- Added Banana Pi M2+ support
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Oct 8 13:17:01 UTC 2017 - afaerber@suse.de
|
||||
|
||||
- Add firefly-rk3399 and geekbox
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Oct 7 00:52:52 UTC 2017 - afaerber@suse.de
|
||||
|
||||
- Drop obsolete CuBox-i i.MX6 SPL packaging, too
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Oct 6 23:26:14 UTC 2017 - afaerber@suse.de
|
||||
|
||||
- Update packaging for Jetson TX1
|
||||
- Cleanups
|
||||
* Drop executable bit from SPL
|
||||
* Consistently use %uboot_dir
|
||||
* u-boot[-tegra]-dtb.bin is obsolete
|
||||
* Drop obsolete UDOO-specific i.MX6 SPL packaging
|
||||
- Package sunxi64 SPL for Pine64
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 2 13:33:40 UTC 2017 - guillaume@opensuse.org
|
||||
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user