Last active
August 29, 2015 14:20
-
-
Save aalemayhu/8452da7250c2af69dd6c to your computer and use it in GitHub Desktop.
build custom kernel
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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