Makefile 950 B

12345678910111213141516171819202122232425262728
  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. if [ ! -d $(BUILD_DIR)/frosted ]; then \
  6. cd $(BUILD_DIR) ;\
  7. git clone https://github.com/insane-adding-machines/frosted.git ;\
  8. cd frosted ;\
  9. git submodule update --init --recursive ;\
  10. fi
  11. cp $(BUILD_DIR)/.frosted $(BUILD_DIR)/frosted/kconfig/.config
  12. cp $(BUILD_DIR)/.frostedapps $(BUILD_DIR)/frosted/frosted-userland/kconfig/.config
  13. compile:
  14. PATH='$(HOST_PATH)' $(MAKE) V=1 -C $(BUILD_DIR)/frosted/frosted-userland $(MAKE_TRACE)
  15. PATH='$(HOST_PATH)' $(MAKE) V=1 -C $(BUILD_DIR)/frosted $(MAKE_TRACE)
  16. install:
  17. @cp $(BUILD_DIR)/frosted/image.bin $(FW_DIR)
  18. targethelp:
  19. @echo "Use following command to flash:"
  20. @echo "$(STAGING_HOST_DIR)/usr/bin/st-flash write $(FW_DIR)/image.bin 0x08000000"
  21. clean:
  22. @PATH='$(HOST_PATH)' $(MAKE) -C $(BUILD_DIR)/frosted clean