summaryrefslogtreecommitdiff
path: root/libre-testing/barebox
diff options
context:
space:
mode:
authorDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2018-12-14 17:21:14 +0100
committerDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2018-12-14 17:51:26 +0100
commit669f5d95be97edf2766b9fd386f43df01c0c5a37 (patch)
tree936d33a337bdbe6400280743ff7cffa59996d00f /libre-testing/barebox
parent488de00a17359ee2d2e1dcfd9036bce0dd10646d (diff)
downloadabslibre-669f5d95be97edf2766b9fd386f43df01c0c5a37.tar.gz
abslibre-669f5d95be97edf2766b9fd386f43df01c0c5a37.tar.bz2
abslibre-669f5d95be97edf2766b9fd386f43df01c0c5a37.zip
[libre-testing] Add preliminary barebox package
TODO: - Add support for x86 and x86_64 - Package the utilities - Add installation instructions or scripts Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
Diffstat (limited to 'libre-testing/barebox')
-rw-r--r--libre-testing/barebox/PKGBUILD37
1 files changed, 37 insertions, 0 deletions
diff --git a/libre-testing/barebox/PKGBUILD b/libre-testing/barebox/PKGBUILD
new file mode 100644
index 000000000..133cbd700
--- /dev/null
+++ b/libre-testing/barebox/PKGBUILD
@@ -0,0 +1,37 @@
+# Barebox: am335x
+# Contributor: Denis Carikli <GNUtoo@cyberdimension.org>
+
+_pkgname=barebox
+pkgname=barebox-am335x
+pkgver=2018.12.0
+pkgrel=1
+pkgdesc="Barebox for devices with an am335x system on a chip"
+arch=('armv7h')
+makedepends=('lzop')
+url="http://barebox.org/"
+license=('GPL2')
+source=("http://barebox.org/download/${_pkgname}-${pkgver}.tar.bz2")
+sha512sums=('3f83c1057e16fac1ee3afac849e5f0a1e2353b767754e6f206178c99d709bc4b22127be9c340be471592c4c650f25e91fcc5a5ad28a8375a049a41a417c08dd1')
+
+build() {
+ cd ${_pkgname}-${pkgver}
+ unset CFLAGS CXXFLAGS LDFLAGS
+
+ if [ "$CARCH" = "armv7h" ]; then
+ export ARCH=arm
+ make am335x_mlo_defconfig
+ make
+
+ make am335x_defconfig
+ make
+ # TODO: Add support for more ARM SOCs and
+ # CPU architectures (Barebox also supports
+ # x86 and PowerPC)
+ fi
+}
+
+package() {
+ cd ${_pkgname}-${pkgver}
+ mkdir -p "${pkgdir}/boot/barebox/"
+ install -t "${pkgdir}/boot/barebox/" images/barebox-*.img
+}