mirror of
https://github.com/apache/nuttx.git
synced 2026-05-31 05:55:46 +08:00
Various fixes necessary to build the simulator under MSYS.
This commit is contained in:
+17
-1
@@ -187,7 +187,23 @@ Using MSYS
|
|||||||
|
|
||||||
Because of some versioning issues, I had to run 'aclocal' prior to
|
Because of some versioning issues, I had to run 'aclocal' prior to
|
||||||
running the kconfig-frontends configure script. See "Configuring NuttX"
|
running the kconfig-frontends configure script. See "Configuring NuttX"
|
||||||
below for futher information.
|
below for futher information.ifq
|
||||||
|
|
||||||
|
Unlike Cygwin, MSYS does not support symbolic links. The 'ln -s' commnad
|
||||||
|
will, in fact, copy a directory! This means that you Make.defs file will
|
||||||
|
have to include defintion like:
|
||||||
|
|
||||||
|
ifeq ($(CONFIG_WINDOWS_MSYS),y)
|
||||||
|
DIRLINK = $(TOPDIR)/tools/copydir.sh
|
||||||
|
DIRUNLINK = $(TOPDIR)/tools/unlink.sh
|
||||||
|
endif
|
||||||
|
|
||||||
|
This will force the directory copies to work in a way that can be handled
|
||||||
|
by the NuttX build system.
|
||||||
|
|
||||||
|
To build the simulator under MSYS, you also need:
|
||||||
|
|
||||||
|
pacman -S zlib-devel
|
||||||
|
|
||||||
Ubuntu Bash under Windows 10
|
Ubuntu Bash under Windows 10
|
||||||
----------------------------
|
----------------------------
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
/Make.dep
|
/Make.dep
|
||||||
/.depend
|
/.depend
|
||||||
/Cygwin-names.dat
|
/Cygwin-names.dat
|
||||||
|
/Msys-names.dat
|
||||||
/Linux-names.dat
|
/Linux-names.dat
|
||||||
/nuttx.rel
|
/nuttx.rel
|
||||||
/hostfs.h
|
/hostfs.h
|
||||||
|
|||||||
@@ -256,6 +256,9 @@ GNU:
|
|||||||
GNU/Linux-names.dat: GNU nuttx-names.dat
|
GNU/Linux-names.dat: GNU nuttx-names.dat
|
||||||
$(Q) cp nuttx-names.dat $@
|
$(Q) cp nuttx-names.dat $@
|
||||||
|
|
||||||
|
Msys-names.dat: GNU nuttx-names.dat
|
||||||
|
$(Q) cp nuttx-names.dat $@
|
||||||
|
|
||||||
Cygwin-names.dat: nuttx-names.dat
|
Cygwin-names.dat: nuttx-names.dat
|
||||||
ifeq ($())CONFIG_SIM_CYGWIN_DECORATED),y)
|
ifeq ($())CONFIG_SIM_CYGWIN_DECORATED),y)
|
||||||
$(Q) cat $^ | sed -e "s/^/_/g" >$@
|
$(Q) cat $^ | sed -e "s/^/_/g" >$@
|
||||||
|
|||||||
@@ -1,7 +1,8 @@
|
|||||||
############################################################################
|
############################################################################
|
||||||
# configs/sim/scripts/Make.defs
|
# configs/sim/scripts/Make.defs
|
||||||
#
|
#
|
||||||
# Copyright (C) 2008, 2011-2012, 2017 Gregory Nutt. All rights reserved.
|
# Copyright (C) 2008, 2011-2012, 2017-2018 Gregory Nutt. All rights
|
||||||
|
# reserved.
|
||||||
# Author: Gregory Nutt <gnutt@nuttx.org>
|
# Author: Gregory Nutt <gnutt@nuttx.org>
|
||||||
#
|
#
|
||||||
# Redistribution and use in source and binary forms, with or without
|
# Redistribution and use in source and binary forms, with or without
|
||||||
@@ -38,6 +39,11 @@ include ${TOPDIR}/tools/Config.mk
|
|||||||
|
|
||||||
HOSTOS = ${shell uname -o 2>/dev/null || echo "Other"}
|
HOSTOS = ${shell uname -o 2>/dev/null || echo "Other"}
|
||||||
|
|
||||||
|
ifeq ($(CONFIG_WINDOWS_MSYS),y)
|
||||||
|
DIRLINK = $(TOPDIR)/tools/copydir.sh
|
||||||
|
DIRUNLINK = $(TOPDIR)/tools/unlink.sh
|
||||||
|
endif
|
||||||
|
|
||||||
ifeq ($(CONFIG_DEBUG_SYMBOLS),y)
|
ifeq ($(CONFIG_DEBUG_SYMBOLS),y)
|
||||||
ARCHOPTIMIZATION = -g
|
ARCHOPTIMIZATION = -g
|
||||||
endif
|
endif
|
||||||
|
|||||||
Reference in New Issue
Block a user