feat: Add Yocto build support for 32-bit and 64-bit architectures to examples, including new build scripts, CMake logic, and documentation.

This commit is contained in:
dian.yuan 2026-02-25 15:46:48 +08:00
parent 72e0647351
commit 9172f4f2f5
10 changed files with 900 additions and 36 deletions

View file

@ -43,7 +43,11 @@ if(CMAKE_SYSTEM_NAME STREQUAL "Android")
set(AMLNN_LIBRARY_DIR "${AMLNN_NNSDK_ROOT}/android/armeabi-v7a")
endif()
elseif(CMAKE_SYSTEM_NAME STREQUAL "Linux")
set(AMLNN_LIBRARY_DIR "${AMLNN_NNSDK_ROOT}/linux/yocto/aarch64-poky-linux")
if(DEFINED ARCH_BITS AND ARCH_BITS STREQUAL "32")
set(AMLNN_LIBRARY_DIR "${AMLNN_NNSDK_ROOT}/linux/yocto/arm-poky-linux")
else()
set(AMLNN_LIBRARY_DIR "${AMLNN_NNSDK_ROOT}/linux/yocto/aarch64-poky-linux")
endif()
else()
set(AMLNN_LIBRARY_DIR "${AMLNN_NNSDK_ROOT}/linux/yocto/aarch64-poky-linux")
endif()