Advertisement
Guest User

Untitled

a guest
Apr 7th, 2015
239
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. #!/bin/bash
  2. export INSTALL_MOD_PATH=$PWD/../kinstall
  3. export CROSS_COMPILE=arm-linux-gnueabi-
  4. export ARCH=arm
  5.  
  6. rm ../kinstall* -rf
  7.  
  8. mkdir -pv ../kinstall/boot/overlays
  9.  
  10. set -xe
  11. make -j5 distclean bcmrpi_defconfig
  12. make -j5
  13. make -j5 modules_install
  14. ../tools/mkimage/mkknlimg arch/arm/boot/zImage ../kinstall/boot/kernel.img
  15. cp arch/arm/boot/dts/bcm27*.dtb ../kinstall/boot/ -v
  16. cp arch/arm/boot/dts/*overlay.dtb ../kinstall/boot/overlays/
  17.  
  18. make -j5 distclean bcm2709_defconfig
  19. make -j5
  20. make -j5 modules_install
  21. ../tools/mkimage/mkknlimg arch/arm/boot/zImage ../kinstall/boot/kernel7.img
  22. cp arch/arm/boot/dts/bcm27*.dtb ../kinstall/boot/ -v
  23. cp arch/arm/boot/dts/*overlay.dtb ../kinstall/boot/overlays/
  24.  
  25. pushd ../kinstall
  26. fakeroot tar -cvpzf ../kinstall.tar.gz .
  27. popd
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement