kernel26: provide a generic .config file for i386 arch.
--HG-- extra : convert_revision : 5db66aae71475d4238bacdecd0454273686a3f29
This commit is contained in:
parent
a95e871414
commit
9d9ebb8dcd
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
|
||||
# configure the kernel; otherwise run the menuconfig target.
|
||||
local arch=
|
||||
|
||||
if [ -f $XBPS_TEMPLATESDIR/kernel26-${xbps_machine}-dotconfig ]; then
|
||||
echo "=> Detected a .config file for your machine, using it"
|
||||
cp -f $XBPS_TEMPLATESDIR/kernel26-${xbps_machine}-dotconfig \
|
||||
if [ "$xbps_machine" != "x86_64" ]; then
|
||||
arch=i386
|
||||
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
|
||||
make oldconfig
|
||||
else
|
||||
echo "=> Couldn't find a .config file for your machine..."
|
||||
make menuconfig
|
||||
fi
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user