[rtems commit] bsps: Add AM_CPPFLAGS to special case CPPFLAGS

Sebastian Huber sebh at rtems.org
Mon Jan 15 06:26:37 UTC 2018


Module:    rtems
Branch:    master
Commit:    0d08844af90d650ab83a28c4093e0aed3095ff9d
Changeset: http://git.rtems.org/rtems/commit/?id=0d08844af90d650ab83a28c4093e0aed3095ff9d

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Fri Jan 12 07:32:06 2018 +0100

bsps: Add AM_CPPFLAGS to special case CPPFLAGS

This is necessary to pick up mandatory flags provided by the build
system.

Update #3254.

---

 c/src/lib/libcpu/powerpc/Makefile.am | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/c/src/lib/libcpu/powerpc/Makefile.am b/c/src/lib/libcpu/powerpc/Makefile.am
index 3779ddc..5f8ee9f 100644
--- a/c/src/lib/libcpu/powerpc/Makefile.am
+++ b/c/src/lib/libcpu/powerpc/Makefile.am
@@ -379,7 +379,7 @@ include_bsp_HEADERS += mpc83xx/network/tsec.h
 if HAS_NETWORKING
 noinst_PROGRAMS += mpc83xx/tsec.rel
 mpc83xx_tsec_rel_SOURCES = mpc83xx/network/tsec.c
-mpc83xx_tsec_rel_CPPFLAGS = -D__INSIDE_RTEMS_BSD_TCPIP_STACK__ -D__BSD_VISIBLE
+mpc83xx_tsec_rel_CPPFLAGS = $(AM_CPPFLAGS) -D__INSIDE_RTEMS_BSD_TCPIP_STACK__ -D__BSD_VISIBLE
 mpc83xx_tsec_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
 endif
 
@@ -491,7 +491,7 @@ include_bsp_HEADERS += mpc83xx/network/tsec.h
 if HAS_NETWORKING
 noinst_PROGRAMS += tsec.rel
 tsec_rel_SOURCES = mpc83xx/network/tsec.c
-tsec_rel_CPPFLAGS = -D__INSIDE_RTEMS_BSD_TCPIP_STACK__ -D__BSD_VISIBLE
+tsec_rel_CPPFLAGS = $(AM_CPPFLAGS) -D__INSIDE_RTEMS_BSD_TCPIP_STACK__ -D__BSD_VISIBLE
 tsec_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
 endif
 



More information about the vc mailing list