Fix inverted loop condition: while (g_exit) should be while (!g_exit),
causing the daemon to exit immediately instead of running.
Signed-off-by: fangpeina <fangpeina@xiaomi.com>
Replace individual Rust crate building with unified library approach through
makefile modifications for better build performance and dependency management.
* Updated Application.mk to include Rust.mk and add unified build targets
* Modified top-level Makefile to integrate RUST_BUILD_UNIFIED in build process
* Added RUST_CLEAN_UNIFIED call to Application.mk clean target
* Updated Makefile distclean target to remove rust_unified_lib directory
* Updated example Makefiles to use nuttx_add_rust registration function
* Removed manual EXTRA_LIBS configurations from Rust example Make.defs files
* Added .rdat registry files and rust_unified_lib to gitignore
* Enhanced tools/Rust.mk with unified build system functions
The unified system builds all registered Rust crates together through
makefile integration, improving compilation efficiency and enabling better
dependency management across the NuttX applications framework.
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
error: implicit declaration of function 'sched_lock'
error: implicit declaration of function 'sched_unlock'
Signed-off-by: v-tangmeng <v-tangmeng@xiaomi.com>
The commit 'add support for CONFIG_DISABLE_SIGNALS' led to:
undefined reference to `signal'
undefined reference to `sigaction'
Signed-off-by: v-tangmeng <v-tangmeng@xiaomi.com>
adc_main.c: In function 'main':
14:41:30 adc_main.c:310:22: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long unsigned int' [-Wformat=]
310 | printf("adc_main: read size=%ld is not a multiple of "
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
311 | "sample size=%d, Ignoring\n",
312 | (long)nbytes, sizeof(struct adc_msg_s));
| ~~~~~~~~~~~~~~~~~~~~~~~~
| |
| long unsigned int
adc_main.c:311:36: note: format string is defined here
311 | "sample size=%d, Ignoring\n",
| ~^
| |
| int
| %ld
Signed-off-by: v-tangmeng <v-tangmeng@xiaomi.com>
Renaming "modlib" to "libelf" is more in line with the implementation content,
which makes it easier for individual developers to understand the capabilities of this module.
CONFIG_LIBC_MODLIB -> CONFIG_LIBC_ELF
Signed-off-by: chao an <anchao.archer@bytedance.com>
This assertion should be removed because the POLLIN event is now only raised when there is data pending to be received. Previously, POLLIN was incorrectly set as soon as the connection was established, even when no data was available, which was not consistent with the expected behavior.
Signed-off-by: guanyi3 <guanyi3@xiaomi.com>
- Add unified Rust library generation tool (generate_rust_unified_lib.py)
- Refactor nuttx_add_rust.cmake to use unified library approach
- Support building multiple Rust crates as a single static library
- Add .config file generation support for unified library
- Update Rust examples to remove duplicate crate-type configuration
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
User can use this example to test the rpmsg char device,
and this demo can be compiled to Linux/Android too.
Signed-off-by: Bowen Wang <wangbowen6@xiaomi.com>
1. sotest build romfs
2. sotest generate symtab
sotest symtab need to keep `no-lto` when compling to
pass redefine check since we can't get the real function
declaration from elf.
Signed-off-by: pengyinjie <pengyinjie@xiaomi.com>
CC: mm_heap/mm_heapmember.c pty_test.c: In function 'pts_main':
pty_test.c:244:3: error: unknown type name 'pthread_t'
244 | pthread_t si_thread;
| ^~~~~~~~~
pty_test.c:245:3: error: unknown type name 'pthread_t'
245 | pthread_t so_thread;
| ^~~~~~~~~
pty_test.c:378:9: warning: implicit declaration of function 'pthread_create'; did you mean 'timer_create'? [-Wimplicit-function-declaration]
378 | ret = pthread_create(&si_thread, NULL,
| ^~~~~~~~~~~~~~
| timer_create
pty_test.c:379:25: error: 'pthread_startroutine_t' undeclared (first use in this function)
379 | (pthread_startroutine_t)serial_in,
| ^~~~~~~~~~~~~~~~~~~~~~
Signed-off-by: wangzhi16 <wangzhi16@xiaomi.com>
camera_bkgd.c: In function 'nximage_initialize':
camera_bkgd.c:226:3: error: unknown type name 'pthread_t'
226 | pthread_t thread;
| ^~~~~~~~~
Signed-off-by: wangzhi16 <wangzhi16@xiaomi.com>