diff mini-native.sh @ 553:80f3356577fc

Move kernel building from mini-native to package-mini-native in preparation for initramfs packaging option.
author Rob Landley <rob@landley.net>
date Sat, 27 Dec 2008 06:21:42 -0600
parents a7f128fc53b5
children 1277d5ae4507
line wrap: on
line diff
--- a/mini-native.sh	Sat Dec 27 05:56:01 2008 -0600
+++ b/mini-native.sh	Sat Dec 27 06:21:42 2008 -0600
@@ -12,7 +12,6 @@
 
 if [ ! -z "${NATIVE_TOOLSDIR}" ]
 then
-  TOOLS="${NATIVE}/tools"
   mkdir -p "${TOOLS}/bin" || dienow
 
   # Tell the wrapper script where to find the dynamic linker.
@@ -21,7 +20,6 @@
   UCLIBC_DLPREFIX="/tools"
 else
   mkdir -p "${NATIVE}"/{tmp,proc,sys,dev,etc} || dienow
-  TOOLS="${NATIVE}/usr"
   UCLIBC_TOPDIR="${TOOLS}"
   for i in bin sbin lib
   do
@@ -34,18 +32,13 @@
 
 cp -r "${SOURCES}/native/." "${TOOLS}/" || dienow
 
-# Build and install Linux kernel.
+# Install Linux kernel headers.
 
 setupfor linux
 # Install Linux kernel headers (for use by uClibc).
 make headers_install -j "$CPUS" ARCH="${KARCH}" INSTALL_HDR_PATH="${TOOLS}" &&
 # This makes some very old package builds happy.
 ln -s ../sys/user.h "${TOOLS}/include/asm/page.h" &&
-# build bootable kernel for target
-make ARCH="${KARCH}" KCONFIG_ALLCONFIG="$(getconfig linux)" allnoconfig &&
-cp .config "${TOOLS}"/src/config-linux &&
-make -j $CPUS ARCH="${KARCH}" CROSS_COMPILE="${ARCH}-" &&
-cp "${KERNEL_PATH}" "${NATIVE}/zImage-${ARCH}" &&
 cd ..
 
 cleanup linux