diff options
Diffstat (limited to 'bsps/arm/raspberrypi/config/raspberrypi.inc')
-rw-r--r-- | bsps/arm/raspberrypi/config/raspberrypi.inc | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/bsps/arm/raspberrypi/config/raspberrypi.inc b/bsps/arm/raspberrypi/config/raspberrypi.inc new file mode 100644 index 0000000000..a8b6f264c3 --- /dev/null +++ b/bsps/arm/raspberrypi/config/raspberrypi.inc @@ -0,0 +1,20 @@ +# +# Config file for Raspberry Pi variants. +# + +include $(RTEMS_ROOT)/make/custom/default.cfg + +RTEMS_CPU = arm + +CFLAGS_OPTIMIZE_V ?= -O2 -g +CFLAGS_OPTIMIZE_V += -ffunction-sections -fdata-sections + +LDFLAGS = -Wl,--gc-sections + +# This defines the operations performed on the linked executable. +# is currently required. +define bsp-post-link + $(OBJCOPY) -O binary --strip-all \ + $(basename $@)$(EXEEXT) $(basename $@)$(DOWNEXT) + $(SIZE) $(basename $@)$(EXEEXT) +endef |