diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2018-01-09 21:32:28 +0100 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2018-01-12 19:57:43 +0100 |
commit | a5a60ae7133fc9b893f3d44c793ccc322fd913d3 (patch) | |
tree | 6b538263b066e1780dee5d19ed5acaa56ae5456a /target/rtems/Makefile | |
parent | 9ca35e7ead58b872cca3ff9d7e3976863f8f8715 (diff) |
add basic rtems support as a new playground
Diffstat (limited to 'target/rtems/Makefile')
-rw-r--r-- | target/rtems/Makefile | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/target/rtems/Makefile b/target/rtems/Makefile new file mode 100644 index 000000000..b33391269 --- /dev/null +++ b/target/rtems/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)/rtems ]; then \ + cd $(BUILD_DIR) ;\ + git clone git://git.rtems.org/rtems.git ;\ + fi + if [ ! -f $(BUILD_DIR)/rtems/configure ]; then \ + cd $(BUILD_DIR)/rtems && ./bootstrap ;\ + fi + -mkdir $(BUILD_DIR)/rtems-build + cd $(BUILD_DIR)/rtems-build && \ + PATH='$(TARGET_PATH)' $(BUILD_DIR)/rtems/configure \ + --prefix=$(BUILD_DIR)/rtems-install + --target=$(ADK_TARGET_CPU_ARCH)-$(ADK_TARGET_OS) \ + --enable-tests=samples \ + +compile: + PATH='$(TARGET_PATH)' $(MAKE) -C \ + $(BUILD_DIR)/rtems-build + +install: + -mkdir $(BUILD_DIR)/rtems-install + PATH='$(TARGET_PATH)' $(MAKE) -C \ + $(BUILD_DIR)/rtems-build install + +clean: + +targethelp: + |