diff options
-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() { |