blob: 5480ab8ab164ad5a0b1bf42b62194e8bbbf95abf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
|
# U-Boot: BeagleBone and BeagleBone Black
# Maintainer: André Silva <emulatorman@hyperbola.info>
# Contributor: Jookia <166291@gmail.com>
# Contributor: Márcio Silva <coadde@hyperbola.info>
pkgbase=uboot4extlinux-am335x
pkgname=('uboot4extlinux-am335x_bone'
'uboot4extlinux-chiliboard')
pkgver=2019.10
pkgrel=1
arch=('armv7h')
url="http://git.denx.de/u-boot.git/"
license=('GPL')
makedepends=('bc' 'bison' 'dtc' 'flex' 'python' 'python2' 'swig')
backup=(boot/extlinux/extlinux.conf)
source=("ftp://ftp.denx.de/pub/u-boot/u-boot-${pkgver}.tar.bz2"
'extlinux.conf')
sha256sums=('8d6d6070739522dd236cba7055b8736bfe92b4fac0ea18ad809829ca79667014'
'445fb52f25787d184596d8ad6f6c6359d4ca2508fd68f7a178970b760f8080fd')
boards=('am335x_evm'
'chiliboard')
prepare() {
cd u-boot-${pkgver}
echo 'CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR=0x200' >> configs/am335x_evm_defconfig
}
build() {
cd u-boot-${pkgver}
unset CFLAGS CXXFLAGS LDFLAGS
for i in ${boards[@]}; do
mkdir -p ../bin_${i}
make distclean
make ${i}_defconfig
echo 'CONFIG_IDENT_STRING=" Parabola GNU/Linux-libre"' >> .config
make EXTRAVERSION=-${pkgrel}
mv -f MLO u-boot.img ../bin_${i}
done
}
package_uboot4extlinux-am335x_bone() {
pkgdesc="U-Boot with Extlinux support for various BeagleBones"
install=${pkgbase}.install
provides=('uboot4extlinux-am335x')
conflicts=('uboot-am335x_bone' 'uboot4grub-am335x_bone')
install -d "${pkgdir}"/boot/extlinux
install -d "${pkgdir}"/boot/u-boot/images/
install -Dm644 \
bin_am335x_evm/MLO \
bin_am335x_evm/u-boot.img \
"${pkgdir}"/boot/u-boot/images/
install -Dm644 extlinux.conf "${pkgdir}"/boot/extlinux
}
package_uboot4extlinux-chiliboard() {
pkgdesc="U-Boot with Extlinux support for the ChiliBoard"
install=${pkgbase}.install
provides=('uboot4extlinux-am335x')
conflicts=('uboot-chiliboard')
install -d "${pkgdir}"/boot/extlinux
install -d "${pkgdir}"/boot/u-boot/images/
install -Dm644 \
bin_chiliboard/MLO \
bin_chiliboard/u-boot.img \
"${pkgdir}"/boot/u-boot/images/
install -Dm644 extlinux.conf "${pkgdir}"/boot/extlinux
}
|