summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@parabola.nu>2015-09-27 06:45:24 -0300
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2015-09-27 06:45:41 -0300
commit986007f260d6d706755aae7108e7568ddeb60edd (patch)
tree0a9344bd8873387cab0f08862eff976f2e64bcd4
parent9c646988505055b718517d647681d4f3c40eca98 (diff)
linux-libre: copy dtb files to /boot/dtbs/${pkgbase}
-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"