Skip to content

Commit

Permalink
adla: VIM3L: add support for npu applications
Browse files Browse the repository at this point in the history
Signed-off-by: Reeve Huang <[email protected]>
Change-Id: I1b7c168e9b75f15360ac7953735617233c1ffa6d
  • Loading branch information
khadas-Naruto committed Jan 14, 2025
1 parent 8fcb587 commit 45515d9
Showing 1 changed file with 17 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

0 comments on commit 45515d9

Please sign in to comment.