summaryrefslogtreecommitdiff
path: root/libre/linux-libre/PKGBUILD
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@parabola.nu>2015-09-07 15:25:18 -0300
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2015-09-07 15:25:18 -0300
commit5fa5c9f45f6f5262c966fce3af6bc3f5e45515f2 (patch)
treebc19139aa5906d55ffb3b8293c74ad3be3ce4ced /libre/linux-libre/PKGBUILD
parentf7765cbfebc8de217c5f626c559f5943fb58d0cb (diff)
downloadabslibre-5fa5c9f45f6f5262c966fce3af6bc3f5e45515f2.tar.gz
abslibre-5fa5c9f45f6f5262c966fce3af6bc3f5e45515f2.tar.bz2
abslibre-5fa5c9f45f6f5262c966fce3af6bc3f5e45515f2.zip
linux-libre-dtb: add new package to [libre], dtbs files will be built from it for all kernels like linux-libre-firmware
Diffstat (limited to 'libre/linux-libre/PKGBUILD')
-rw-r--r--libre/linux-libre/PKGBUILD7
1 files changed, 4 insertions, 3 deletions
diff --git a/libre/linux-libre/PKGBUILD b/libre/linux-libre/PKGBUILD
index 655c8c651..b1665d2c7 100644
--- a/libre/linux-libre/PKGBUILD
+++ b/libre/linux-libre/PKGBUILD
@@ -107,7 +107,7 @@ prepare() {
patch -p1 -i "${srcdir}/patch-${_pkgbasever}-${_pkgver}"
fi
- if [ "${CARCH}" == "armv7h" ]; then
+ if [ "${CARCH}" = "armv7h" ]; then
# RCN patch (CM3 firmware deblobbed)
patch -p1 -i "${srcdir}/rcn-libre-${_pkgver%-*}-${rcnrel}.patch"
@@ -170,7 +170,7 @@ build() {
if [ "${CARCH}" != "armv7h" ]; then
make ${MAKEFLAGS} LOCALVERSION= bzImage modules
else
- make ${MAKEFLAGS} LOCALVERSION= zImage modules dtbs
+ make ${MAKEFLAGS} LOCALVERSION= zImage modules
fi
}
@@ -180,6 +180,8 @@ _package() {
depends=('coreutils' 'linux-libre-firmware' 'kmod')
if [ "${CARCH}" != "armv7h" ]; then
depends+=('mkinitcpio>=0.7')
+ else
+ depends+=("linux-libre-dtb=${pkgver}")
fi
optdepends=('crda: to set the correct wireless channels of your country')
provides=("${_replacesarchkernel[@]/%/=${_archpkgver}}")
@@ -206,7 +208,6 @@ _package() {
cp arch/$KARCH/boot/bzImage "${pkgdir}/boot/vmlinuz-${pkgbase}"
else
cp arch/$KARCH/boot/zImage "${pkgdir}/boot/vmlinuz-${pkgbase}"
- cp arch/$KARCH/boot/dts/*.dtb "${pkgdir}/boot/dtbs"
for _arm in armada-{370-smileplug,370-mirabox,xp-openblocks-ax3-4} dove-{d3plug,cubox}; do
cat arch/$KARCH/boot/zImage arch/$KARCH/boot/dts/${_arm}.dtb > myimage-${_arm}