Add configuration support for builds with Ubuntu under Windows 10

This commit is contained in:
Gregory Nutt
2017-01-01 15:34:23 -06:00
parent eeab108a6c
commit 34be3e7c3c
18 changed files with 124 additions and 34 deletions
+7 -1
View File
@@ -60,7 +60,13 @@ config WINDOWS_CYGWIN
bool "Cygwin" bool "Cygwin"
---help--- ---help---
Build natively in a Cygwin environment with POSIX style paths (like Build natively in a Cygwin environment with POSIX style paths (like
/cygdrive/c/cgywin/home) /cygdrive/c/Program Files)
config WINDOWS_UBUNTU
bool "Ubuntu under Windows10"
---help---
Build natively in an Unbuntu shell under Windoes 10 environment with
POSIX style paths (like /mnt/c/Program Files)
config WINDOWS_MSYS config WINDOWS_MSYS
bool "MSYS" bool "MSYS"
+5 -8
View File
@@ -67,7 +67,7 @@ ENVIRONMENTS
using MSYS. People report to me that they have used MSYS using MSYS. People report to me that they have used MSYS
successfully. I suppose that the advantages of the MSYS environemnt successfully. I suppose that the advantages of the MSYS environemnt
is that it is closer to a native Windows environment and uses only a is that it is closer to a native Windows environment and uses only a
minimal of add-on POSIX-ish tools. minimal of add-on POSIX-land tools.
- NuttX can also be installed and built on a native Windows system, but - NuttX can also be installed and built on a native Windows system, but
with some potential tool-related issues (see the discussion "Native with some potential tool-related issues (see the discussion "Native
@@ -178,10 +178,7 @@ Ubuntu Bash under Windows 10
the same directory would appear at "/cygdrive/c/Program Files". the same directory would appear at "/cygdrive/c/Program Files".
With these differences (perhaps a few other Windows quirks) the Ubuntu With these differences (perhaps a few other Windows quirks) the Ubuntu
install works just like Ubuntu running natively on your PC. Currently install works just like Ubuntu running natively on your PC.
there is no host configuration for Bash running under Windows 10 but
setting the host to either Linux or Cygwin in your configuratino file
should work fine.
Accessing Ubuntu Files From Windows Accessing Ubuntu Files From Windows
----------------------------------- -----------------------------------
@@ -224,9 +221,9 @@ Ubuntu Bash under Windows 10
------------------------------ ------------------------------
If you want to integrate with Windows native tools, then you will need If you want to integrate with Windows native tools, then you will need
deal with the same kind of craziness as with integrating Cygwin with deal with the same kind of craziness as with integrating Cygwin with
native toolchains. If you set the host PC to Cygwin in this case, then native toolchains. But when you select a Windows native toolchain, the
the NuttX build system should deal with that craziness for you. See the NuttX build system should deal with most that craziness for you. But not
section "Cygwin Build Problems" below. all, see the section "Cygwin Build Problems" below.
INSTALLATION INSTALLATION
^^^^^^^^^^^^ ^^^^^^^^^^^^
+7 -1
View File
@@ -1,7 +1,7 @@
############################################################################ ############################################################################
# arch/arm/src/armv/Toolchain.defs # arch/arm/src/armv/Toolchain.defs
# #
# Copyright (C) 2012-2014 Gregory Nutt. All rights reserved. # Copyright (C) 2012-2014, 2017 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
@@ -129,6 +129,8 @@ ifeq ($(CONFIG_ARM_TOOLCHAIN),CODESOURCERYW)
MAXOPTIMIZATION ?= -O2 MAXOPTIMIZATION ?= -O2
ifeq ($(CONFIG_WINDOWS_CYGWIN),y) ifeq ($(CONFIG_WINDOWS_CYGWIN),y)
WINTOOL = y WINTOOL = y
else ifeq ($(CONFIG_WINDOWS_UBUNTU),y)
WINTOOL = y
endif endif
endif endif
@@ -139,6 +141,8 @@ ifeq ($(CONFIG_ARM_TOOLCHAIN),DEVKITARM)
ARCROSSDEV ?= arm-eabi- ARCROSSDEV ?= arm-eabi-
ifeq ($(CONFIG_WINDOWS_CYGWIN),y) ifeq ($(CONFIG_WINDOWS_CYGWIN),y)
WINTOOL = y WINTOOL = y
else ifeq ($(CONFIG_WINDOWS_UBUNTU),y)
WINTOOL = y
endif endif
endif endif
@@ -158,5 +162,7 @@ ifeq ($(CONFIG_ARM_TOOLCHAIN),GNU_EABIW)
MAXOPTIMIZATION ?= -Os MAXOPTIMIZATION ?= -Os
ifeq ($(CONFIG_WINDOWS_CYGWIN),y) ifeq ($(CONFIG_WINDOWS_CYGWIN),y)
WINTOOL = y WINTOOL = y
else ifeq ($(CONFIG_WINDOWS_UBUNTU),y)
WINTOOL = y
endif endif
endif endif
+11 -1
View File
@@ -1,7 +1,7 @@
############################################################################ ############################################################################
# arch/arm/src/armv6-m/Toolchain.defs # arch/arm/src/armv6-m/Toolchain.defs
# #
# Copyright (C) 2013 Gregory Nutt. All rights reserved. # Copyright (C) 2013, 2017 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
@@ -107,6 +107,8 @@ ifeq ($(CONFIG_ARMV6M_TOOLCHAIN),ATOLLIC)
ARCROSSDEV ?= arm-atollic-eabi- ARCROSSDEV ?= arm-atollic-eabi-
ifeq ($(CONFIG_WINDOWS_CYGWIN),y) ifeq ($(CONFIG_WINDOWS_CYGWIN),y)
WINTOOL = y WINTOOL = y
else ifeq ($(CONFIG_WINDOWS_UBUNTU),y)
WINTOOL = y
endif endif
ARCHCPUFLAGS = -mcpu=cortex-m0 -mthumb -mfloat-abi=soft ARCHCPUFLAGS = -mcpu=cortex-m0 -mthumb -mfloat-abi=soft
endif endif
@@ -134,6 +136,8 @@ ifeq ($(CONFIG_ARMV6M_TOOLCHAIN),CODEREDW)
ARCROSSDEV ?= arm-none-eabi- ARCROSSDEV ?= arm-none-eabi-
ifeq ($(CONFIG_WINDOWS_CYGWIN),y) ifeq ($(CONFIG_WINDOWS_CYGWIN),y)
WINTOOL = y WINTOOL = y
else ifeq ($(CONFIG_WINDOWS_UBUNTU),y)
WINTOOL = y
endif endif
ARCHCPUFLAGS = -mcpu=cortex-m0 -mthumb -mfloat-abi=soft ARCHCPUFLAGS = -mcpu=cortex-m0 -mthumb -mfloat-abi=soft
endif endif
@@ -153,6 +157,8 @@ ifeq ($(CONFIG_ARMV6M_TOOLCHAIN),CODESOURCERYW)
ARCROSSDEV ?= arm-none-eabi- ARCROSSDEV ?= arm-none-eabi-
ifeq ($(CONFIG_WINDOWS_CYGWIN),y) ifeq ($(CONFIG_WINDOWS_CYGWIN),y)
WINTOOL = y WINTOOL = y
else ifeq ($(CONFIG_WINDOWS_UBUNTU),y)
WINTOOL = y
endif endif
ARCHCPUFLAGS = -mcpu=cortex-m0 -mthumb -mfloat-abi=soft ARCHCPUFLAGS = -mcpu=cortex-m0 -mthumb -mfloat-abi=soft
endif endif
@@ -164,6 +170,8 @@ ifeq ($(CONFIG_ARMV6M_TOOLCHAIN),DEVKITARM)
ARCROSSDEV ?= arm-eabi- ARCROSSDEV ?= arm-eabi-
ifeq ($(CONFIG_WINDOWS_CYGWIN),y) ifeq ($(CONFIG_WINDOWS_CYGWIN),y)
WINTOOL = y WINTOOL = y
else ifeq ($(CONFIG_WINDOWS_UBUNTU),y)
WINTOOL = y
endif endif
ARCHCPUFLAGS = -mcpu=cortex-m0 -mthumb -mfloat-abi=soft ARCHCPUFLAGS = -mcpu=cortex-m0 -mthumb -mfloat-abi=soft
endif endif
@@ -181,6 +189,8 @@ ifeq ($(CONFIG_ARMV6M_TOOLCHAIN),GNU_EABIW)
ARCROSSDEV ?= arm-none-eabi- ARCROSSDEV ?= arm-none-eabi-
ifeq ($(CONFIG_WINDOWS_CYGWIN),y) ifeq ($(CONFIG_WINDOWS_CYGWIN),y)
WINTOOL = y WINTOOL = y
else ifeq ($(CONFIG_WINDOWS_UBUNTU),y)
WINTOOL = y
endif endif
ARCHCPUFLAGS = -mcpu=cortex-m0 -mthumb -mfloat-abi=soft ARCHCPUFLAGS = -mcpu=cortex-m0 -mthumb -mfloat-abi=soft
endif endif
+7 -1
View File
@@ -1,7 +1,7 @@
############################################################################ ############################################################################
# arch/arm/src/armv7-a/Toolchain.defs # arch/arm/src/armv7-a/Toolchain.defs
# #
# Copyright (C) 2013 Gregory Nutt. All rights reserved. # Copyright (C) 2013, 2017 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
@@ -129,6 +129,8 @@ ifeq ($(CONFIG_ARMV7A_TOOLCHAIN),CODESOURCERYW)
MAXOPTIMIZATION ?= -O2 MAXOPTIMIZATION ?= -O2
ifeq ($(CONFIG_WINDOWS_CYGWIN),y) ifeq ($(CONFIG_WINDOWS_CYGWIN),y)
WINTOOL = y WINTOOL = y
else ifeq ($(CONFIG_WINDOWS_UBUNTU),y)
WINTOOL = y
endif endif
endif endif
@@ -139,6 +141,8 @@ ifeq ($(CONFIG_ARMV7A_TOOLCHAIN),DEVKITARM)
ARCROSSDEV ?= $(TARGET_ARCH)-eabi- ARCROSSDEV ?= $(TARGET_ARCH)-eabi-
ifeq ($(CONFIG_WINDOWS_CYGWIN),y) ifeq ($(CONFIG_WINDOWS_CYGWIN),y)
WINTOOL = y WINTOOL = y
else ifeq ($(CONFIG_WINDOWS_UBUNTU),y)
WINTOOL = y
endif endif
endif endif
@@ -158,5 +162,7 @@ ifeq ($(CONFIG_ARMV7A_TOOLCHAIN),GNU_EABIW)
MAXOPTIMIZATION ?= -Os MAXOPTIMIZATION ?= -Os
ifeq ($(CONFIG_WINDOWS_CYGWIN),y) ifeq ($(CONFIG_WINDOWS_CYGWIN),y)
WINTOOL = y WINTOOL = y
else ifeq ($(CONFIG_WINDOWS_UBUNTU),y)
WINTOOL = y
endif endif
endif endif
+13 -1
View File
@@ -1,7 +1,7 @@
############################################################################ ############################################################################
# arch/arm/src/armv7-m/Toolchain.defs # arch/arm/src/armv7-m/Toolchain.defs
# #
# Copyright (C) 2012-2013, 2015-2016 Gregory Nutt. All rights reserved. # Copyright (C) 2012-2013, 2015-2017 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
@@ -167,6 +167,8 @@ ifeq ($(CONFIG_ARMV7M_TOOLCHAIN),ATOLLIC)
ARCHCPUFLAGS = $(TOOLCHAIN_MCPU) -mthumb $(TOOLCHAIN_MFLOAT) ARCHCPUFLAGS = $(TOOLCHAIN_MCPU) -mthumb $(TOOLCHAIN_MFLOAT)
ifeq ($(CONFIG_WINDOWS_CYGWIN),y) ifeq ($(CONFIG_WINDOWS_CYGWIN),y)
WINTOOL = y WINTOOL = y
else ifeq ($(CONFIG_WINDOWS_UBUNTU),y)
WINTOOL = y
endif endif
endif endif
@@ -203,6 +205,8 @@ ifeq ($(CONFIG_ARMV7M_TOOLCHAIN),CODEREDW)
ARCHCPUFLAGS = $(TOOLCHAIN_MCPU) -mthumb $(TOOLCHAIN_MFLOAT) ARCHCPUFLAGS = $(TOOLCHAIN_MCPU) -mthumb $(TOOLCHAIN_MFLOAT)
ifeq ($(CONFIG_WINDOWS_CYGWIN),y) ifeq ($(CONFIG_WINDOWS_CYGWIN),y)
WINTOOL = y WINTOOL = y
else ifeq ($(CONFIG_WINDOWS_UBUNTU),y)
WINTOOL = y
endif endif
endif endif
@@ -224,6 +228,8 @@ ifeq ($(CONFIG_ARMV7M_TOOLCHAIN),CODESOURCERYW)
ARCHCPUFLAGS = $(TOOLCHAIN_MCPU) -mthumb $(TOOLCHAIN_MFLOAT) ARCHCPUFLAGS = $(TOOLCHAIN_MCPU) -mthumb $(TOOLCHAIN_MFLOAT)
ifeq ($(CONFIG_WINDOWS_CYGWIN),y) ifeq ($(CONFIG_WINDOWS_CYGWIN),y)
WINTOOL = y WINTOOL = y
else ifeq ($(CONFIG_WINDOWS_UBUNTU),y)
WINTOOL = y
endif endif
endif endif
@@ -234,6 +240,8 @@ ifeq ($(CONFIG_ARMV7M_TOOLCHAIN),DEVKITARM)
ARCROSSDEV ?= arm-none-eabi- ARCROSSDEV ?= arm-none-eabi-
ifeq ($(CONFIG_WINDOWS_CYGWIN),y) ifeq ($(CONFIG_WINDOWS_CYGWIN),y)
WINTOOL = y WINTOOL = y
else ifeq ($(CONFIG_WINDOWS_UBUNTU),y)
WINTOOL = y
endif endif
ARCHCPUFLAGS = $(TOOLCHAIN_MCPU) -mthumb $(TOOLCHAIN_MFLOAT) ARCHCPUFLAGS = $(TOOLCHAIN_MCPU) -mthumb $(TOOLCHAIN_MFLOAT)
endif endif
@@ -256,6 +264,8 @@ ifeq ($(CONFIG_ARMV7M_TOOLCHAIN),GNU_EABIW)
ARCHCPUFLAGS = $(TOOLCHAIN_MCPU) -mthumb $(TOOLCHAIN_MFLOAT) ARCHCPUFLAGS = $(TOOLCHAIN_MCPU) -mthumb $(TOOLCHAIN_MFLOAT)
ifeq ($(CONFIG_WINDOWS_CYGWIN),y) ifeq ($(CONFIG_WINDOWS_CYGWIN),y)
WINTOOL = y WINTOOL = y
else ifeq ($(CONFIG_WINDOWS_UBUNTU),y)
WINTOOL = y
endif endif
endif endif
@@ -266,6 +276,8 @@ ifeq ($(CONFIG_ARMV7M_TOOLCHAIN),RAISONANCE)
ARCROSSDEV ?= arm-none-eabi- ARCROSSDEV ?= arm-none-eabi-
ifeq ($(CONFIG_WINDOWS_CYGWIN),y) ifeq ($(CONFIG_WINDOWS_CYGWIN),y)
WINTOOL = y WINTOOL = y
else ifeq ($(CONFIG_WINDOWS_UBUNTU),y)
WINTOOL = y
endif endif
ARCHCPUFLAGS = $(TOOLCHAIN_MCPU) -mthumb $(TOOLCHAIN_MFLOAT) ARCHCPUFLAGS = $(TOOLCHAIN_MCPU) -mthumb $(TOOLCHAIN_MFLOAT)
endif endif
+7 -1
View File
@@ -1,7 +1,7 @@
############################################################################ ############################################################################
# arch/arm/src/armv7-r/Toolchain.defs # arch/arm/src/armv7-r/Toolchain.defs
# #
# Copyright (C) 2015 Gregory Nutt. All rights reserved. # Copyright (C) 2015, 2017 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
@@ -129,6 +129,8 @@ ifeq ($(CONFIG_ARMV7R_TOOLCHAIN),CODESOURCERYW)
MAXOPTIMIZATION ?= -O2 MAXOPTIMIZATION ?= -O2
ifeq ($(CONFIG_WINDOWS_CYGWIN),y) ifeq ($(CONFIG_WINDOWS_CYGWIN),y)
WINTOOL = y WINTOOL = y
else ifeq ($(CONFIG_WINDOWS_UBUNTU),y)
WINTOOL = y
endif endif
endif endif
@@ -139,6 +141,8 @@ ifeq ($(CONFIG_ARMV7R_TOOLCHAIN),DEVKITARM)
ARCROSSDEV ?= $(TARGET_ARCH)-eabi- ARCROSSDEV ?= $(TARGET_ARCH)-eabi-
ifeq ($(CONFIG_WINDOWS_CYGWIN),y) ifeq ($(CONFIG_WINDOWS_CYGWIN),y)
WINTOOL = y WINTOOL = y
else ifeq ($(CONFIG_WINDOWS_UBUNTU),y)
WINTOOL = y
endif endif
endif endif
@@ -158,5 +162,7 @@ ifeq ($(CONFIG_ARMV7R_TOOLCHAIN),GNU_EABIW)
MAXOPTIMIZATION ?= -Os MAXOPTIMIZATION ?= -Os
ifeq ($(CONFIG_WINDOWS_CYGWIN),y) ifeq ($(CONFIG_WINDOWS_CYGWIN),y)
WINTOOL = y WINTOOL = y
else ifeq ($(CONFIG_WINDOWS_UBUNTU),y)
WINTOOL = y
endif endif
endif endif
+3 -1
View File
@@ -1,7 +1,7 @@
############################################################################ ############################################################################
# arch/avr/src/avr/Toolchain.defs # arch/avr/src/avr/Toolchain.defs
# #
# Copyright (C) 2012-2013 Gregory Nutt. All rights reserved. # Copyright (C) 2012-2013, 2017 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
@@ -134,6 +134,8 @@ ifeq ($(_WINAVR),1)
CROSSDEV ?= avr- CROSSDEV ?= avr-
ifeq ($(CONFIG_WINDOWS_CYGWIN),y) ifeq ($(CONFIG_WINDOWS_CYGWIN),y)
WINTOOL = y WINTOOL = y
else ifeq ($(CONFIG_WINDOWS_UBUNTU),y)
WINTOOL = y
endif endif
MAXOPTIMIZATION ?= -O2 MAXOPTIMIZATION ?= -O2
LDFLAGS += -nostartfiles -nodefaultlibs LDFLAGS += -nostartfiles -nodefaultlibs
+3 -1
View File
@@ -1,7 +1,7 @@
############################################################################ ############################################################################
# arch/avr/src/avr32/Toolchain.defs # arch/avr/src/avr32/Toolchain.defs
# #
# Copyright (C) 2012 Gregory Nutt. All rights reserved. # Copyright (C) 2012, 2017 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
@@ -62,6 +62,8 @@ endif
ifeq ($(CONFIG_AVR32_TOOLCHAIN),AVRTOOLSW) ifeq ($(CONFIG_AVR32_TOOLCHAIN),AVRTOOLSW)
ifeq ($(CONFIG_WINDOWS_CYGWIN),y) ifeq ($(CONFIG_WINDOWS_CYGWIN),y)
WINTOOL = y WINTOOL = y
else ifeq ($(CONFIG_WINDOWS_UBUNTU),y)
WINTOOL = y
endif endif
else else
# AVR Tools or avr32-toolchain from https://github.com/jsnyder/avr32-toolchain # AVR Tools or avr32-toolchain from https://github.com/jsnyder/avr32-toolchain
+9 -1
View File
@@ -1,7 +1,7 @@
############################################################################ ############################################################################
# arch/mips/src/mips32/Toolchain.defs # arch/mips/src/mips32/Toolchain.defs
# #
# Copyright (C) 2012-2013, 2015 Gregory Nutt. All rights reserved. # Copyright (C) 2012-2013, 2015, 2017 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
@@ -178,6 +178,8 @@ ifeq ($(CONFIG_MIPS32_TOOLCHAIN),MICROCHIPW_XC32)
CROSSDEV ?= xc32- CROSSDEV ?= xc32-
ifeq ($(CONFIG_WINDOWS_CYGWIN),y) ifeq ($(CONFIG_WINDOWS_CYGWIN),y)
WINTOOL = y WINTOOL = y
else ifeq ($(CONFIG_WINDOWS_UBUNTU),y)
WINTOOL = y
endif endif
ifeq ($(CONFIG_MIPS32_TOOLCHAIN_MICROCHIP_XC32_LICENSED),y) ifeq ($(CONFIG_MIPS32_TOOLCHAIN_MICROCHIP_XC32_LICENSED),y)
MAXOPTIMIZATION ?= -O2 MAXOPTIMIZATION ?= -O2
@@ -193,6 +195,8 @@ ifeq ($(CONFIG_MIPS32_TOOLCHAIN),MICROCHIPW)
CROSSDEV ?= pic32- CROSSDEV ?= pic32-
ifeq ($(CONFIG_WINDOWS_CYGWIN),y) ifeq ($(CONFIG_WINDOWS_CYGWIN),y)
WINTOOL = y WINTOOL = y
else ifeq ($(CONFIG_WINDOWS_UBUNTU),y)
WINTOOL = y
endif endif
MAXOPTIMIZATION ?= -O2 MAXOPTIMIZATION ?= -O2
ARCHCPUFLAGS = -mprocessor=$(MIPS_MPROCESSOR) $(MIPS_MICROMIPS) -mno-float -mlong32 -membedded-data ARCHCPUFLAGS = -mprocessor=$(MIPS_MPROCESSOR) $(MIPS_MICROMIPS) -mno-float -mlong32 -membedded-data
@@ -219,6 +223,8 @@ ifeq ($(CONFIG_MIPS32_TOOLCHAIN),MICROCHIPW_LITE)
# CROSSDEV ?= xc32- # CROSSDEV ?= xc32-
ifeq ($(CONFIG_WINDOWS_CYGWIN),y) ifeq ($(CONFIG_WINDOWS_CYGWIN),y)
WINTOOL = y WINTOOL = y
else ifeq ($(CONFIG_WINDOWS_UBUNTU),y)
WINTOOL = y
endif endif
# MAXOPTIMIZATION ?= -O2 # MAXOPTIMIZATION ?= -O2
ARCHCPUFLAGS = -mprocessor=$(MIPS_MPROCESSOR) $(MIPS_MICROMIPS) -mno-float -mlong32 -membedded-data ARCHCPUFLAGS = -mprocessor=$(MIPS_MPROCESSOR) $(MIPS_MICROMIPS) -mno-float -mlong32 -membedded-data
@@ -245,6 +251,8 @@ ifeq ($(CONFIG_MIPS32_TOOLCHAIN),PINGUINOW)
CROSSDEV ?= p32- CROSSDEV ?= p32-
ifeq ($(CONFIG_WINDOWS_CYGWIN),y) ifeq ($(CONFIG_WINDOWS_CYGWIN),y)
WINTOOL = y WINTOOL = y
else ifeq ($(CONFIG_WINDOWS_UBUNTU),y)
WINTOOL = y
endif endif
MAXOPTIMIZATION ?= -O2 MAXOPTIMIZATION ?= -O2
ARCHCPUFLAGS = -mlong32 -membedded-data -msoft-float -march=$(MIPS_MARCH) $(MIPS_MICROMIPS) -EL ARCHCPUFLAGS = -mlong32 -membedded-data -msoft-float -march=$(MIPS_MARCH) $(MIPS_MICROMIPS) -EL
+3 -1
View File
@@ -1,7 +1,7 @@
############################################################################ ############################################################################
# arch/misco/src/lm32/Toolchain.defs # arch/misco/src/lm32/Toolchain.defs
# #
# Copyright (C) 2016 Gregory Nutt. All rights reserved. # Copyright (C) 2016-2017 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
@@ -100,5 +100,7 @@ ifeq ($(CONFIG_LM32_TOOLCHAIN),GNUW)
MAXOPTIMIZATION ?= -Os MAXOPTIMIZATION ?= -Os
ifeq ($(CONFIG_WINDOWS_CYGWIN),y) ifeq ($(CONFIG_WINDOWS_CYGWIN),y)
WINTOOL = y WINTOOL = y
else ifeq ($(CONFIG_WINDOWS_UBUNTU),y)
WINTOOL = y
endif endif
endif endif
+1 -1
View File
@@ -37,7 +37,7 @@ config SIM_CYGWIN_DECORATED
default n default n
depends on WINDOWS_CYGWIN depends on WINDOWS_CYGWIN
---help--- ---help---
Older versions of Cygwin toolsdecorated C symbol names by adding an Older versions of Cygwin tools decorated C symbol names by adding an
underscore to the beginning of the symbol name. Newer versions of underscore to the beginning of the symbol name. Newer versions of
Cygwin do not seem to do this. Cygwin do not seem to do this.
+3 -1
View File
@@ -1,7 +1,7 @@
############################################################################ ############################################################################
# arch/z80/src/ez80/Toolchain.defs # arch/z80/src/ez80/Toolchain.defs
# #
# Copyright (C) 2012, 2016 Gregory Nutt. All rights reserved. # Copyright (C) 2012, 2016-2017 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
@@ -44,4 +44,6 @@ CONFIG_EZ80_TOOLCHAIN ?= ZDSII
ifeq ($(CONFIG_WINDOWS_CYGWIN),y) ifeq ($(CONFIG_WINDOWS_CYGWIN),y)
WINTOOL = y WINTOOL = y
else ifeq ($(CONFIG_WINDOWS_UBUNTU),y)
WINTOOL = y
endif endif
+3 -1
View File
@@ -1,7 +1,7 @@
############################################################################ ############################################################################
# arch/z80/src/z180/Toolchain.defs # arch/z80/src/z180/Toolchain.defs
# #
# Copyright (C) 2012 Gregory Nutt. All rights reserved. # Copyright (C) 2012, 2017 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
@@ -69,6 +69,8 @@ endif
ifeq ($(CONFIG_AVR_TOOLCHAIN),SDCCWIN32) ifeq ($(CONFIG_AVR_TOOLCHAIN),SDCCWIN32)
ifeq ($(CONFIG_WINDOWS_CYGWIN),y) ifeq ($(CONFIG_WINDOWS_CYGWIN),y)
WINTOOL = y WINTOOL = y
else ifeq ($(CONFIG_WINDOWS_UBUNTU),y)
WINTOOL = y
endif endif
endif endif
+3 -1
View File
@@ -1,7 +1,7 @@
############################################################################ ############################################################################
# arch/z80/src/z8/Toolchain.defs # arch/z80/src/z8/Toolchain.defs
# #
# Copyright (C) 2012 Gregory Nutt. All rights reserved. # Copyright (C) 2012, 2017 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
@@ -44,4 +44,6 @@ CONFIG_Z8_TOOLCHAIN ?= ZDSII
ifeq ($(CONFIG_WINDOWS_CYGWIN),y) ifeq ($(CONFIG_WINDOWS_CYGWIN),y)
WINTOOL = y WINTOOL = y
else ifeq ($(CONFIG_WINDOWS_UBUNTU),y)
WINTOOL = y
endif endif
+3 -1
View File
@@ -1,7 +1,7 @@
############################################################################ ############################################################################
# arch/z80/src/z80/Toolchain.defs # arch/z80/src/z80/Toolchain.defs
# #
# Copyright (C) 2012 Gregory Nutt. All rights reserved. # Copyright (C) 2012, 2017 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
@@ -69,6 +69,8 @@ endif
ifeq ($(CONFIG_AVR_TOOLCHAIN),SDCCWIN32) ifeq ($(CONFIG_AVR_TOOLCHAIN),SDCCWIN32)
ifeq ($(CONFIG_WINDOWS_CYGWIN),y) ifeq ($(CONFIG_WINDOWS_CYGWIN),y)
WINTOOL = y WINTOOL = y
else ifeq ($(CONFIG_WINDOWS_UBUNTU),y)
WINTOOL = y
endif endif
endif endif
+19 -6
View File
@@ -1,7 +1,7 @@
#!/bin/bash #!/bin/bash
# tools/sethost.sh # tools/sethost.sh
# #
# Copyright (C) 2016 Gregory Nutt. All rights reserved. # Copyright (C) 2016-2017 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
@@ -42,13 +42,14 @@ unset configfile
function showusage { function showusage {
echo "" echo ""
echo "USAGE: $progname [-w|l] [-c|n] [-32|64] [<config>]" echo "USAGE: $progname [-w|l] [-c|u|n] [-32|64] [<config>]"
echo " $progname -h" echo " $progname -h"
echo "" echo ""
echo "Where:" echo "Where:"
echo " -w|l selects Windows (w) or Linux (l). Default: Linux" echo " -w|l selects Windows (w) or Linux (l). Default: Linux"
echo " -c|n selects Windows native (n) or Cygwin (c). Default Cygwin" echo " -c|u|n selects Windows environment option: Cygwin (c), Ubuntu under"
echo " -32|64 selects 32- or 64-bit host (Only for Cygwin). Default 64" echo " Windows 10 (u), or Windows native (n). Default Cygwin"
echo " -32|64 selects 32- or 64-bit host. Default 64"
echo " -h will show this help test and terminate" echo " -h will show this help test and terminate"
echo " <config> selects configuration file. Default: .config" echo " <config> selects configuration file. Default: .config"
exit 1 exit 1
@@ -67,6 +68,9 @@ while [ ! -z "$1" ]; do
-c ) -c )
wenv=cygwin wenv=cygwin
;; ;;
-u )
wenv=ubuntu
;;
-n ) -n )
wenv=native wenv=native
;; ;;
@@ -170,6 +174,7 @@ if [ "X$host" == "Xlinux" ]; then
kconfig-tweak --file $nuttx/.config --disable CONFIG_WINDOWS_NATIVE kconfig-tweak --file $nuttx/.config --disable CONFIG_WINDOWS_NATIVE
kconfig-tweak --file $nuttx/.config --disable CONFIG_WINDOWS_CYGWIN kconfig-tweak --file $nuttx/.config --disable CONFIG_WINDOWS_CYGWIN
kconfig-tweak --file $nuttx/.config --disable CONFIG_WINDOWS_UBUNTU
kconfig-tweak --file $nuttx/.config --disable CONFIG_WINDOWS_MSYS kconfig-tweak --file $nuttx/.config --disable CONFIG_WINDOWS_MSYS
kconfig-tweak --file $nuttx/.config --disable CONFIG_WINDOWS_OTHER kconfig-tweak --file $nuttx/.config --disable CONFIG_WINDOWS_OTHER
@@ -184,11 +189,19 @@ else
if [ "X$wenv" == "Xcygwin" ]; then if [ "X$wenv" == "Xcygwin" ]; then
echo " Select CONFIG_WINDOWS_CYGWIN=y" echo " Select CONFIG_WINDOWS_CYGWIN=y"
kconfig-tweak --file $nuttx/.config --enable CONFIG_WINDOWS_CYGWIN kconfig-tweak --file $nuttx/.config --enable CONFIG_WINDOWS_CYGWIN
kconfig-tweak --file $nuttx/.config --disable CONFIG_WINDOWS_UBUNTU
kconfig-tweak --file $nuttx/.config --disable CONFIG_WINDOWS_NATIVE kconfig-tweak --file $nuttx/.config --disable CONFIG_WINDOWS_NATIVE
else else
echo " Select CONFIG_WINDOWS_NATIVE=y"
kconfig-tweak --file $nuttx/.config --enable CONFIG_WINDOWS_NATIVE
kconfig-tweak --file $nuttx/.config --disable CONFIG_WINDOWS_CYGWIN kconfig-tweak --file $nuttx/.config --disable CONFIG_WINDOWS_CYGWIN
if [ "X$wenv" == "Xubuntu" ]; then
echo " Select CONFIG_WINDOWS_UBUNTU=y"
kconfig-tweak --file $nuttx/.config --enable CONFIG_WINDOWS_UBUNTU
kconfig-tweak --file $nuttx/.config --disable CONFIG_WINDOWS_NATIVE
else
echo " Select CONFIG_WINDOWS_NATIVE=y"
kconfig-tweak --file $nuttx/.config --disable CONFIG_WINDOWS_UBUNTU
kconfig-tweak --file $nuttx/.config --enable CONFIG_WINDOWS_NATIVE
fi
fi fi
kconfig-tweak --file $nuttx/.config --disable CONFIG_WINDOWS_MSYS kconfig-tweak --file $nuttx/.config --disable CONFIG_WINDOWS_MSYS
+17 -5
View File
@@ -1,7 +1,7 @@
#!/bin/bash #!/bin/bash
# testbuild.sh # testbuild.sh
# #
# Copyright (C) 2016 Gregory Nutt. All rights reserved. # Copyright (C) 2016-2017 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
@@ -47,12 +47,13 @@ unset testfile
function showusage { function showusage {
echo "" echo ""
echo "USAGE: $progname [-w|l] [-c|n] [-s] [-a <appsdir>] [-n <nxdir>] <testlist-file>" echo "USAGE: $progname [-w|l] [-c|u|n] [-s] [-a <appsdir>] [-n <nxdir>] <testlist-file>"
echo " $progname -h" echo " $progname -h"
echo "" echo ""
echo "Where:" echo "Where:"
echo " -w|l selects Windows (w) or Linux (l). Default: Linux" echo " -w|l selects Windows (w) or Linux (l). Default: Linux"
echo " -c|n selects Windows native (n) or Cygwin (c). Default Cygwin" echo " -c|u|n selects Windows environment option: Cygwin (c), Ubuntu under"
echo " Windows 10 (u), or Windows native (n). Default Cygwin"
echo " -s Use C++ unsigned long size_t in new operator. Default unsigned int" echo " -s Use C++ unsigned long size_t in new operator. Default unsigned int"
echo " -a <appsdir> provides the relative path to the apps/ directory. Default ../apps" echo " -a <appsdir> provides the relative path to the apps/ directory. Default ../apps"
echo " -n <nxdir> provides the relative path to the NxWidgets/ directory. Default ../NxWidgets" echo " -n <nxdir> provides the relative path to the NxWidgets/ directory. Default ../NxWidgets"
@@ -78,6 +79,9 @@ while [ ! -z "$1" ]; do
-c ) -c )
wenv=cygwin wenv=cygwin
;; ;;
-u )
wenv=ubuntu
;;
-n ) -n )
wenv=native wenv=native
;; ;;
@@ -165,11 +169,19 @@ function configure {
if [ "X$wenv" == "Xcygwin" ]; then if [ "X$wenv" == "Xcygwin" ]; then
echo " Select CONFIG_WINDOWS_CYGWIN=y" echo " Select CONFIG_WINDOWS_CYGWIN=y"
kconfig-tweak --file $nuttx/.config --enable CONFIG_WINDOWS_CYGWIN kconfig-tweak --file $nuttx/.config --enable CONFIG_WINDOWS_CYGWIN
kconfig-tweak --file $nuttx/.config --disable CONFIG_WINDOWS_UBUNTU
kconfig-tweak --file $nuttx/.config --disable CONFIG_WINDOWS_NATIVE kconfig-tweak --file $nuttx/.config --disable CONFIG_WINDOWS_NATIVE
else else
echo " Select CONFIG_WINDOWS_NATIVE=y"
kconfig-tweak --file $nuttx/.config --enable CONFIG_WINDOWS_NATIVE
kconfig-tweak --file $nuttx/.config --disable CONFIG_WINDOWS_CYGWIN kconfig-tweak --file $nuttx/.config --disable CONFIG_WINDOWS_CYGWIN
if [ "X$wenv" == "Xubuntu" ]; then
echo " Select CONFIG_WINDOWS_UBUNTU=y"
kconfig-tweak --file $nuttx/.config --enable CONFIG_WINDOWS_UBUNTU
kconfig-tweak --file $nuttx/.config --disable CONFIG_WINDOWS_NATIVE
else
echo " Select CONFIG_WINDOWS_NATIVE=y"
kconfig-tweak --file $nuttx/.config --disable CONFIG_WINDOWS_UBUNTU
kconfig-tweak --file $nuttx/.config --enable CONFIG_WINDOWS_NATIVE
fi
fi fi
kconfig-tweak --file $nuttx/.config --disable CONFIG_WINDOWS_MSYS kconfig-tweak --file $nuttx/.config --disable CONFIG_WINDOWS_MSYS