Commit Graph

1725 Commits

Author SHA1 Message Date
lijianjun 9e412b3960 tools/config_refs.yml: add CONFIG_FS_PROCFS_INCLUDE_PRESSURE check for
lvgl perf

Signed-off-by: lijianjun <lijianjun@xiaomi.com>
2026-04-20 15:20:25 +08:00
liuhongchao eb555f070b getevent: fix warnings and minor improvements
1 fix warning assignment discards 'volatile' qualifier from pointer target type
    2 add errno logging
    3 malloc change to calloc

Signed-off-by: liuhongchao <liuhongchao@xiaomi.com>
2026-04-20 15:20:25 +08:00
lijianjun 9852db1468 fix(lvgl): build error when enable lvgl builtin
Signed-off-by: lijianjun <lijianjun@xiaomi.com>
2026-04-20 15:20:25 +08:00
tengshuangshuang 9fdcd0f3ae getevent:fix warning
getevent/getevent.c: In function 'read_touch_event':
getevent/getevent.c:45:23: error: format '%d' expects argument of type 'int',
but argument 3 has type 'int32_t' {aka 'long int'} [-Werror=format=]
getevent/getevent.c:194:7: note: in expansion of macro 'GETEVENT_INFO'
cc1: all warnings being treated as errors

Signed-off-by: tengshuangshuang <tengshuangshuang@xiaomi.com>
2026-04-20 15:20:20 +08:00
zhouxingjian 9915a85795 lvgl: enable macro LV_ATTRIBUTE_MEM_ALIGN in LVGL and libraries that depend on LVGL
Signed-off-by: zhouxingjian <zhouxingjian@xiaomi.com>
2026-04-20 15:20:19 +08:00
v-tangmeng dfc9474608 graphics/twm4nx: fix the compile error
nuttx/include/nuttx/semaphore.h: In function 'int nxmutex_wait(sem_t*)':
nuttx/include/nuttx/semaphore.h:582:11: error: '__auto_type' was not declared in this scope
  582 |       if (atomic_try_cmpxchg_acquire(val, &old, _SCHED_GETTID()))

Signed-off-by: v-tangmeng <v-tangmeng@xiaomi.com>
2026-04-20 15:20:15 +08:00
v-tangmeng 047a88f242 graphics/twm4nx: fix the compile error
nuttx/include/nuttx/semaphore.h: In function 'int nxmutex_wait(sem_t*)':
nuttx/include/nuttx/semaphore.h:582:11: error: '__auto_type' was not declared in this scope
  582 |       if (atomic_try_cmpxchg_acquire(val, &old, _SCHED_GETTID()))

Signed-off-by: v-tangmeng <v-tangmeng@xiaomi.com>
2026-04-20 15:20:15 +08:00
v-tangmeng 1a1ed1d895 graphics/nxwidgets: fix the compile error
In file included from /home/mi/workspace/vela/vela-opensource/nuttx/include/nuttx/atomic.h:54,
                 from /home/mi/workspace/vela/vela-opensource/nuttx/include/nuttx/fs/fs.h:45,
                 from /home/mi/workspace/vela/vela-opensource/nuttx/include/stdio.h:36,
                 from /home/mi/workspace/vela/vela-opensource/nuttx/include/nuttx/streams.h:35,
                 from /home/mi/workspace/vela/vela-opensource/nuttx/include/debug.h:32,
                 from src/ccallback.cxx:34:
nuttx/include/nuttx/semaphore.h: In function 'int nxmutex_wait(sem_t*)':
nuttx/include/nuttx/semaphore.h:582:11: error: '__auto_type' was not declared in this scope
  582 |       if (atomic_try_cmpxchg_acquire(val, &old, _SCHED_GETTID()))

Signed-off-by: v-tangmeng <v-tangmeng@xiaomi.com>
2026-04-20 15:20:15 +08:00
v-tangmeng 0f5b502859 sched: fix the compile error
error: implicit declaration of function 'sched_lock'
error: implicit declaration of function 'sched_unlock'

Signed-off-by: v-tangmeng <v-tangmeng@xiaomi.com>
2026-04-20 15:20:13 +08:00
pengyiqiang 209957650e graphics/lvctl: adapt command transparent transmission mode
Signed-off-by: pengyiqiang <pengyiqiang@xiaomi.com>
2026-04-20 15:19:50 +08:00
liujp fe181e3c95 tools: add the LV_DECODER_IMG_SIZE_EXPAND to the base group.
Signed-off-by: liujp <liujp@xiaomi.com>
2026-04-20 15:19:48 +08:00
liuhongchao 4ad1550234 apps/graphics: Add getevent input tool
Signed-off-by: liuhongchao <liuhongchao@xiaomi.com>
2026-04-20 15:19:46 +08:00
pengyiqiang 7e5147c760 graphics/lvctl: enable GRAPHICS_LVCTL by default
Signed-off-by: pengyiqiang <pengyiqiang@xiaomi.com>
2026-04-20 15:19:37 +08:00
Zhe Weng 427758d4d3 apps/graphics: Add lvctl command to control LVGL
Signed-off-by: Zhe Weng <wengzhe@xiaomi.com>
2026-04-20 15:19:37 +08:00
buxiasen b08fcd8515 graphic/input: use PRId32 replace %d fix warning
uint32_t not compatible with %d.

Signed-off-by: buxiasen <buxiasen@xiaomi.com>
2026-04-20 15:19:36 +08:00
wangzhi16 a843190684 system/ofloader: fix compile error.
ofloader.c:78:11: error: implicit declaration of function 'close'; did you mean 'pclose'? [-Werror=implicit-function-declaration]
   78 |           close(devinfo[count].fd);
      |           ^~~~~
      |           pclose

ofloader.c:293:8: error: unknown type name 'pthread_addr_t'
  293 | static pthread_addr_t fake_idle(pthread_addr_t arg)
      |        ^~~~~~~~~~~~~~

Signed-off-by: wangzhi16 <wangzhi16@xiaomi.com>
2026-04-20 15:19:33 +08:00
zhanghongyu f1dd63284d graphics/libyuv: fix the typo.
Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
2026-04-20 15:19:31 +08:00
liuchan3 210d1e1666 graphics/input: Adjust input tool priority and sampling rate
Signed-off-by: liuchan3 <liuchan3@xiaomi.com>
2026-04-20 15:19:12 +08:00
yanxiaowei 7e2a823217 fix(cmake): fix compiling config LV_PROFILER_BEGIN_TAG and LV_PROFILER_END_TAG
Signed-off-by: yanxiaowei <yanxiaowei@xiaomi.com>
2026-04-20 15:19:12 +08:00
liuchan3 6a937f23e1 graphics/input: Fix the problem that REMOVE_ITEM dose not take effect in CMakeLists
Signed-off-by: liuchan3 <liuchan3@xiaomi.com>
2026-04-20 15:19:11 +08:00
Zhe Weng feae14bd91 graphics/input: Filter out input tool command source from library
Avoid build warnings.

Signed-off-by: Zhe Weng <wengzhe@xiaomi.com>
2026-04-20 15:19:10 +08:00
liuchan3 dd0ab0ae83 apps/graphics: Refactor the input tool using input generator library
Signed-off-by: liuchan3 <liuchan3@xiaomi.com>
2026-04-20 15:19:10 +08:00
liuchan3 7c9fd3db44 apps/graphics: Refactor monkey using input generator library
Signed-off-by: liuchan3 <liuchan3@xiaomi.com>
2026-04-20 15:19:10 +08:00
Zhe Weng f350946040 graphics/input: Add input_gen_fill_point interface for generator
Also change some typos of generator.

Signed-off-by: Zhe Weng <wengzhe@xiaomi.com>
2026-04-20 15:19:10 +08:00
Zhe Weng 0d6772bb56 apps/system: Move input/monkey to apps/graphics/input
Signed-off-by: Zhe Weng <wengzhe@xiaomi.com>
2026-04-20 15:19:10 +08:00
Zhe Weng 3aeaca892b apps/graphics: Add input generator library
Signed-off-by: Zhe Weng <wengzhe@xiaomi.com>
2026-04-20 15:19:10 +08:00
xuxin19 f99d1fe9d2 cmake(bugfix):fix LVGL LV_OPTLEVEL do not effect
Signed-off-by: xuxin19 <xuxin19@xiaomi.com>
2026-04-20 15:19:09 +08:00
duxiaoliang bf925f1fd9 build(cmake):add testcase cmake build
Signed-off-by: duxiaoliang <duxiaoliang@xiaomi.com>
2026-04-20 15:19:07 +08:00
xuxin19 66e420b26e cmake(bugfix):fix coremark cmake compile FLAGS_STR build error
Signed-off-by: xuxin19 <xuxin19@xiaomi.com>
2026-04-20 15:19:05 +08:00
lijianjun 4bd6dc3b3b update config_refs.yml
add LV_USE_NUTTX_INDEPENDENT_IMAGE_HEAP

Signed-off-by: lijianjun <lijianjun@xiaomi.com>
2026-04-20 15:19:04 +08:00
haopengxiang 2dc567afa1 apps/graphics/lvgl: remove unused lvgl/ext
Signed-off-by: haopengxiang <haopengxiang@xiaomi.com>
2026-04-20 15:19:03 +08:00
xuxin19 9cc74c42b9 cmake(bugfix):fix lvgl CMake build in trunk specific product
Signed-off-by: xuxin19 <xuxin19@xiaomi.com>
2026-04-20 15:19:03 +08:00
zhangjipeng 729533e269 add graphics lvgl unittest build
Signed-off-by: duxiaoliang <duxiaoliang@xiaomi.com>
2026-04-20 15:19:01 +08:00
pengyiqiang 394e6c876b lvgl/Makefile: remove -O0 build flag
Signed-off-by: pengyiqiang <pengyiqiang@xiaomi.com>
2026-04-20 15:19:01 +08:00
pengyiqiang 706ef7a488 lvgl/tools/config_refs.yml: update reference value
Signed-off-by: pengyiqiang <pengyiqiang@xiaomi.com>
2026-04-20 15:19:01 +08:00
Daniel Jasinski 129ef8d5d5 build: increase FetchContent timeout to 120 seconds for LVGL
LVGL 9.2.1 archive is ~70MB. Over poor connections, it may take
longer to download it. This renders CMake build unusable in such
environments.

Signed-off-by: Daniel Jasinski <jasinskidaniel95szcz@gmail.com>
2026-04-20 15:18:58 +08:00
ligd b4b0f9986b lvgl: fix compile failed
/home/ligd/platform/trunk/apps/vendor/xiaomi/miwear/apps/system/lvx_font/lvx_theme_default.h:15:10: fatal error: lvgl.h: No such file or directory
   15 | #include <lvgl.h>
      |          ^~~~~~~~
compilation terminated.

Signed-off-by: ligd <liguiding1@xiaomi.com>
2026-04-20 15:18:57 +08:00
Neo Xu 6aefa8c887 lvgl: upgrade to release/v9.2.1
Signed-off-by: Neo Xu <neo.xu1990@gmail.com>
2026-04-20 15:18:56 +08:00
openvela-robot 373ce0a3b0 Merge branch 'master' into vela
apache/nuttx-apps commit id: c5c18a29973802b196e77adf3fd3e6742a269d83

Signed-off-by: ligd <liguiding1@xiaomi.com>
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2026-04-20 15:18:54 +08:00
openvela-robot 4e0a573f23 nsh: support watch command
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
2026-04-20 15:18:53 +08:00
openvela-robot b0d05e45c1 cmake(snyc):fix nuttx-apps CMakeList.txt conflit
Signed-off-by: xuxin19 <xuxin19@xiaomi.com>
2026-04-20 15:18:51 +08:00
openvela-robot db9da5caee nshlib:Add macro restrictions to code that uses floating point numbers
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2026-04-20 15:18:49 +08:00
openvela-robot 7344f54d1a top:fix memleak if ps_recored retrun error
7   534         128     6096556 0x44c43720  [0x0402a5ec0] <mm_zalloc+8>        mm_heap/mm_zalloc.c:45
                                             [0x0402a35ce] <zalloc+18>          umm_heap/umm_zalloc.c:70
                                             [0x0402b72ba] <top_callback+238>   nsh_proccmds.c:733
                                             [0x0402b57f8] <nsh_foreach_direntry+32> nsh_fsutils.c:474
                                             [0x0402b7c86] <cmd_top+562>        nsh_proccmds.c:1252
                                             [0x0402b2496] <nsh_command+70>     nsh_command.c:1262
                                             [0x0402ae9fc] <nsh_execute+60>     nsh_parse.c:717

 7   534         512     6095859 0x44c1e270  [0x0402a5ec0] <mm_zalloc+8>        mm_heap/mm_zalloc.c:45
                                             [0x0402a35ce] <zalloc+18>          umm_heap/umm_zalloc.c:70
                                             [0x0402b72d8] <top_callback+268>   nsh_proccmds.c:741
                                             [0x0402b57f8] <nsh_foreach_direntry+32> nsh_fsutils.c:474
                                             [0x0402b7c86] <cmd_top+562>        nsh_proccmds.c:1252
                                             [0x0402b2496] <nsh_command+70>     nsh_command.c:1262
                                             [0x0402ae9fc] <nsh_execute+60>     nsh_parse.c:717

Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2026-04-20 15:18:47 +08:00
openvela-robot 552570496c cjson_test:add define CONFIG_CJSON_NESTING_LIMIT
Summary:
 Added a limit to CJSON_NESTING_LIMIT. The default value is 1000, which can cause stack overflow in some test cases.

Signed-off-by: chenrun1 <chenrun1@xiaomi.com>
2026-04-20 15:18:46 +08:00
openvela-robot ce2bf03d31 net: Remove IFF_DOWN flag to compatible with Linux/*BSD
turn off interface by checking IFF_UP flag isn't set:
https://github.com/apache/nuttx/issues/1838

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2026-04-20 15:18:45 +08:00
openvela-robot 3a3a0906f6 examples/pipe: Enhance test by different r/w thread priority
By arranging and combining the priorities of read and write
threads to cover more usage scenarios.

Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2026-04-20 15:18:43 +08:00
openvela-robot 7be1dac276 tools/mksymtab.sh: Using getopts to parse parameters
Use the "-a" option to specify additional lists

Examples
  - The basic.txt
    $ cat basic.txt
    basic_func0
    basic_func1
    basic_func2

  - The additional.txt
    $ cat additional.txt
    additional_func0
    additional_func1
    additional_func2

  1. Get symbols from directory "EMPTY_DIR" and additional list basic.txt
    ./tools/mksymtab.sh ./EMPTY_DIR -a basic.txt
    #if defined(CONFIG_EXECFUNCS_HAVE_SYMTAB)
    const struct symtab_s CONFIG_EXECFUNCS_SYMTAB_ARRAY[] =
    #elif defined(CONFIG_NSH_SYMTAB)
    const struct symtab_s CONFIG_NSH_SYMTAB_ARRAYNAME[] =
    #else
    const struct symtab_s dummy_symtab[] =
    #endif
    {
      {"basic_func0", &basic_func0},
      {"basic_func1", &basic_func1},
      {"basic_func2", &basic_func2},
    };

  2. Get symbols from directory "EMPTY_DIR" and two additional lists basic.txt, additional.txt
    ./tools/mksymtab.sh ./EMPTY_DIR -a basic.txt -a additional.txt
    #if defined(CONFIG_EXECFUNCS_HAVE_SYMTAB)
    const struct symtab_s CONFIG_EXECFUNCS_SYMTAB_ARRAY[] =
    #elif defined(CONFIG_NSH_SYMTAB)
    const struct symtab_s CONFIG_NSH_SYMTAB_ARRAYNAME[] =
    #else
    const struct symtab_s dummy_symtab[] =
    #endif
    {
      {"additional_func0", &additional_func0},
      {"additional_func1", &additional_func1},
      {"additional_func2", &additional_func2},
      {"basic_func0", &basic_func0},
      {"basic_func1", &basic_func1},
      {"basic_func2", &basic_func2},
    };

  3. Set prefix and get symbols from directory "EMPTY_DIR" and two additional lists basic.txt, additional.txt
    ./tools/mksymtab.sh ./EMPTY_DIR PREFIX_TEST  -a basic.txt -a additional.txt
    const struct symtab_s PREFIX_TEST_exports[] =
    {
      {"additional_func0", &additional_func0},
      {"additional_func1", &additional_func1},
      {"additional_func2", &additional_func2},
      {"basic_func0", &basic_func0},
      {"basic_func1", &basic_func1},
      {"basic_func2", &basic_func2},
    };

  4. Error: Missing <imagedirpath>
    $ ./tools/mksymtab.sh
    ERROR: Missing <imagedirpath>

    Usage: ./tools/mksymtab.sh <imagedirpath> [symtabprefix] [-a additionalsymbolspath]

UNSUPPORTED usage examples
  # `getopt` supports these, but the usage in GNU and macOS is incompatible.
  - ./tools/mksymtab.sh ./EMPTY_DIR -a basic.txt PREFIX_TEST -a additional.txt
  - ./tools/mksymtab.sh -a basic.txt ./EMPTY_DIR PREFIX_TEST -a additional.txt

References
  BASH(1)   -- getopts
  GETOPT(1) -- getopt

Signed-off-by: wangjianyu3 <wangjianyu3@xiaomi.com>
2026-04-20 15:18:42 +08:00
openvela-robot a6daffa109 nxcodec: add rich debugging logs
Signed-off-by: shizhenghui <shizhenghui@xiaomi.com>
2026-04-20 15:18:41 +08:00
openvela-robot b2949ba2d4 nxcodec: fix build warning
nxcodec_main.c:143:37: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 2 has type ‘uint32_t’ {aka ‘unsigned int’} [-Wformat=]
  143 |             printf("nxcodec size: %lux%lu\n",
      |                                   ~~^
      |                                     |
      |                                     long unsigned int
      |                                   %u
  144 |                    codec.output.format.fmt.pix.width,
      |                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                               |
      |                                               uint32_t {aka unsigned int}
nxcodec_main.c:143:41: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘uint32_t’ {aka ‘unsigned int’} [-Wformat=]
  143 |             printf("nxcodec size: %lux%lu\n",
      |                                       ~~^
      |                                         |
      |                                         long unsigned int
      |                                       %u
  144 |                    codec.output.format.fmt.pix.width,
  145 |                    codec.output.format.fmt.pix.height);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                               |
      |                                               uint32_t {aka unsigned int}

Signed-off-by: shizhenghui <shizhenghui@xiaomi.com>
2026-04-20 15:18:40 +08:00
openvela-robot 8c632a5e3b nsh: Fix PS printing misalignment
When the stack is allocated in megabytes, printing seven bits of ps will not align

Signed-off-by: wangmingrong <wangmingrong@xiaomi.com>
2026-04-20 15:18:26 +08:00