Skip to content

Instantly share code, notes, and snippets.

@hamstar
Last active December 14, 2015 05:19
Show Gist options
  • Save hamstar/5034457 to your computer and use it in GitHub Desktop.
Save hamstar/5034457 to your computer and use it in GitHub Desktop.
build a kernel
mkdir /build/boot -p
export BUILD_DIR="/build/"
cd linux-stable
make clean
ARCH=i386 make menuconfig
... do stuff ...
ARCH=i386 make -j10
INSTALL_MOD_PATH=$BUILD_DIR ARCH=i386 make modules_install
cp arch/i386/boot/bzImage $BUILD_DIR/boot/vmlinuz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment