Commit 6dd50eaf authored by jdelange's avatar jdelange
Browse files

* po-hi-c/share/make/Makefile.leon.rtems_posix

   po-hi-c/share/make/Makefile.leon.rtems
     - Remove dependency against cpuopts.h file



git-svn-id: https://tecsw.estec.esa.int/svn/taste/trunk/po-hi-c@4035 129961e7-ef38-4bb5-a8f7-c9a525a55882
parent 448148c4
...@@ -35,24 +35,19 @@ TARGET_INCLUDE = -I $(RUNTIME_PATH)/config/leon-rtems/ ...@@ -35,24 +35,19 @@ TARGET_INCLUDE = -I $(RUNTIME_PATH)/config/leon-rtems/
TARGET_LDFLAGS = -lrtemsbsp -lc -lm $(RUNTIME_PATH)/libs/leon/liblua.a -lm -L$(RUNTIME_PATH)/libs/leon/ -llua -lm TARGET_LDFLAGS = -lrtemsbsp -lc -lm $(RUNTIME_PATH)/libs/leon/liblua.a -lm -L$(RUNTIME_PATH)/libs/leon/ -llua -lm
EXTERNAL_OBJECTS += -L$(RUNTIME_PATH)/libs/leon/ -llua -lm EXTERNAL_OBJECTS += -L$(RUNTIME_PATH)/libs/leon/ -llua -lm
RTEMS410=$(shell grep VERSION $$RTEMS_MAKEFILE_PATH_LEON/lib/include/rtems/score/cpuopts.h|grep 4.10) ifeq ($(RTEMS_API),4.8)
RTEMS411=$(shell grep VERSION $$RTEMS_MAKEFILE_PATH_LEON/lib/include/rtems/score/cpuopts.h|grep 4.11) TARGET_CFLAGS += -DRTEMS48
RTEMS48=$(shell grep VERSION $$RTEMS_MAKEFILE_PATH_LEON/lib/include/rtems/score/cpuopts.h|grep 4.8)
ifneq ($(RTEMS48),)
TARGET_CFLAGS += -DRTEMS_VERSION=48
endif endif
ifneq ($(RTEMS411),) ifeq ($(RTEMS_API),4.11)
TARGET_CFLAGS += -DRTEMS_VERSION=411 TARGET_CFLAGS += -DRTEMS411
endif endif
ifneq ($(RTEMS410),) ifeq ($(RTEMS_API),4.10)
TARGET_CFLAGS += -DRTEMS_VERSION=410 TARGET_CFLAGS += -DRTEMS410
endif endif
target-clean: target-clean:
ifdef USE_GPROF ifdef USE_GPROF
......
...@@ -36,19 +36,15 @@ TARGET_INCLUDE = -I $(RUNTIME_PATH)/config/leon-rtems/ ...@@ -36,19 +36,15 @@ TARGET_INCLUDE = -I $(RUNTIME_PATH)/config/leon-rtems/
TARGET_LDFLAGS = -lrtemsbsp -lc -lm TARGET_LDFLAGS = -lrtemsbsp -lc -lm
EXTERNAL_OBJECTS += -L$(RUNTIME_PATH)/libs/leon/ -llua -lm EXTERNAL_OBJECTS += -L$(RUNTIME_PATH)/libs/leon/ -llua -lm
RTEMS410=$(shell grep VERSION $$RTEMS_MAKEFILE_PATH/lib/include/rtems/score/cpuopts.h|grep 4.10) ifeq ($(RTEMS_API),4.8)
RTEMS411=$(shell grep VERSION $$RTEMS_MAKEFILE_PATH/lib/include/rtems/score/cpuopts.h|grep 4.11)
RTEMS48=$(shell grep VERSION $$RTEMS_MAKEFILE_PATH/lib/include/rtems/score/cpuopts.h|grep 4.8)
ifneq ($(RTEMS48),)
TARGET_CFLAGS += -DRTEMS48 TARGET_CFLAGS += -DRTEMS48
endif endif
ifneq ($(RTEMS411),) ifeq ($(RTEMS_API),4.11)
TARGET_CFLAGS += -DRTEMS411 TARGET_CFLAGS += -DRTEMS411
endif endif
ifneq ($(RTEMS410),) ifeq ($(RTEMS_API),4.10)
TARGET_CFLAGS += -DRTEMS410 TARGET_CFLAGS += -DRTEMS410
endif endif
......
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