summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Parnell2016-12-25 20:08:51 -0600
committerMatt Parnell2016-12-25 20:08:51 -0600
commitd3a419c35eee01a1daa26b8ea59cffed62c1f135 (patch)
tree8e2a23888e6815690dfaef0cc9437d61092c8f8f
parentddb76c20a078facf00d53c2d8cd0b48de9caa598 (diff)
downloadaur-d3a419c35eee01a1daa26b8ea59cffed62c1f135.tar.gz
now, if you put a saved kernel config named zen-config in the top level (same level as the PKGBUILD), we will automatically grab and use it when building
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD41
2 files changed, 19 insertions, 24 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 31ec766fdba..04b38277b23 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,5 +1,5 @@
# Generated by mksrcinfo v8
-# Fri Dec 23 03:16:40 UTC 2016
+# Mon Dec 26 02:08:47 UTC 2016
pkgbase = linux-zen-git
pkgdesc = Featureful kernel including various new features, code and optimizations to better suit desktops
pkgver = 4.9.0+635573+g4f4d49c2f303
diff --git a/PKGBUILD b/PKGBUILD
index c6fe1096940..7643aafb102 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -38,18 +38,6 @@ prepare() {
fi
git reset --hard
-
-# _BADLINE=$(sed '656!d' Makefile)
-# if [ "$_BADLINE" != "endif" ]; then
-# msg "Applying quick fix for missing endif"
-# sed -i '656iendif' Makefile # quick fix for missing endif in current 4.9 branch
-# fi
-
-# _MISSINGHEADERS=$(sed '20!d' block/bfq-cgroup.c)
-# if [ "$_MISSINGHEADERS" != "#include \"blk.h\"" ]; then
-# msg "Applying quick fix for a couple missing headers for BFQ"
-# sed -i "20i#include \"blk.h\"\n#include \"blk-wbt.h\"\n" block/bfq-cgroup.c
-# fi
}
pkgver() {
@@ -70,22 +58,29 @@ build() {
if [ ! -d "${srcdir}/build" ]; then
msg2 "Creating build directory..."
mkdir -p "${srcdir}/build"
+ else
+ rm -rf "${srcdir}/build";
fi
- msg2 "Creating default config..." # also initializes the output directory
- make -C "${srcdir}/zen-kernel/" O="${srcdir}/build" defconfig > /dev/null
+ if [ ! -f "${srcdir}/../zen-config" ]; then
+ msg2 "Creating default config..." # also initializes the output directory
+ make -C "${srcdir}/zen-kernel/" O="${srcdir}/build" defconfig > /dev/null
- warning "This package does not ship a kernel config."
+ warning "This package does not ship a kernel config."
- plain ""
- warning "Thus it is up to you to create a one that fits your needs."
- warning "Navigate to '${srcdir}/build'"
- warning "and either run 'make menuconfig' or if you want to use an existing config,"
- warning "save it as '.config' and run 'make oldconfig' in order to update it."
- warning "Having done that you can run 'makepkg' again."
- plain ""
+ plain ""
+ warning "Thus it is up to you to create a one that fits your needs."
+ warning "Navigate to '${srcdir}/build'"
+ warning "and either run 'make menuconfig' or if you want to use an existing config,"
+ warning "save it as '.config' and run 'make oldconfig' in order to update it."
+ warning "Having done that you can run 'makepkg' again."
+ plain ""
- return 1
+ return 1
+ else
+ msg "Using saved zen-config file in build root."
+ cp "${srcdir}/../zen-config" "${srcdir}/build/.config"
+ fi
fi
msg2 "Updating output directory Makefile..."