summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--recipes-bsp/mad-utils/mad-utils-rtos_git.bb57
1 files changed, 57 insertions, 0 deletions
diff --git a/recipes-bsp/mad-utils/mad-utils-rtos_git.bb b/recipes-bsp/mad-utils/mad-utils-rtos_git.bb
new file mode 100644
index 00000000..0144aad2
--- /dev/null
+++ b/recipes-bsp/mad-utils/mad-utils-rtos_git.bb
@@ -0,0 +1,57 @@
1SUMMARY = "Utility for loading and running multicore applications"
2DESCRIPTION = "Multicore Application Deployment (MAD) utility is used \
3for loading and running a multicore application on an embedded \
4processor with multiple cores. This utility package contains the \
5scripts to combine multiple applications for different cores into a \
6single binary as well as loadable application to parse and execute the applications on different cores."
7
8LICENSE = "BSD-3-Clause"
9LIC_FILES_CHKSUM = "file://README.txt;md5=44b2180aec0657f6b0e42e5611c0bafb"
10
11require recipes-ti/includes/ti-paths.inc
12
13DEPENDS = "ti-cgt6x-7-native"
14
15PACKAGE_ARCH = "${MACHINE_ARCH}"
16COMPATIBLE_MACHINE = "c66x"
17
18BRANCH = "master"
19SRC_URI = "git://git.ti.com/keystone-rtos/mad-utils.git;protocol=git;branch=${BRANCH}"
20SRCREV = "2458510f76eddfa837c2b83448965e233156944b"
21PR = "r0"
22
23S = "${WORKDIR}/git"
24
25export C6X_BASE_DIR="${TI_CGT6X_7_INSTALL_DIR}"
26PATH_prepend = "${TI_CGT6X_7_INSTALL_DIR}/bin:"
27
28DEVICE = ""
29DEVICE_c665x-evm = "C6657"
30DEVICE_c667x-evm = "C6678"
31
32ENDIAN = ""
33ENDIAN_c665x-evm = "little big"
34ENDIAN_c667x-evm = "little big"
35
36do_compile() {
37 cd mad-loader
38 for e in ${ENDIAN}
39 do
40 mkdir -p bin/${DEVICE}/${e}
41 make -C mal/malLib/build clean all DEVICE=${DEVICE} ENDIAN=${e} C_DIR=${C6X_BASE_DIR}
42 make -C mal/malApp/build clean all DEVICE=${DEVICE} ENDIAN=${e} C_DIR=${C6X_BASE_DIR}
43 cp mal/malApp/build/mal_app.exe bin/${DEVICE}/${e}
44 make -C nmlLoader/build clean all DEVICE=${DEVICE} ENDIAN=${e} C_DIR=${C6X_BASE_DIR}
45 cp nmlLoader/build/nml.exe bin/${DEVICE}/${e}
46 done
47 cd -
48}
49
50do_install() {
51 install -d ${D}${PDK_INSTALL_DIR_RECIPE}/packages/ti/boot/mad-utils
52 cp -rP --preserve=mode,links,timestamps --no-preserve=ownership * ${D}${PDK_INSTALL_DIR_RECIPE}/packages/ti/boot/mad-utils
53}
54
55FILES_${PN} += "${PDK_INSTALL_DIR_RECIPE}/packages/ti/boot/mad-utils"
56
57INSANE_SKIP_${PN} += "arch staticdev ldflags file-rdeps"