Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # script to initiate kernel building then copy output to public directory
- TS1=$( date +%Y%m%d%H%M%S )
- echo -e "\e[01;34m************************************"
- echo -e "*dtalley11's kernel building script*"
- echo -e "************************************\e[00m"
- cd ./kernel
- make -j2
- cd ..
- mkdir ./out/$TS1
- cp ./kernel/arch/arm/boot/zImage ./out/$TS1/$TS1-zImage
- find -iname "*ko" | cpio -ov --format=ustar | bzip2 -9 > ./out/$TS1/$TS1-modules.tar.gz
- echo "Your zImage/modules can be found at ./out/$TS1/"
- echo "and online at dt11.net/dtalley11/kernel/$TS1/"
Advertisement
Add Comment
Please, Sign In to add comment