summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--~emulatorman/linux-libre/PKGBUILD10
1 files changed, 6 insertions, 4 deletions
diff --git a/~emulatorman/linux-libre/PKGBUILD b/~emulatorman/linux-libre/PKGBUILD
index 45fbafcdb..89ef67e01 100644
--- a/~emulatorman/linux-libre/PKGBUILD
+++ b/~emulatorman/linux-libre/PKGBUILD
@@ -193,13 +193,9 @@ _package() {
_basekernel=${_basekernel%.*}
mkdir -p "${pkgdir}"/{lib/modules,lib/firmware,boot}
- if [ "${CARCH}" = "armv7h" ]; then
- mkdir -p "${pkgdir}/usr/lib/dtbs/${_kernver}"
- 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}/usr/lib/dtbs/${_kernver}"
elif [ "${CARCH}" = "x86_64" ] || [ "${CARCH}" = "i686" ]; then
cp arch/$KARCH/boot/bzImage "${pkgdir}/boot/vmlinuz-${pkgbase}"
fi
@@ -238,6 +234,12 @@ _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"