UPD PKGBUILD, fetch configuration file from same version
This commit is contained in:
13
PKGBUILD
13
PKGBUILD
@@ -84,13 +84,22 @@ prepare() {
|
||||
done
|
||||
|
||||
echo "Setting config..."
|
||||
cp ../config .config
|
||||
cfgver=../../config-${pkgver%.*}
|
||||
if test -f "${cfgver}"
|
||||
then
|
||||
echo "${cfgver} exists."
|
||||
cp "${cfgver}" .config
|
||||
echo ".config now has the content of ${cfgver}"
|
||||
else
|
||||
echo "copy original config file, ${cfgver} does not exist."
|
||||
cp ../config .config
|
||||
fi
|
||||
make olddefconfig
|
||||
# this and next line is added by me, Thomas Kuschel oe3tkt
|
||||
read -p "Press enter to continue with menuconfig
|
||||
make menuconfig
|
||||
diff -u ../config .config | tee "../../config-${pkgver%.*}.patch" || :
|
||||
cp .config "../../config-${pkgver%.*}"
|
||||
|
||||
make -s kernelrelease > version
|
||||
echo "Prepared $pkgbase version $(<version)"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user