summaryrefslogtreecommitdiff
path: root/~emulatorman/linux-libre/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to '~emulatorman/linux-libre/PKGBUILD')
-rw-r--r--~emulatorman/linux-libre/PKGBUILD10
1 files changed, 4 insertions, 6 deletions
diff --git a/~emulatorman/linux-libre/PKGBUILD b/~emulatorman/linux-libre/PKGBUILD
index 89ef67e01..8865e4589 100644
--- a/~emulatorman/linux-libre/PKGBUILD
+++ b/~emulatorman/linux-libre/PKGBUILD
@@ -193,9 +193,13 @@ _package() {
_basekernel=${_basekernel%.*}
mkdir -p "${pkgdir}"/{lib/modules,lib/firmware,boot}
+ if [ "${CARCH}" = "armv7h" ]; then
+ mkdir -p "${pkgdir}/boot/dtbs/${pkgbase}"
+ fi
make LOCALVERSION= INSTALL_MOD_PATH="${pkgdir}" modules_install
if [ "${CARCH}" = "armv7h" ]; then
cp arch/$KARCH/boot/zImage "${pkgdir}/boot/vmlinuz-${pkgbase}"
+ cp arch/$KARCH/boot/dts/*.dtb "${pkgdir}/boot/dtbs/${pkgbase}"
elif [ "${CARCH}" = "x86_64" ] || [ "${CARCH}" = "i686" ]; then
cp arch/$KARCH/boot/bzImage "${pkgdir}/boot/vmlinuz-${pkgbase}"
fi
@@ -234,12 +238,6 @@ _package() {
mkdir -p "${pkgdir}/usr"
mv "${pkgdir}/lib" "${pkgdir}/usr/"
- if [ "${CARCH}" = "armv7h" ]; then
- # copy dtb files
- mkdir -p "${pkgdir}/usr/lib/dtbs/${_kernver}"
- cp arch/$KARCH/boot/dts/*.dtb "${pkgdir}/usr/lib/dtbs/${_kernver}"
- fi
-
if [ "${CARCH}" = "x86_64" ] || [ "${CARCH}" = "i686" ]; then
# add vmlinux
install -D -m644 vmlinux "${pkgdir}/usr/lib/modules/${_kernver}/build/vmlinux"