Skip to content

Commit

Permalink
meta-meson: recipes-samples [2/2]
Browse files Browse the repository at this point in the history
PD#SWPL-168252

Problem:
Scripts are hard to maintain

Solution:
Migrate to aml-com

Verify:
local

Signed-off-by: tong.gao <[email protected]>
Change-Id: I3cda082c72ccc73be74f304d52c25d1e73fd1586
  • Loading branch information
tong.gao authored and gerrit autosubmit committed May 28, 2024
1 parent 177ee1c commit 37fa428
Show file tree
Hide file tree
Showing 58 changed files with 9 additions and 3,439 deletions.
1 change: 1 addition & 0 deletions conf/machine/include/amlogic_externalsrc.inc
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,7 @@ EXTERNALSRC:pn-mediactrlsrc = "${@'${MESON_ROOT_PATH}/aml-comp/vendor/amlogic/me
EXTERNALSRC:pn-aml-qt-rxpreview= "${@'${MESON_ROOT_PATH}/aml-comp/vendor/amlogic/linux_sample_app/aml-qt-rxpreview' if (os.path.isdir('${MESON_ROOT_PATH}/aml-comp/vendor/amlogic/linux_sample_app/aml-qt-rxpreview')) else ''}"
EXTERNALSRC:pn-aml-screencapture= "${@'${MESON_ROOT_PATH}/aml-comp/vendor/amlogic/linux_sample_app/aml-screencapture' if (os.path.isdir('${MESON_ROOT_PATH}/aml-comp/vendor/amlogic/linux_sample_app/aml-screencapture')) else ''}"
EXTERNALSRC:pn-aml-qt-camera= "${@'${MESON_ROOT_PATH}/aml-comp/vendor/amlogic/linux_sample_app/aml-qt-camera' if (os.path.isdir('${MESON_ROOT_PATH}/aml-comp/vendor/amlogic/linux_sample_app/aml-qt-camera')) else ''}"
EXTERNALSRC:pn-aml-test= "${@'${MESON_ROOT_PATH}/aml-comp/vendor/amlogic/linux_sample_app/aml-test' if (os.path.isdir('${MESON_ROOT_PATH}/aml-comp/vendor/amlogic/linux_sample_app/aml-test')) else ''}"
EXTERNALSRC:pn-web-ui-wifi= "${@'${MESON_ROOT_PATH}/aml-comp/vendor/amlogic/aml_commonlib/web-ui-wifi' if (os.path.isdir('${MESON_ROOT_PATH}/aml-comp/vendor/amlogic/aml_commonlib/web-ui-wifi')) else ''}"
EXTERNALSRC:pn-partition-enc-native = "${@'${MESON_ROOT_PATH}/aml-comp/vendor/amlogic/partition_enc' if (os.path.isdir('${MESON_ROOT_PATH}/aml-comp/vendor/amlogic/partition_enc')) else ''}"
EXTERNALSRC:pn-aml-appmanager = "${@'${MESON_ROOT_PATH}/aml-comp/vendor/amlogic/aml-appmanager' if (os.path.isdir('${MESON_ROOT_PATH}/aml-comp/vendor/amlogic/aml-appmanager')) else ''}"
Expand Down
21 changes: 8 additions & 13 deletions recipes-samples/aml-test/aml-test.bb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ DESCRIPTION = "Some scripts and file for nn test."
LICENSE = "AMLOGIC"
LIC_FILES_CHKSUM = "file://${COREBASE}/../meta-meson/license/AMLOGIC;md5=6c70138441c57c9e1edb9fde685bd3c8"

S = "${WORKDIR}"
S = "${WORKDIR}/git"
adla_driver_present = "${@bb.utils.contains('MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS', 'adla-driver', 'yes', 'no', d)}"
mipi_cam_sup = "${@bb.utils.contains('DISTRO_FEATURES', 'arm-isp', 'yes', 'no', d)}"
hdmi_rx_sup = "${@bb.utils.contains('DISTRO_FEATURES', 'mediactrlsrc-hdmi', 'yes', 'no', d)}"
Expand All @@ -16,26 +16,21 @@ do_install() {

#for adla platform
if [ "${adla_driver_present}" = "yes" ]; then
cp -rf ${THISDIR}/adla-nn-test ${D}/home/test
cp -rf ${S}/special-test/adla-nn-test ${D}/home/test
fi

#for hdmirx platform
#for mipi cam platform
if [ "${mipi_cam_sup}" = "yes" ]; then
cp -rf ${THISDIR}/mipi-camera-test ${D}/home/test
cp -rf ${S}/special-test/mipi-camera-test ${D}/home/test
fi

#for mipi cam platform
#for hdmirx platform
if [ "${hdmi_rx_sup}" = "yes" ]; then
cp -rf ${THISDIR}/hdmirx-test ${D}/home/test
cp -rf ${S}/special-test/hdmirx-test ${D}/home/test
fi

#for all amlbian and yocto
cp -rf ${THISDIR}/common ${D}/home/test
cp -rf ${THISDIR}/playback-test ${D}/home/test
cp -rf ${THISDIR}/screencapture-test ${D}/home/test
cp -rf ${THISDIR}/system ${D}/home/test
cp -rf ${THISDIR}/usb-camera-test ${D}/home/test
cp -rf ${THISDIR}/video-transcoding-test ${D}/home/test
#for all SOC supported test case
cp -rf ${S}/common-test/* ${D}/home/test

chmod -R 755 ${D}/home/test
}
Expand Down
32 changes: 0 additions & 32 deletions recipes-samples/aml-test/common/common-function

This file was deleted.

48 changes: 0 additions & 48 deletions recipes-samples/aml-test/hdmirx-test/hdmirx-burning.sh

This file was deleted.

58 changes: 0 additions & 58 deletions recipes-samples/aml-test/hdmirx-test/hdmirx-capture.sh

This file was deleted.

56 changes: 0 additions & 56 deletions recipes-samples/aml-test/hdmirx-test/hdmirx-preview-osdlayer.sh

This file was deleted.

49 changes: 0 additions & 49 deletions recipes-samples/aml-test/hdmirx-test/hdmirx-preview-videolayer.sh

This file was deleted.

69 changes: 0 additions & 69 deletions recipes-samples/aml-test/hdmirx-test/hdmirx-recorder.sh

This file was deleted.

Loading

0 comments on commit 37fa428

Please sign in to comment.