Alan Rosenthal
f4d74b52d8
Rename tools/Makefile.*
to have the .mk
extension
...
This PR renames `tools/Makefile.*` to have the `.mk` extension. This PR also updates `README.md` and other files that references the other files.
Note: Skipped Makefile.host for this PR since it caused failures in CI for the sim build
By using a standard extension for Makefiles (https://www.file-extension.info/format/mk ), editors will auto-format files.
This change will also improve developer ergonomics when searching for specific files
Verified locally that build still works, CI will verify more!
2022-01-05 18:33:16 +08:00
Alin Jerpelea
7ff60d7c5b
tools: Author Gregory Nutt: update licenses to Apache
...
Gregory Nutt has submitted the SGA and we can migrate the licenses
to Apache.
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2021-02-18 11:26:21 -08:00
Xiang Xiao
528cfb8457
tools/mkexport.sh: Remove WINTOOL and related option
...
since it isn't used anymore after:
commit bd656888f2
Author: Xiang Xiao <xiaoxiang@xiaomi.com>
Date: Mon May 18 22:18:15 2020 +0800
build: Replace WINTOOL with CYGWIN_WINTOOL Kconfig
so the correct value can be determinated by Kconfig system automatically
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-08-31 09:54:13 +02:00
Gustavo Henrique Nihei
c9748395f8
make/export: Fix mkexport silently failing on missing tools
2020-08-13 16:13:32 +01:00
Xiang Xiao
4910d43ab0
build: Move the toolchain library setting to the common place
...
so all boards support C++ automatically
2020-07-16 15:38:08 -03:00
chao.an
30d2b6c89c
make/export: export post build script
...
post build processing is also necessary for import compilation
Change-Id: Ie27e25b84e2212e9c86358c30ca1a5b7c2adffc5
Signed-off-by: chao.an <anchao@xiaomi.com>
2020-07-02 12:29:16 +01:00
chao.an
628a352973
make/export: use LDNAME instead of LDSCRIPT
...
use LDNAME instead of LDSCRIPT to avoid invalid native path
exported to the import build
Change-Id: I1ba3cfdbfca02447941dc32a292fe4d76c1ced04
Signed-off-by: chao.an <anchao@xiaomi.com>
2020-07-02 12:29:16 +01:00
chao.an
b896da25c7
make/export: copy incdir.c for export build
...
export build break by commit 5555070fc3
Signed-off-by: chao.an <anchao@xiaomi.com>
2020-06-30 10:28:56 +02:00
chao.an
fd3be9eb37
make/export: support export extra library
...
Change-Id: Iaab5dc8fd61b55888dad59d9b1d8380d7bd44a58
Signed-off-by: chao.an <anchao@xiaomi.com>
2020-06-27 22:45:41 +01:00
chao.an
41f434015b
make/export: do not extract object from librarys
...
To avoid overriding of objects with duplicate file name
Change-Id: I83c964d161d23942cd3fc29eb738da44775cfc10
Signed-off-by: chao.an <anchao@xiaomi.com>
2020-06-27 22:45:41 +01:00
chao.an
e82a9e0f48
make/export: copy mkdeps.c for export build
...
Change-Id: Ic1aa04d5d4dd2332cf4a13ec51c76cdb7d90736c
Signed-off-by: chao.an <anchao@xiaomi.com>
2020-06-27 22:45:41 +01:00
chao.an
98f0b0afb5
build/export: correct the export path
...
Change-Id: Ia2e19f30d32154c3329f46c5d8362fafd6b7e274
Signed-off-by: chao.an <anchao@xiaomi.com>
2020-06-27 22:45:41 +01:00
Xiang Xiao
8b42ee421a
build: Move MKDEP definition to common place
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-05-19 19:23:18 +01:00
Xiang Xiao
9ec9431706
build: Move DIRLINK/DIRUNLINK definition to common place
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-05-19 19:23:18 +01:00
Xiang Xiao
6c4ef7b1db
build: mkexport.sh copy Config.mk to tools folder too
...
to avoid the duplication in apps/imports/Make.defs
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-05-18 21:36:58 -06:00
Xiang Xiao
bd656888f2
build: Replace WINTOOL with CYGWIN_WINTOOL Kconfig
...
so the correct value can be determinated by Kconfig system automatically
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-05-18 15:02:55 -06:00
YAMAMOTO Takashi
aa205b3732
mkexport: Deal with ARCHSCRIPT containing multiple files
...
This fixes "make export" for esp32-core.
2020-03-03 08:10:06 -06:00
Xiang Xiao
bd4e8e19d3
Run codespell -w against all files
...
and fix the wrong correction
2020-02-22 14:45:07 -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
Xiang Xiao
c8cb2fe492
tools/mkexport.sh: Copy the essential build script files too and move Make.defs/gnu-elf.ld into scripts like board folder layout.
2019-10-01 07:54:11 -06:00
Pavel Pisa
f9e9f228cb
tools/mkexport.sh: export LDSCRIPT and STRIP definition and align with Makefile.export.
2019-09-10 07:14:38 -06:00
Pavel Pisa
f1b2155efc
tools/Makefile.* and tools/mkexport.sh: This change allows to export builtin applications registry into temporarily created directory where export archive content is prepared. If the Makefile in apps directory does not define export: target then error is print but export continues without interruption. It would be more logical to print warning but there is no way instruct apps make to not print error.
2019-08-30 07:19:15 -06:00
Pavel Pisa
316aafc04d
tools/mkexport.sh: The export of gnu-elf.ld at least is required to build ELF loadable binaries. Option to link system into different memory locations (boot, application after boot-loader, RAM) without need to rebuild/reexport NuttX is useful as well.
2019-08-28 07:49:57 -06:00
Pavel Pisa
00039b7c2e
tools/mkexport.sh: Export all variables to support architecture independent build against NSH.
2019-08-28 07:35:44 -06: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
d9767b74cd
tools/mkexport.sh: The mcu sub-directory chip/ was renamed to hardware/ in late May of 2019. The mkexport.sh script that copies these files was not updated, however, until now. Noted by Alin Jerpelea.
2019-07-04 07:17:53 -06:00
Gregory Nutt
b7d1f13a54
b/sched/sched/sched_waitpid.c: Remove options check in DEBUG_FEATURES
2018-09-05 06:45:49 -06:00
Gregory Nutt
3611aefd14
tools/mkexport.sh: Save the name of the STRIP tool too.
2018-09-04 17:18:16 -06:00
Gregory Nutt
947c10e099
tools/mkexport.sh: Save the User.map file in the export package if available.
2018-07-09 05:42:42 -06:00
Gregory Nutt
0e1fc1a280
tools/mkexport.sh: Save the System.map file in the export package so that it can be used to extract addresses.
2018-07-08 12:18:05 -06:00
Gregory Nutt
78b10bdf0e
tools/export.sh: If MAKE not defined use 'which make'. Update README from last change.
2016-05-06 04:49:25 -06:00
David Sidrane
aecc033131
Pass toplevel make to the script to allow -j greater than 1
2016-05-05 03:40:16 -06:00
Gregory Nutt
12086cb971
Kernel build export package also needs to include WINTOOL setting
2014-09-05 12:16:21 -06:00
Gregory Nutt
8e9914893d
The apps/ import build requires that we extract more information from the platform Make.defs file.
2014-09-05 11:26:42 -06:00
Gregory Nutt
60308a7c6b
Add the .config file to the export package
2014-09-05 07:37:44 -06:00
Gregory Nutt
56dc80cf59
The 'make export' target needs to bundle up the user C startup file (crt0), not the kernel head object
2014-09-04 13:31:34 -06:00
Gregory Nutt
7743a2d4e2
Don't copy build scripts for kernel build 'make exports'
2014-09-04 12:35:47 -06:00
Gregory Nutt
86aa8f3813
In 'make export', do not copy internal header files if this is a kernel build
2014-09-04 12:19:47 -06:00
Gregory Nutt
111e44ff74
Fix 'make export'. Adding subdirectories to the sched/ directory broke the header file collection logic
2014-09-04 11:43:25 -06:00
Gregory Nutt
f8024cf409
More trailing whilespace removal
2014-04-13 16:22:22 -06:00
Gregory Nutt
2848f657ed
Fix comments, references to the old SVN, and links to the old SVN. Replace with equivalent GIT info
2013-04-19 18:35:06 -06:00
patacongo
e7451df325
Fix a bug in 'make export' introduced recently
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4265 42af7a65-404d-4744-a932-0658087f49c3
2012-01-05 18:27:26 +00:00
patacongo
61b0896f3d
Changes to tools to support MAC OS
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4232 42af7a65-404d-4744-a932-0658087f49c3
2011-12-27 12:44:39 +00:00
patacongo
1cbb1dbfcb
Export a fast but non-standard way to clear the STM3210E-EVAL LCD
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3916 42af7a65-404d-4744-a932-0658087f49c3
2011-08-26 16:27:26 +00:00
patacongo
310d3f2ab7
Extend the 'make export' logic to bundle up chip header files as well
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3915 42af7a65-404d-4744-a932-0658087f49c3
2011-08-25 17:55:32 +00:00
patacongo
17e6f2e481
Export make target now produces a .zip file by default
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3778 42af7a65-404d-4744-a932-0658087f49c3
2011-07-12 23:54:13 +00:00
patacongo
a5aca26e66
Extend 'make export' logic to bundle up CFLAGS and linker scripts as well
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3772 42af7a65-404d-4744-a932-0658087f49c3
2011-07-12 03:21:27 +00:00
patacongo
03faf1cc17
Add an 'export' target to the NuttX top-level Makefile
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3771 42af7a65-404d-4744-a932-0658087f49c3
2011-07-11 22:52:51 +00:00