summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoakim Reinert2017-01-14 15:53:27 +0100
committerJoakim Reinert2017-01-14 15:53:27 +0100
commit8d2bebb7256d7bb8b3768ca09755598f4beb463c (patch)
tree45314c70e74b4e93c1538deda170a42451998058
parent02ee525c4d038f6bdd68a15f98f3d188114effe4 (diff)
downloadaur-8d2bebb7256d7bb8b3768ca09755598f4beb463c.tar.gz
build firmare in install script
-rw-r--r--.SRCINFO3
-rw-r--r--PKGBUILD5
-rw-r--r--axoloti-runtime-git.install3
3 files changed, 6 insertions, 5 deletions
diff --git a/.SRCINFO b/.SRCINFO
index ece96099478..af81913dd86 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,10 +1,11 @@
# Generated by mksrcinfo v8
-# Sat Jan 14 14:39:34 UTC 2017
+# Sat Jan 14 14:53:11 UTC 2017
pkgbase = axoloti-runtime-git
pkgdesc = runtime for axoloti
pkgver = 1.0.11.r61.g6a05b1c2
pkgrel = 3
url = http://www.axoloti.com
+ install = axoloti-runtime-git.install
arch = x86_64
license = GPL
makedepends = libtool
diff --git a/PKGBUILD b/PKGBUILD
index 92f488db807..e4689a32c89 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -13,6 +13,7 @@ makedepends=(libtool automake autoconf unzip)
provides=(axoloti-runtime=$pkgver)
conflicts=(axoloti-runtime)
options=('!strip')
+install="$pkgname.install"
_chibios_version=2.6.9
_chibios=ChibiOS_${_chibios_version}
@@ -59,10 +60,6 @@ build() {
make install
make clean
ldd "$srcdir/$_gitname/platform_linux/bin/dfu-util"
-
- echo '##### compiling firmware... #####'
- cd "$srcdir/$_gitname/platform_linux"
- BUILDDIR="$srcdir/$_gitname/firmware/build" ./compile_firmware.sh
}
pkgver() {
diff --git a/axoloti-runtime-git.install b/axoloti-runtime-git.install
new file mode 100644
index 00000000000..29d86ac49e4
--- /dev/null
+++ b/axoloti-runtime-git.install
@@ -0,0 +1,3 @@
+echo '##### compiling firmware... #####'
+cd /opt/axoloti-runtime/platform_linux
+BUILDDIR=/opt/axoloti-runtime/firmware/build ./compile_firmware.sh