summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarthik Ramanan <a0393906@ti.com>2017-10-31 22:36:54 +0000
committerDenys Dmytriyenko <denys@ti.com>2017-11-02 21:44:32 -0400
commitd164b905be6b5b0c6d66f063a202fe8e6c378228 (patch)
tree49bfad824edf3b8c18a5e55635594ed9977a19f8
parentb794fa8123093ed55d9b4bb2fcaa43784af70232 (diff)
downloadmeta-ti-d164b905be6b5b0c6d66f063a202fe8e6c378228.tar.gz
ti-ipc: Upgrade to 3.47
Sync changes with morty This patch is essentially a port from the meta-ti/morty commit = 0733c2299c3a5c47a5f5f0d8fa9a90835176294a Signed-off-by: Karthik Ramanan <a0393906@ti.com> Signed-off-by: Denys Dmytriyenko <denys@ti.com>
-rw-r--r--recipes-ti/ipc/ti-ipc-common.inc9
-rw-r--r--recipes-ti/ipc/ti-ipc-examples-linux_git.bb48
-rw-r--r--recipes-ti/ipc/ti-ipc-examples.inc31
-rw-r--r--recipes-ti/ipc/ti-ipc-examples_git.bb70
-rw-r--r--recipes-ti/ipc/ti-ipc-rtos.inc26
-rw-r--r--recipes-ti/ipc/ti-ipc.inc6
6 files changed, 122 insertions, 68 deletions
diff --git a/recipes-ti/ipc/ti-ipc-common.inc b/recipes-ti/ipc/ti-ipc-common.inc
index 6aa08c53..2fb7ffbc 100644
--- a/recipes-ti/ipc/ti-ipc-common.inc
+++ b/recipes-ti/ipc/ti-ipc-common.inc
@@ -1,4 +1,4 @@
1PV = "3.45.00.00" 1PV = "3.47.00.00"
2INC_PR = "r0" 2INC_PR = "r0"
3 3
4PACKAGE_ARCH = "${MACHINE_ARCH}" 4PACKAGE_ARCH = "${MACHINE_ARCH}"
@@ -6,9 +6,12 @@ PACKAGE_ARCH = "${MACHINE_ARCH}"
6PLATFORM = "UNKNOWN" 6PLATFORM = "UNKNOWN"
7PLATFORM_omap5-evm = "OMAP54XX" 7PLATFORM_omap5-evm = "OMAP54XX"
8PLATFORM_dra7xx = "DRA7XX" 8PLATFORM_dra7xx = "DRA7XX"
9PLATFORM_k2hk-evm = "TCI6638" 9PLATFORM_k2hk = "TCI6638"
10PLATFORM_k2l-evm = "TCI6630" 10PLATFORM_k2l-evm = "TCI6630"
11PLATFORM_k2e = "66AK2E" 11PLATFORM_k2e = "66AK2E"
12PLATFORM_k2g = "66AK2G" 12PLATFORM_k2g = "66AK2G"
13PLATFORM_omapl138 = "OMAPL138"
14PLATFORM_c667x-evm = "C6678"
15PLATFORM_c665x-evm = "C6678"
13 16
14ALT_PLATFORM_k2hk-evm = "TCI6636" 17ALT_PLATFORM_k2hk = "TCI6636"
diff --git a/recipes-ti/ipc/ti-ipc-examples-linux_git.bb b/recipes-ti/ipc/ti-ipc-examples-linux_git.bb
new file mode 100644
index 00000000..2340206c
--- /dev/null
+++ b/recipes-ti/ipc/ti-ipc-examples-linux_git.bb
@@ -0,0 +1,48 @@
1DESCRIPTION = "TI Inter Process Communication (IPC) examples with Host running bios"
2require ti-ipc-examples.inc
3
4DEPENDS = "ti-ipc ti-xdctools ti-sysbios ti-ipc-rtos"
5
6do_compile_append() {
7
8 if [ "${PLATFORM}" != "UNKNOWN" ]; then
9 oe_runmake extract HOSTOS="linux" IPC_INSTALL_DIR="${IPC_INSTALL_DIR}"
10
11 if [ ! -z ${ALT_PLATFORM} ]; then
12 oe_runmake extract PLATFORM="${ALT_PLATFORM}" HOSTOS="linux" \
13 IPC_INSTALL_DIR="${IPC_INSTALL_DIR}"
14 fi
15 oe_runmake -C examples all HOSTOS="linux" \
16 LINUX_SYSROOT_DIR="${STAGING_INCDIR}" \
17 IPC_INSTALL_DIR="${IPC_INSTALL_DIR}"
18
19 if [ ! -z ${ALT_PLATFORM} ]; then
20 oe_runmake -C examples all HOSTOS="linux" \
21 LINUX_SYSROOT_DIR="${STAGING_INCDIR}" \
22 IPC_INSTALL_DIR="${IPC_INSTALL_DIR}" \
23 PLATFORM="${ALT_PLATFORM}"
24 fi
25 fi
26}
27
28do_install_append() {
29 cd ${S_ipc-examples}/src
30 IPC_VERSION=`echo ${PV}${RELEASE_SUFFIX} | sed -e 's|\.|_|g'`
31
32 if [ "${PLATFORM}" != "UNKNOWN" ]; then
33 # Install directory for linux examples
34 install -d ${D}${bindir}/ipc/examples
35 oe_runmake -C examples install IPC_INSTALL_DIR="${IPC_INSTALL_DIR}" \
36 LINUX_SYSROOT_DIR="${STAGING_INCDIR}" \
37 HOSTOS="linux" EXEC_DIR="${D}/${bindir}/ipc/examples"
38
39 if [ ! -z ${ALT_PLATFORM} ]; then
40 oe_runmake -C examples install IPC_INSTALL_DIR="${IPC_INSTALL_DIR}" \
41 LINUX_SYSROOT_DIR="${STAGING_INCDIR}" \
42 HOSTOS="linux" EXEC_DIR="${D}/${bindir}/ipc/examples" \
43 PLATFORM="${ALT_PLATFORM}"
44 fi
45 fi
46}
47
48FILES_${PN} += "${bindir}/*"
diff --git a/recipes-ti/ipc/ti-ipc-examples.inc b/recipes-ti/ipc/ti-ipc-examples.inc
new file mode 100644
index 00000000..c9fe2cbc
--- /dev/null
+++ b/recipes-ti/ipc/ti-ipc-examples.inc
@@ -0,0 +1,31 @@
1HOMEPAGE = "http://processors.wiki.ti.com/index.php/Category:IPC"
2require ti-ipc-common.inc
3require ti-ipc-rtos.inc
4
5LICENSE = "BSD"
6LIC_FILES_CHKSUM = "file://${S_ipc-examples}/src/makefile;beginline=1;endline=30;md5=fb83580b16bce88e8ed568a6005c8f02"
7
8INSANE_SKIP_${PN} += "arch"
9
10ALLOW_EMPTY_${PN} = "1"
11
12IPC_INSTALL_DIR = "${STAGING_DIR_TARGET}/usr/share/ti/ti-ipc-tree"
13
14do_compile() {
15
16 cd ${S_ipc-examples}/src
17 oe_runmake .examples \
18 IPCTOOLS="${S_ipc-metadata}/src/etc"
19
20 if [ ! -z ${ALT_PLATFORM} ]; then
21 oe_runmake .examples "PLATFORM=${ALT_PLATFORM}" \
22 IPCTOOLS="${S_ipc-metadata}/src/etc"
23 fi
24}
25
26do_install() {
27 cd ${S_ipc-examples}/src
28 IPC_VERSION=`echo ${PV}${RELEASE_SUFFIX} | sed -e 's|\.|_|g'`
29}
30
31INHIBIT_PACKAGE_STRIP = "1"
diff --git a/recipes-ti/ipc/ti-ipc-examples_git.bb b/recipes-ti/ipc/ti-ipc-examples_git.bb
index 019bffac..5482ce41 100644
--- a/recipes-ti/ipc/ti-ipc-examples_git.bb
+++ b/recipes-ti/ipc/ti-ipc-examples_git.bb
@@ -1,83 +1,41 @@
1DESCRIPTION = "TI Inter Process Communication (IPC) examples" 1DESCRIPTION = "TI Inter Process Communication (IPC) examples with Host running linux"
2HOMEPAGE="http://processors.wiki.ti.com/index.php/Category:IPC" 2require ti-ipc-examples.inc
3require ti-ipc-common.inc
4require ti-ipc-rtos.inc
5 3
6LICENSE = "BSD" 4DEPENDS = "ti-xdctools ti-sysbios ti-ipc-rtos"
7LIC_FILES_CHKSUM = "file://${S_ipc-examples}/src/makefile;beginline=1;endline=30;md5=fb83580b16bce88e8ed568a6005c8f02"
8 5
9DEPENDS = "ti-ipc ti-xdctools ti-sysbios ti-ipc-rtos" 6do_compile_append() {
10 7
11INSANE_SKIP_${PN} += "arch"
12
13ALLOW_EMPTY_${PN} = "1"
14
15IPC_INSTALL_DIR="${STAGING_DIR_TARGET}/usr/share/ti/ti-ipc-tree"
16
17do_compile() {
18
19 cd ${S_ipc-examples}/src
20 oe_runmake .examples \
21 IPCTOOLS="${S_ipc-metadata}/src/etc"
22
23 if [ ! -z ${ALT_PLATFORM} ]; then
24 oe_runmake .examples "PLATFORM=${ALT_PLATFORM}" \
25 IPCTOOLS="${S_ipc-metadata}/src/etc"
26 echo test
27 fi
28 if [ "${PLATFORM}" != "UNKNOWN" ]; then 8 if [ "${PLATFORM}" != "UNKNOWN" ]; then
29 oe_runmake extract HOSTOS="bios" IPC_INSTALL_DIR="${IPC_INSTALL_DIR}" 9 oe_runmake extract HOSTOS="bios" IPC_INSTALL_DIR="${IPC_INSTALL_DIR}"
30 oe_runmake extract HOSTOS="linux" IPC_INSTALL_DIR="${IPC_INSTALL_DIR}"
31 10
32 if [ ! -z ${ALT_PLATFORM} ]; then 11 if [ ! -z ${ALT_PLATFORM} ]; then
33 oe_runmake extract PLATFORM="${ALT_PLATFORM}" HOSTOS="bios" \ 12 oe_runmake extract PLATFORM="${ALT_PLATFORM}" HOSTOS="bios" \
34 IPC_INSTALL_DIR="${IPC_INSTALL_DIR}" 13 IPC_INSTALL_DIR="${IPC_INSTALL_DIR}"
35 oe_runmake extract PLATFORM="${ALT_PLATFORM}" HOSTOS="linux" \
36 IPC_INSTALL_DIR="${IPC_INSTALL_DIR}"
37 fi 14 fi
38 oe_runmake -C examples all HOSTOS="bios" \ 15 oe_runmake -C examples all HOSTOS="bios" \
39 IPC_INSTALL_DIR="${IPC_INSTALL_DIR}" 16 IPC_INSTALL_DIR="${IPC_INSTALL_DIR}"
40 oe_runmake -C examples all HOSTOS="linux" \
41 LINUX_SYSROOT_DIR="${STAGING_INCDIR}" \
42 IPC_INSTALL_DIR="${IPC_INSTALL_DIR}"
43 if [ ! -z ${ALT_PLATFORM} ]; then 17 if [ ! -z ${ALT_PLATFORM} ]; then
44 oe_runmake -C examples all HOSTOS="bios" \ 18 oe_runmake -C examples all HOSTOS="bios" \
45 IPC_INSTALL_DIR="${IPC_INSTALL_DIR}" PLATFORM="${ALT_PLATFORM}" 19 IPC_INSTALL_DIR="${IPC_INSTALL_DIR}" PLATFORM="${ALT_PLATFORM}"
46 oe_runmake -C examples all HOSTOS="linux" \
47 LINUX_SYSROOT_DIR="${STAGING_INCDIR}" \
48 IPC_INSTALL_DIR="${IPC_INSTALL_DIR}" \
49 PLATFORM="${ALT_PLATFORM}"
50 echo testing
51 fi 20 fi
52 fi 21 fi
53} 22}
54 23
55do_install() { 24do_install_append() {
56 cd ${S_ipc-examples}/src
57 IPC_VERSION=`echo ${PV}${RELEASE_SUFFIX} | sed -e 's|\.|_|g'`
58
59 install -d ${D}/ipc_${IPC_VERSION}/examples
60 if [ "${PLATFORM}" != "UNKNOWN" ]; then 25 if [ "${PLATFORM}" != "UNKNOWN" ]; then
26 # Install directory for bios examples
27 install -d ${D}/ipc_${IPC_VERSION}/examples/bios
61 oe_runmake -C examples install IPC_INSTALL_DIR="${IPC_INSTALL_DIR}" \ 28 oe_runmake -C examples install IPC_INSTALL_DIR="${IPC_INSTALL_DIR}" \
62 HOSTOS="bios" EXEC_DIR="${D}/ipc_${IPC_VERSION}/examples" 29 HOSTOS="bios" EXEC_DIR="${D}/ipc_${IPC_VERSION}/examples/bios"
63 oe_runmake -C examples install_rov IPC_INSTALL_DIR="${IPC_INSTALL_DIR}" \ 30 oe_runmake -C examples install_rov IPC_INSTALL_DIR="${IPC_INSTALL_DIR}" \
64 HOSTOS="bios" EXEC_DIR="${D}/ipc_${IPC_VERSION}/examples" 31 HOSTOS="bios" EXEC_DIR="${D}/ipc_${IPC_VERSION}/examples/bios"
65
66 oe_runmake -C examples install IPC_INSTALL_DIR="${IPC_INSTALL_DIR}" \
67 LINUX_SYSROOT_DIR="${STAGING_INCDIR}" \
68 HOSTOS="linux" EXEC_DIR="${D}/ipc_${IPC_VERSION}/examples"
69 32
70 if [ ! -z ${ALT_PLATFORM} ]; then 33 if [ ! -z ${ALT_PLATFORM} ]; then
71 oe_runmake -C examples install IPC_INSTALL_DIR="${IPC_INSTALL_DIR}" \ 34 oe_runmake -C examples install IPC_INSTALL_DIR="${IPC_INSTALL_DIR}" \
72 HOSTOS="bios" EXEC_DIR="${D}/ipc_${IPC_VERSION}/examples" \ 35 HOSTOS="bios" EXEC_DIR="${D}/ipc_${IPC_VERSION}/examples/bios" \
73 PLATFORM="${ALT_PLATFORM}" 36 PLATFORM="${ALT_PLATFORM}"
74 oe_runmake -C examples install_rov IPC_INSTALL_DIR="${IPC_INSTALL_DIR}" \ 37 oe_runmake -C examples install_rov IPC_INSTALL_DIR="${IPC_INSTALL_DIR}" \
75 HOSTOS="bios" EXEC_DIR="${D}/ipc_${IPC_VERSION}/examples" \ 38 HOSTOS="bios" EXEC_DIR="${D}/ipc_${IPC_VERSION}/examples/bios" \
76 PLATFORM="${ALT_PLATFORM}"
77
78 oe_runmake -C examples install IPC_INSTALL_DIR="${IPC_INSTALL_DIR}" \
79 LINUX_SYSROOT_DIR="${STAGING_INCDIR}" \
80 HOSTOS="linux" EXEC_DIR="${D}/ipc_${IPC_VERSION}/examples" \
81 PLATFORM="${ALT_PLATFORM}" 39 PLATFORM="${ALT_PLATFORM}"
82 fi 40 fi
83 fi 41 fi
diff --git a/recipes-ti/ipc/ti-ipc-rtos.inc b/recipes-ti/ipc/ti-ipc-rtos.inc
index 696a8971..57cd1325 100644
--- a/recipes-ti/ipc/ti-ipc-rtos.inc
+++ b/recipes-ti/ipc/ti-ipc-rtos.inc
@@ -1,5 +1,4 @@
1require recipes-ti/includes/ti-paths.inc 1require recipes-ti/includes/ti-paths.inc
2require recipes-ti/includes/ti-staging.inc
3 2
4TI_IPC_EXAMPLES_GIT_URI = "git://git.ti.com/ipc/ipc-examples.git" 3TI_IPC_EXAMPLES_GIT_URI = "git://git.ti.com/ipc/ipc-examples.git"
5TI_IPC_EXAMPLES_DEST_SUFFIX = "git/ipc-examples" 4TI_IPC_EXAMPLES_DEST_SUFFIX = "git/ipc-examples"
@@ -25,11 +24,11 @@ protocol=${TI_IPC_METADATA_GIT_PROTOCOL};\
25branch=${TI_IPC_METADATA_GIT_BRANCH};\ 24branch=${TI_IPC_METADATA_GIT_BRANCH};\
26name=${TI_IPC_METADATA_NAME}" 25name=${TI_IPC_METADATA_NAME}"
27 26
28# Corresponds to tag: 3.45.00.00 27# Corresponds to tag: 3.47.00.00
29SRCREV_ipc-examples = "3a8ee1841ec36117a9bcd3d45bb2781bbd53ecf8" 28SRCREV_ipc-examples = "e71b82187a324faa9394b83e39495be38255f05b"
30 29
31# Corresponds to tag: 3.45.00.00 30# Corresponds to tag: 3.47.00.00
32SRCREV_ipc-metadata = "30b83f09be1877f86b22c971d978cb478fc7dd6e" 31SRCREV_ipc-metadata = "f026a364d0b9c1aba5c695bf0aac0be8ede95f59"
33 32
34S_ipc-examples = "${WORKDIR}/git/ipc-examples" 33S_ipc-examples = "${WORKDIR}/git/ipc-examples"
35S_ipc-metadata = "${WORKDIR}/git/ipc-metadata" 34S_ipc-metadata = "${WORKDIR}/git/ipc-metadata"
@@ -37,7 +36,7 @@ S_ipc-metadata = "${WORKDIR}/git/ipc-metadata"
37RELEASE_TYPE = "GA" 36RELEASE_TYPE = "GA"
38RELEASE_SUFFIX = "" 37RELEASE_SUFFIX = ""
39 38
40PR = "${INC_PR}.3" 39PR = "${INC_PR}.r2"
41 40
42DEPENDS_append_keystone = " ti-cgt6x-native \ 41DEPENDS_append_keystone = " ti-cgt6x-native \
43 gcc-arm-none-eabi-native \ 42 gcc-arm-none-eabi-native \
@@ -46,7 +45,13 @@ DEPENDS_append_omap-a15 = " ti-cgt6x-native \
46 ti-cgt-arm-native \ 45 ti-cgt-arm-native \
47 gcc-arm-none-eabi-native \ 46 gcc-arm-none-eabi-native \
48" 47"
48DEPENDS_append_omapl138 = " ti-cgt6x-native \
49"
50DEPENDS_append_c66x = " ti-cgt6x-native \
51"
52
49IPC_TARGETS = "" 53IPC_TARGETS = ""
54
50IPC_TARGETS_omap-a15 = "\ 55IPC_TARGETS_omap-a15 = "\
51 gnu.targets.arm.A15F="${GCC_ARM_NONE_TOOLCHAIN}" \ 56 gnu.targets.arm.A15F="${GCC_ARM_NONE_TOOLCHAIN}" \
52 ti.targets.elf.C66="${STAGING_DIR_NATIVE}/usr/share/ti/cgt-c6x" \ 57 ti.targets.elf.C66="${STAGING_DIR_NATIVE}/usr/share/ti/cgt-c6x" \
@@ -54,11 +59,19 @@ IPC_TARGETS_omap-a15 = "\
54 ti.targets.arm.elf.M4="${M4_TOOLCHAIN_INSTALL_DIR}" \ 59 ti.targets.arm.elf.M4="${M4_TOOLCHAIN_INSTALL_DIR}" \
55" 60"
56 61
62IPC_TARGETS_omapl138 = "\
63 ti.targets.elf.C674="${STAGING_DIR_NATIVE}/usr/share/ti/cgt-c6x" \
64"
65
57IPC_TARGETS_keystone = " \ 66IPC_TARGETS_keystone = " \
58 gnu.targets.arm.A15F="${GCC_ARM_NONE_TOOLCHAIN}" \ 67 gnu.targets.arm.A15F="${GCC_ARM_NONE_TOOLCHAIN}" \
59 ti.targets.elf.C66="${STAGING_DIR_NATIVE}/usr/share/ti/cgt-c6x" \ 68 ti.targets.elf.C66="${STAGING_DIR_NATIVE}/usr/share/ti/cgt-c6x" \
60 ti.targets.elf.C66_big_endian="${STAGING_DIR_NATIVE}/usr/share/ti/cgt-c6x" \ 69 ti.targets.elf.C66_big_endian="${STAGING_DIR_NATIVE}/usr/share/ti/cgt-c6x" \
61" 70"
71IPC_TARGETS_c66x = " \
72 ti.targets.elf.C66="${STAGING_DIR_NATIVE}/usr/share/ti/cgt-c6x" \
73 ti.targets.elf.C66_big_endian="${STAGING_DIR_NATIVE}/usr/share/ti/cgt-c6x" \
74"
62 75
63EXTRA_OEMAKE = "\ 76EXTRA_OEMAKE = "\
64 PLATFORM=${PLATFORM} \ 77 PLATFORM=${PLATFORM} \
@@ -66,4 +79,5 @@ EXTRA_OEMAKE = "\
66 BIOS_INSTALL_DIR="${SYSBIOS_INSTALL_DIR}" \ 79 BIOS_INSTALL_DIR="${SYSBIOS_INSTALL_DIR}" \
67 ${IPC_TARGETS} \ 80 ${IPC_TARGETS} \
68 JOBS="--jobs=${BB_NUMBER_THREADS}" \ 81 JOBS="--jobs=${BB_NUMBER_THREADS}" \
82 JAVA_TOOL_OPTIONS=-Xss2560k \
69" 83"
diff --git a/recipes-ti/ipc/ti-ipc.inc b/recipes-ti/ipc/ti-ipc.inc
index ea256d24..02f3c8d3 100644
--- a/recipes-ti/ipc/ti-ipc.inc
+++ b/recipes-ti/ipc/ti-ipc.inc
@@ -6,10 +6,10 @@ LIC_FILES_CHKSUM = "file://${S}/ipc-linux.mak;beginline=1;endline=30;md5=7b327f9
6 6
7TI_IPC_GIT_URI = "git://git.ti.com/ipc/ipcdev.git" 7TI_IPC_GIT_URI = "git://git.ti.com/ipc/ipcdev.git"
8TI_IPC_GIT_PROTOCOL = "git" 8TI_IPC_GIT_PROTOCOL = "git"
9TI_IPC_GIT_BRANCH = "master" 9TI_IPC_GIT_BRANCH = "3.47"
10 10
11#Corresponds to 3.45.00.00 11#Corresponds to 3.47.00.00
12TI_IPC_SRCREV = "1584985938884bf6cb1d839779578354b1865ea4" 12TI_IPC_SRCREV = "e576990e3a220ad394b287588c1c7e85e8644d23"
13 13
14BRANCH = "${TI_IPC_GIT_BRANCH}" 14BRANCH = "${TI_IPC_GIT_BRANCH}"
15SRC_URI = "${TI_IPC_GIT_URI};protocol=${TI_IPC_GIT_PROTOCOL};branch=${BRANCH};name=ipcdev" 15SRC_URI = "${TI_IPC_GIT_URI};protocol=${TI_IPC_GIT_PROTOCOL};branch=${BRANCH};name=ipcdev"