diff options
author | Timo Teräs <timo.teras@iki.fi> | 2014-04-03 13:53:02 +0000 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2014-04-03 13:53:02 +0000 |
commit | c65edb14c5b7555b99bc38799c098f3fa3dd6414 (patch) | |
tree | ed7a186e34f88d37b60d9d4d7327ea222530db47 /main/linux-vanilla | |
parent | 72608437010872e6654cdf4b2a032ad2ab1a645d (diff) | |
download | aports-c65edb14c5b7555b99bc38799c098f3fa3dd6414.tar.bz2 aports-c65edb14c5b7555b99bc38799c098f3fa3dd6414.tar.xz |
main/linux-vanilla: use zImage and dtbs on arm
Diffstat (limited to 'main/linux-vanilla')
-rw-r--r-- | main/linux-vanilla/APKBUILD | 20 |
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 |