view sources/sections/ @ 1152:2f39d1bfb2fd

Add baseconfig-linux, the infrastructure to use it, and move over the arm targets. (You can override with a miniconfig-linux or miniconfig-uClibc in the appropriate target directory.)
author Rob Landley <>
date Fri, 02 Jul 2010 23:38:31 -0500
parents 1d776e44b908
children ffa79617fb3f
line wrap: on
line source

# Install Linux kernel headers.

setupfor linux

# Expand and copy kernel .config.

getconfig linux > mini.conf &&
[ "$SYSIMAGE_TYPE" == "initramfs" ] &&
echo "CONFIG_BLK_DEV_INITRD=y" >> mini.conf

  allnoconfig >/dev/null &&
mkdir -p "$STAGE_DIR/src" &&
cp .config "$STAGE_DIR/src/config-linux"

# Install Linux kernel headers (for use by uClibc).
make -j $CPUS headers_install ARCH="${KARCH}" INSTALL_HDR_PATH="$STAGE_DIR" &&
# This makes some very old package builds happy.
ln -s ../sys/user.h "$STAGE_DIR/include/asm/page.h"


# Remove debris the kernel puts in there for no apparent reason.

find "$STAGE_DIR/include" -name ".install" -print0 -or -name "..install.cmd" -print0 | xargs -0 rm