dtalley11

kernel.sh

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