开发环境为Ubuntu
主要分为两步
一、RTEMS_MAKEFILE_PATH宏
在 ~/.bashrc 中, export RTEMS_MAKEFILE_APTH=/path/to/installed-bsp
二、编写makefile
可以参照下面的例子 root/hello/hello_world_c/Makefile
#
# RTEMS_MAKEFILE_PATH is typically set in an environment variable
#
PGM=${ARCH}/hello.exe
# optional managers required
MANAGERS=all
# C source names
CSRCS = test.c
COBJS = $(CSRCS:%.c=${ARCH}/%.o)
include $(RTEMS_MAKEFILE_PATH)/Makefile.inc
include $(RTEMS_CUSTOM)
include $(PROJECT_ROOT)/make/leaf.cfg
OBJS= $(COBJS) $(CXXOBJS) $(ASOBJS)
all: ${ARCH} $(PGM)
$(PGM): $(OBJS)
$(make-exe)