From f855b1d7bfdc36a65703fdf9a638ad016c409bbe Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Sun, 31 Dec 2017 18:45:06 +0100 Subject: add basic zephyr experiments, add xtensa newlib support --- target/zephyr/Config.in | 0 target/zephyr/Makefile | 33 +++++++++++++++++++++++++++++++++ target/zephyr/arch.lst | 4 ++++ 3 files changed, 37 insertions(+) create mode 100644 target/zephyr/Config.in create mode 100644 target/zephyr/Makefile create mode 100644 target/zephyr/arch.lst (limited to 'target/zephyr') diff --git a/target/zephyr/Config.in b/target/zephyr/Config.in new file mode 100644 index 000000000..e69de29bb diff --git a/target/zephyr/Makefile b/target/zephyr/Makefile new file mode 100644 index 000000000..2f937225c --- /dev/null +++ b/target/zephyr/Makefile @@ -0,0 +1,33 @@ +# This file is part of the OpenADK project. OpenADK is copyrighted +# material, please see the LICENCE file in the top-level directory. + +include $(ADK_TOPDIR)/rules.mk + +prepare: + if [ ! -d $(BUILD_DIR)/zephyr ]; then \ + cd $(BUILD_DIR) ;\ + git clone https://github.com/zephyrproject-rtos/zephyr.git ;\ + fi + if [ ! -d $(BUILD_DIR)/zephyr-kconfig ]; then \ + mkdir $(BUILD_DIR)/zephyr-kconfig ;\ + fi + cd $(BUILD_DIR)/zephyr-kconfig && \ + PATH='$(HOST_PATH)' cmake $(BUILD_DIR)/zephyr/scripts && \ + make + source $(BUILD_DIR)/zephyr/zephyr-env.sh + +compile: + export GCCXTENSA_TOOLCHAIN_PATH="$(TOOLCHAIN_DIR)" + export ZEPHYR_GCC_VARIANT=gccxtensa + if [ ! -d $(BUILD_DIR)/zephyr/samples/hello_world/build ]; then \ + mkdir $(BUILD_DIR)/zephyr/samples/hello_world/build ;\ + fi + cd $(BUILD_DIR)/zephyr/samples/hello_world/build && \ + cmake -DBOARD=qemu_xtensa .. && \ + make + +install: + +targethelp: + +clean: diff --git a/target/zephyr/arch.lst b/target/zephyr/arch.lst new file mode 100644 index 000000000..951bee724 --- /dev/null +++ b/target/zephyr/arch.lst @@ -0,0 +1,4 @@ +arc +arm +x86_64 +xtensa -- cgit v1.2.3