summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2020-10-10 13:49:33 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2020-10-10 13:50:41 +0200
commit6ca00e61dc8ba9f3c0510aa88209ef8ca31e3b6d (patch)
tree5c83964b405d0f51e01c7a53fac2c49f97dea3fd
parent558a19d3adff6a3ecf678f94408b48beccbbc9fb (diff)
downloadrtems-6ca00e61dc8ba9f3c0510aa88209ef8ca31e3b6d.tar.bz2
build: Fix legacy Makefile support
Close #4140.
-rw-r--r--make/compilers/gcc-target-default.cfg3
-rw-r--r--spec/build/bsps/makecustom.yml4
2 files changed, 3 insertions, 4 deletions
diff --git a/make/compilers/gcc-target-default.cfg b/make/compilers/gcc-target-default.cfg
index 813bd5c2c4..d440b4de58 100644
--- a/make/compilers/gcc-target-default.cfg
+++ b/make/compilers/gcc-target-default.cfg
@@ -29,8 +29,7 @@ ASFLAGS = $(CPU_ASFLAGS) $(XASFLAGS)
GCCSPECS_OPTIMIZE_V =
GCCSPECS_DEBUG_V =
-GCCSPECS = -B$(PROJECT_RELEASE)/lib/ -specs bsp_specs -qrtems
-GCCSPECS += $(GCCSPECS_$(VARIANT_V)_V)
+GCCSPECS = $(GCCSPECS_$(VARIANT_V)_V)
CC += $(GCCSPECS)
CXX += $(GCCSPECS)
diff --git a/spec/build/bsps/makecustom.yml b/spec/build/bsps/makecustom.yml
index e04d4281c7..139629b597 100644
--- a/spec/build/bsps/makecustom.yml
+++ b/spec/build/bsps/makecustom.yml
@@ -2,10 +2,10 @@ SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
build-type: config-file
content: |
include $$(RTEMS_ROOT)/make/custom/default.cfg
- RTEMS_CPU = ${ARCH}
+ CPU_DEFINES = -I$$(exec_prefix)/$$(RTEMS_BSP)/lib/include
CPU_CFLAGS = ${ABI_FLAGS}
CFLAGS_OPTIMIZE_V = ${OPTIMIZATION_FLAGS}
- LDFLAGS = ${LDFLAGS}
+ LDFLAGS = -B$$(exec_prefix)/$$(RTEMS_BSP)/lib ${PKGCONFIG_LDFLAGS}
copyrights:
- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de)
enabled-by: true