summaryrefslogtreecommitdiffstats
path: root/main/linux-vanilla/APKBUILD
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2014-04-03 13:53:02 +0000
committerTimo Teräs <timo.teras@iki.fi>2014-04-03 13:53:02 +0000
commitc65edb14c5b7555b99bc38799c098f3fa3dd6414 (patch)
treeed7a186e34f88d37b60d9d4d7327ea222530db47 /main/linux-vanilla/APKBUILD
parent72608437010872e6654cdf4b2a032ad2ab1a645d (diff)
downloadaports-c65edb14c5b7555b99bc38799c098f3fa3dd6414.tar.bz2
aports-c65edb14c5b7555b99bc38799c098f3fa3dd6414.tar.xz
main/linux-vanilla: use zImage and dtbs on arm
Diffstat (limited to 'main/linux-vanilla/APKBUILD')
-rw-r--r--main/linux-vanilla/APKBUILD20
1 files changed, 19 insertions, 1 deletions
diff --git a/main/linux-vanilla/APKBUILD b/main/linux-vanilla/APKBUILD
index 066577b81..1f6624925 100644
--- a/main/linux-vanilla/APKBUILD
+++ b/main/linux-vanilla/APKBUILD
@@ -82,8 +82,26 @@ build() {
package() {
cd "$srcdir"/build
+
mkdir -p "$pkgdir"/boot "$pkgdir"/lib/modules
- make -j1 modules_install firmware_install install \
+
+ local _install
+ case "$CARCH" in
+ arm*)
+ local _dtbdir="$pkgdir"/usr/lib/linux-${_abi_release}
+ mkdir -p "$_dtbdir"
+ for i in arch/arm/boot/dts/*.dtb ; do
+ install -m644 "$i" "$_dtbdir"
+ done
+
+ _install=zinstall
+ ;;
+ *)
+ _install=install
+ ;;
+ esac
+
+ make -j1 modules_install firmware_install $_install \
INSTALL_MOD_PATH="$pkgdir" \
INSTALL_PATH="$pkgdir"/boot \
|| return 1