Commit 78c327bf authored by yoogx's avatar yoogx

* Clean up RTEMS variants, add RTEMS 4.12

parent dd174a67
......@@ -36,24 +36,30 @@ TARGET_LDFLAGS = -lrtemsbsp -lc -lm
ifndef RTEMS_API
TARGET_CFLAGS += -DRTEMS48
TARGET_LDFLAGS += -L$(RUNTIME_PATH)/libs/leon-rtems4.8/ -llua -lm
TARGET_LDFLAGS += -L$(RUNTIME_PATH)/libs/leon-rtems4.8/ -lm
endif
ifeq ($(RTEMS_API),4.8)
TARGET_CFLAGS += -DRTEMS48
TARGET_LDFLAGS += -L$(RUNTIME_PATH)/libs/leon-rtems4.8/ -llua -lm
TARGET_LDFLAGS += -L$(RUNTIME_PATH)/libs/leon-rtems4.8/ -lm
endif
ifeq ($(RTEMS_API),4.10)
TARGET_CFLAGS += -DRTEMS410
endif
ifeq ($(RTEMS_API),4.11)
TARGET_CFLAGS += -DRTEMS411
TARGET_LDFLAGS += -L$(RUNTIME_PATH)/libs/leon-rtems4.11/ -llua -lm
TARGET_LDFLAGS += -L$(RUNTIME_PATH)/libs/leon-rtems4.11/ -lm
endif
ifeq ($(RTEMS_API),4.10)
TARGET_CFLAGS += -DRTEMS410
ifeq ($(RTEMS_API),4.12)
TARGET_CFLAGS += -DRTEMS412
TARGET_LDFLAGS += -L$(RUNTIME_PATH)/libs/leon-rtems4.12/ -lm
endif
target-clean:
ifdef USE_GPROF
......
......@@ -36,23 +36,29 @@ TARGET_LDFLAGS = -lrtemsbsp -lc -lm
ifndef RTEMS_API
TARGET_CFLAGS += -DRTEMS48
TARGET_LDFLAGS += -L$(RUNTIME_PATH)/libs/leon-rtems4.8/ -llua -lm
TARGET_LDFLAGS += -L$(RUNTIME_PATH)/libs/leon-rtems4.8/ -lm
endif
ifeq ($(RTEMS_API),4.8)
TARGET_CFLAGS += -DRTEMS48
endif
ifeq ($(RTEMS_API),4.10)
TARGET_CFLAGS += -DRTEMS410
endif
ifeq ($(RTEMS_API),4.11)
TARGET_CFLAGS += -DRTEMS411
TARGET_LDFLAGS += -L$(RUNTIME_PATH)/libs/leon-rtems4.11/ -llua -lm
TARGET_LDFLAGS += -L$(RUNTIME_PATH)/libs/leon-rtems4.11/ -lm
endif
ifeq ($(RTEMS_API),4.10)
TARGET_CFLAGS += -DRTEMS410
ifeq ($(RTEMS_API),4.12)
TARGET_CFLAGS += -DRTEMS412
TARGET_LDFLAGS += -L$(RUNTIME_PATH)/libs/leon-rtems4.12/ -lm
endif
ifdef USE_GPROF
TARGET_LDFLAGS+=-Wl,--wrap,Clock_isr -pg
EXTERNAL_OBJECTS+=po_hi_gprof_rtems_leon.o
......
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