1
0

Makefile 902 B

123456789101112131415161718192021222324252627282930313233
  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)/zephyr ]; then \
  6. cd $(BUILD_DIR) ;\
  7. git clone https://github.com/zephyrproject-rtos/zephyr.git ;\
  8. fi
  9. if [ ! -d $(BUILD_DIR)/zephyr-kconfig ]; then \
  10. mkdir $(BUILD_DIR)/zephyr-kconfig ;\
  11. fi
  12. cd $(BUILD_DIR)/zephyr-kconfig && \
  13. PATH='$(HOST_PATH)' cmake $(BUILD_DIR)/zephyr/scripts && \
  14. make
  15. source $(BUILD_DIR)/zephyr/zephyr-env.sh
  16. compile:
  17. export GCCXTENSA_TOOLCHAIN_PATH="$(TOOLCHAIN_DIR)"
  18. export ZEPHYR_GCC_VARIANT=gccxtensa
  19. if [ ! -d $(BUILD_DIR)/zephyr/samples/hello_world/build ]; then \
  20. mkdir $(BUILD_DIR)/zephyr/samples/hello_world/build ;\
  21. fi
  22. cd $(BUILD_DIR)/zephyr/samples/hello_world/build && \
  23. cmake -DBOARD=qemu_xtensa .. && \
  24. make
  25. install:
  26. targethelp:
  27. clean: