arm7/8-m:support all nuttx iamge build with pic

Need to start up a new to setup special registers use
`arm_pic_setupxcp`.

Note that CONFIG_BUILD_PIC compiles the entire NuttX image
as position-independent(PIC), enable CONFIG_PIC to load PIC
application code.

Signed-off-by: anjiahao <anjiahao@xiaomi.com>
This commit is contained in:
anjiahao
2024-06-05 19:50:19 +08:00
committed by GUIDINGLI
parent 67cbd7491a
commit b81b16ba97
6 changed files with 39 additions and 6 deletions
+7
View File
@@ -329,6 +329,13 @@ config BUILD_KERNEL
endchoice # Build configuration
config BUILD_PIC
bool "NuttX PIC build"
default n
---help---
Builds NuttX with position-independent code (PIC). This will allow
load NuttX into memory at any address and run it.
config BUILD_2PASS
bool "Two pass build"
default n