mirror of
https://github.com/void-linux/void-packages.git
synced 2025-08-03 19:32:57 +02:00
kernel26: provide a generic .config file for i386 arch.
--HG-- extra : convert_revision : 5db66aae71475d4238bacdecd0454273686a3f29
This commit is contained in:
parent
a95e871414
commit
9d9ebb8dcd
2 changed files with 3352 additions and 4 deletions
3342
templates/kernel26-i386-dotconfig
Normal file
3342
templates/kernel26-i386-dotconfig
Normal file
File diff suppressed because it is too large
Load diff
|
@ -20,14 +20,20 @@ pre_build()
|
||||||
{
|
{
|
||||||
# If there's a file called kernel26-<arch>-dotconfig, use it to
|
# If there's a file called kernel26-<arch>-dotconfig, use it to
|
||||||
# configure the kernel; otherwise run the menuconfig target.
|
# configure the kernel; otherwise run the menuconfig target.
|
||||||
|
local arch=
|
||||||
|
|
||||||
if [ -f $XBPS_TEMPLATESDIR/kernel26-${xbps_machine}-dotconfig ]; then
|
if [ "$xbps_machine" != "x86_64" ]; then
|
||||||
echo "=> Detected a .config file for your machine, using it"
|
arch=i386
|
||||||
cp -f $XBPS_TEMPLATESDIR/kernel26-${xbps_machine}-dotconfig \
|
else
|
||||||
|
arch=x86_64
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -f $XBPS_TEMPLATESDIR/kernel26-$arch-dotconfig ]; then
|
||||||
|
echo "=> Detected a .config file for your arch, using it."
|
||||||
|
cp -f $XBPS_TEMPLATESDIR/kernel26-$arch-dotconfig \
|
||||||
$wrksrc/.config
|
$wrksrc/.config
|
||||||
make oldconfig
|
make oldconfig
|
||||||
else
|
else
|
||||||
echo "=> Couldn't find a .config file for your machine..."
|
|
||||||
make menuconfig
|
make menuconfig
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue