1 # This file is part of the OpenADK project. OpenADK is copyrighted
2 # material, please see the LICENCE file in the top-level directory.
4 include $(ADK_TOPDIR
)/rules.mk
7 if
[ ! -d
$(BUILD_DIR
)/rtems
]; then \
9 git clone git
://git.rtems.org
/rtems.git
;\
11 if
[ ! -f
$(BUILD_DIR
)/rtems
/configure
]; then \
12 cd
$(BUILD_DIR
)/rtems
&& .
/bootstrap
;\
14 -mkdir
$(BUILD_DIR
)/rtems-build
15 cd
$(BUILD_DIR
)/rtems-build
&& \
16 PATH
='$(TARGET_PATH)' $(BUILD_DIR
)/rtems
/configure \
17 --prefix=$(BUILD_DIR
)/rtems-install
18 --target
=$(ADK_TARGET_CPU_ARCH
)-$(ADK_TARGET_OS
) \
19 --enable-tests
=samples \
22 PATH
='$(TARGET_PATH)' $(MAKE
) -C \
23 $(BUILD_DIR
)/rtems-build
26 -mkdir
$(BUILD_DIR
)/rtems-install
27 PATH
='$(TARGET_PATH)' $(MAKE
) -C \
28 $(BUILD_DIR
)/rtems-build
install