Skip to contentSkip to conversation

multiprocmgr-test: Add test c66x images, sources and scripts to package

PATCH In review Sam Nelson 2 participants 3 messages Feb 8, 2017 – Feb 9, 2017 Broadcom iproc Arm architecture

lore
Share & tools
lore

Sam Nelson

author
#0 lore raw

PATCH 1/1 multiprocmgr-test: Add test c66x images, sources and scripts to package

multiprocmgr-test installs source files, host binaries and associated
scripts (ti/examples/mpm/test)
multiprocmgr-rtos-test installs the C66x test images in the same directory structure.

Other updates include
- Use of oe_runmake instead of make
- Added runtime dependency of multiprocmgr-rtos-test & bash

---
 recipes-ti/multiprocmgr/multiprocmgr-rtos_git.bb | 24 +++++++++++++++++++-----
 recipes-ti/multiprocmgr/multiprocmgr-test_git.bb | 21 ++++++++++++++++-----
 2 files changed, 35 insertions(+), 10 deletions(-)
recipes-ti/multiprocmgr/multiprocmgr-rtos_git.bb +19 -5
index 061790b..c88f0d7 100644
@@ -6,22 +6,36 @@ require recipes-ti/multiprocmgr/multiprocmgr.inc
 
 DEPENDS = "ti-cgt6x-native"
 
-PR = "${INC_PR}.0"
+PR = "${INC_PR}.1"
 
-export LOCAL_SYSROOT="${STAGING_DIR_TARGET}"
-export C6X_GEN_INSTALL_PATH="${STAGING_DIR_NATIVE}/usr/share/ti/cgt-c6x"
+PACKAGES =+ "${PN}-test"
+FILES_${PN}-test = "${datadir}/ti/examples/mpm/test/filetestdemo/c66x/demo_loopback/build/bin/*.out \
+                    ${datadir}/ti/examples/mpm/test/sync_test/c66x/bin/*.out"
+
+EXTRA_OEMAKE = "LOCAL_SYSROOT="${STAGING_DIR_TARGET}" \
+                C6X_GEN_INSTALL_PATH="${STAGING_DIR_NATIVE}/usr/share/ti/cgt-c6x" \
+               "
 
 do_compile() {
-    make c66x
-    make test_c66x
+    oe_runmake c66x
+    oe_runmake test_c66x
 }
 
 do_install() {
     install -d ${D}${MPM_INSTALL_DIR_RECIPE}
     cp -pPrf ${S}/* ${D}${MPM_INSTALL_DIR_RECIPE}
+
+    # Copy C66x binaries
+    install -d ${D}${datadir}/ti/examples/mpm/test/filetestdemo/c66x/demo_loopback/build/bin
+    cp ${S}/test/filetestdemo/c66x/demo_loopback/build/bin/*.out \
+        ${D}${datadir}/ti/examples/mpm/test/filetestdemo/c66x/demo_loopback/build/bin/
+    install -d ${D}${datadir}/ti/examples/mpm/test/sync_test/c66x/bin
+    cp ${S}/test/sync_test/c66x/bin/*.out \
+        ${D}${datadir}/ti/examples/mpm/test/sync_test/c66x/bin/
 }
 
 FILES_${PN}-dev += "${MPM_INSTALL_DIR_RECIPE}"
 INSANE_SKIP_${PN}-dev = "arch"
+INSANE_SKIP_${PN}-test = "arch"
 
 ALLOW_EMPTY_${PN} = "1"
recipes-ti/multiprocmgr/multiprocmgr-test_git.bb +16 -5
index 7ec8796..f01d651 100644
@@ -2,22 +2,33 @@ DESCRIPTION = "TI Multiproc Manager test code"
 
 include multiprocmgr.inc
 
-PR = "${INC_PR}.1"
+PR = "${INC_PR}.2"
 
 DEPENDS = "multiprocmgr cmem"
 RDEPENDS_${PN} = "multiprocmgr mpm-transport cmem"
+RDEPENDS_${PN} += "multiprocmgr-rtos-test bash"
 
 CC += "-I${STAGING_KERNEL_DIR}/include"
 
 # Assuming the multiprocmgr kernel API is safe
 CC[vardepsexclude] = "STAGING_KERNEL_DIR"
 
+FILES_${PN} += "\
+    ${datadir}/ti/examples/mpm \
+"
+
+FILES_${PN}-dbg += "\
+    ${datadir}/ti/examples/mpm/*/.debug \
+"
+
 do_compile() {
-	make -C ${S} test
+	oe_runmake -C ${S} test
 }
 
 do_install() {
-	install -d ${D}${bindir}/
-	install -c -m 755 ${S}/test/filetestdemo/host/bin/demo_filetest ${D}${bindir}/mpm_demo_filetest
-	install -c -m 755 ${S}/test/sync_test/host/bin/sync_test ${D}${bindir}/mpm_sync_test
+	# Copy Sources and binary
+	install -d ${D}${datadir}/ti/examples/mpm/src
+	cp -r ${S}/src/mailbox ${D}${datadir}/ti/examples/mpm/src
+	cp -r ${S}/src/sync ${D}${datadir}/ti/examples/mpm/src
+	cp -r ${S}/test ${D}${datadir}/ti/examples/mpm
 }
Signature · 1 line
1.9.1
#1 lore raw

Sam,

Is this for krogoth or morty? Would be nice to specify in the subject...

Quoted 112 lines · Sam Nelson

multiprocmgr-test installs source files, host binaries and associated
scripts (ti/examples/mpm/test)
multiprocmgr-rtos-test installs the C66x test images in the same directory structure.

Other updates include
- Use of oe_runmake instead of make
- Added runtime dependency of multiprocmgr-rtos-test & bash

---
 recipes-ti/multiprocmgr/multiprocmgr-rtos_git.bb | 24 +++++++++++++++++++-----
 recipes-ti/multiprocmgr/multiprocmgr-test_git.bb | 21 ++++++++++++++++-----
 2 files changed, 35 insertions(+), 10 deletions(-)
recipes-ti/multiprocmgr/multiprocmgr-rtos_git.bb +19 -5
index 061790b..c88f0d7 100644
@@ -6,22 +6,36 @@ require recipes-ti/multiprocmgr/multiprocmgr.inc
 
 DEPENDS = "ti-cgt6x-native"
 
-PR = "${INC_PR}.0"
+PR = "${INC_PR}.1"
 
-export LOCAL_SYSROOT="${STAGING_DIR_TARGET}"
-export C6X_GEN_INSTALL_PATH="${STAGING_DIR_NATIVE}/usr/share/ti/cgt-c6x"
+PACKAGES =+ "${PN}-test"
+FILES_${PN}-test = "${datadir}/ti/examples/mpm/test/filetestdemo/c66x/demo_loopback/build/bin/*.out \
+                    ${datadir}/ti/examples/mpm/test/sync_test/c66x/bin/*.out"
+
+EXTRA_OEMAKE = "LOCAL_SYSROOT="${STAGING_DIR_TARGET}" \
+                C6X_GEN_INSTALL_PATH="${STAGING_DIR_NATIVE}/usr/share/ti/cgt-c6x" \
+               "
 
 do_compile() {
-    make c66x
-    make test_c66x
+    oe_runmake c66x
+    oe_runmake test_c66x
 }
 
 do_install() {
     install -d ${D}${MPM_INSTALL_DIR_RECIPE}
     cp -pPrf ${S}/* ${D}${MPM_INSTALL_DIR_RECIPE}
+
+    # Copy C66x binaries
+    install -d ${D}${datadir}/ti/examples/mpm/test/filetestdemo/c66x/demo_loopback/build/bin
+    cp ${S}/test/filetestdemo/c66x/demo_loopback/build/bin/*.out \
+        ${D}${datadir}/ti/examples/mpm/test/filetestdemo/c66x/demo_loopback/build/bin/
+    install -d ${D}${datadir}/ti/examples/mpm/test/sync_test/c66x/bin
+    cp ${S}/test/sync_test/c66x/bin/*.out \
+        ${D}${datadir}/ti/examples/mpm/test/sync_test/c66x/bin/
 }
 
 FILES_${PN}-dev += "${MPM_INSTALL_DIR_RECIPE}"
 INSANE_SKIP_${PN}-dev = "arch"
+INSANE_SKIP_${PN}-test = "arch"
 
 ALLOW_EMPTY_${PN} = "1"
recipes-ti/multiprocmgr/multiprocmgr-test_git.bb +16 -5
index 7ec8796..f01d651 100644
@@ -2,22 +2,33 @@ DESCRIPTION = "TI Multiproc Manager test code"
 
 include multiprocmgr.inc
 
-PR = "${INC_PR}.1"
+PR = "${INC_PR}.2"
 
 DEPENDS = "multiprocmgr cmem"
 RDEPENDS_${PN} = "multiprocmgr mpm-transport cmem"
+RDEPENDS_${PN} += "multiprocmgr-rtos-test bash"
 
 CC += "-I${STAGING_KERNEL_DIR}/include"
 
 # Assuming the multiprocmgr kernel API is safe
 CC[vardepsexclude] = "STAGING_KERNEL_DIR"
 
+FILES_${PN} += "\
+    ${datadir}/ti/examples/mpm \
+"
+
+FILES_${PN}-dbg += "\
+    ${datadir}/ti/examples/mpm/*/.debug \
+"
+
 do_compile() {
-	make -C ${S} test
+	oe_runmake -C ${S} test
 }
 
 do_install() {
-	install -d ${D}${bindir}/
-	install -c -m 755 ${S}/test/filetestdemo/host/bin/demo_filetest ${D}${bindir}/mpm_demo_filetest
-	install -c -m 755 ${S}/test/sync_test/host/bin/sync_test ${D}${bindir}/mpm_sync_test
+	# Copy Sources and binary
+	install -d ${D}${datadir}/ti/examples/mpm/src
+	cp -r ${S}/src/mailbox ${D}${datadir}/ti/examples/mpm/src
+	cp -r ${S}/src/sync ${D}${datadir}/ti/examples/mpm/src
+	cp -r ${S}/test ${D}${datadir}/ti/examples/mpm
 }
Signature · 7 lines
1.9.1

-- 
_______________________________________________
meta-ti mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti
#2 lore raw

It can go in both krogoth and morty. ( patches created using master) Sam

Quoted 139 lines

-----Original Message-----
From: Dmytriyenko, Denys
Sent: Thursday, February 09, 2017 1:15 PM
To: Nelson, Sam
Cc: [email protected]
Subject: Re: [meta-ti] [PATCH] multiprocmgr-test: Add test c66x images, sources and scripts to package

Sam,

Is this for krogoth or morty? Would be nice to specify in the subject...

Quoted 23 lines · Sam Nelson

multiprocmgr-test installs source files, host binaries and associated
scripts (ti/examples/mpm/test)
multiprocmgr-rtos-test installs the C66x test images in the same directory structure.

Other updates include
- Use of oe_runmake instead of make
- Added runtime dependency of multiprocmgr-rtos-test & bash

---
 recipes-ti/multiprocmgr/multiprocmgr-rtos_git.bb | 24
+++++++++++++++++++-----
recipes-ti/multiprocmgr/multiprocmgr-test_git.bb | 21
++++++++++++++++-----
 2 files changed, 35 insertions(+), 10 deletions(-)
recipes-ti/multiprocmgr/multiprocmgr-rtos_git.bb +0 -0
index 061790b..c88f0d7 100644

recipes-ti/multiprocmgr/multiprocmgr-rtos_git.bb require recipes-ti/multiprocmgr/multiprocmgr.inc · line 12

Quoted 8 lines
recipes-ti/multiprocmgr/multiprocmgr-rtos_git.bb +1 -3
@@ -6,22 +6,36 @@ require recipes-ti/multiprocmgr/multiprocmgr.inc
 
 DEPENDS = "ti-cgt6x-native"
 
-PR = "${INC_PR}.0"
+PR = "${INC_PR}.1"
 
-export LOCAL_SYSROOT="${STAGING_DIR_TARGET}"
-export

C6X_GEN_INSTALL_PATH="${STAGING_DIR_NATIVE}/usr/share/ti/cgt-c6x"

recipes-ti/multiprocmgr/multiprocmgr-rtos_git.bb require recipes-ti/multiprocmgr/multiprocmgr.inc · line 12

Quoted 2 lines
recipes-ti/multiprocmgr/multiprocmgr-rtos_git.bb +2 -0
+PACKAGES =+ "${PN}-test"
+FILES_${PN}-test =

"${datadir}/ti/examples/mpm/test/filetestdemo/c66x/demo_loopback/buil d/bin/*.out \

recipes-ti/multiprocmgr/multiprocmgr-rtos_git.bb require recipes-ti/multiprocmgr/multiprocmgr.inc · line 27

Quoted 4 lines
recipes-ti/multiprocmgr/multiprocmgr-rtos_git.bb +4 -0
+                    ${datadir}/ti/examples/mpm/test/sync_test/c66x/bin/*.out"
+
+EXTRA_OEMAKE = "LOCAL_SYSROOT="${STAGING_DIR_TARGET}" \
+

C6X_GEN_INSTALL_PATH="${STAGING_DIR_NATIVE}/usr/share/ti/cgt-c6x" \

Quoted 5 lines
recipes-ti/multiprocmgr/multiprocmgr-rtos_git.bb +1 -2
+               "
 
 do_compile() {
-    make c66x
-    make test_c66x

recipes-ti/multiprocmgr/multiprocmgr-rtos_git.bb require recipes-ti/multiprocmgr/multiprocmgr.inc

Quoted 10 lines
recipes-ti/multiprocmgr/multiprocmgr-rtos_git.bb +5 -0
+    oe_runmake c66x
+    oe_runmake test_c66x
 }
 
 do_install() {
     install -d ${D}${MPM_INSTALL_DIR_RECIPE}
     cp -pPrf ${S}/* ${D}${MPM_INSTALL_DIR_RECIPE}
+
+    # Copy C66x binaries
+    install -d

${D}${datadir}/ti/examples/mpm/test/filetestdemo/c66x/demo_loopback/b uild/bin

recipes-ti/multiprocmgr/multiprocmgr-rtos_git.bb require recipes-ti/multiprocmgr/multiprocmgr.inc · line 31

Quoted 2 lines
recipes-ti/multiprocmgr/multiprocmgr-rtos_git.bb +2 -0
+    cp ${S}/test/filetestdemo/c66x/demo_loopback/build/bin/*.out \
+

${D}${datadir}/ti/examples/mpm/test/filetestdemo/c66x/demo_loopback/b uild/bin/

Quoted 36 lines
recipes-ti/multiprocmgr/multiprocmgr-rtos_git.bb +4 -0
+    install -d ${D}${datadir}/ti/examples/mpm/test/sync_test/c66x/bin
+    cp ${S}/test/sync_test/c66x/bin/*.out \
+        ${D}${datadir}/ti/examples/mpm/test/sync_test/c66x/bin/
 }
 
 FILES_${PN}-dev += "${MPM_INSTALL_DIR_RECIPE}"
 INSANE_SKIP_${PN}-dev = "arch"
+INSANE_SKIP_${PN}-test = "arch"
 
 ALLOW_EMPTY_${PN} = "1"
recipes-ti/multiprocmgr/multiprocmgr-test_git.bb +2 -1
index 7ec8796..f01d651 100644
@@ -2,22 +2,33 @@ DESCRIPTION = "TI Multiproc Manager test code"
 
 include multiprocmgr.inc
 
-PR = "${INC_PR}.1"
+PR = "${INC_PR}.2"
 
 DEPENDS = "multiprocmgr cmem"
 RDEPENDS_${PN} = "multiprocmgr mpm-transport cmem"
+RDEPENDS_${PN} += "multiprocmgr-rtos-test bash"
 
 CC += "-I${STAGING_KERNEL_DIR}/include"
 
 # Assuming the multiprocmgr kernel API is safe  CC[vardepsexclude] =

"STAGING_KERNEL_DIR"

recipes-ti/multiprocmgr/multiprocmgr-test_git.bb +5 -0
+FILES_${PN} += "\
+    ${datadir}/ti/examples/mpm \
+"
+
+FILES_${PN}-dbg += "\

recipes-ti/multiprocmgr/multiprocmgr-test_git.bb DESCRIPTION = "TI Multiproc Manager test code"

Quoted 10 lines
recipes-ti/multiprocmgr/multiprocmgr-test_git.bb +3 -3
+    ${datadir}/ti/examples/mpm/*/.debug \ "
+
 do_compile() {
-	make -C ${S} test
+	oe_runmake -C ${S} test
 }
 
 do_install() {
-	install -d ${D}${bindir}/
-	install -c -m 755 ${S}/test/filetestdemo/host/bin/demo_filetest

${D}${bindir}/mpm_demo_filetest

recipes-ti/multiprocmgr/multiprocmgr-test_git.bb

Quoted 1 line
recipes-ti/multiprocmgr/multiprocmgr-test_git.bb +0 -1
-	install -c -m 755 ${S}/test/sync_test/host/bin/sync_test

${D}${bindir}/mpm_sync_test

Quoted 14 lines
recipes-ti/multiprocmgr/multiprocmgr-test_git.bb +5 -1
+	# Copy Sources and binary
+	install -d ${D}${datadir}/ti/examples/mpm/src
+	cp -r ${S}/src/mailbox ${D}${datadir}/ti/examples/mpm/src
+	cp -r ${S}/src/sync ${D}${datadir}/ti/examples/mpm/src
+	cp -r ${S}/test ${D}${datadir}/ti/examples/mpm
 }
--

1.9.1

--
_______________________________________________
meta-ti mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti