Various fixes necessary to build the simulator under MSYS.
This commit is contained in:
parent
3146eb5d63
commit
de119e8589
18
README.txt
18
README.txt
|
@ -187,7 +187,23 @@ Using MSYS
|
|||
|
||||
Because of some versioning issues, I had to run 'aclocal' prior to
|
||||
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
|
||||
----------------------------
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
/Make.dep
|
||||
/.depend
|
||||
/Cygwin-names.dat
|
||||
/Msys-names.dat
|
||||
/Linux-names.dat
|
||||
/nuttx.rel
|
||||
/hostfs.h
|
||||
|
|
|
@ -256,6 +256,9 @@ GNU:
|
|||
GNU/Linux-names.dat: GNU 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
|
||||
ifeq ($())CONFIG_SIM_CYGWIN_DECORATED),y)
|
||||
$(Q) cat $^ | sed -e "s/^/_/g" >$@
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
############################################################################
|
||||
# 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>
|
||||
#
|
||||
# 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"}
|
||||
|
||||
ifeq ($(CONFIG_WINDOWS_MSYS),y)
|
||||
DIRLINK = $(TOPDIR)/tools/copydir.sh
|
||||
DIRUNLINK = $(TOPDIR)/tools/unlink.sh
|
||||
endif
|
||||
|
||||
ifeq ($(CONFIG_DEBUG_SYMBOLS),y)
|
||||
ARCHOPTIMIZATION = -g
|
||||
endif
|
||||
|
|
Loading…
Reference in New Issue