Peter Kalbus
6abdf73535
sim: Initial support on MacOS M1 and Linux AARCH64 based hosts.
2022-02-17 09:35:09 +08:00
Peter Kalbus
61acceb1ca
Detect host CPU on MacOS/Linux running on ARM.
2022-01-29 20:49:50 -03:00
Tomasz 'CeDeROM' CEDRO
2abe1e9282
configure/sethost: Add BSD host (-B switch) + MAKECMD (make vs gmake).
...
This patch adds -B switch to select BSD host platforms.
Linux uses GNU Make as default, command is `make`.
BSD uses BSD Make as default, command is also `make`.
BSD can also use GNU Make, but the command is `gmake`.
This patch uses `make` on GNU platforms and `gmake` on BSD platforms.
Signed-off-by: Tomasz 'CeDeROM' CEDRO <tomek@cedro.info>
tools/sethost.sh: Add BSD host (-B switch) + MAKECMD (make vs gmake).
Signed-off-by: Tomasz 'CeDeROM' CEDRO <tomek@cedro.info>
tools/configure.c: Add BSD host (-B switch).
Signed-off-by: Tomasz 'CeDeROM' CEDRO <tomek@cedro.info>
2021-10-25 16:39:13 -03:00
Xiang Xiao
a49a3eae51
tools: Remove the special handle for Ubuntu under Windows 10
...
since the Native Linux support could be reused for this case:
https://lists.apache.org/thread.html/r315682ed20bbeb2f1403cf592f892ef009274423189ffc5b3841a6a9%40%3Cdev.nuttx.apache.org%3E
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-10-18 11:48:19 -07:00
Matias N
c695a5924f
configure.sh/sethost.sh: add set -e so that the script aborts on any error
2020-09-16 20:09:44 -07:00
liuhaitao
67589adfb7
sethost.sh: always print logs to ease identify problem in configure phase
...
Signed-off-by: liuhaitao <liuhaitao@xiaomi.com>
2020-07-16 15:40:46 +01:00
Gregory Nutt
100bd740cd
tools/sethost.sh: Correct error in setting a different host.
...
In an older PR, the standard kconfig-tweak calls were replaced with sed edit. This is an incorrect change and results in invalid configurations. This change restores the use of kconfig-tweak and always generates correct configurations.
This change resolves issue #386
sed edits do not handle all of the dependencies correct and generates invalid configurations. Most defconfig files specify Linux by default, so you will only see the effect of the corruped configuration when sethost changes changes to a different configuration. Then, when 'make olddefconfig' is subsequentyly run, the corruption in the defconfig file is reflected by warnings such as:
$ tools/configure.sh -c stm32f4discovery:nsh
Copy files
Select CONFIG_HOST_WINDOWS=y
Select CONFIG_WINDOWS_CYGWIN=y
Refreshing...
.config:62:warning: override: reassigning to symbol HOST_WINDOWS
.config:62:warning: override: HOST_WINDOWS changes choice state
Those warnings are eliminated by this changed.
Tested by repeatedly doing:
tools/configure.sh -c stm32f4discovery:nsh
2020-04-27 21:26:21 +01:00
Ouss4
765833546c
tools/: Fix trivial typos.
2020-04-03 10:42:09 -06:00
Ouss4
f6fc87bc36
tools/sethost.sh & tools/configure.c: When no make argument is passed, silence the make output.
2020-03-23 19:56:11 -05:00
Xiang Xiao
86e47534e6
tools: Remove -d option from configure.sh
...
since we can achieve the same effect by passing V=1 to make
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-03-21 09:48:57 -07:00
Xiang Xiao
a54a492dd2
tools/configure.sh: Support passing options to make
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: I6c928ac4574721aacb87be27c979ca8ae146a4ce
2020-03-21 09:48:57 -07:00
Xiang Xiao
6f9117eae2
tools/sethost.sh: Remove <config> argument
...
Since this argument generate the expanding(deprecated) defconfig
2020-03-19 07:54:57 -06:00
Xiang Xiao
b574ea8b73
tools/sethost.sh: Don't make clean_context explicitly
...
Since olddefconfig will do this automatically
2020-03-19 07:54:43 -06:00
Xiang Xiao
8a6d67d138
tools: Make sethost.sh can be invoke from any directory
2020-03-19 07:54:30 -06:00
Xiang Xiao
cde88cabcc
Run codespell -w with the latest dictonary again
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-02-23 22:27:46 +01:00
YAMAMOTO Takashi
afd03f5a7e
sethost: If no host options are specified, try to guess
2020-02-06 18:01:48 +08:00
YAMAMOTO Takashi
431317ef26
sethost.sh: Don't ignore "make olddefconfig" failure
...
I guess missing kconfig-conf is a common mistake for
newbies like me. Bail out earlier instead of producing
random errors during a build.
2020-01-29 09:03:48 +01:00
Xiang Xiao
e59f242f88
remove the dup kconfig tweak in configure.sh, testbuild.sh and sethost.sh
...
Change-Id: I2027b6be55609d8828ff39b568d1f8ddcf333e9a
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-01-20 08:04:21 -06:00
Xiang Xiao
f316c15769
Remove the size related option from sehost.sh and testbuild.sh
...
to aglin with configure.sh
Change-Id: I42f2621dff72b22ee6c51bd44cc4a1c3d81d128e
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-01-20 08:04:21 -06:00
Xiang Xiao
d0b34dec97
Fix the minor issue found in configure.sh, sethost.sh and testbuild.sh
...
1.The unused variable
2.The duplicated setting
3.The typo error
Change-Id: I8c129cce78d3e88856f1edcbc2c702c433daa61f
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-01-20 08:04:21 -06:00
Xiang Xiao
3b9efc95a2
Format all shell scripts in tools folder
...
Change-Id: Ieef2eb93d56c03972b4dc63a1c55aabf1fb0d169
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-01-06 00:51:49 +08:00
Manuel Stühn
5585cc421c
Merged in manuelstuehn/nuttx/feature/bsd-portable (pull request #975 )
...
change all occurences of /bin/(ba)sh to /usr/bin/env bash which appears more portable
Approved-by: Gregory Nutt <gnutt@nuttx.org>
2019-08-10 15:57:26 +00:00
Gregory Nutt
545627ce85
tools/sethost.sh: Fix some errors in last change; add support for macOS
2018-06-01 14:21:04 -06:00
Gregory Nutt
d52c63f632
Change all references from OSX to macOS
2018-06-01 13:25:50 -06:00
Gregory Nutt
3146eb5d63
tools/: Update to better support MSYS
2018-05-31 11:53:09 -06:00
Gregory Nutt
a323fb91d0
tools/: Small simplication to usage
2017-01-01 15:39:24 -06:00
Gregory Nutt
34be3e7c3c
Add configuration support for builds with Ubuntu under Windows 10
2017-01-01 15:34:23 -06:00
Gregory Nutt
43c46fd34c
ESP32 Core: Add a dummy Toolchain.defs. Fix some cloning errors left in the NSH configuration.
2016-10-13 14:40:43 -06:00
Gregory Nutt
01fd4952f9
tools/sethost.sh: Fix several syntax errors
2016-08-09 13:20:20 -06:00
Gregory Nutt
189d2cf475
Update NSH document, README, and comments in a script file
2016-08-04 12:59:33 -06:00
Gregory Nutt
6be282af96
Add tools/sethost.sh. This is a script that you can use to quickly change the host platform from Linux to Windows/Cygwin. Might save you a lot of headaches.
2016-08-03 16:31:35 -06:00