Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
561 commits
Select commit Hold shift + click to select a range
f853885
Add dhcp6c module
coffee809721232 Mar 14, 2022
282e44e
system/ping: Don't include nuttx/lib/math.h
xiaoxiang781216 Mar 19, 2022
87df63d
interpreters: add Lua support
mogenson Feb 24, 2022
f1a7453
examples: add Lua module example
mogenson Mar 1, 2022
c88dd4b
system/cfgdata: implement "format" option
pkarashchenko Mar 21, 2022
2fc7c67
wireless/wapi: Fix warning: 'strncpy' specified bound 16 equals desti…
xiaoxiang781216 Mar 21, 2022
d364d7a
system: Fix nx[looper|player|recorder] warning
xiaoxiang781216 Mar 21, 2022
4043522
interpreters: lua: replace awk command with shell script
mogenson Mar 23, 2022
cfadf7b
fsutils/passwd: fix compilation
pkarashchenko Mar 24, 2022
732df52
testing: Fix cxxtest application for "no-rtti" builds
gustavonihei Mar 25, 2022
dede369
rexecd: fix compile warning
Donny9 Mar 16, 2022
494b47c
fix compile warning
Donny9 Mar 21, 2022
5fab48a
testing/scanftest: fix nxstyle
Donny9 Mar 27, 2022
f8811ea
examples/watchdog: Fix watchdog command parameter error
SunJun8 Mar 17, 2022
96efff3
apps/mlearning: tweak lib makefile
PeterBee97 Mar 28, 2022
2831af6
apps/mlearning: tweak lib makefile
PeterBee97 Mar 28, 2022
d868387
fsutils/passwd: fix out of bounds array access during password encryp…
pkarashchenko Mar 28, 2022
e3df21c
trace: fix pointer cross the border
zhuyanlinzyl Mar 25, 2022
c1dfaf4
netutils/ftpd: add option to login to FTPD using FSUTILS_PASSWD
pkarashchenko Mar 28, 2022
41dd5f1
system/cfgdata: add missing include file
pkarashchenko Mar 28, 2022
c29deef
testing: Extend cxxtest with some C++17 features
gustavonihei Mar 28, 2022
e0da9d1
rexec: correct af type from int to sa_family_t
GUIDINGLI Mar 24, 2022
cd1bc19
quickjs: fix compile warning
Gary-Hobson Mar 19, 2022
ec15dc0
system/libuv: Support specify stack size for worker thread
no1wudi Mar 28, 2022
d6a187e
nshlib: merge nsh_getdirpath() to nsh_fsutils.c
GUIDINGLI Feb 10, 2022
427798f
nxlooper: support different period size of player & recorder
GUIDINGLI Feb 18, 2022
19acc78
remove DISCLAIMER-WIP
jerpelea Mar 30, 2022
963c1f3
testing/mm: repair the memory leak question when realloc failed.
CV-Bowen Mar 30, 2022
9730eaa
nsh: sh_main also support isctty = true
GUIDINGLI Dec 17, 2021
68fa377
system/nxplayer: fix warning
qiaohaijiao Mar 18, 2022
442d52e
system/nxlooper: fix warning
qiaohaijiao Mar 17, 2022
cbc9163
apps/nsh:add resetcause command
XinStellaris Mar 30, 2022
de61706
nsh/memdump: support dynamic turn on/off backtrace in heap
Donny9 Mar 17, 2022
c57677c
apps: add rptun /dev/rptun/xx panic cmd
GUIDINGLI Dec 22, 2021
d5aae96
apps: add rptun reset /dev/rptun/xx cmd
GUIDINGLI Dec 24, 2021
e0e5652
rptun: add rptun dump support
GUIDINGLI Jan 19, 2022
622784b
rptun cmd: add broadcast rptun cmd
GUIDINGLI Feb 11, 2022
f5d2c64
rptun: add rptun ping support
GUIDINGLI Mar 3, 2022
4701742
rptun: update rptun cmd usage
GUIDINGLI Mar 31, 2022
214dbe5
open() options: pass file options 0 if only ioctl is used
pkarashchenko Apr 1, 2022
c7b7162
testing/mm: add memory boundary realloc test.
CV-Bowen Mar 30, 2022
16c1fec
usrsock: Move event field to usrsock_message_common_s
zhhyu7 Mar 22, 2022
0dc716d
sched/note: unify the data format
anchao Mar 31, 2022
90484a3
sched/trace: correct the note print format
anchao Mar 31, 2022
7612d2a
system/trace: correct preamble header pid
anchao Mar 30, 2022
2fd38eb
system/trace: force flush the output stream
anchao Mar 30, 2022
023971d
system/trace: add switch priority print to align with ftrace
anchao Mar 30, 2022
f4a41c6
system/trace: fix the irq print compatibility with systrace
anchao Mar 30, 2022
124c132
sched/note: add support of trace section mark
anchao Apr 2, 2022
aaa950f
netutils/ftpd: Do not terminate connection if CWD fails
pkarashchenko Apr 3, 2022
319203d
apps: unify FAR attribute usage across apps
pkarashchenko Apr 4, 2022
0c7adf4
usrsock/rpmsg: Change the dependence from OPENAMP to RPTUN
xiaoxiang781216 Apr 4, 2022
cc5f730
testing/mm: Update after the recent changes in nuttx
yamt Apr 6, 2022
f9a24e3
testing/mm: check alignment in do_memaligns
yamt Apr 6, 2022
fe5b681
testing/mm: Test more patterns for memalign
yamt Apr 6, 2022
5b0b44f
iozone: support on nuttx
Donny9 Dec 9, 2021
63f2809
nsh/timedatectl: add timedatectl to get/set TZ
Donny9 Apr 1, 2022
2f2e468
fs/epoll: fix compile break about change type of pollevent_t
Donny9 Apr 2, 2022
25d7dfe
fs/epoll: fix compile break about change type of pollevent_t
anchao Apr 7, 2022
8c1a499
system/note: correct unflatten format
anchao Apr 6, 2022
2f74de6
.github/workflows/check.yml: Enable Change-ID check explicitly
xiaoxiang781216 Apr 9, 2022
c8bc287
According to the help text, the balance command without value
okayserh Apr 10, 2022
f2e7faa
examples/scd41: Add new example for scd41 CO2 sensor
SPRESENSE Apr 11, 2022
c7fcffd
nshlib/nsh_fscmds.c: Make losetup command take optional sector size
yamt Apr 11, 2022
3a42d84
Revert "rpmsg: pointer of netdev ioctl support cross-core memory access"
zhhyu7 Apr 1, 2022
a6c986d
rpmsg_usrsock: Support the wireless ioctl which contain pointer 2/2
zhhyu7 Mar 26, 2022
cc7653b
fix resetcause nsh command print
XinStellaris Apr 14, 2022
d17c950
wireless/wapi: fix wapi wpa_wconfig_s alg data type error
Apr 13, 2022
b8b9d45
netutils/ping: skip the id check
anchao Jan 17, 2022
7663f99
wireless: gs2200m: Fix recvfrom_request() in gs2200m_main.c
masayuki2009 Apr 15, 2022
460f631
netutils/usrsock_rpmsg: broadcast the client DNS server to server
coffee809721232 Apr 14, 2022
ab5e749
Makefile/Application: correct COMPILER_RT_LIB PATH
anchao Apr 15, 2022
b80ef1d
usrsock: Don't clear recv and send available flag
zhhyu7 Mar 29, 2022
3760ab5
Remove the unneeded void cast
xiaoxiang781216 Apr 17, 2022
e4dcdcd
testing/ostest: remove CONFIG_TESTING_OSTEST_FPUSIZE
anchao Apr 15, 2022
c7413ee
system/critmon: Fix dead code
no1wudi Apr 19, 2022
768a21b
system/i2c: Fix fd leak in i2ccmd_reset
no1wudi Apr 19, 2022
9f79bf1
nsh/script: support rc.sysinit script
Donny9 Apr 15, 2022
0957a74
nshlib/nsh_fileapps.c: Pass global environ instead of NULL for posix_…
pussuw Apr 21, 2022
84e0e50
make: update makefiles for mcuboot and libtomcrypt
pkarashchenko Apr 21, 2022
26e4e29
interpreters: ficl: Add Apache License
jerpelea Apr 21, 2022
e07ac9b
platform: dummy: Add Apache License
jerpelea Apr 21, 2022
7c46bbc
include: netutils: pppd.h: update license to Apache
jerpelea Apr 21, 2022
54ce2e0
nshlib: Add Apache License
jerpelea Apr 21, 2022
b990705
graphics: nxglyphs: Add Apache License
jerpelea Apr 21, 2022
f0f08b5
LICENSE: add license for tee
jerpelea Apr 21, 2022
f3330cb
LICENSE: add license for telnet
jerpelea Apr 21, 2022
0baea75
LICENSE: add license for ubloxmodem
jerpelea Apr 21, 2022
1d1b257
LICENSE: add license for zmodem
jerpelea Apr 21, 2022
8c09bdd
LICENSE: add license for netutils
jerpelea Apr 21, 2022
d5560b9
LICENSE: add license for gpsutils
jerpelea Apr 21, 2022
fa5fb8f
LICENSE: add license for wapi
jerpelea Apr 21, 2022
73887c1
LICENSE: add license for chat
jerpelea Apr 21, 2022
d60fb11
nxstyle fixes
jerpelea Apr 21, 2022
1acca29
Update the call site of exec to accommodate the environment variables
xiaoxiang781216 Apr 21, 2022
473611d
system/ping: Guard against division by zero when calculating the RTT.
Ouss4 Apr 22, 2022
7eda437
interpreters/ficl: add double include guard to nuttx.h
pkarashchenko Apr 22, 2022
426cc84
apps/ping: fix ping statistics error problem
DS-LK Apr 24, 2022
a5a4c56
pmconfig: add mulit domain support
zhuyanlinzyl Apr 20, 2022
e2f0ae3
import/Make.defs: Fix C++ library linkage with CONFIG_BUILD_KERNEL
pussuw Apr 28, 2022
0e99469
.gitignore: Ignore gcov files(*.gcno and *.gcda)
xiaoxiang781216 May 3, 2022
3856036
system: Add gcov command
xiaoxiang781216 May 3, 2022
467de8c
apps/nshlib: fix unreachable code about i++
Donny9 May 5, 2022
234e297
apps/nshlib: fix warning by tools converity report
Donny9 May 5, 2022
b3a5b56
apps/nshlib: fix warning by tool converity report
Donny9 May 5, 2022
1f093da
Revert "apps/nshlib: fix unreachable code about i++"
Donny9 May 7, 2022
1444e0d
apps/nshlib: fix unreachable code about i++
Donny9 May 7, 2022
5040719
audioutils/mml_parser: Add mml_parser library
takayoshik May 2, 2022
8ce86fe
system/sched_note: fix build break
anchao May 9, 2022
089c05c
system/trace: correct arg index if command is alreay set
anchao May 9, 2022
725fe76
trace: format the usage output
anchao May 9, 2022
5ee2e63
Use -fno-builtin for SYMTABOBJ
yamt Apr 6, 2022
6a25898
Revert "tools/mksymtab.sh: Disable the mismatch warning of builtin de…
yamt Apr 6, 2022
adf7cee
examples/elf: -fno-builtin for a file generated by mksymtab.sh
yamt Apr 6, 2022
8e6081a
examples/module: -fno-builtin for a file generated by mksymtab.sh
yamt Apr 6, 2022
b7f57a1
examples/posix_spawn: -fno-builtin for a file generated by mksymtab.sh
yamt Apr 6, 2022
dc9103a
examples/nxflat: -fno-builtin for a file generated by mksymtab.sh
yamt Apr 6, 2022
4b383b3
examples/sotest: -fno-builtin for a file generated by mksymtab.sh
yamt Apr 6, 2022
59fc69c
examples/thttpd: -fno-builtin for a file generated by mksymtab.sh
yamt Apr 6, 2022
24c1678
libuv: Don't add idna.c to CSRCS if test enabled
no1wudi May 13, 2022
02da51d
examples/nrf24l01: Replace the hardcode value with enum const
xiaoxiang781216 May 10, 2022
137b924
interpreters/wamr/Kconfig: Add INTERPRETERS_WAMR_PERF_PROFILING
yamt May 20, 2022
3821121
ostest:priority_inheritance Added priority restoration test
davids5 May 20, 2022
2358466
pmconfig: add last state and modify current state to next state
zhuyanlinzyl May 6, 2022
dcd4813
examples/README.md: Remove -nostartfiles and -nodefaultlibs
xiaoxiang781216 May 20, 2022
1d216fd
import/Make.defs: Add -noincstd++
xiaoxiang781216 May 20, 2022
90e164b
interpreters/wamr/Kconfig: Add an option to enable wasi libc
yamt Apr 27, 2022
562db06
interpreters/wamr/Kconfig: Mention limitations about wasi
yamt May 24, 2022
4f4f4da
webclient: Separate wget_target_s from wget_s
yamt May 16, 2022
41aee40
webclient: Add proxy setting in webclient_context
yamt May 23, 2022
4798f01
webclient: Implement proxy
yamt May 23, 2022
f7b0ad4
webclient: Require a port in proxy string
yamt May 23, 2022
ba08c77
interpreters/wamr/Kconfig: enable text heap when necessary
yamt May 25, 2022
871c59d
nxwm: Fix warning about on_exit() dependency
pussuw May 24, 2022
26367a6
testing/ostest: Replace up_tls_info with tls_get_info
xiaoxiang781216 May 27, 2022
e08fdca
Fixed bug in drawing rectangle using 1 bit palette
May 30, 2022
8fd4b61
netutils/dhcpc: Change the timeout unit to milliseconds
May 27, 2022
b065d72
mlearning: add Darknet (Open Source Neural Networks in C)
jerpelea Apr 12, 2022
5ae5ab7
industry/foc foc_ident: improving the measuring of resistance
zouboan May 28, 2022
30dbdf7
industry/foc foc_ident: adding flux linkage identification
zouboan May 31, 2022
a46b144
webclient: Remove an extra slash for proxy
yamt Jun 1, 2022
e5c07b9
interpreters/wamr: Remove WAMR_VERSION_STUB and always use actual tags
yamt Jun 1, 2022
8d1484b
system/libuv: Include nuttx/tls.h to call task local storage api
xiaoxiang781216 May 29, 2022
a95dd30
webclient: Add tunneling support
yamt May 31, 2022
c116f8b
webclient: Add https proxy (https over http) support
yamt Jun 1, 2022
dbee240
webclient.c: Fix the placement of "Public Function" banner
yamt Jun 2, 2022
3f4e723
webclient: dispose the response body by default
yamt Jun 2, 2022
a696c89
webclient: Don't forget to check http status before webclient_get_tunnel
yamt Jun 2, 2022
a563014
webclient: make webclient_get_tunnel assert http_status
yamt Jun 2, 2022
5e3a3da
webclient.h: Avoid relying on indirect inclusion
yamt Jun 3, 2022
99629e9
fstest:support fstest can run many times
anjiahao1 May 31, 2022
f5c094a
system/libuv: Skip compile strscpy.c when CONFIG_LIBUV_UTILS_TEST enable
xiaoxiang781216 May 20, 2022
dd7e981
system/libuv: Fix the undefined reference to `uv__strscpy'
xiaoxiang781216 May 20, 2022
a5506b3
Revert "remove DISCLAIMER-WIP"
Jun 7, 2022
a7de8df
netlib_parseurl.c: Add a comment
yamt Jun 6, 2022
f7b3eb5
netlib_parseurl: Make the buffer size assumption explicit
yamt Jun 6, 2022
0c4c811
webcilent: Fix a buffer overrun on a malformed status line
yamt Jun 6, 2022
065a130
webclient: Be a bit strict on Location header
yamt Jun 6, 2022
610b04f
webclient: Clear WGET_FLAG_GOT_CONTENT_LENGTH for each request
yamt Jun 6, 2022
a127071
Remove "| O_BINARY" or " |= O_BINARY" since O_BINARY is 0 now
xiaoxiang781216 Jun 2, 2022
f555230
rename DISCLAIMER-WIP
jerpelea Jun 7, 2022
550cb3a
Address #190
nimish Jun 10, 2022
1f0ba0d
Update examples/elf/tests/helloxx/Makefile
nimish Jun 11, 2022
835f435
serialblaster bugfix
Jun 10, 2022
ce7c9ae
wireless/wapi: fix wapi wpa_wconfig_s sta_mode data type error
normanr Jun 13, 2022
068905d
testing/irtest: Fix issue of failure to open multiple IR devices
cwespressif Jun 14, 2022
159ca00
webclient: Allow users to specify extra headers for proxy
yamt Jun 6, 2022
7ce7eff
Remove the non standard c++ header file inclusion
xiaoxiang781216 Jun 15, 2022
be516e4
wireless/wapi: authentication parameters should update before key set
anchao Jun 16, 2022
eece4a5
webclient_abort: Fix a resource leak for the tunneling case
yamt Jun 17, 2022
92c001b
wapi/utils: add SIOCGIWSENS into string name list
anchao Jun 17, 2022
2be66e8
webclient_conn_s: Add a missing FAR
yamt Jun 20, 2022
5cfc5cd
webclient.h: Update the state diagram after the tunnelling stuff
yamt Jun 17, 2022
fca5b18
webclient: Make webclient_get_tunnel returns void
yamt Jun 17, 2022
d435858
webclient: Export a few ops on webclient_conn_s
yamt Jun 20, 2022
fe10999
webclient_get_tunnel: A comment about how to dispose the returned "conn"
yamt Jun 20, 2022
5787c26
Add black linter for python
btashton Apr 5, 2021
72ead93
ci: lint only changed files
btashton Apr 6, 2021
72cb2c2
Lint Python code with flake8 and isort
cclauss Apr 9, 2021
83ea328
chore: Set permissions for GitHub actions
naveensrinivasan Jun 17, 2022
2f173e9
chore: Included githubactions in the dependabot config
naveensrinivasan Jun 19, 2022
a4c96f5
build(deps): bump actions/download-artifact from 1 to 3
dependabot[bot] Jun 21, 2022
452d535
build(deps): bump actions/checkout from 2 to 3
dependabot[bot] Jun 21, 2022
85962aa
build(deps): bump actions/cache from 2 to 3
dependabot[bot] Jun 21, 2022
23f35ea
build(deps): bump actions/upload-artifact from 1 to 3
dependabot[bot] Jun 21, 2022
61250d5
wireless/wapi: add get country code support
anchao Jun 23, 2022
99d9053
.github/workflows: Add nuttx/source to the safe directory
xiaoxiang781216 Jun 22, 2022
db9ea40
.github/workflows: Add nuttx/source to the safe directory, covering apps
qinwei2004 Jun 25, 2022
e7961a6
examples: add pwm input capture example
zouboan Jun 28, 2022
943df4c
pppd: Fix PAP Request packet.
taikoyaP Jun 30, 2022
ca4ef69
Added simple ws2812 example
Uthedris Jul 2, 2022
83505e2
dhcpc: Rename timeout Kconfig
yamt Jul 7, 2022
71ea8b0
nshlib/nsh_ddcmd: calculate time difference with microsecond precision
Jul 15, 2022
5c84c47
system/hostname: Add an option to read the hostname from a file
normanr Jul 3, 2022
c252ec1
Add printflike to all printf like functions
xiaoxiang781216 Jul 17, 2022
c4c3fff
ostest: Fixed prints in setenv test.
fjpanag Jul 19, 2022
5ae2e10
nshlib/netcmds: Decouple nslookup from netdb_dnsclient
ALTracer Jul 19, 2022
af27413
examples/noteprintf: Change CONFIG_LIBC_LONG_LONG to CONFIG_HAVE_LONG…
xiaoxiang781216 Jul 17, 2022
29be9e3
apps:fix reset cuase wraming
anjiahao1 Jun 23, 2022
dbfe5fb
cmd_reset_cause:remove ouput space.
anjiahao1 Jun 20, 2022
d7ec4e5
nsh: Fixed typos in comments.
Jul 21, 2022
2d2e36c
Fixed heap information output in nsh ps command.
Jul 21, 2022
beb9188
nshlib:support nsh can redirect
anjiahao1 Jun 7, 2022
3528b55
apps/system/uorb: c interfaces.
jihandong Mar 3, 2022
d8d1e1e
apps/system/uorb: c unit testcases
jihandong Mar 15, 2022
46c9842
system/uorb: add builtin sensor topics
Donny9 Mar 25, 2022
4ec3f70
apps/system/uorb: support orb_get_meta by name string
Donny9 May 6, 2022
9f6d322
system/uorb: listener, has 'top' command.
jihandong Mar 25, 2022
6fceb91
system/uorb: optimize stack used
Donny9 Apr 15, 2022
d44dd1c
uorb_unit_test: optimize stack used
Donny9 Apr 16, 2022
53ee04b
uorb/listener: add new api: orb_open and orb_close
Donny9 Apr 28, 2022
5bb4e14
system/uorb: always let orb_advertise, orb_advertise_queue for instan…
Donny9 Apr 29, 2022
e97b1a7
uorb_listener: support subscribe physical sensor before node register
Donny9 Apr 14, 2022
384c05b
app/system/uorb: alloc on heap instead of stack.
jihandong May 7, 2022
3a8f4b5
apps/uorb: fix compile break
Donny9 May 9, 2022
8558e63
uorb_listener: support set batch latency
Donny9 May 16, 2022
37f1e45
uorb: use another writing method to avoid compiler bug
GUIDINGLI May 24, 2022
f02c5a5
system/uorb: support new api
Donny9 May 21, 2022
874ed76
app/system/uorb: fix listener run_once not work.
jihandong Jun 8, 2022
2b8bfc5
app/system/uorb: modify unit test to support data persist
jihandong May 30, 2022
3f865c4
uorb/listener: ignore first get_state failed.
jihandong Jun 13, 2022
131e4dc
system/uorb: simply orb_check by SNIOC_UPDATED
Donny9 Jun 28, 2022
74af9a8
app/system/uorb: fix error, memset() wrong size.
jihandong May 9, 2022
45615a8
nshlib/dmesg: update config about enable dmesg
Donny9 Jun 27, 2022
a549ea3
Fix find: '/github/workspace/sources/nuttx/libs/libxx/uClibc++/tests'…
xiaoxiang781216 Jul 8, 2022
a06fa5a
testing/sensor_test: update sensortest according to enhance sensor dr…
Donny9 Jul 25, 2022
45f2c2a
testing/sensortest: fix compile break
Donny9 Jul 26, 2022
6b635d5
gps/minmea: replace minmea file with github repo
pengxianghao21 Jul 15, 2022
ab43c62
nshlib/ps: update config MM_BACKTRACE to int type
Donny9 Jul 4, 2022
1345fa1
usrsock: adjust rptun API
GUIDINGLI Jun 6, 2022
147a796
system: popen: Fix to build with CONFIG_BUILD_KERNEL=y
masayuki2009 Jul 28, 2022
eef03ad
testing/sensortest: fix cmd argument mismatch(follow new sensor driver)
Donny9 Jul 29, 2022
8081711
nxlooper: nxlooper should wait call buffer returned before close
GUIDINGLI Apr 27, 2022
79a1374
cu: fix cu hang when meet ctrl + C
GUIDINGLI Apr 19, 2022
a109a6e
rptun_ping: add sleep param to rptun_ping
GUIDINGLI May 11, 2022
7515553
pmconfig: update pmconfig dump
GUIDINGLI Jun 20, 2022
8a177cd
apps/games: Add shift game
acassis Jul 21, 2022
cfa5af5
wireless/gs2200m: Release all blocking socket
takayoshik Jul 31, 2022
819c34e
Add libcanardv1 for Cyphal, rename libcanard to libcanardv0
PetervdPerk-NXP Aug 1, 2022
c026bd8
canardv0 nxstyle fix
PetervdPerk-NXP Aug 1, 2022
a0d0f5e
mkfats make g_bootcodeblob const to save on static ram usage
PetervdPerk-NXP Aug 2, 2022
c5102fe
ifconfig support set IPv6 DNS server
Aug 3, 2022
dcd60a2
Use thread-safe ntoa functions
PetervdPerk-NXP Aug 1, 2022
30805a7
Remove executable permission from source file.
hartmannathan Aug 4, 2022
9179783
Embedded Template Library (ETL) Example application
PetervdPerk Aug 4, 2022
6d730e3
system/cfgdata: add "format" command to description
pkarashchenko Aug 4, 2022
672b5ff
netutils/iperf: fix string for iperf test interface option
pkarashchenko Aug 4, 2022
c0cafab
fsutils/mkfatfs: remove invalid header file
Donny9 Aug 7, 2022
8b43f9f
testing/sensortest: Update device path
lupyuen Aug 8, 2022
3d6aba9
Merge tag 'nuttx-11.0.0' into develop
SPRESENSE Nov 7, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
6 changes: 6 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
9 changes: 9 additions & 0 deletions .github/linters/setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[flake8]
ignore = W503,W605
max-complexity = 27
max-line-length = 125
show-source = True
statistics = True

[isort]
profile = black
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
*.d
*.dSYM
*.exe
*.gcno
*.gcda
*.hobj
*.i
*.lib
Expand All @@ -15,6 +17,7 @@
*.swp
*.sym
*~
.context
.depend
.kconfig
/bin
Expand All @@ -25,3 +28,8 @@
/symtab_apps.c
cscope.out
Make.dep
.context
# nuttx/$(TOPDIR)/Makefile.[unix|win]::$(DIRLINKS_EXTERNAL_DIRS)
.dirlinks
.vscode
.DS_Store
120 changes: 71 additions & 49 deletions Application.mk
Original file line number Diff line number Diff line change
@@ -1,37 +1,20 @@
############################################################################
# apps/Application.mk
#
# Copyright (C) 2015 Gregory Nutt. All rights reserved.
# Copyright (C) 2015 Omni Hoverboards Inc. All rights reserved.
# Authors: Gregory Nutt <[email protected]>
# Paul Alexander Patience <[email protected]>
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership. The
# ASF licenses this file to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance with the
# License. You may obtain a copy of the License at
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# http:#www.apache.org/licenses/LICENSE-2.0
#
# 1. Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in
# the documentation and/or other materials provided with the
# distribution.
# 3. Neither the name NuttX nor the names of its contributors may be
# used to endorse or promote products derived from this software
# without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE.
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
#
############################################################################

Expand Down Expand Up @@ -59,10 +42,25 @@ else
CWD = $(CURDIR)
endif

ifeq ($(CONFIG_CYGWIN_WINTOOL),y)
LDLIBS += "${shell cygpath -w $(BIN)}"
else
LDLIBS += $(BIN)
# Add the static application library to the linked libraries. Don't do this
# with CONFIG_BUILD_KERNEL as there is no static app library
ifneq ($(CONFIG_BUILD_KERNEL),y)
LDLIBS += $(call CONVERT_PATH,$(BIN))
endif

# When building a module, link with the compiler runtime.
# This should be linked after libapps. Consider that mbedtls in libapps
# uses __udivdi3.
ifeq ($(BUILD_MODULE),y)
# Revisit: This only works for gcc and clang.
# Do other compilers have similar?
COMPILER_RT_LIB = $(shell $(CC) $(ARCHCPUFLAGS) --print-libgcc-file-name)
ifeq ($(wildcard $(COMPILER_RT_LIB)),)
# if "--print-libgcc-file-name" unable to find the correct libgcc PATH
# then go ahead and try "--print-file-name"
COMPILER_RT_LIB := $(wildcard $(shell $(CC) $(ARCHCPUFLAGS) --print-file-name $(notdir $(COMPILER_RT_LIB))))
endif
LDLIBS += $(COMPILER_RT_LIB)
endif

SUFFIX = $(subst $(DELIM),.,$(CWD))
Expand All @@ -77,17 +75,23 @@ RAOBJS = $(RASRCS:=$(SUFFIX)$(OBJEXT))
CAOBJS = $(CASRCS:=$(SUFFIX)$(OBJEXT))
COBJS = $(CSRCS:=$(SUFFIX)$(OBJEXT))
CXXOBJS = $(CXXSRCS:=$(SUFFIX)$(OBJEXT))
RUSTOBJS = $(RUSTSRCS:=$(SUFFIX)$(OBJEXT))
ZIGOBJS = $(ZIGSRCS:=$(SUFFIX)$(OBJEXT))

MAINCXXSRCS = $(filter %$(CXXEXT),$(MAINSRC))
MAINCSRCS = $(filter %.c,$(MAINSRC))
MAINRUSTSRCS = $(filter %$(RUSTEXT),$(MAINSRC))
MAINZIGSRCS = $(filter %$(ZIGEXT),$(MAINSRC))
MAINCXXOBJ = $(MAINCXXSRCS:=$(SUFFIX)$(OBJEXT))
MAINCOBJ = $(MAINCSRCS:=$(SUFFIX)$(OBJEXT))
MAINRUSTOBJ = $(MAINRUSTSRCS:=$(SUFFIX)$(OBJEXT))
MAINZIGOBJ = $(MAINZIGSRCS:=$(SUFFIX)$(OBJEXT))

SRCS = $(ASRCS) $(CSRCS) $(CXXSRCS) $(MAINSRC)
OBJS = $(RAOBJS) $(CAOBJS) $(COBJS) $(CXXOBJS)
OBJS = $(RAOBJS) $(CAOBJS) $(COBJS) $(CXXOBJS) $(RUSTOBJS) $(ZIGOBJS)

ifneq ($(BUILD_MODULE),y)
OBJS += $(MAINCOBJ) $(MAINCXXOBJ)
OBJS += $(MAINCOBJ) $(MAINCXXOBJ) $(MAINRUSTOBJ) $(MAINZIGOBJS)
endif

DEPPATH += --dep-path .
Expand Down Expand Up @@ -116,9 +120,19 @@ define ELFCOMPILEXX
$(Q) $(CXX) -c $(CXXELFFLAGS) $($(strip $1)_CXXELFFLAGS) $1 -o $2
endef

define ELFCOMPILERUST
@echo "RUSTC: $1"
$(Q) $(RUSTC) --emit obj $(RUSTELFFLAGS) $($(strip $1)_RUSTELFFLAGS) $1 -o $2
endef

define ELFCOMPILEZIG
@echo "ZIG: $1"
$(Q) $(ZIG) build-obj $(ZIGELFFLAGS) $($(strip $1)_ZIGELFFLAGS) $1 --name $2
endef

define ELFLD
@echo "LD: $2"
$(Q) $(LD) $(LDELFFLAGS) $(LDLIBPATH) $(ARCHCRT0OBJ) $1 $(LDLIBS) -o $2
$(Q) $(LD) $(LDELFFLAGS) $(LDLIBPATH) $(ARCHCRT0OBJ) $1 $(LDSTARTGROUP) $(LDLIBS) $(LDENDGROUP) -o $2
endef

$(RAOBJS): %.s$(SUFFIX)$(OBJEXT): %.s
Expand All @@ -137,12 +151,16 @@ $(CXXOBJS): %$(CXXEXT)$(SUFFIX)$(OBJEXT): %$(CXXEXT)
$(if $(and $(CONFIG_BUILD_LOADABLE),$(CXXELFFLAGS)), \
$(call ELFCOMPILEXX, $<, $@), $(call COMPILEXX, $<, $@))

$(RUSTOBJS): %$(RUSTEXT)$(SUFFIX)$(OBJEXT): %$(RUSTEXT)
$(if $(and $(CONFIG_BUILD_LOADABLE),$(CELFFLAGS)), \
$(call ELFCOMPILERUST, $<, $@), $(call COMPILERUST, $<, $@))

$(ZIGOBJS): %$(ZIGEXT)$(SUFFIX)$(OBJEXT): %$(ZIGEXT)
$(if $(and $(CONFIG_BUILD_LOADABLE), $(CELFFLAGS)), \
$(call ELFCOMPILEZIG, $<, $@), $(call COMPILEZIG, $<, $@))

archive:
ifeq ($(CONFIG_CYGWIN_WINTOOL),y)
$(call ARCHIVE_ADD, "${shell cygpath -w $(BIN)}", $(OBJS))
else
$(call ARCHIVE_ADD, $(BIN), $(OBJS))
endif
$(call ARCHIVE_ADD, $(call CONVERT_PATH,$(BIN)), $(OBJS))

ifeq ($(BUILD_MODULE),y)

Expand All @@ -154,17 +172,13 @@ $(MAINCOBJ): %.c$(SUFFIX)$(OBJEXT): %.c
$(if $(and $(CONFIG_BUILD_LOADABLE),$(CELFFLAGS)), \
$(call ELFCOMPILE, $<, $@), $(call COMPILE, $<, $@))

PROGLIST := $(wordlist 1,$(words $(MAINCOBJ) $(MAINCXXOBJ)),$(PROGNAME))
PROGLIST := $(wordlist 1,$(words $(MAINCOBJ) $(MAINCXXOBJ) $(MAINRUSTOBJ)),$(PROGNAME))
PROGLIST := $(addprefix $(BINDIR)$(DELIM),$(PROGLIST))
PROGOBJ := $(MAINCOBJ) $(MAINCXXOBJ)
PROGOBJ := $(MAINCOBJ) $(MAINCXXOBJ) $(MAINRUSTOBJ)

$(PROGLIST): $(MAINCOBJ) $(MAINCXXOBJ)
$(PROGLIST): $(MAINCOBJ) $(MAINCXXOBJ) $(MAINRUSTOBJ)
$(Q) mkdir -p $(BINDIR)
ifeq ($(CONFIG_CYGWIN_WINTOOL),y)
$(call ELFLD,$(firstword $(PROGOBJ)),"${shell cygpath -w $(firstword $(PROGLIST))}")
else
$(call ELFLD,$(firstword $(PROGOBJ)),$(firstword $(PROGLIST)))
endif
$(call ELFLD,$(firstword $(PROGOBJ)),$(call CONVERT_PATH,$(firstword $(PROGLIST))))
$(Q) chmod +x $(firstword $(PROGLIST))
ifneq ($(CONFIG_DEBUG_SYMBOLS),y)
$(Q) $(STRIP) $(firstword $(PROGLIST))
Expand Down Expand Up @@ -192,6 +206,14 @@ $(MAINCOBJ): %.c$(SUFFIX)$(OBJEXT): %.c
$(if $(and $(CONFIG_BUILD_LOADABLE),$(CELFFLAGS)), \
$(call ELFCOMPILE, $<, $@), $(call COMPILE, $<, $@))

$(MAINRUSTOBJ): %$(RUSTEXT)$(SUFFIX)$(OBJEXT): %$(RUSTEXT)
$(if $(and $(CONFIG_BUILD_LOADABLE),$(CELFFLAGS)), \
$(call ELFCOMPILERUST, $<, $@), $(call COMPILERUST, $<, $@))

$(MAINZIGOBJ): %$(ZIGEXT)$(SUFFIX)$(OBJEXT): %$(ZIGEXT)
$(if $(and $(CONFIG_BUILD_LOADABLE),$(CELFFLAGS)), \
$(call ELFCOMPILEZIG, $<, $@), $(call COMPILEZIG, $<, $@))

install::

endif # BUILD_MODULE
Expand Down
6 changes: 6 additions & 0 deletions DISCLAIMER
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Apache NuttX is an effort undergoing incubation at The Apache Software Foundation (ASF),
sponsored by the Apache Incubator. Incubation is required of all newly accepted projects
until a further review indicates that the infrastructure, communications, and decision
making process have stabilized in a manner consistent with other successful ASF projects.
While incubation status is not necessarily a reflection of the completeness or stability
of the code, it does indicate that the project has yet to be fully endorsed by the ASF.
20 changes: 0 additions & 20 deletions DISCLAIMER-WIP

This file was deleted.

39 changes: 12 additions & 27 deletions Directory.mk
Original file line number Diff line number Diff line change
@@ -1,35 +1,20 @@
############################################################################
# apps/Directory.mk
#
# Copyright (C) 2011-2015, 2018 Gregory Nutt. All rights reserved.
# Author: Gregory Nutt <[email protected]>
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership. The
# ASF licenses this file to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance with the
# License. You may obtain a copy of the License at
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# http:#www.apache.org/licenses/LICENSE-2.0
#
# 1. Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in
# the documentation and/or other materials provided with the
# distribution.
# 3. Neither the name NuttX nor the names of its contributors may be
# used to endorse or promote products derived from this software
# without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE.
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
#
############################################################################

Expand Down
Loading