Commit Graph

7139 Commits

Author SHA1 Message Date
likun17
009c9ad13f apps/system/uorb/test/unit_test.c: add orb_copy return judgment.
Signed-off-by: likun17 <likun17@xiaomi.com>
2023-09-23 13:18:52 +08:00
hujun5
5c5c6653fd libuv: fix build error
If UV_ONCE_INIT is a struct, the following errors will occur:

libuv/src/unix/nuttx.c: In function 'uv__global_get':
/home/hujun5/downloads1/vela_sim/apps/system/libuv/libuv/include/uv/unix.h:136:22: error: expected expression before '{' token
  136 | #define UV_ONCE_INIT PTHREAD_ONCE_INIT
      |                      ^~~~~~~~~~~~~~~~~
libuv/src/unix/nuttx.c:287:26: note: in expansion of macro 'UV_ONCE_INIT'
  287 |           global->once = UV_ONCE_INIT;
      |                          ^~~~~~~~~~~~
/home/hujun5/downloads1/vela_sim/apps/system/libuv/libuv/include/uv/unix.h:136:22: error: expected expression before '{' token
  136 | #define UV_ONCE_INIT PTHREAD_ONCE_INIT
      |                      ^~~~~~~~~~~~~~~~~
libuv/src/unix/nuttx.c:288:50: note: in expansion of macro 'UV_ONCE_INIT'
  288 |           global->uv__signal_global_init_guard = UV_ONCE_INIT;

Signed-off-by: hujun5 <hujun5@xiaomi.com>
2023-09-23 13:18:27 +08:00
raiden00pl
1050d3028b libsodium depends on ICS license 2023-09-22 20:42:18 +08:00
SPRESENSE
d6ed8880d8 lte/alt1250: Correspond to shutdown
ALT1250 daemon to support shutdown.
2023-09-22 16:25:09 +08:00
dulibo1
049aaa4c96 pmconfig: check domain if invaild return error avoid to crash
Signed-off-by: dulibo1 <dulibo1@xiaomi.com>
2023-09-22 09:16:54 +08:00
dulibo1
dd9290b6bd pm:add pm runtime testcase
Signed-off-by: dulibo1 <dulibo1@xiaomi.com>
2023-09-22 09:16:24 +08:00
Daniel P. Carvalho
e62e1e91fe Fixes compiler warnings while printing uint32_t and int32_t values. 2023-09-22 09:14:20 +08:00
zhangchao53
60778f6f8c support xml report and generate tool
Signed-off-by: zhangchao53 <zhangchao53@xiaomi.com>
2023-09-21 12:14:12 +08:00
0528Mike
a46a661b34 Update nshlib/nsh_codeccmd.c
Co-authored-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2023-09-21 10:48:29 +08:00
wangmingrong
2459476b65 nshlib: Implementation of modifying command md5
Simplify the "cmd_codecs_proc" md5 related framework and modify the implementation of the command md5:

Signed-off-by: wangmingrong <wangmingrong@xiaomi.com>
2023-09-21 10:48:29 +08:00
daniellizewski
a4ab405faa Fix typo in uint8_t 2023-09-21 10:45:17 +08:00
SPRESENSE
6a69f0e96f wireless/gs2200m: Add support SIOCDENYINETSOCK ioctl command
Support SIOCDENYINETSOCK ioctl command to set usrsock status.
If usock_enable is false, its means application wants to create
a socket with other network stack.
2023-09-21 01:13:39 +08:00
Xiang Xiao
dbdba4c254 interpreters/duktape: Add -Wno-unused-but-set-variable to CLAGS
To fix error: variable 'num_stmts' set but not used [-Werror,-Wunused-but-set-variable]
                duk_int_t num_stmts;

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-09-19 11:27:21 +08:00
Xiang Xiao
17692ffc5f Revert "interpreters/duktape: Fix error: variable 'num_stmts' set but not used"
This reverts commit 801046cd78.
2023-09-19 11:27:21 +08:00
guoshichao
68b3030f23 testing/ltp: add config.h file
this config.h using to control the test procedure of the relative
test cases. this config.h file is generated by ltp project internal
build file, as we are nuttx build system, so need to manage this file
by manual

Signed-off-by: guoshichao <guoshichao@xiaomi.com>
2023-09-19 11:13:44 +08:00
dependabot[bot]
bf44d4b1bb build(deps): bump docker/login-action from 2 to 3
Bumps [docker/login-action](https://github.com/docker/login-action) from 2 to 3.
- [Release notes](https://github.com/docker/login-action/releases)
- [Commits](https://github.com/docker/login-action/compare/v2...v3)

---
updated-dependencies:
- dependency-name: docker/login-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-19 11:13:16 +08:00
Huang Qi
a22aeb00ed tools: Lock wasm archive during ar rcs
Fix issues with multi thread compilation.

Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2023-09-19 11:10:13 +08:00
makejian
ab7fd12e1d mbedtls: use 'getrandom' to get system entropy
use getrandom to get system entropy and not dependent on config DEVURANDOM
Signed-off-by: makejian <makejian@xiaomi.com>
2023-09-19 00:41:24 +08:00
Huang Qi
08a4b76a2f libuv: Upgrade to v1.46.0
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2023-09-18 12:40:13 +08:00
Xiang Xiao
801046cd78 interpreters/duktape: Fix error: variable 'num_stmts' set but not used
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-09-17 22:50:08 +03:00
Daniel Appiagyei
b37e84b05f c++ compatibility: rename usages of reserved c++ keywords 'this' and 'public' 2023-09-16 19:45:52 +08:00
SPRESENSE
a9a8fbbc4a lte/alt1250: Fix bug that name resolution failed for a long time
Fix bug that name resolution failed for a long time under particular cases.
If a DNS query for IPv6 succeeds and IPv4 fails, only the answer of the
IPv6 query is saved in the cache. If only IPv4 is given from LTE,
name resolution will fail while the answer is saved in the cache.
Therefore, the ALT1250 daemon sets the given IP type to the DNS client,
which can only send DNS queries for that IP type.
2023-09-16 18:09:29 +08:00
TaiJuWu
9f2f86441d Fix sigprocmask
1. SIGSTOP and SIGKILL should not be used as test. In g_some_signals,
SIGKILL is used.

2. The SIGSTOP and SIGKILL flags of current task are set so we need to
delete them.
2023-09-16 00:08:34 +03:00
wangyingdong
2e5139eba4 dhcpd:Optimize the data area memory and reduce it by about 1k bytes
If a daemon app(e.ot_client) starts dhcpd by calling dhcpd_start and needs to shut it down after use,
then the global static variables ds_inpacket and ds_outpacket will always occupy the data area,
causing unnecessary waste.

Signed-off-by: wangyingdong <wangyingdong@xiaomi.com>
2023-09-13 21:49:49 +08:00
Xiang Xiao
8f58d34e06 system/adb: Download the latest package
to fix error: microADB/hal/hal_uv.c:32:38: error:
a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-09-13 21:08:23 +08:00
chao an
1f96e32fcd makefile/archive: fix build break if object target is split to multi-part
Signed-off-by: chao an <anchao@xiaomi.com>
2023-09-13 17:15:05 +08:00
Xuxingliang
facc9ddc63 testing/mm: use unified name for macros
All macros in mm.h start with MM_

Signed-off-by: Xuxingliang <xuxingliang@xiaomi.com>
2023-09-12 22:09:43 +08:00
chao an
52353a7eb2 apps/build: Restore ARLOCK to improve compile speed in incremental case
To solve the issue of carrying object files from previous builds,
Matias changed the archiving process to re-archive libapps.a on every compilation,
if libapps.a carries more object files, incremental compilation will waste too
many time in re-archiving, compared with the previous implement, this is a degradation
of the build system.  Referring to mature engineering projects such as cmake, if there
is configuration or source file changed, the best solution should be to reconfigure
the environment.

Revert this PR to ensure the compilation speed during incremental compilation.

|  commit 18137c0fec
|  Author: Matias N <matias@protobits.dev>
|  Date:   Sat Sep 12 00:36:23 2020 -0300
|
|      Fix: ensure archive files do not carry object files from prior builds
|
|      This is the corresponding change to the one on main NuttX repo. In this
|      case this involves splitting the build of libapps.a into: a) building
|      all applications (which is safely parallelizable), b) adding each
|      application's object files to the archive in turns (serial by nature).
|
|      This removes the need for the flock used to protect the parallel build.

Testing:

sim:nsh
-------------------------------
|   Patched    |  Current
-------------------------------
|$ time make   |  $ time make
|real 0m1.270s |  real 0m1.728s
|user 0m0.971s |  user 0m1.276s
|sys  0m0.363s |  sys  0m0.530s
-------------------------------

Private project (20+ 3rd library needs archive to libapps.a)
-------------------------------
|   Patched     |  Current
-------------------------------
|$ time make    |  $ time make
|real 0m21.181s |  real 0m39.721s
|user 0m14.638s |  user 0m24.837s
|sys  0m6.919s  |  sys  0m14.394s
-------------------------------

Signed-off-by: chao an <anchao@xiaomi.com>
2023-09-12 21:55:39 +08:00
wangjianyu3
bf4d873985 system/fastboot: Fix command comparation
e.g. The command is "reboot-bootloader", but will match and break when
     compared  with "reboot"

Signed-off-by: wangjianyu3 <wangjianyu3@xiaomi.com>
2023-09-12 16:26:09 +08:00
Xiang Xiao
2bfb9760ad Fix Error: configdata_main.c:402:14: error: variable 'iteration' set but not used [-Werror,-Wunused-but-set-variable]
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-09-12 10:10:16 +08:00
yangsen5
d2fd626780 nxcamera: Fix compilation warnings caused by format issues
nxcamera_main.c:160:26: warning: format '%d' expects argument of type 'int *', but argument 5 has type 'uint32_t *' {aka 'long unsigned int *'} [-Wformat=]
  160 |   sscanf(parg, "%hd %hd %d %4s", &width, &height, &framerate, cc);
      |                         ~^                        ~~~~~~~~~~
      |                          |                        |
      |                          int *                    uint32_t * {aka long unsigned int *}
      |                         %ld

Signed-off-by: yangsen5 <yangsen5@xiaomi.com>
2023-09-12 10:08:58 +08:00
zhangchao53
791d1fc08d add superpi fold and nist-sts fold to gitignore 2023-09-12 10:08:35 +08:00
makejian
71276b6181 mbedtls-alt/md5: add md5 alternative implementation
add md5 alternative implementation via /dev/crypto
Signed-off-by: makejian <makejian@xiaomi.com>
2023-09-12 10:01:16 +08:00
xuxin19
0ddcedcf6e ignore specific waring on MacOS for CI break
Signed-off-by: xuxin19 <xuxin19@xiaomi.com>
2023-09-11 20:40:22 +08:00
xuxin19
258d637df3 Makefile:resolve Mac make error block
Signed-off-by: xuxin19 <xuxin19@xiaomi.com>
2023-09-11 20:40:22 +08:00
Xiang Xiao
fc5351b4b9 Fix coremark/core_util.c:210:17: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-09-11 16:40:53 +08:00
xuxin19
c230321cae fix progname do not match issue
Signed-off-by: xuxin19 <xuxin19@xiaomi.com>
2023-09-11 16:37:05 +08:00
xuxin19
55647b8458 Application.mk:upgrade warning to error
for the case where MAINSRC and PROGNAME do not match

Signed-off-by: xuxin19 <xuxin19@xiaomi.com>
2023-09-11 16:37:05 +08:00
chao an
7dda7f1dee crypto/mbedtls: fix build break on sha256.c
Build break on Assemble compiler if -fno-omit-frame-pointer and -O3 enabled at same time

{standard input}: Assembler messages:
{standard input}:2560: Error: branch out of range
make[2]: *** [apps/Application.mk:170: mbedtls/library/sha256.o] Error 1

Signed-off-by: chao an <anchao@xiaomi.com>
2023-09-11 16:33:05 +08:00
zhangchao53
28d4c58448 run testsuites where name match pattern value of --suite 2023-09-08 16:01:06 +03:00
wangmingrong
5e59b0b384 nshlib: Fix static scanning errors
Signed-off-by: wangmingrong <wangmingrong@xiaomi.com>
2023-09-08 18:49:31 +08:00
guoshichao
b7e08d4fba ltp/makefile: rm the ltp.zip file after unzipped
the ltp.zip file is not tracked in git record, so after download and
unzip finished, we do not need to keep this ltp.zip file.

Signed-off-by: guoshichao <guoshichao@xiaomi.com>
2023-09-08 17:24:34 +08:00
wangmingrong
a9f0fc55d1 codecs: add md5_file API
Add the API for 'md5_file' to directly obtain the digest value by passing in the file path

Signed-off-by: wangmingrong <wangmingrong@xiaomi.com>
2023-09-08 02:11:23 +08:00
xucheng5
723b91851f app/ltp : enable can_filter/can_rcv_own_msgs
Signed-off-by: xucheng5 <xucheng5@xiaomi.com>
2023-09-07 11:24:47 +03:00
SPRESENSE
0f9605e143 lte/alt1250: Fix usrsock_bind error by uninitialized value
Fix usrsock_bind error by an undefined events variable which is caused
by NuttX usrsock update.
2023-09-07 14:07:43 +08:00
SPRESENSE
9a11ede5ff lte/alt1250: Fix issue that ifconfig does not work
Add SIOCGIFFLAGS support for ifconfig command.
2023-09-07 14:07:43 +08:00
guohao15
a8598aa8d2 app:ramspeed the result of repeat_cnt * step has been truncated
Signed-off-by: guohao15 <guohao15@xiaomi.com>
2023-09-07 13:52:09 +08:00
chenrun1
2639f044cc drivertest_block:Fix insufficient number of erasures for mtd devices
when operating multiple rwblocks.

Signed-off-by: chenrun1 <chenrun1@xiaomi.com>
2023-09-07 13:51:29 +08:00
makejian
16a1655bba testing/crypto: fix aescbc crash when update iv
iv content always should be updated when performing encryption operation, so need update testing case
Signed-off-by: makejian <makejian@xiaomi.com>
2023-09-07 13:15:35 +08:00
fengxuesong
ee0bc579c1 solve CI compilation error problem
Signed-off-by: fengxuesong <fengxuesong@xiaomi.com>
2023-09-06 19:21:19 +03:00