makefile 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. # This file is part of PrawnOS (http://www.prawnos.com)
  2. # Copyright (c) 2018 Hal Emmerich <hal@halemmerich.com>
  3. # PrawnOS is free software: you can redistribute it and/or modify
  4. # it under the terms of the GNU General Public License version 2
  5. # as published by the Free Software Foundation.
  6. # PrawnOS is distributed in the hope that it will be useful,
  7. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  8. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  9. # GNU General Public License for more details.
  10. # You should have received a copy of the GNU General Public License
  11. # along with PrawnOS. If not, see <https://www.gnu.org/licenses/>.
  12. .PHONY: clean
  13. clean:
  14. @echo "Enter one of:"
  15. @echo " clean_kernel - which deletes the untar'd kernel folder from build"
  16. @echo " clean_ath - which deletes the untar'd ath9k driver folder from build"
  17. @echo " clean_img - which deletes the built PrawnOS images, this is ran when make image is ran"
  18. @echo " clean_all - which does all of the above"
  19. @echo " in most cases none of these need to be used manually as most cleanup steps are handled automatically"
  20. .PHONY: clean_kernel
  21. clean_kernel:
  22. rm -rf build/linux-4.*
  23. .PHONY: clean_ath
  24. clean_ath:
  25. rm -rf build/open-ath9k-htc-firmware
  26. .PHONY: clean_img
  27. clean_img:
  28. rm -f PrawnOS-*-c201-libre-*GB.img
  29. .PHONY: clean_all
  30. clean_all:
  31. make clean_kernel
  32. make clean_ath
  33. make clean_img
  34. .PHONY: kernel
  35. kernel:
  36. scripts/buildKernel.sh
  37. .PHONY: filesystem
  38. filesystem:
  39. make clean_img
  40. scripts/buildDebianFs.sh
  41. .PHONY: kernel_inject
  42. kernel_inject: #Targets an already built .img and swaps the old kernel with the newly compiled kernel
  43. scripts/buildNewKernelIntoFS.sh
  44. .PHONY: image
  45. image:
  46. make clean_img
  47. scripts/buildKernel.sh
  48. scripts/buildDebianFs.sh
  49. .PHONY: live_image
  50. live_image:
  51. echo "TODO"
  52. .PHONY: kernel_config
  53. kernel_config:
  54. scripts/crossmenuconfig.sh