Skip to content

Commit

Permalink
Merge pull request #4 from Naruto-China/yocto-kirkstone-202406-smarthome
Browse files Browse the repository at this point in the history
VIM3L: support overlay & npu applications
  • Loading branch information
numbqq authored Jan 14, 2025
2 parents 3228e9a + 45515d9 commit 3d04f7b
Show file tree
Hide file tree
Showing 16 changed files with 34 additions and 0 deletions.
17 changes: 17 additions & 0 deletions recipes-kernel/adla/npu-common.bb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,24 @@ FILES_SOLIBSDEV = ""

do_install() {
install -d ${D}/usr/include
install -d ${D}/usr/include/utils
install -d ${D}/usr/include/interface
install -d ${D}/usr/include/custom/ops
install -d ${D}/usr/include/internal
install -d ${D}/usr/include/ops
install -d ${D}/usr/include/post
install -d ${D}/usr/include/quantization
install -m 0644 -D ${S}/nnsdk/include/* ${D}/usr/include
find ${S}/../../../hardware/aml-5.4/amlogic/npu/nanoq/applib/ovxinc/include/ -type f -name 'vsi_nn*.h' -exec install -m 0644 {} ${D}/usr/include/ \;
find ${S}/../../../hardware/aml-5.4/amlogic/npu/nanoq/applib/ovxinc/include/utils/ -type f -exec install -m 0644 {} ${D}/usr/include/utils/ \;
find ${S}/../../../hardware/aml-5.4/amlogic/npu/nanoq/applib/ovxinc/include/custom/ -type f -exec bash -c 'install -m 0644 {} ${D}/usr/include/custom/$(echo {} | sed "s|^${S}/../../../hardware/aml-5.4/amlogic/npu/nanoq/applib/ovxinc/include/custom/||")' \;
find ${S}/../../../hardware/aml-5.4/amlogic/npu/nanoq/applib/ovxinc/include/internal/ -type f -exec install -m 0644 {} ${D}/usr/include/internal/ \;
find ${S}/../../../hardware/aml-5.4/amlogic/npu/nanoq/applib/ovxinc/include/interface/ -type f -exec install -m 0644 {} ${D}/usr/include/interface/ \;
find ${S}/../../../hardware/aml-5.4/amlogic/npu/nanoq/applib/ovxinc/include/ops/ -type f -exec install -m 0644 {} ${D}/usr/include/ops/ \;
find ${S}/../../../hardware/aml-5.4/amlogic/npu/nanoq/applib/ovxinc/include/post/ -type f -exec install -m 0644 {} ${D}/usr/include/post/ \;
find ${S}/../../../hardware/aml-5.4/amlogic/npu/nanoq/applib/ovxinc/include/quantization/ -type f -exec install -m 0644 {} ${D}/usr/include/quantization/ \;
find ${S}/../../../hardware/aml-5.4/amlogic/npu/nanoq/sdk/inc/VX/ -type d -exec bash -c 'mkdir -p ${D}/usr/include/VX/$(echo {} | sed "s|^${S}/../../../hardware/aml-5.4/amlogic/npu/nanoq/sdk/inc/VX/||")' \;
find ${S}/../../../hardware/aml-5.4/amlogic/npu/nanoq/sdk/inc/VX/ -type f -exec bash -c 'install -m 0644 {} ${D}/usr/include/VX/$(echo {} | sed "s|^${S}/../../../hardware/aml-5.4/amlogic/npu/nanoq/sdk/inc/VX/||")' \;

install -d ${D}/usr/lib
if [ "${HOST_ARCH}" = "aarch64" ]; then
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
fdt_overlays=
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
16 changes: 16 additions & 0 deletions recipes-khadas/khadas-custom/khadas-custom.bb
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,20 @@ SRC_URI = "\
file://overlays/vim3/uart3.dtbo \
file://overlays/vim3/watchdog.dtbo \
file://overlays/vim3/kvim3.dtb.overlay.env \
file://overlays/vim3l/4k2k_fb.dtbo \
file://overlays/vim3l/disable-i2c3.dtbo \
file://overlays/vim3l/disable-ts050.dtbo \
file://overlays/vim3l/i2s.dtbo \
file://overlays/vim3l/m2x-eth.dtbo \
file://overlays/vim3l/onewire.dtbo \
file://overlays/vim3l/os08a10.dtbo \
file://overlays/vim3l/otg-device.dtbo \
file://overlays/vim3l/panfrost.dtbo \
file://overlays/vim3l/pwm_f.dtbo \
file://overlays/vim3l/spi1.dtbo \
file://overlays/vim3l/uart3.dtbo \
file://overlays/vim3l/watchdog.dtbo \
file://overlays/vim3l/kvim3l.dtb.overlay.env \
file://overlays/vim1s/4k2k_fb.dtbo \
file://overlays/vim1s/i2cm_e.dtbo \
file://overlays/vim1s/i2s.dtbo \
Expand All @@ -61,6 +75,8 @@ do_install() {
DTB_PATH="kvim4.dtb.overlays"
elif [ "${BOARD_NAME}" = "vim3" ]; then
DTB_PATH="kvim3.dtb.overlays"
elif [ "${BOARD_NAME}" = "vim3l" ]; then
DTB_PATH="kvim3l.dtb.overlays"
elif [ "${BOARD_NAME}" = "vim1s" ]; then
DTB_PATH="kvim1s.dtb.overlays"
else
Expand Down

0 comments on commit 3d04f7b

Please sign in to comment.