summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2019-01-18 01:45:13 +0100
committerDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2021-05-09 14:36:53 +0200
commit77f35ba2a7adf8950c9da717e58bb00468747c17 (patch)
treed487407e95903a5a430c7466da1fe2bce7311bee
parenta602c0e3a308c31abbd9d666a07ce483ea19f223 (diff)
[libre-testing] barebox: add x86_64 supportGNUtoo/barebox-x86_64-wip
Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
-rw-r--r--libre-testing/barebox/PKGBUILD15
1 files changed, 10 insertions, 5 deletions
diff --git a/libre-testing/barebox/PKGBUILD b/libre-testing/barebox/PKGBUILD
index 3573ec788..8d9263aa3 100644
--- a/libre-testing/barebox/PKGBUILD
+++ b/libre-testing/barebox/PKGBUILD
@@ -4,9 +4,9 @@
_pkgname=barebox
pkgname=barebox-am335x
pkgver=2019.02.0
-pkgrel=1
+pkgrel=2
pkgdesc="Barebox for devices with an am335x system on a chip"
-arch=('armv7h')
+arch=('armv7h' 'x86_64')
makedepends=('lzop')
url="http://barebox.org/"
license=('GPL2')
@@ -25,10 +25,15 @@ build() {
make omap_defconfig
make
- # TODO: Add support for more ARM SOCs and
- # CPU architectures (Barebox also supports
- # x86 and PowerPC)
+ 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() {