kernel26: provide a generic .config file for i386 arch.

--HG--
extra : convert_revision : 5db66aae71475d4238bacdecd0454273686a3f29
This commit is contained in:
Juan RP 2008-11-22 17:38:27 +01:00
parent a95e871414
commit 9d9ebb8dcd
2 changed files with 3352 additions and 4 deletions

File diff suppressed because it is too large Load Diff

View File

@ -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
}