Makefile.win: Native windows build fixes from Max Holtzberg
This commit is contained in:
parent
f9189ae64e
commit
b46aa97ac4
2 changed files with 19 additions and 13 deletions
|
|
@ -6362,4 +6362,8 @@
|
|||
from Max Holtzberg (2014-1-4).
|
||||
* configs/olimex-stm32-p107/nsh/Make.defs: Add native Windoes build
|
||||
support for the Olimex STM32 P107. From Max Holtzberg (2014-1-4).
|
||||
* Makefile.win: Changes for native Windows build: fix creation of
|
||||
a .version file if one does not exist. Make sure that the APPDIR
|
||||
environment variable is set before configuring. From Max Holtzberg
|
||||
(2014-1-4).
|
||||
|
||||
|
|
|
|||
28
Makefile.win
28
Makefile.win
|
|
@ -338,11 +338,16 @@ tools\mkversion$(HOSTEXEEXT):
|
|||
$(Q) $(MAKE) -C tools -f Makefile.host TOPDIR="$(TOPDIR)" mkversion$(HOSTEXEEXT)
|
||||
|
||||
$(TOPDIR)\.version:
|
||||
$(Q) if [ ! -f .version ]; then \
|
||||
echo "No .version file found, creating one"; \
|
||||
tools\version.sh -v 0.0 -b 0 .version; \
|
||||
chmod 755 .version; \
|
||||
fi
|
||||
$(Q) echo CONFIG_VERSION_STRING="0" > .version
|
||||
$(Q) echo CONFIG_VERSION_MAJOR=0 >> .version
|
||||
$(Q) echo CONFIG_VERSION_MINOR=0 >> .version
|
||||
$(Q) echo CONFIG_VERSION_BUILD="0" >> .version
|
||||
|
||||
# $(Q) if [ ! -f .version ]; then \
|
||||
# echo "No .version file found, creating one"; \
|
||||
# tools\version.sh -v 0.0 -b 0 .version; \
|
||||
# chmod 755 .version; \
|
||||
# fi
|
||||
|
||||
include\nuttx\version.h: $(TOPDIR)\.version tools\mkversion$(HOSTEXEEXT)
|
||||
$(Q) tools\mkversion$(HOSTEXEEXT) $(TOPDIR) > include\nuttx\version.h
|
||||
|
|
@ -717,17 +722,14 @@ pass2dep: context tools\mkdeps$(HOSTEXEEXT)
|
|||
# location: http://ymorin.is-a-geek.org/projects/kconfig-frontends. See
|
||||
# misc\tools\README.txt for additional information.
|
||||
|
||||
configenv:
|
||||
$(Q) set APPSDIR=${CONFIG_APPS_DIR}
|
||||
config:
|
||||
$(Q) set APPSDIR=$(patsubst "%",%,${CONFIG_APPS_DIR})& kconfig-conf Kconfig
|
||||
|
||||
config: configenv
|
||||
$(Q) kconfig-conf Kconfig
|
||||
|
||||
oldconfig: configenv
|
||||
$(Q) kconfig-conf --oldconfig Kconfig
|
||||
oldconfig:
|
||||
$(Q) set APPSDIR=$(patsubst "%",%,${CONFIG_APPS_DIR})& kconfig-conf --oldconfig Kconfig
|
||||
|
||||
menuconfig: configenv
|
||||
$(Q) kconfig-mconf Kconfig
|
||||
$(Q) set APPSDIR=$(patsubst "%",%,${CONFIG_APPS_DIR})& kconfig-mconf Kconfig
|
||||
|
||||
# export
|
||||
#
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue