summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Parnell2016-12-25 20:35:44 -0600
committerMatt Parnell2016-12-25 20:35:44 -0600
commitaa46932ee9633ce69811d8618122a0b193946291 (patch)
tree04160989246de6629337f8a2f2ffec63aaeb7b60
parentd3a419c35eee01a1daa26b8ea59cffed62c1f135 (diff)
downloadaur-aa46932ee9633ce69811d8618122a0b193946291.tar.gz
further enhancements
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD26
2 files changed, 19 insertions, 9 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 04b38277b23..d1691ad43f0 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,5 +1,5 @@
# Generated by mksrcinfo v8
-# Mon Dec 26 02:08:47 UTC 2016
+# Mon Dec 26 02:35:42 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 7643aafb102..6cfd5848bf1 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -52,18 +52,28 @@ build() {
# don't run depmod on 'make install'. We'll do this ourselves in packaging
sed -i '2iexit 0' scripts/depmod.sh
- if [ -e "${srcdir}/build/.config" ]; then
- msg2 "Using existing config found in build environment..."
+ if [ ! -d "${srcdir}/build" ]; then
+ msg2 "Creating build directory..."
+ mkdir -p "${srcdir}/build"
else
- if [ ! -d "${srcdir}/build" ]; then
- msg2 "Creating build directory..."
- mkdir -p "${srcdir}/build"
- else
- rm -rf "${srcdir}/build";
+ if [ -f "${srcdir}/build/.config" ]; then
+ msg "Cleaning build directory, and backing up kernel config to srcdir/zen-config-bak..."
+
+ cp "${srcdir}/build/.config" "${srcdir}/zen-config-bak"
+
+ cd "${srcdir}/build"
+
+ make clean
+ make mrproper
+
+ msg "Using backed up config from previous build directory."
+ cp "${srcdir}/zen-config-bak" "${srcdir}/build/.config"
fi
+ fi
+ if [ ! -f "${srcdir}/build/.config" ]; then
if [ ! -f "${srcdir}/../zen-config" ]; then
- msg2 "Creating default config..." # also initializes the output directory
+ msg2 "Creating default config..."
make -C "${srcdir}/zen-kernel/" O="${srcdir}/build" defconfig > /dev/null
warning "This package does not ship a kernel config."