summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAqua-sama <aqua@iserlohn-fortress.net>2018-11-06 16:23:03 +0100
committerAqua-sama <aqua@iserlohn-fortress.net>2018-11-06 16:23:03 +0100
commit3560533c3fb0be8b6c17234156db297e4f2e1329 (patch)
treea98fcf16baf726789dc57e0cecf756f1d746efb5
parentUpdated to 4.18.17.a (diff)
downloadlinux-hardened-ck-3560533c3fb0be8b6c17234156db297e4f2e1329.tar.xz
Add check for config.previous, and use it if it exists
-rw-r--r--PKGBUILD10
1 files changed, 9 insertions, 1 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 5e4373e..489c6bd 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -108,7 +108,12 @@ prepare() {
msg2 "Setting config..."
- cp ../config.x86_64 .config
+ # we are in src/linux-x.yy.zz, looking for a config next to the pkgbuild
+ if [ -f ../../config.previous ]; then
+ cp ../../config.previous .config
+ else
+ cp ../config.x86_64 .config
+ fi
### Optionally disable NUMA for 64-bit kernels only
# (x86 kernels do not support NUMA)
@@ -132,6 +137,9 @@ prepare() {
make -s kernelrelease > ../version
msg2 "Prepared %s version %s" "$pkgbase" "$(<../version)"
+
+ # back up the config
+ cp .config ../../config.previous
}
build() {