From 20f3191aeb592dd889eeaf96a31526297de95306 Mon Sep 17 00:00:00 2001 From: Denys Dmytriyenko Date: Tue, 22 Feb 2022 04:13:45 +0000 Subject: meta-ti: create a sub-layer meta-ti-bsp from existing content Extra sub-layers will be created next and relevant content moved across them. Signed-off-by: Denys Dmytriyenko Signed-off-by: Ryan Eatmon --- meta-ti-bsp/recipes-bsp/dsptop/libulm_git.bb | 45 ++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 meta-ti-bsp/recipes-bsp/dsptop/libulm_git.bb (limited to 'meta-ti-bsp/recipes-bsp/dsptop/libulm_git.bb') diff --git a/meta-ti-bsp/recipes-bsp/dsptop/libulm_git.bb b/meta-ti-bsp/recipes-bsp/dsptop/libulm_git.bb new file mode 100644 index 00000000..f3e7ec3c --- /dev/null +++ b/meta-ti-bsp/recipes-bsp/dsptop/libulm_git.bb @@ -0,0 +1,45 @@ +SUMMARY = "TI Usage & Load Monitor Implementation" +LICENSE = "BSD" +LIC_FILES_CHKSUM = "file://../debian/copyright;md5=309825aa8f5edfcf2c44912ac094b979" + +inherit features_check + +REQUIRED_MACHINE_FEATURES = "dsp" + +DEPENDS = "ti-cgt6x-native" +PR = "${INC_PR}.0" + +S = "${WORKDIR}/git/dsptop/ulm" + +DEVICE="" +DEVICE:dra7xx = "DRA7xx" + +EXTRA_OEMAKE = "release DEVICE=${DEVICE} CROSS_COMPILE=${TARGET_PREFIX}" + +do_compile() { + oe_runmake arm XPORT_ONLY CC="${CC}" + oe_runmake dsp C6X_C_DIR=${STAGING_DIR_NATIVE}/usr/share/ti/cgt-c6x/include +} + +do_install() { + install -d ${D}${includedir} + install -d ${D}${libdir} + install -d ${D}${datadir}/ti/ulm + cp -f tiulm.h ${D}${includedir} + cp -f release/libtiulm.a ${D}${libdir} + cp -f tiulm.h ${D}${datadir}/ti/ulm + cp -f release/libtiulm.ae66 ${D}${datadir}/ti/ulm +} + +COMPATIBLE_MACHINE = "dra7xx" +PACKAGE_ARCH = "${MACHINE_ARCH}" + +FILES:${PN}-dev += "\ + ${datadir}/ti/ulm \ +" + +include dsptop.inc + +ALLOW_EMPTY:${PN} = "1" + +PARALLEL_MAKE= "" -- cgit v1.2.3-54-g00ecf