X-AIOS-LT00-V1.0.4/sdk/X-AIOS-LT00/build/cmake
2026-01-19 17:23:53 +08:00
..
backports version:V1.0.4 2026-01-19 17:23:53 +08:00
toolchain version:V1.0.4 2026-01-19 17:23:53 +08:00
build.cmake version:V1.0.4 2026-01-19 17:23:53 +08:00
CMakeLists.txt version:V1.0.4 2026-01-19 17:23:53 +08:00
complexity.cmake version:V1.0.4 2026-01-19 17:23:53 +08:00
definition.cmake version:V1.0.4 2026-01-19 17:23:53 +08:00
extensions.cmake version:V1.0.4 2026-01-19 17:23:53 +08:00
include.cmake version:V1.0.4 2026-01-19 17:23:53 +08:00
kconfig.cmake version:V1.0.4 2026-01-19 17:23:53 +08:00
link.lds version:V1.0.4 2026-01-19 17:23:53 +08:00
options.cmake version:V1.0.4 2026-01-19 17:23:53 +08:00
python.cmake version:V1.0.4 2026-01-19 17:23:53 +08:00
readme.txt version:V1.0.4 2026-01-19 17:23:53 +08:00
top.cmake version:V1.0.4 2026-01-19 17:23:53 +08:00

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

【编译】
cd xos
source build/envsetup.sh
lunch   // 目前可以选择 2: Rtt SDK
然后
make menuconfig   // 可选操作
make xos -j8

【输出路径】
目前暂时把所有cmake的生产路径放在 xos/output (如需修改请修改build/envsetup.sh的lunch()函数)
会在output下生成xos.elf

【kconfig】
在顶层的build/Kconfig中可使用
source "xxx/Kconfig"
添加在某个路径下的Kconfig

【CMakeLists.txt中使用Kconfig】
可以使用例如:
if (DEFINED CONFIG_SDK_IS_MOLCHIP_FY00_RTT)

[C代码中使用Kconfig]
需要
#include "output/kconfig/include/generated/autoconf.h"