mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-02 07:31:36 +08:00
Simple window natives OS test build now works; Probabaly more to do for other configs; clean targets still have problems
git-svn-id: http://svn.code.sf.net/p/nuttx/code/trunk@5355 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
+2
-1
@@ -417,4 +417,5 @@
|
|||||||
* apps/examples/modbus: Fixes from Freddie Chopin
|
* apps/examples/modbus: Fixes from Freddie Chopin
|
||||||
* apps/examples/modbus/Kconfig: Kconfig logic for FreeModBus contributed
|
* apps/examples/modbus/Kconfig: Kconfig logic for FreeModBus contributed
|
||||||
by Freddie Chopin.
|
by Freddie Chopin.
|
||||||
|
* Makefile, */Makefile: Various fixes for Windows native build. Now uses
|
||||||
|
make foreach loops instead of shell loops.
|
||||||
|
|||||||
+46
-13
@@ -104,7 +104,7 @@ endif
|
|||||||
# Create the list of available applications (INSTALLED_APPS)
|
# Create the list of available applications (INSTALLED_APPS)
|
||||||
|
|
||||||
define ADD_BUILTIN
|
define ADD_BUILTIN
|
||||||
INSTALLED_APPS += ${shell if [ -r $1/Makefile ]; then echo "$1"; fi}
|
INSTALLED_APPS += $(if $(wildcard $1\Makefile),$1,)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
$(foreach BUILTIN, $(CONFIGURED_APPS), $(eval $(call ADD_BUILTIN,$(BUILTIN))))
|
$(foreach BUILTIN, $(CONFIGURED_APPS), $(eval $(call ADD_BUILTIN,$(BUILTIN))))
|
||||||
@@ -128,45 +128,78 @@ all: $(BIN)
|
|||||||
.PHONY: $(INSTALLED_APPS) context depend clean distclean
|
.PHONY: $(INSTALLED_APPS) context depend clean distclean
|
||||||
|
|
||||||
$(INSTALLED_APPS):
|
$(INSTALLED_APPS):
|
||||||
@$(MAKE) -C $@ TOPDIR="$(TOPDIR)" APPDIR="$(APPDIR)";
|
$(Q) $(MAKE) -C $@ TOPDIR="$(TOPDIR)" APPDIR="$(APPDIR)"
|
||||||
|
|
||||||
$(BIN): $(INSTALLED_APPS)
|
$(BIN): $(INSTALLED_APPS)
|
||||||
|
|
||||||
.context:
|
.context:
|
||||||
@for dir in $(INSTALLED_APPS) ; do \
|
ifeq ($(CONFIG_WINDOWS_NATIVE),y)
|
||||||
|
$(Q) for %%G in ($(INSTALLED_APPS)) do ( \
|
||||||
|
if exist %%G\.context del /f /q %%G\.context \
|
||||||
|
$(MAKE) -C %%G TOPDIR="$(TOPDIR)" APPDIR="$(APPDIR)" context \
|
||||||
|
)
|
||||||
|
else
|
||||||
|
$(Q) for dir in $(INSTALLED_APPS) ; do \
|
||||||
rm -f $$dir/.context ; \
|
rm -f $$dir/.context ; \
|
||||||
$(MAKE) -C $$dir TOPDIR="$(TOPDIR)" APPDIR="$(APPDIR)" context ; \
|
$(MAKE) -C $$dir TOPDIR="$(TOPDIR)" APPDIR="$(APPDIR)" context ; \
|
||||||
done
|
done
|
||||||
@touch $@
|
endif
|
||||||
|
$(Q) touch $@
|
||||||
|
|
||||||
context: .context
|
context: .context
|
||||||
|
|
||||||
.depend: context Makefile $(SRCS)
|
.depend: context Makefile $(SRCS)
|
||||||
@for dir in $(INSTALLED_APPS) ; do \
|
ifeq ($(CONFIG_WINDOWS_NATIVE),y)
|
||||||
|
$(Q) for %%G in ($(INSTALLED_APPS)) do ( \
|
||||||
|
if exist %%G\.depend del /f /q %%G\.depend \
|
||||||
|
$(MAKE) -C %%G TOPDIR="$(TOPDIR)" APPDIR="$(APPDIR)" depend \
|
||||||
|
)
|
||||||
|
else
|
||||||
|
$(Q) for dir in $(INSTALLED_APPS) ; do \
|
||||||
rm -f $$dir/.depend ; \
|
rm -f $$dir/.depend ; \
|
||||||
$(MAKE) -C $$dir TOPDIR="$(TOPDIR)" APPDIR="$(APPDIR)" depend ; \
|
$(MAKE) -C $$dir TOPDIR="$(TOPDIR)" APPDIR="$(APPDIR)" depend ; \
|
||||||
done
|
done
|
||||||
@touch $@
|
endif
|
||||||
|
$(Q) touch $@
|
||||||
|
|
||||||
depend: .depend
|
depend: .depend
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
@for dir in $(SUBDIRS) ; do \
|
ifeq ($(CONFIG_WINDOWS_NATIVE),y)
|
||||||
|
$(Q) for %%G in ($(SUBDIRS)) do ( \
|
||||||
|
$(MAKE) -C %%G clean TOPDIR="$(TOPDIR)" APPDIR="$(APPDIR)" \
|
||||||
|
)
|
||||||
|
$(Q) rm -f $(BIN) *~ .*.swp *.o
|
||||||
|
else
|
||||||
|
$(Q) for dir in $(SUBDIRS) ; do \
|
||||||
$(MAKE) -C $$dir clean TOPDIR="$(TOPDIR)" APPDIR="$(APPDIR)"; \
|
$(MAKE) -C $$dir clean TOPDIR="$(TOPDIR)" APPDIR="$(APPDIR)"; \
|
||||||
done
|
done
|
||||||
@rm -f $(BIN) *~ .*.swp *.o
|
$(Q) rm -f $(BIN) *~ .*.swp *.o
|
||||||
|
endif
|
||||||
$(call CLEAN)
|
$(call CLEAN)
|
||||||
|
|
||||||
distclean: # clean
|
distclean: # clean
|
||||||
@for dir in $(SUBDIRS) ; do \
|
ifeq ($(CONFIG_WINDOWS_NATIVE),y)
|
||||||
|
$(Q) for %%G in ($(SUBDIRS)) do ( \
|
||||||
|
$(MAKE) -C %%G distclean TOPDIR="$(TOPDIR)" APPDIR="$(APPDIR)" \
|
||||||
|
)
|
||||||
|
$(Q) rm -f .config .context .depend
|
||||||
|
$(Q) ( if exist external ( \
|
||||||
|
echo ********************************************************" \
|
||||||
|
echo * The external directory/link must be removed manually *" \
|
||||||
|
echo ********************************************************" \
|
||||||
|
)
|
||||||
|
else
|
||||||
|
$(Q) for dir in $(SUBDIRS) ; do \
|
||||||
$(MAKE) -C $$dir distclean TOPDIR="$(TOPDIR)" APPDIR="$(APPDIR)"; \
|
$(MAKE) -C $$dir distclean TOPDIR="$(TOPDIR)" APPDIR="$(APPDIR)"; \
|
||||||
done
|
done
|
||||||
@rm -f .config .context .depend
|
$(Q) rm -f .config .context .depend
|
||||||
@( if [ -e external ]; then \
|
$(Q) ( if [ -e external ]; then \
|
||||||
echo "********************************************************"; \
|
echo "********************************************************"; \
|
||||||
echo "* The external directory/link must be removed manually *"; \
|
echo "* The external directory/link must be removed manually *"; \
|
||||||
echo "********************************************************"; \
|
echo "********************************************************"; \
|
||||||
fi; \
|
fi; \
|
||||||
)
|
)
|
||||||
|
endif
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
+14
-16
@@ -102,27 +102,25 @@ all: nothing
|
|||||||
|
|
||||||
.PHONY: nothing context depend clean distclean
|
.PHONY: nothing context depend clean distclean
|
||||||
|
|
||||||
|
define SDIR_template
|
||||||
|
$(1)_$(2):
|
||||||
|
$(MAKE) -C $(1) TOPDIR="$(TOPDIR)" APPDIR="$(APPDIR)"
|
||||||
|
endef
|
||||||
|
|
||||||
|
$(foreach SDIR, $(CNTXTDIRS), $(eval $(call SDIR_template,$(SDIR),context)))
|
||||||
|
$(foreach SDIR, $(SUBDIRS), $(eval $(call SDIR_template,$(SDIR),depend)))
|
||||||
|
$(foreach SDIR, $(SUBDIRS), $(eval $(call SDIR_template,$(SDIR),clean)))
|
||||||
|
$(foreach SDIR, $(SUBDIRS), $(eval $(call SDIR_template,$(SDIR),disclean)))
|
||||||
|
|
||||||
nothing:
|
nothing:
|
||||||
|
|
||||||
context:
|
context: $(foreach SDIR, $(CNTXTDIRS), $(SDIR)_context)
|
||||||
@for dir in $(CNTXTDIRS) ; do \
|
|
||||||
$(MAKE) -C $$dir context TOPDIR="$(TOPDIR)" APPDIR="$(APPDIR)"; \
|
|
||||||
done
|
|
||||||
|
|
||||||
depend:
|
depend: $(foreach SDIR, $(SUBDIRS), $(SDIR)_depend)
|
||||||
@for dir in $(SUBDIRS) ; do \
|
|
||||||
$(MAKE) -C $$dir depend TOPDIR="$(TOPDIR)" APPDIR="$(APPDIR)"; \
|
|
||||||
done
|
|
||||||
|
|
||||||
clean:
|
clean: $(foreach SDIR, $(SUBDIRS), $(SDIR)_clean)
|
||||||
@for dir in $(SUBDIRS) ; do \
|
|
||||||
$(MAKE) -C $$dir clean TOPDIR="$(TOPDIR)" APPDIR="$(APPDIR)"; \
|
|
||||||
done
|
|
||||||
|
|
||||||
distclean: clean
|
distclean: clean $(foreach SDIR, $(SUBDIRS), $(SDIR)_distclean)
|
||||||
@for dir in $(SUBDIRS) ; do \
|
|
||||||
$(MAKE) -C $$dir distclean TOPDIR="$(TOPDIR)" APPDIR="$(APPDIR)"; \
|
|
||||||
done
|
|
||||||
|
|
||||||
-include Make.dep
|
-include Make.dep
|
||||||
|
|
||||||
|
|||||||
+14
-16
@@ -46,27 +46,25 @@ CNTXTDIRS =
|
|||||||
all: nothing
|
all: nothing
|
||||||
.PHONY: nothing context depend clean distclean
|
.PHONY: nothing context depend clean distclean
|
||||||
|
|
||||||
|
define SDIR_template
|
||||||
|
$(1)_$(2):
|
||||||
|
$(MAKE) -C $(1) TOPDIR="$(TOPDIR)" APPDIR="$(APPDIR)"
|
||||||
|
endef
|
||||||
|
|
||||||
|
$(foreach SDIR, $(CNTXTDIRS), $(eval $(call SDIR_template,$(SDIR),context)))
|
||||||
|
$(foreach SDIR, $(SUBDIRS), $(eval $(call SDIR_template,$(SDIR),depend)))
|
||||||
|
$(foreach SDIR, $(SUBDIRS), $(eval $(call SDIR_template,$(SDIR),clean)))
|
||||||
|
$(foreach SDIR, $(SUBDIRS), $(eval $(call SDIR_template,$(SDIR),disclean)))
|
||||||
|
|
||||||
nothing:
|
nothing:
|
||||||
|
|
||||||
context:
|
context: $(foreach SDIR, $(CNTXTDIRS), $(SDIR)_context)
|
||||||
@for dir in $(CNTXTDIRS) ; do \
|
|
||||||
$(MAKE) -C $$dir context TOPDIR="$(TOPDIR)" APPDIR="$(APPDIR)"; \
|
|
||||||
done
|
|
||||||
|
|
||||||
depend:
|
depend: $(foreach SDIR, $(SUBDIRS), $(SDIR)_depend)
|
||||||
@for dir in $(SUBDIRS) ; do \
|
|
||||||
$(MAKE) -C $$dir depend TOPDIR="$(TOPDIR)" APPDIR="$(APPDIR)"; \
|
|
||||||
done
|
|
||||||
|
|
||||||
clean:
|
clean: $(foreach SDIR, $(SUBDIRS), $(SDIR)_clean)
|
||||||
@for dir in $(SUBDIRS) ; do \
|
|
||||||
$(MAKE) -C $$dir clean TOPDIR="$(TOPDIR)" APPDIR="$(APPDIR)"; \
|
|
||||||
done
|
|
||||||
|
|
||||||
distclean: clean
|
distclean: clean $(foreach SDIR, $(SUBDIRS), $(SDIR)_distclean)
|
||||||
@for dir in $(SUBDIRS) ; do \
|
|
||||||
$(MAKE) -C $$dir distclean TOPDIR="$(TOPDIR)" APPDIR="$(APPDIR)"; \
|
|
||||||
done
|
|
||||||
|
|
||||||
-include Make.dep
|
-include Make.dep
|
||||||
|
|
||||||
|
|||||||
+12
-12
@@ -50,21 +50,21 @@ $(foreach DIR, $(SUBDIRS), $(eval $(call ADD_DIRECTORY,$(DIR))))
|
|||||||
all: nothing
|
all: nothing
|
||||||
.PHONY: nothing context depend clean distclean
|
.PHONY: nothing context depend clean distclean
|
||||||
|
|
||||||
|
define SDIR_template
|
||||||
|
$(1)_$(2):
|
||||||
|
$(MAKE) -C $(1) TOPDIR="$(TOPDIR)" APPDIR="$(APPDIR)"
|
||||||
|
endef
|
||||||
|
|
||||||
|
$(foreach SDIR, $(INSTALLED_DIRS), $(eval $(call SDIR_template,$(SDIR),depend)))
|
||||||
|
$(foreach SDIR, $(INSTALLED_DIRS), $(eval $(call SDIR_template,$(SDIR),clean)))
|
||||||
|
$(foreach SDIR, $(INSTALLED_DIRS), $(eval $(call SDIR_template,$(SDIR),disclean)))
|
||||||
|
|
||||||
nothing:
|
nothing:
|
||||||
|
|
||||||
context:
|
context:
|
||||||
|
|
||||||
depend:
|
depend: $(foreach SDIR, $(INSTALLED_DIRS), $(SDIR)_depend)
|
||||||
@for dir in $(INSTALLED_DIRS) ; do \
|
|
||||||
$(MAKE) -C $$dir depend TOPDIR="$(TOPDIR)" APPDIR="$(APPDIR)"; \
|
|
||||||
done
|
|
||||||
|
|
||||||
clean:
|
clean: $(foreach SDIR, $(INSTALLED_DIRS), $(SDIR)_clean)
|
||||||
@for dir in $(INSTALLED_DIRS) ; do \
|
|
||||||
$(MAKE) -C $$dir clean TOPDIR="$(TOPDIR)" APPDIR="$(APPDIR)"; \
|
|
||||||
done
|
|
||||||
|
|
||||||
distclean: clean
|
distclean: clean $(foreach SDIR, $(INSTALLED_DIRS), $(SDIR)_distclean)
|
||||||
@for dir in $(INSTALLED_DIRS) ; do \
|
|
||||||
$(MAKE) -C $$dir distclean TOPDIR="$(TOPDIR)" APPDIR="$(APPDIR)"; \
|
|
||||||
done
|
|
||||||
|
|||||||
+12
-12
@@ -47,21 +47,21 @@ all: nothing
|
|||||||
|
|
||||||
.PHONY: nothing context depend clean distclean
|
.PHONY: nothing context depend clean distclean
|
||||||
|
|
||||||
|
define SDIR_template
|
||||||
|
$(1)_$(2):
|
||||||
|
$(MAKE) -C $(1) TOPDIR="$(TOPDIR)" APPDIR="$(APPDIR)"
|
||||||
|
endef
|
||||||
|
|
||||||
|
$(foreach SDIR, $(SUBDIRS), $(eval $(call SDIR_template,$(SDIR),depend)))
|
||||||
|
$(foreach SDIR, $(SUBDIRS), $(eval $(call SDIR_template,$(SDIR),clean)))
|
||||||
|
$(foreach SDIR, $(SUBDIRS), $(eval $(call SDIR_template,$(SDIR),disclean)))
|
||||||
|
|
||||||
nothing:
|
nothing:
|
||||||
|
|
||||||
context:
|
context:
|
||||||
|
|
||||||
depend:
|
depend: $(foreach SDIR, $(SUBDIRS), $(SDIR)_depend)
|
||||||
@for dir in $(SUBDIRS) ; do \
|
|
||||||
$(MAKE) -C $$dir depend TOPDIR="$(TOPDIR)" APPDIR="$(APPDIR)"; \
|
|
||||||
done
|
|
||||||
|
|
||||||
clean:
|
clean: $(foreach SDIR, $(SUBDIRS), $(SDIR)_clean)
|
||||||
@for dir in $(SUBDIRS) ; do \
|
|
||||||
$(MAKE) -C $$dir clean TOPDIR="$(TOPDIR)" APPDIR="$(APPDIR)"; \
|
|
||||||
done
|
|
||||||
|
|
||||||
distclean: clean
|
distclean: clean $(foreach SDIR, $(SUBDIRS), $(SDIR)_distclean)
|
||||||
@for dir in $(SUBDIRS) ; do \
|
|
||||||
$(MAKE) -C $$dir distclean TOPDIR="$(TOPDIR)" APPDIR="$(APPDIR)"; \
|
|
||||||
done
|
|
||||||
|
|||||||
+12
-13
@@ -50,22 +50,21 @@ $(foreach DIR, $(SUBDIRS), $(eval $(call ADD_DIRECTORY,$(DIR))))
|
|||||||
all: nothing
|
all: nothing
|
||||||
.PHONY: nothing context depend clean distclean
|
.PHONY: nothing context depend clean distclean
|
||||||
|
|
||||||
|
define SDIR_template
|
||||||
|
$(1)_$(2):
|
||||||
|
$(MAKE) -C $(1) TOPDIR="$(TOPDIR)" APPDIR="$(APPDIR)"
|
||||||
|
endef
|
||||||
|
|
||||||
|
$(foreach SDIR, $(INSTALLED_DIRS), $(eval $(call SDIR_template,$(SDIR),depend)))
|
||||||
|
$(foreach SDIR, $(INSTALLED_DIRS), $(eval $(call SDIR_template,$(SDIR),clean)))
|
||||||
|
$(foreach SDIR, $(INSTALLED_DIRS), $(eval $(call SDIR_template,$(SDIR),disclean)))
|
||||||
|
|
||||||
nothing:
|
nothing:
|
||||||
|
|
||||||
context:
|
context:
|
||||||
|
|
||||||
depend:
|
depend: $(foreach SDIR, $(INSTALLED_DIRS), $(SDIR)_depend)
|
||||||
@for dir in $(INSTALLED_DIRS) ; do \
|
|
||||||
$(MAKE) -C $$dir depend TOPDIR="$(TOPDIR)" APPDIR="$(APPDIR)"; \
|
|
||||||
done
|
|
||||||
|
|
||||||
clean:
|
clean: $(foreach SDIR, $(INSTALLED_DIRS), $(SDIR)_clean)
|
||||||
@for dir in $(INSTALLED_DIRS) ; do \
|
|
||||||
$(MAKE) -C $$dir clean TOPDIR="$(TOPDIR)" APPDIR="$(APPDIR)"; \
|
|
||||||
done
|
|
||||||
|
|
||||||
distclean: clean
|
|
||||||
@for dir in $(INSTALLED_DIRS) ; do \
|
|
||||||
$(MAKE) -C $$dir distclean TOPDIR="$(TOPDIR)" APPDIR="$(APPDIR)"; \
|
|
||||||
done
|
|
||||||
|
|
||||||
|
distclean: clean $(foreach SDIR, $(INSTALLED_DIRS), $(SDIR)_distclean)
|
||||||
|
|||||||
@@ -3625,4 +3625,7 @@
|
|||||||
* configs/stm3240g-eval/src: Qencoder fixes from Ryan Sundberg.
|
* configs/stm3240g-eval/src: Qencoder fixes from Ryan Sundberg.
|
||||||
* arch/arm/src/stm32/stm32_qencoder.c: TIM3 bug fix from Ryan Sundberg.
|
* arch/arm/src/stm32/stm32_qencoder.c: TIM3 bug fix from Ryan Sundberg.
|
||||||
* tools/mkromfsimg.sh: Correct typo in an error message (Ryan Sundberg)
|
* tools/mkromfsimg.sh: Correct typo in an error message (Ryan Sundberg)
|
||||||
|
* arch/*/src/Makefile: Remove tftboot install and creation of System.map
|
||||||
|
for Windows native build. The fist is necessary, the second just needs
|
||||||
|
re-implemented.
|
||||||
|
|
||||||
|
|||||||
+2
-8
@@ -457,8 +457,8 @@ clean_context:
|
|||||||
# configuration files have been installed and that NuttX is ready to be built.
|
# configuration files have been installed and that NuttX is ready to be built.
|
||||||
|
|
||||||
check_context:
|
check_context:
|
||||||
if not exist $(TOPDIR)\.config echo "$(TOPDIR)\.config does not exist"
|
$(Q) if not exist $(TOPDIR)\.config echo "$(TOPDIR)\.config does not exist"
|
||||||
if not exist $(TOPDIR)\Make.defs echo "$(TOPDIR)\Make.defs does not exist"
|
$(Q) if not exist $(TOPDIR)\Make.defs echo "$(TOPDIR)\Make.defs does not exist"
|
||||||
|
|
||||||
# Archive targets. The target build sequency will first create a series of
|
# Archive targets. The target build sequency will first create a series of
|
||||||
# libraries, one per configured source file directory. The final NuttX
|
# libraries, one per configured source file directory. The final NuttX
|
||||||
@@ -594,15 +594,9 @@ pass2deps: pass2dep $(NUTTXLIBS)
|
|||||||
|
|
||||||
pass2: pass2deps
|
pass2: pass2deps
|
||||||
$(Q) $(MAKE) -C $(ARCH_SRC) TOPDIR="$(TOPDIR)" EXTRA_OBJS="$(EXTRA_OBJS)" LINKLIBS="$(LINKLIBS)" EXTRADEFINES=$(KDEFINE) $(BIN)
|
$(Q) $(MAKE) -C $(ARCH_SRC) TOPDIR="$(TOPDIR)" EXTRA_OBJS="$(EXTRA_OBJS)" LINKLIBS="$(LINKLIBS)" EXTRADEFINES=$(KDEFINE) $(BIN)
|
||||||
$(Q) if [ -w \tftpboot ] ; then \
|
|
||||||
cp -f $(BIN) \tftpboot\$(BIN).${CONFIG_ARCH}; \
|
|
||||||
fi
|
|
||||||
ifeq ($(CONFIG_RRLOAD_BINARY),y)
|
ifeq ($(CONFIG_RRLOAD_BINARY),y)
|
||||||
@echo "MK: $(BIN).rr"
|
@echo "MK: $(BIN).rr"
|
||||||
$(Q) $(TOPDIR)\tools\mkimage.sh --Prefix $(CROSSDEV) $(BIN) $(BIN).rr
|
$(Q) $(TOPDIR)\tools\mkimage.sh --Prefix $(CROSSDEV) $(BIN) $(BIN).rr
|
||||||
$(Q) if [ -w \tftpboot ] ; then \
|
|
||||||
cp -f $(BIN).rr \tftpboot\$\(BIN).rr.$(CONFIG_ARCH); \
|
|
||||||
fi
|
|
||||||
endif
|
endif
|
||||||
ifeq ($(CONFIG_INTELHEX_BINARY),y)
|
ifeq ($(CONFIG_INTELHEX_BINARY),y)
|
||||||
@echo "CP: $(BIN).hex"
|
@echo "CP: $(BIN).hex"
|
||||||
|
|||||||
@@ -142,9 +142,11 @@ nuttx$(EXEEXT): $(HEAD_OBJ) board/libboard$(LIBEXT)
|
|||||||
$(Q) $(LD) --entry=__start $(LDFLAGS) $(LIBPATHS) $(EXTRA_LIBPATHS) \
|
$(Q) $(LD) --entry=__start $(LDFLAGS) $(LIBPATHS) $(EXTRA_LIBPATHS) \
|
||||||
-o $(NUTTX)$(EXEEXT) $(HEAD_OBJ) $(EXTRA_OBJS) \
|
-o $(NUTTX)$(EXEEXT) $(HEAD_OBJ) $(EXTRA_OBJS) \
|
||||||
--start-group $(LDLIBS) $(EXTRA_LIBS) $(LIBGCC) --end-group
|
--start-group $(LDLIBS) $(EXTRA_LIBS) $(LIBGCC) --end-group
|
||||||
|
ifneq ($(CONFIG_WINDOWS_NATIVE),y)
|
||||||
$(Q) $(NM) $(NUTTX)$(EXEEXT) | \
|
$(Q) $(NM) $(NUTTX)$(EXEEXT) | \
|
||||||
grep -v '\(compiled\)\|\(\$(OBJEXT)$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | \
|
grep -v '\(compiled\)\|\(\$(OBJEXT)$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | \
|
||||||
sort > $(TOPDIR)/System.map
|
sort > $(TOPDIR)/System.map
|
||||||
|
endif
|
||||||
|
|
||||||
# This is part of the top-level export target
|
# This is part of the top-level export target
|
||||||
# Note that there may not be a head object if layout is handled
|
# Note that there may not be a head object if layout is handled
|
||||||
|
|||||||
@@ -139,9 +139,11 @@ nuttx$(EXEEXT): $(HEAD_OBJ) board/libboard$(LIBEXT)
|
|||||||
@echo "LD: nuttx"
|
@echo "LD: nuttx"
|
||||||
$(Q) $(LD) --entry=__start $(LDFLAGS) $(LIBPATHS) -o $(NUTTX)$(EXEEXT) $(HEAD_OBJ) $(EXTRA_OBJS) \
|
$(Q) $(LD) --entry=__start $(LDFLAGS) $(LIBPATHS) -o $(NUTTX)$(EXEEXT) $(HEAD_OBJ) $(EXTRA_OBJS) \
|
||||||
--start-group $(LDLIBS) $(EXTRA_LIBS) $(LIBGCC) --end-group
|
--start-group $(LDLIBS) $(EXTRA_LIBS) $(LIBGCC) --end-group
|
||||||
|
ifneq ($(CONFIG_WINDOWS_NATIVE),y)
|
||||||
$(Q) $(NM) $(NUTTX)$(EXEEXT) | \
|
$(Q) $(NM) $(NUTTX)$(EXEEXT) | \
|
||||||
grep -v '\(compiled\)\|\(\$(OBJEXT)$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | \
|
grep -v '\(compiled\)\|\(\$(OBJEXT)$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | \
|
||||||
sort > $(TOPDIR)/System.map
|
sort > $(TOPDIR)/System.map
|
||||||
|
endif
|
||||||
|
|
||||||
# This is part of the top-level export target
|
# This is part of the top-level export target
|
||||||
|
|
||||||
|
|||||||
@@ -134,9 +134,11 @@ nuttx$(EXEEXT): $(HEAD_OBJ) board/libboard$(LIBEXT)
|
|||||||
$(Q) echo "LD: nuttx"
|
$(Q) echo "LD: nuttx"
|
||||||
$(Q) $(LD) --entry=__start $(LDFLAGS) $(LIBPATHS) -o $(NUTTX)$(EXEEXT) $(HEAD_OBJ) \
|
$(Q) $(LD) --entry=__start $(LDFLAGS) $(LIBPATHS) -o $(NUTTX)$(EXEEXT) $(HEAD_OBJ) \
|
||||||
--start-group $(LDLIBS) $(EXTRA_LIBS) $(LIBGCC) --end-group
|
--start-group $(LDLIBS) $(EXTRA_LIBS) $(LIBGCC) --end-group
|
||||||
|
ifneq ($(CONFIG_WINDOWS_NATIVE),y)
|
||||||
$(Q) $(NM) $(NUTTX)$(EXEEXT) | \
|
$(Q) $(NM) $(NUTTX)$(EXEEXT) | \
|
||||||
grep -v '\(compiled\)\|\(\$(OBJEXT)$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | \
|
grep -v '\(compiled\)\|\(\$(OBJEXT)$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | \
|
||||||
sort > $(TOPDIR)/System.map
|
sort > $(TOPDIR)/System.map
|
||||||
|
endif
|
||||||
|
|
||||||
# This is part of the top-level export target
|
# This is part of the top-level export target
|
||||||
|
|
||||||
|
|||||||
@@ -132,9 +132,11 @@ nuttx$(EXEEXT): $(HEAD_OBJ) board/libboard$(LIBEXT)
|
|||||||
@echo "LD: nuttx"
|
@echo "LD: nuttx"
|
||||||
$(Q) $(LD) --entry=__start $(LDFLAGS) $(LIBPATHS) -o $(NUTTX)$(EXEEXT) $(HEAD_OBJ) $(EXTRA_OBJS) \
|
$(Q) $(LD) --entry=__start $(LDFLAGS) $(LIBPATHS) -o $(NUTTX)$(EXEEXT) $(HEAD_OBJ) $(EXTRA_OBJS) \
|
||||||
--start-group $(LDLIBS) $(EXTRA_LIBS) $(LIBGCC) --end-group
|
--start-group $(LDLIBS) $(EXTRA_LIBS) $(LIBGCC) --end-group
|
||||||
|
ifneq ($(CONFIG_WINDOWS_NATIVE),y)
|
||||||
$(Q) $(NM) $(NUTTX)$(EXEEXT) | \
|
$(Q) $(NM) $(NUTTX)$(EXEEXT) | \
|
||||||
grep -v '\(compiled\)\|\(\$(OBJEXT)$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | \
|
grep -v '\(compiled\)\|\(\$(OBJEXT)$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | \
|
||||||
sort > $(TOPDIR)/System.map
|
sort > $(TOPDIR)/System.map
|
||||||
|
endif
|
||||||
|
|
||||||
# This is part of the top-level export target
|
# This is part of the top-level export target
|
||||||
|
|
||||||
|
|||||||
@@ -130,9 +130,11 @@ nuttx$(EXEEXT): $(HEAD_OBJ) board/libboard$(LIBEXT)
|
|||||||
@echo "LD: nuttx"
|
@echo "LD: nuttx"
|
||||||
$(Q) $(LD) --entry=__start $(LDFLAGS) $(LIBPATHS) -o $(TOPDIR)/$@ $(HEAD_OBJ) \
|
$(Q) $(LD) --entry=__start $(LDFLAGS) $(LIBPATHS) -o $(TOPDIR)/$@ $(HEAD_OBJ) \
|
||||||
--start-group $(LDLIBS) $(EXTRA_LIBS) $(LIBGCC) --end-group
|
--start-group $(LDLIBS) $(EXTRA_LIBS) $(LIBGCC) --end-group
|
||||||
|
ifneq ($(CONFIG_WINDOWS_NATIVE),y)
|
||||||
$(Q) $(NM) $(TOPDIR)/$@ | \
|
$(Q) $(NM) $(TOPDIR)/$@ | \
|
||||||
grep -v '\(compiled\)\|\(\$(OBJEXT)$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | \
|
grep -v '\(compiled\)\|\(\$(OBJEXT)$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | \
|
||||||
sort > $(TOPDIR)/System.map
|
sort > $(TOPDIR)/System.map
|
||||||
|
endif
|
||||||
|
|
||||||
# This is part of the top-level export target
|
# This is part of the top-level export target
|
||||||
|
|
||||||
|
|||||||
@@ -140,9 +140,11 @@ nuttx$(EXEEXT): $(HEAD_OBJ) board/libboard$(LIBEXT)
|
|||||||
@echo "LD: nuttx$(EXEEXT)"
|
@echo "LD: nuttx$(EXEEXT)"
|
||||||
$(Q) $(LD) --entry=__start $(LDFLAGS) $(LIBPATHS) -o $(NUTTX)$(EXEEXT) $(HEAD_OBJ) $(EXTRA_OBJS) \
|
$(Q) $(LD) --entry=__start $(LDFLAGS) $(LIBPATHS) -o $(NUTTX)$(EXEEXT) $(HEAD_OBJ) $(EXTRA_OBJS) \
|
||||||
--start-group $(LDLIBS) $(EXTRA_LIBS) $(LIBGCC) --end-group
|
--start-group $(LDLIBS) $(EXTRA_LIBS) $(LIBGCC) --end-group
|
||||||
|
ifneq ($(CONFIG_WINDOWS_NATIVE),y)
|
||||||
$(Q) $(NM) $(NUTTX)$(EXEEXT) | \
|
$(Q) $(NM) $(NUTTX)$(EXEEXT) | \
|
||||||
grep -v '\(compiled\)\|\(\$(OBJEXT)$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | \
|
grep -v '\(compiled\)\|\(\$(OBJEXT)$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | \
|
||||||
sort > $(TOPDIR)/System.map
|
sort > $(TOPDIR)/System.map
|
||||||
|
endif
|
||||||
|
|
||||||
# This is part of the top-level export target
|
# This is part of the top-level export target
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user