summaryrefslogtreecommitdiff
path: root/nuttx/arch/8051/src/Makefile
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2011-04-03 18:42:33 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2011-04-03 18:42:33 +0000
commitc5ec7c478098273586b7a5716e30dc82c1e6aba5 (patch)
tree241ec95305382eac68e212764452ee17655df48f /nuttx/arch/8051/src/Makefile
parentcfc7fe371ad9efc22bded77dc0779ec4eff1a9fd (diff)
downloadpx4-nuttx-c5ec7c478098273586b7a5716e30dc82c1e6aba5.tar.gz
px4-nuttx-c5ec7c478098273586b7a5716e30dc82c1e6aba5.tar.bz2
px4-nuttx-c5ec7c478098273586b7a5716e30dc82c1e6aba5.zip
Pass __KERNEL__ define (or not) to all makes to handle small differences in user-/kernel-builds
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3459 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/arch/8051/src/Makefile')
-rw-r--r--nuttx/arch/8051/src/Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/nuttx/arch/8051/src/Makefile b/nuttx/arch/8051/src/Makefile
index 9152bfa36..6f1907bc4 100644
--- a/nuttx/arch/8051/src/Makefile
+++ b/nuttx/arch/8051/src/Makefile
@@ -37,7 +37,7 @@
CFLAGS += -I$(TOPDIR)/sched
ASFLAGS = -x -j -g -l -s -p
-CPPFLAGS = $(ARCHINCLUDES) $(ARCHDEFINES) -D__ASSEMBLY__
+CPPFLAGS = $(ARCHINCLUDES) $(ARCHDEFINES) $(EXTRADEFINES) -D__ASSEMBLY__
SSRCS =
ASRCS = $(SSRCS:.S=$(ASMEXT))
@@ -165,7 +165,7 @@ $(SDCCLIBDIR)/libmysdcc.lib: $(SDCCLIBDIR)/libsdcc.lib
# This builds the libboard library in the board/ subdirectory
board/libboard$(LIBEXT):
- $(MAKE) -C board TOPDIR=$(TOPDIR) libboard$(LIBEXT)
+ $(MAKE) -C board TOPDIR=$(TOPDIR) libboard$(LIBEXT) EXTRADEFINES=$(EXTRADEFINES)
# This target builds the final executable
@@ -194,7 +194,7 @@ up_irqtest.ihx: $(TESTOBJS)
$(CC) $(LDFLAGS) -L. $(SDCCPATH) $(TESTLINKOBJS) $(TESTOBJS) $(TESTEXTRAOBJS) $(SDCCLIBS) -o $@
irqtest:
- $(MAKE) TOPDIR=../../.. up_irqtest.ihx
+ @$(MAKE) TOPDIR=../../.. up_irqtest.ihx
# Build dependencies