Makefile 892 B

1234567891011121314151617181920212223242526
  1. # This file is part of the OpenADK project. OpenADK is copyrighted
  2. # material, please see the LICENCE file in the top-level directory.
  3. include $(ADK_TOPDIR)/rules.mk
  4. prepare:
  5. @echo preparing frosted
  6. if [ ! -d $(BUILD_DIR)/frosted ]; then \
  7. cd $(BUILD_DIR) ;\
  8. git clone https://github.com/insane-adding-machines/frosted.git ;\
  9. cd frosted ;\
  10. git submodule update --init --recursive ;\
  11. fi
  12. cp $(BUILD_DIR)/.frosted $(BUILD_DIR)/frosted/kconfig/.config
  13. cp $(BUILD_DIR)/.frosted $(BUILD_DIR)/frosted/frosted-userland/kconfig/.config
  14. compile:
  15. PATH='$(HOST_PATH)' $(MAKE) V=1 -C $(BUILD_DIR)/frosted clean
  16. @echo compiling frosted userland
  17. PATH='$(HOST_PATH)' $(MAKE) V=1 -C $(BUILD_DIR)/frosted/frosted-userland
  18. @echo compiling frosted kernel
  19. PATH='$(HOST_PATH)' $(MAKE) V=1 -C $(BUILD_DIR)/frosted
  20. install:
  21. @echo installing frosted
  22. cp $(BUILD_DIR)/frosted/image.bin $(FW_DIR)