2016-02-21 00:12:01 +00:00
|
|
|
# U-Boot: Raspberry Pi
|
|
|
|
# Maintainer: Kevin Mihelich <kevin@archlinuxarm.org>
|
2024-02-16 18:43:41 +00:00
|
|
|
# Maintainer: graysky <therealgraysky@proton.me>
|
2016-02-21 00:12:01 +00:00
|
|
|
|
|
|
|
pkgname=uboot-raspberrypi
|
2024-02-13 19:46:21 +00:00
|
|
|
pkgver=2024.01
|
2024-02-20 20:49:49 +00:00
|
|
|
pkgrel=5
|
2016-02-21 00:12:01 +00:00
|
|
|
pkgdesc="U-Boot for Raspberry Pi"
|
2016-12-11 21:23:19 +00:00
|
|
|
arch=('armv7h' 'aarch64')
|
2024-02-16 18:43:41 +00:00
|
|
|
url='https://docs.u-boot.org/en/latest'
|
2016-02-21 00:12:01 +00:00
|
|
|
license=('GPL')
|
2016-12-11 21:23:19 +00:00
|
|
|
backup=('boot/boot.txt' 'boot/boot.scr' 'boot/config.txt')
|
2016-02-21 00:12:01 +00:00
|
|
|
makedepends=('bc' 'dtc' 'git')
|
2024-02-16 18:43:41 +00:00
|
|
|
conflicts_armv7h=('linux-rpi' 'linux-rpi-16k')
|
2024-02-15 20:46:46 +00:00
|
|
|
_commit=f01fa5fa89d9628d15d148c545b078f8ec19c643
|
2024-02-13 19:46:21 +00:00
|
|
|
source=(
|
|
|
|
"https://github.com/u-boot/u-boot/archive/refs/tags/v${pkgver/rc/-rc}.tar.gz"
|
2024-02-16 18:43:41 +00:00
|
|
|
"https://github.com/raspberrypi/firmware/raw/${_commit}/boot/bcm2710-rpi-2-b.dtb"
|
2020-06-01 12:51:47 +00:00
|
|
|
"https://github.com/raspberrypi/firmware/raw/${_commit}/boot/bcm2710-rpi-3-b-plus.dtb"
|
2024-02-16 18:43:41 +00:00
|
|
|
"https://github.com/raspberrypi/firmware/raw/${_commit}/boot/bcm2710-rpi-3-b.dtb"
|
2020-06-01 12:51:47 +00:00
|
|
|
"https://github.com/raspberrypi/firmware/raw/${_commit}/boot/bcm2710-rpi-cm3.dtb"
|
2024-02-16 18:43:41 +00:00
|
|
|
"https://github.com/raspberrypi/firmware/raw/${_commit}/boot/bcm2710-rpi-zero-2-w.dtb"
|
|
|
|
"https://github.com/raspberrypi/firmware/raw/${_commit}/boot/bcm2710-rpi-zero-2.dtb"
|
2020-06-01 12:51:47 +00:00
|
|
|
"https://github.com/raspberrypi/firmware/raw/${_commit}/boot/bcm2711-rpi-4-b.dtb"
|
2024-02-16 18:43:41 +00:00
|
|
|
"https://github.com/raspberrypi/firmware/raw/${_commit}/boot/bcm2711-rpi-400.dtb"
|
|
|
|
"https://github.com/raspberrypi/firmware/raw/${_commit}/boot/bcm2711-rpi-cm4-io.dtb"
|
|
|
|
"https://github.com/raspberrypi/firmware/raw/${_commit}/boot/bcm2711-rpi-cm4.dtb"
|
|
|
|
"https://github.com/raspberrypi/firmware/raw/${_commit}/boot/bcm2711-rpi-cm4s.dtb"
|
2020-08-09 00:55:01 +00:00
|
|
|
'0001-rpi-increase-space-for-kernel.patch'
|
2016-12-11 21:23:19 +00:00
|
|
|
'boot.txt.v2'
|
|
|
|
'boot.txt.v3'
|
2016-02-21 00:12:01 +00:00
|
|
|
'mkscr')
|
2024-02-13 19:46:21 +00:00
|
|
|
md5sums=('6e0b18756a5f856b3bf520eea12f5e40'
|
2024-02-16 18:43:41 +00:00
|
|
|
'68b1a849ba8eb98f1b291b87ea1f2a66'
|
2024-02-13 19:46:21 +00:00
|
|
|
'db77bbeb380319a3a230d6985b9a8e32'
|
2024-02-16 18:43:41 +00:00
|
|
|
'797f952a9f21522c4f303393fd4b582d'
|
2024-02-13 19:46:21 +00:00
|
|
|
'80e31ec6eb9d5b2fef4402c4490af57d'
|
2024-02-16 18:43:41 +00:00
|
|
|
'95634d0b534d68f519ea0d3d2f956e69'
|
|
|
|
'95634d0b534d68f519ea0d3d2f956e69'
|
2024-02-13 19:46:21 +00:00
|
|
|
'1479091344ee42694d72ebc57d2f06ec'
|
2024-02-16 18:43:41 +00:00
|
|
|
'2af9149c658c9f8eefd90b19272323ee'
|
|
|
|
'a25f0c66c2b1db164c7ec7aa2fd12325'
|
|
|
|
'd0bd006e92b307ddac4b62133e6e2442'
|
|
|
|
'e55a2a67acbe6f93b567778ec576b203'
|
2024-02-20 20:49:49 +00:00
|
|
|
'6aaffd002561e8dcbbf0b26422040143'
|
2017-03-22 01:56:50 +00:00
|
|
|
'69e883f0b8d1686b32bdf79684623f06'
|
2020-08-09 00:55:01 +00:00
|
|
|
'be8abe44b86d63428d7ac3acc64ee3bf'
|
2016-02-21 00:12:01 +00:00
|
|
|
'021623a04afd29ac3f368977140cfbfd')
|
|
|
|
|
2019-07-06 15:23:58 +00:00
|
|
|
prepare() {
|
|
|
|
cd u-boot-${pkgver/rc/-rc}
|
|
|
|
|
2020-08-09 00:55:01 +00:00
|
|
|
patch -p1 -i ../0001-rpi-increase-space-for-kernel.patch
|
2019-07-06 15:23:58 +00:00
|
|
|
}
|
|
|
|
|
2016-02-21 00:12:01 +00:00
|
|
|
build() {
|
2016-12-11 21:23:19 +00:00
|
|
|
cd u-boot-${pkgver/rc/-rc}
|
2016-02-21 00:12:01 +00:00
|
|
|
|
|
|
|
unset CFLAGS
|
|
|
|
unset CXXFLAGS
|
|
|
|
unset CPPFLAGS
|
|
|
|
|
2016-12-11 21:23:19 +00:00
|
|
|
make distclean
|
|
|
|
[[ $CARCH == "armv7h" ]] && make rpi_2_config
|
2020-06-01 12:51:47 +00:00
|
|
|
[[ $CARCH == "aarch64" ]] && make rpi_arm64_config
|
2017-03-22 01:56:50 +00:00
|
|
|
echo 'CONFIG_IDENT_STRING=" Arch Linux ARM"' >> .config
|
2016-02-21 00:12:01 +00:00
|
|
|
make EXTRAVERSION=-${pkgrel}
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2016-12-11 21:23:19 +00:00
|
|
|
cd u-boot-${pkgver/rc/-rc}
|
2016-02-21 00:12:01 +00:00
|
|
|
|
|
|
|
mkdir -p "${pkgdir}"/boot
|
|
|
|
|
2016-12-11 21:23:19 +00:00
|
|
|
if [[ $CARCH == "armv7h" ]]; then
|
|
|
|
cp u-boot.bin ${pkgdir}/boot/kernel7.img
|
|
|
|
cp ../boot.txt.v2 ../boot.txt
|
|
|
|
elif [[ $CARCH == "aarch64" ]]; then
|
|
|
|
cp u-boot.bin ${pkgdir}/boot/kernel8.img
|
2020-06-01 12:51:47 +00:00
|
|
|
cp ../*.dtb ${pkgdir}/boot
|
2016-12-11 21:23:19 +00:00
|
|
|
cp ../boot.txt.v3 ../boot.txt
|
|
|
|
echo "enable_uart=1" > ${pkgdir}/boot/config.txt
|
|
|
|
fi
|
2016-02-21 00:12:01 +00:00
|
|
|
|
|
|
|
tools/mkimage -A arm -O linux -T script -C none -n "U-Boot boot script" -d ../boot.txt "${pkgdir}"/boot/boot.scr
|
|
|
|
cp ../{boot.txt,mkscr} "${pkgdir}"/boot
|
|
|
|
}
|