Skip to content

Instantly share code, notes, and snippets.

@moqmar
Created February 19, 2019 10:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save moqmar/87f18505aff3af5034a216caf293aaef to your computer and use it in GitHub Desktop.
Save moqmar/87f18505aff3af5034a216caf293aaef to your computer and use it in GitHub Desktop.
# Build the ubilinux kernel for the UP Boards. The script is built to be used with Docker.
# More information: https://wiki.up-community.org/Compile_ubilinux_kernel_from_source
# Usage: docker run -it --rm debian:9 sh -c 'wget ... && sh up-kernel-build.sh'
apt-get update
apt-get install -y git build-essential libncurses5-dev libssl-dev gcc g++ bc
git clone https://github.com/emutex/ubilinux-kernel.git -b upboard-4.9 linux-upboard
cd linux-upboard
make upboard_defconfig
make menuconfig
make -j`nproc`
make -j`nproc` bindeb-pkg
mkdir /data/deb
mv /data/*.deb /data/deb
echo "Run the following command to copy the .deb file to your local machine:"
echo " docker cp $HOSTNAME:/data/deb ."
echo "Press return if you are done and want to destroy the container."
read
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment