diff options
author | Aqua-sama <aqua@iserlohn-fortress.net> | 2018-11-06 16:23:03 +0100 |
---|---|---|
committer | Aqua-sama <aqua@iserlohn-fortress.net> | 2018-11-06 16:23:03 +0100 |
commit | 3560533c3fb0be8b6c17234156db297e4f2e1329 (patch) | |
tree | a98fcf16baf726789dc57e0cecf756f1d746efb5 | |
parent | Updated to 4.18.17.a (diff) | |
download | linux-hardened-ck-3560533c3fb0be8b6c17234156db297e4f2e1329.tar.xz |
Add check for config.previous, and use it if it exists
-rw-r--r-- | PKGBUILD | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -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() { |