|
|
@ -321,8 +321,8 @@ endif |
|
|
|
# part of the overall NuttX configuration sequence. Notice that the
|
|
|
|
# part of the overall NuttX configuration sequence. Notice that the
|
|
|
|
# tools/mkversion tool is built and used to create include/nuttx/version.h
|
|
|
|
# tools/mkversion tool is built and used to create include/nuttx/version.h
|
|
|
|
|
|
|
|
|
|
|
|
tools/mkversion: |
|
|
|
tools/mkversion$(HOSTEXEEXT): |
|
|
|
$(Q) $(MAKE) -C tools -f Makefile.host TOPDIR="$(TOPDIR)" mkversion
|
|
|
|
$(Q) $(MAKE) -C tools -f Makefile.host TOPDIR="$(TOPDIR)" mkversion$(HOSTEXEEXT)
|
|
|
|
|
|
|
|
|
|
|
|
$(TOPDIR)/.version: |
|
|
|
$(TOPDIR)/.version: |
|
|
|
$(Q) if [ ! -f .version ]; then \
|
|
|
|
$(Q) if [ ! -f .version ]; then \
|
|
|
@ -331,19 +331,24 @@ $(TOPDIR)/.version: |
|
|
|
chmod 755 .version; \
|
|
|
|
chmod 755 .version; \
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
include/nuttx/version.h: $(TOPDIR)/.version tools/mkversion |
|
|
|
include/nuttx/version.h: $(TOPDIR)/.version tools/mkversion$(HOSTEXEEXT) |
|
|
|
$(Q) tools/mkversion $(TOPDIR) > include/nuttx/version.h
|
|
|
|
$(Q) tools/mkversion $(TOPDIR) > include/nuttx/version.h
|
|
|
|
|
|
|
|
|
|
|
|
# Targets used to build include/nuttx/config.h. Creation of config.h is
|
|
|
|
# Targets used to build include/nuttx/config.h. Creation of config.h is
|
|
|
|
# part of the overall NuttX configuration sequence. Notice that the
|
|
|
|
# part of the overall NuttX configuration sequence. Notice that the
|
|
|
|
# tools/mkconfig tool is built and used to create include/nuttx/config.h
|
|
|
|
# tools/mkconfig tool is built and used to create include/nuttx/config.h
|
|
|
|
|
|
|
|
|
|
|
|
tools/mkconfig: |
|
|
|
tools/mkconfig$(HOSTEXEEXT): |
|
|
|
$(Q) $(MAKE) -C tools -f Makefile.host TOPDIR="$(TOPDIR)" mkconfig
|
|
|
|
$(Q) $(MAKE) -C tools -f Makefile.host TOPDIR="$(TOPDIR)" mkconfig$(HOSTEXEEXT)
|
|
|
|
|
|
|
|
|
|
|
|
include/nuttx/config.h: $(TOPDIR)/.config tools/mkconfig |
|
|
|
include/nuttx/config.h: $(TOPDIR)/.config tools/mkconfig$(HOSTEXEEXT) |
|
|
|
$(Q) tools/mkconfig $(TOPDIR) > include/nuttx/config.h
|
|
|
|
$(Q) tools/mkconfig $(TOPDIR) > include/nuttx/config.h
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Targets used to create dependencies
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tools/mkdeps$(HOSTEXEEXT): |
|
|
|
|
|
|
|
$(Q) $(MAKE) -C tools -f Makefile.host TOPDIR="$(TOPDIR)" mkdeps$(HOSTEXEEXT)
|
|
|
|
|
|
|
|
|
|
|
|
# dirlinks, and helpers
|
|
|
|
# dirlinks, and helpers
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# Directories links. Most of establishing the NuttX configuration involves
|
|
|
|
# Directories links. Most of establishing the NuttX configuration involves
|
|
|
@ -550,7 +555,7 @@ lib/libc$(LIBEXT): libc/libc$(LIBEXT) |
|
|
|
# is an archive. Exactly what is performed during pass1 or what it generates
|
|
|
|
# is an archive. Exactly what is performed during pass1 or what it generates
|
|
|
|
# is unknown to this makefule unless CONFIG_PASS1_OBJECT is defined.
|
|
|
|
# is unknown to this makefule unless CONFIG_PASS1_OBJECT is defined.
|
|
|
|
|
|
|
|
|
|
|
|
pass1deps: context pass1dep $(USERLIBS) |
|
|
|
pass1deps: pass1dep $(USERLIBS) |
|
|
|
|
|
|
|
|
|
|
|
pass1: pass1deps |
|
|
|
pass1: pass1deps |
|
|
|
ifeq ($(CONFIG_BUILD_2PASS),y) |
|
|
|
ifeq ($(CONFIG_BUILD_2PASS),y) |
|
|
@ -569,7 +574,7 @@ ifeq ($(CONFIG_BUILD_2PASS),y) |
|
|
|
$(Q) $(MAKE) -C $(CONFIG_PASS1_BUILDIR) TOPDIR="$(TOPDIR)" LINKLIBS="$(LINKLIBS)" USERLIBS="$(USERLIBS)" "$(CONFIG_PASS1_TARGET)"
|
|
|
|
$(Q) $(MAKE) -C $(CONFIG_PASS1_BUILDIR) TOPDIR="$(TOPDIR)" LINKLIBS="$(LINKLIBS)" USERLIBS="$(USERLIBS)" "$(CONFIG_PASS1_TARGET)"
|
|
|
|
endif |
|
|
|
endif |
|
|
|
|
|
|
|
|
|
|
|
pass2deps: context pass2dep $(NUTTXLIBS) |
|
|
|
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)
|
|
|
@ -619,12 +624,12 @@ download: $(BIN) |
|
|
|
# pass1dep: Create pass1 build dependencies
|
|
|
|
# pass1dep: Create pass1 build dependencies
|
|
|
|
# pass2dep: Create pass2 build dependencies
|
|
|
|
# pass2dep: Create pass2 build dependencies
|
|
|
|
|
|
|
|
|
|
|
|
pass1dep: context |
|
|
|
pass1dep: context tools/mkdeps$(HOSTEXEEXT) |
|
|
|
$(Q) for dir in $(USERDEPDIRS) ; do \
|
|
|
|
$(Q) for dir in $(USERDEPDIRS) ; do \
|
|
|
|
$(MAKE) -C $$dir TOPDIR="$(TOPDIR)" depend ; \
|
|
|
|
$(MAKE) -C $$dir TOPDIR="$(TOPDIR)" depend ; \
|
|
|
|
done
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
|
|
pass2dep: context |
|
|
|
pass2dep: context tools/mkdeps$(HOSTEXEEXT) |
|
|
|
$(Q) for dir in $(KERNDEPDIRS) ; do \
|
|
|
|
$(Q) for dir in $(KERNDEPDIRS) ; do \
|
|
|
|
$(MAKE) -C $$dir TOPDIR="$(TOPDIR)" EXTRADEFINES=$(KDEFINE) depend; \
|
|
|
|
$(MAKE) -C $$dir TOPDIR="$(TOPDIR)" EXTRADEFINES=$(KDEFINE) depend; \
|
|
|
|
done
|
|
|
|
done
|
|
|
|