#!/bin/sh

. config/options $1

export INSTALL=$(kernel_path)
$SCRIPTS/install busybox-initramfs

unset LDFLAGS

cd $(kernel_path)
rm -rf modules
mkdir -p modules

make modules
make INSTALL_MOD_PATH=modules DEPMOD="$ROOT/$TOOLCHAIN/sbin/depmod" modules_install
rm -f modules/lib/modules/*/build
rm -f modules/lib/modules/*/source

make bzImage

