diff options
Diffstat (limited to 'main/linux-vanilla/APKBUILD')
-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 |