Commit c570eca5 authored by yoogx's avatar yoogx

* Correct detection of RTEMS

parent 17a39c8c
...@@ -13,7 +13,7 @@ ifneq ($(USE_CPP_LINKER),) ...@@ -13,7 +13,7 @@ ifneq ($(USE_CPP_LINKER),)
LD=$(LD_CPP) LD=$(LD_CPP)
endif endif
build-node: compile-node generate-doc build-node: compile-node
################################################################################ ################################################################################
# Configuration # Configuration
...@@ -223,10 +223,9 @@ compile-node: $(BINARY) ...@@ -223,10 +223,9 @@ compile-node: $(BINARY)
ifeq ($(TARGET), $(filter $(TARGET), leon3-scoc3 leon.rtems leon.rtems_posix)) ifeq ($(TARGET), $(filter $(TARGET), leon3-scoc3 leon.rtems leon.rtems_posix))
OBJS = $(USER_OBJS) $(PO_HI_OBJS) $(GENERATED_OBJS) $(EXTERNAL_OBJECTS) OBJS = $(USER_OBJS) $(PO_HI_OBJS) $(GENERATED_OBJS) $(EXTERNAL_OBJECTS)
$(BINARY): $(BINARY):
@if [ ! -d $$RTEMS_MAKEFILE_PATH/make ]; then \ if [ x"$$RTEMS_MAKEFILE_PATH"=x"" ]; then \
echo "Please define the RTEMS_MAKEFILE_PATH variable, exiting" ; \ echo "Please define the RTEMS_MAKEFILE_PATH variable, exiting" ; \
else \ else \
$(MAKE) generate-asn1-deployment compile-c-files compile-cpp-files compile-ada-files target-objects compile-po-hi $(USER_OBJS) $(GENERATED_OBJS) ; \ $(MAKE) generate-asn1-deployment compile-c-files compile-cpp-files compile-ada-files target-objects compile-po-hi $(USER_OBJS) $(GENERATED_OBJS) ; \
$(CC) -o $(BINARY) $(EXTERNAL_OBJECTS) $(PO_HI_OBJS) $(GENERATED_OBJS) $(USER_OBJS) $(LDFLAGS) $(CFLAGS) ; \ $(CC) -o $(BINARY) $(EXTERNAL_OBJECTS) $(PO_HI_OBJS) $(GENERATED_OBJS) $(USER_OBJS) $(LDFLAGS) $(CFLAGS) ; \
fi fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment