[rtems commit] bsp/tms570: use common tms570ls3137.inc file for all board ling variants.
Gedare Bloom
gedare at rtems.org
Wed Nov 18 15:19:24 UTC 2015
Module: rtems
Branch: 4.11
Commit: dec479be26e36089a53cfb16795760b37837c1c8
Changeset: http://git.rtems.org/rtems/commit/?id=dec479be26e36089a53cfb16795760b37837c1c8
Author: Pavel Pisa <pisa at cmp.felk.cvut.cz>
Date: Thu Nov 12 23:11:33 2015 +0100
bsp/tms570: use common tms570ls3137.inc file for all board ling variants.
Signed-off-by: Pavel Pisa <pisa at cmp.felk.cvut.cz>
---
.../libbsp/arm/tms570/make/custom/tms570ls3137.inc | 20 ++++++++++++++++++++
.../arm/tms570/make/custom/tms570ls3137_hdk.cfg | 17 +----------------
.../tms570/make/custom/tms570ls3137_hdk_intram.cfg | 17 +----------------
.../tms570/make/custom/tms570ls3137_hdk_sdram.cfg | 17 +----------------
.../make/custom/tms570ls3137_hdk_with_loader.cfg | 17 +----------------
5 files changed, 24 insertions(+), 64 deletions(-)
diff --git a/c/src/lib/libbsp/arm/tms570/make/custom/tms570ls3137.inc b/c/src/lib/libbsp/arm/tms570/make/custom/tms570ls3137.inc
new file mode 100644
index 0000000..869cf71
--- /dev/null
+++ b/c/src/lib/libbsp/arm/tms570/make/custom/tms570ls3137.inc
@@ -0,0 +1,20 @@
+#
+# Config file for TMS570LS3137 board.
+#
+
+include $(RTEMS_ROOT)/make/custom/default.cfg
+
+RTEMS_CPU = arm
+
+CPU_CFLAGS = -march=armv7-r -mthumb -mbig-endian -mfpu=vfpv3-d16 -mfloat-abi=hard
+
+CFLAGS_OPTIMIZE_V = -O2 -ggdb
+BINEXT?=.bin
+
+# This defines the operations performed on the linked executable.
+# is currently required.
+define bsp-post-link
+ $(OBJCOPY) -O binary --strip-all \
+ $(basename $@)$(EXEEXT) $(basename $@)$(BINEXT)
+ $(SIZE) $(basename $@)$(EXEEXT)
+endef
diff --git a/c/src/lib/libbsp/arm/tms570/make/custom/tms570ls3137_hdk.cfg b/c/src/lib/libbsp/arm/tms570/make/custom/tms570ls3137_hdk.cfg
index 869cf71..d769895 100644
--- a/c/src/lib/libbsp/arm/tms570/make/custom/tms570ls3137_hdk.cfg
+++ b/c/src/lib/libbsp/arm/tms570/make/custom/tms570ls3137_hdk.cfg
@@ -2,19 +2,4 @@
# Config file for TMS570LS3137 board.
#
-include $(RTEMS_ROOT)/make/custom/default.cfg
-
-RTEMS_CPU = arm
-
-CPU_CFLAGS = -march=armv7-r -mthumb -mbig-endian -mfpu=vfpv3-d16 -mfloat-abi=hard
-
-CFLAGS_OPTIMIZE_V = -O2 -ggdb
-BINEXT?=.bin
-
-# This defines the operations performed on the linked executable.
-# is currently required.
-define bsp-post-link
- $(OBJCOPY) -O binary --strip-all \
- $(basename $@)$(EXEEXT) $(basename $@)$(BINEXT)
- $(SIZE) $(basename $@)$(EXEEXT)
-endef
+include $(RTEMS_ROOT)/make/custom/tms570ls3137.inc
diff --git a/c/src/lib/libbsp/arm/tms570/make/custom/tms570ls3137_hdk_intram.cfg b/c/src/lib/libbsp/arm/tms570/make/custom/tms570ls3137_hdk_intram.cfg
index e90414a..d769895 100644
--- a/c/src/lib/libbsp/arm/tms570/make/custom/tms570ls3137_hdk_intram.cfg
+++ b/c/src/lib/libbsp/arm/tms570/make/custom/tms570ls3137_hdk_intram.cfg
@@ -2,19 +2,4 @@
# Config file for TMS570LS3137 board.
#
-include $(RTEMS_ROOT)/make/custom/default.cfg
-
-RTEMS_CPU = arm
-
-CPU_CFLAGS = -march=armv7-r -mthumb -mbig-endian
-
-CFLAGS_OPTIMIZE_V = -O2 -ggdb
-BINEXT?=.bin
-
-# This defines the operations performed on the linked executable.
-# is currently required.
-define bsp-post-link
- $(OBJCOPY) -O binary --strip-all \
- $(basename $@)$(EXEEXT) $(basename $@)$(BINEXT)
- $(SIZE) $(basename $@)$(EXEEXT)
-endef
+include $(RTEMS_ROOT)/make/custom/tms570ls3137.inc
diff --git a/c/src/lib/libbsp/arm/tms570/make/custom/tms570ls3137_hdk_sdram.cfg b/c/src/lib/libbsp/arm/tms570/make/custom/tms570ls3137_hdk_sdram.cfg
index e90414a..d769895 100644
--- a/c/src/lib/libbsp/arm/tms570/make/custom/tms570ls3137_hdk_sdram.cfg
+++ b/c/src/lib/libbsp/arm/tms570/make/custom/tms570ls3137_hdk_sdram.cfg
@@ -2,19 +2,4 @@
# Config file for TMS570LS3137 board.
#
-include $(RTEMS_ROOT)/make/custom/default.cfg
-
-RTEMS_CPU = arm
-
-CPU_CFLAGS = -march=armv7-r -mthumb -mbig-endian
-
-CFLAGS_OPTIMIZE_V = -O2 -ggdb
-BINEXT?=.bin
-
-# This defines the operations performed on the linked executable.
-# is currently required.
-define bsp-post-link
- $(OBJCOPY) -O binary --strip-all \
- $(basename $@)$(EXEEXT) $(basename $@)$(BINEXT)
- $(SIZE) $(basename $@)$(EXEEXT)
-endef
+include $(RTEMS_ROOT)/make/custom/tms570ls3137.inc
diff --git a/c/src/lib/libbsp/arm/tms570/make/custom/tms570ls3137_hdk_with_loader.cfg b/c/src/lib/libbsp/arm/tms570/make/custom/tms570ls3137_hdk_with_loader.cfg
index 869cf71..d769895 100644
--- a/c/src/lib/libbsp/arm/tms570/make/custom/tms570ls3137_hdk_with_loader.cfg
+++ b/c/src/lib/libbsp/arm/tms570/make/custom/tms570ls3137_hdk_with_loader.cfg
@@ -2,19 +2,4 @@
# Config file for TMS570LS3137 board.
#
-include $(RTEMS_ROOT)/make/custom/default.cfg
-
-RTEMS_CPU = arm
-
-CPU_CFLAGS = -march=armv7-r -mthumb -mbig-endian -mfpu=vfpv3-d16 -mfloat-abi=hard
-
-CFLAGS_OPTIMIZE_V = -O2 -ggdb
-BINEXT?=.bin
-
-# This defines the operations performed on the linked executable.
-# is currently required.
-define bsp-post-link
- $(OBJCOPY) -O binary --strip-all \
- $(basename $@)$(EXEEXT) $(basename $@)$(BINEXT)
- $(SIZE) $(basename $@)$(EXEEXT)
-endef
+include $(RTEMS_ROOT)/make/custom/tms570ls3137.inc
More information about the vc
mailing list