Skip to content

Instantly share code, notes, and snippets.

@aalemayhu
Last active August 29, 2015 14:20
Show Gist options
  • Save aalemayhu/8452da7250c2af69dd6c to your computer and use it in GitHub Desktop.
Save aalemayhu/8452da7250c2af69dd6c to your computer and use it in GitHub Desktop.
build custom kernel
#!/bin/sh
# FROM http://stackoverflow.com/questions/307503/whats-the-best-way-to-check-that-environment-variables-are-set-in-unix-shellscr
[ -z "$DEB_VER" ] && echo "Need to set DEB_VER" && exit 1;
# Modified info from[0].
# install deps to build kernel; apt-get install curl kernel-package fakeroot
# install menu dependency; apt-get install libncurses5-dev
# build configuration; make menuconfig
# clean the source tree
make-kpkg clean
# compile the kernel
fakeroot make-kpkg --initrd --revision=$DEB_VER kernel_image
#[0]: https://blog.jessfraz.com/post/linux-on-mac/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment