[a/kernel-gwh] /proc/config.gz has priority

This commit is contained in:
Gwenhael Le Moine 2023-04-18 13:12:36 +02:00
parent fe411f2b09
commit 322c1d590e
No known key found for this signature in database
GPG key ID: FDFE3669426707A7
3 changed files with 7 additions and 21633 deletions

View file

@ -18,6 +18,7 @@ OUTPUT=/tmp
NUMJOBS=${NUMJOBS:-$(nproc)}
ANEW=${ANEW:-true}
CONFIG=${CONFIG:-""}
rm -fr "$PKG"
@ -41,15 +42,13 @@ cd "$PKG/usr/src/" || exit 1
ln -s "linux-$VERSION" linux
cd "linux-$VERSION"
if [ -e "$CWD/config-$THIS_HOST-$VERSION" ] ; then
cp "$CWD/config-$THIS_HOST-$VERSION" .config
else
if [ -e "$CWD/config-$THIS_HOST" ] ; then
cp "$CWD/config-$THIS_HOST" .config
else
zcat /proc/config.gz > .config
fi
if [ -n "$CONFIG" ] && [ -e "$CONFIG" ]; then
cat "$CONFIG" > .config
fi
if [ ! -f .config ]; then
zcat /proc/config.gz > .config
fi
read
make oldconfig "$@"

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff