#3195 serial: Don’t comment out ws_[x | y]pixel field from winsize struct |
PR-1890
(commit 2caf3a69e3d60ec550980f7ba897c732e7a39df7)
attempts to speed up compilation time for concurrent builds by changing
assignment to makefile variables *CFLAGS*
, *CPPFLAGS*
, *CXXFLAGS*
, and
*AFLAGS*
from recursive =
to simple :=
. This causes these compile
options to be expanded only once during the build.
If you are using NuttX on a custom board not in the NuttX repository, you may
want to make a similar change to your Make.defs
files. Change these
recursive assignments:
CFLAGS = $(ARCHCFLAGS) $(ARCHWARNINGS) $(ARCHOPTIMIZATION) $(ARCHCPUFLAGS) $(ARCHINCLUDES) $(ARCHDEFINES) $(EXTRAFLAGS) -pipe
CXXFLAGS = $(ARCHCXXFLAGS) $(ARCHWARNINGSXX) $(ARCHOPTIMIZATION) $(ARCHCPUFLAGS) $(ARCHXXINCLUDES) $(ARCHDEFINES) $(EXTRAFLAGS) -pipe
CPPFLAGS = $(ARCHINCLUDES) $(ARCHDEFINES) $(EXTRAFLAGS)
AFLAGS = $(CFLAGS) -D__ASSEMBLY__
to simple assignments:
CFLAGS := $(ARCHCFLAGS) $(ARCHWARNINGS) $(ARCHOPTIMIZATION) $(ARCHCPUFLAGS) $(ARCHINCLUDES) $(ARCHDEFINES) $(EXTRAFLAGS) -pipe
CXXFLAGS := $(ARCHCXXFLAGS) $(ARCHWARNINGSXX) $(ARCHOPTIMIZATION) $(ARCHCPUFLAGS) $(ARCHXXINCLUDES) $(ARCHDEFINES) $(EXTRAFLAGS) -pipe
CPPFLAGS := $(ARCHINCLUDES) $(ARCHDEFINES) $(EXTRAFLAGS)
AFLAGS := $(CFLAGS) -D__ASSEMBLY__
__NuttX__
in Make.defsPR-2192
(commit 9208176f600d0d04446531909bf05710716a5ee4)
refactors definition of the __NuttX__
preprocessor symbol to
tools/Config.mk
, so it is no longer necessary to define it in each board’s
Make.defs
file.
If you are using NuttX on a custom board not in the NuttX repository, you may want to make a similar change to your Make.defs files.
Remove lines like this:
ARCHDEFINES = -D__NuttX__
Or remove -D__NuttX__ from lines like this:
CXXFLAGS += $(ARCHDEFINES) $(EXTRAFLAGS) -pipe -std=c++11 -D__NuttX__