blob: 8d9263aa3b38c3e3b05e07e5fbf0af3e791420d6 (
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
|
# Barebox: am335x
# Contributor: Denis Carikli <GNUtoo@cyberdimension.org>
_pkgname=barebox
pkgname=barebox-am335x
pkgver=2019.02.0
pkgrel=2
pkgdesc="Barebox for devices with an am335x system on a chip"
arch=('armv7h' 'x86_64')
makedepends=('lzop')
url="http://barebox.org/"
license=('GPL2')
install=${_pkgname}.install
source=("http://barebox.org/download/${_pkgname}-${pkgver}.tar.bz2")
sha512sums=('648827efeec7b2591eaf43daf98368be1902e3f8157c8acd88b9f103078e9989bb158d81eda013e360d6dfdfbb3c7aae0e334fce957663b72ca46f419c33e981')
build() {
cd ${_pkgname}-${pkgver}
unset CFLAGS CXXFLAGS LDFLAGS
if [ "$CARCH" = "armv7h" ]; then
export ARCH=arm
make am335x_mlo_defconfig
make
make omap_defconfig
make
elif [ "$CARCH" = "x86_64" ]; then
export ARCH=x86
# efi_defconfig requires compiling in 64bit mode
make efi_defconfig
make
fi
# TODO: Add support for more ARM SOCs and
# CPU architectures (Barebox also supports
# x86 and PowerPC)
}
package() {
cd ${_pkgname}-${pkgver}
mkdir -p "${pkgdir}/boot/barebox/images/"
install -t "${pkgdir}/boot/barebox/images/" images/barebox-*.img
}
|