forked from Imagelibrary/rtems
bsps: Move make/custom/* files to bsps
Adjust various build files. Remove automatic generation of the c/src/lib/libbsp/*/acinclude.m4 files from bootstrap script. This patch is a part of the BSP source reorganization. Update #3285.
This commit is contained in:
7
bsps/arm/raspberrypi/config/raspberrypi.cfg
Normal file
7
bsps/arm/raspberrypi/config/raspberrypi.cfg
Normal file
@@ -0,0 +1,7 @@
|
||||
#
|
||||
# Config file for RASPBERRYPI
|
||||
#
|
||||
include $(RTEMS_ROOT)/make/custom/raspberrypi.inc
|
||||
|
||||
CPU_CFLAGS = -mcpu=arm1176jzf-s
|
||||
|
||||
20
bsps/arm/raspberrypi/config/raspberrypi.inc
Normal file
20
bsps/arm/raspberrypi/config/raspberrypi.inc
Normal file
@@ -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
|
||||
6
bsps/arm/raspberrypi/config/raspberrypi2.cfg
Normal file
6
bsps/arm/raspberrypi/config/raspberrypi2.cfg
Normal file
@@ -0,0 +1,6 @@
|
||||
#
|
||||
# Config file for RASPBERRYPI 2
|
||||
#
|
||||
include $(RTEMS_ROOT)/make/custom/raspberrypi.inc
|
||||
|
||||
CPU_CFLAGS = -march=armv7-a -mthumb -mfpu=neon -mfloat-abi=hard -mtune=cortex-a7
|
||||
Reference in New Issue
Block a user