[RTEMS Project] #3375: Remove command line pre-processor defines

RTEMS trac trac at rtems.org
Tue Mar 27 05:19:46 UTC 2018


#3375: Remove command line pre-processor defines
------------------------------+-----------------------------
  Reporter:  Sebastian Huber  |      Owner:  Sebastian Huber
      Type:  enhancement      |     Status:  assigned
  Priority:  normal           |  Milestone:  5.1
 Component:  build            |    Version:  5
  Severity:  normal           |   Keywords:
Blocked By:                   |   Blocking:
------------------------------+-----------------------------
 Command line defines defined by the build system make it difficult get a
 consistent view of the sources from other entities, e.g. static code
 analysis, code editors and reviews.

 Command line defines are currently used here:
 {{{
 c/src/lib/libbsp/mips/hurricane/Makefile.am:libbsp_a_CPPFLAGS =
 $(AM_CPPFLAGS) -DRM52XX
 c/src/lib/libbsp/mips/rbtx4938/Makefile.am:libbsp_a_CPPFLAGS =
 $(AM_CPPFLAGS) -DTX49
 c/src/lib/libbsp/mips/jmr3904/Makefile.am:libbsp_a_CPPFLAGS =
 $(AM_CPPFLAGS) -DTX39
 cpukit/pppd/Makefile.am:libpppd_a_CPPFLAGS = $(AM_CPPFLAGS)
 -D__BSD_VISIBLE -I$(srcdir)/../libmd
 cpukit/libfs/Makefile.am:libjffs2_a_CPPFLAGS += -D__ECOS
 cpukit/libfs/Makefile.am:libjffs2_a_CPPFLAGS += '-DKBUILD_MODNAME="JFFS2"'
 cpukit/mghttpd/Makefile.am:# libmghttpd_a_CPPFLAGS += -DHAVE_MD5
 cpukit/mghttpd/Makefile.am:libmghttpd_a_CPPFLAGS += -DNO_SSL -DNO_POPEN
 -DNO_CGI -DUSE_WEBSOCKET
 cpukit/librpc/Makefile.am:librpc_CPPFLAGS = -D_RPC_read=read
 -D_RPC_write=write -D_RPC_close=close \
 cpukit/libnetworking/Makefile.am:libnetworking_CPPFLAGS = -DINET -DNFS \
 cpukit/libnetworking/Makefile.am:libc_CPPFLAGS = -DNOPOLL -DNOSELECT
 -D__BSD_VISIBLE -D_THREAD_SAFE
 cpukit/libnetworking/Makefile.am:lib_CPPFLAGS = -DNOPOLL -DNOSELECT
 cpukit/libnetworking/Makefile.am:lib_a_CPPFLAGS = $(AM_CPPFLAGS)
 $(lib_CPPFLAGS) -D__BSD_VISIBLE
 cpukit/libdl/Makefile.am:libdl_a_CPPFLAGS = $(AM_CPPFLAGS)
 -DRTEMS_RTL_RAP_LOADER=1 -DRTEMS_RTL_ELF_LOADER=1
 }}}

--
Ticket URL: <http://devel.rtems.org/ticket/3375>
RTEMS Project <http://www.rtems.org/>
RTEMS Project


More information about the bugs mailing list