summaryrefslogtreecommitdiffstats
path: root/recipes-bsp/edma3-lld
diff options
context:
space:
mode:
authorJacob Stiffler <j-stiffler@ti.com>2016-01-28 00:12:26 +0000
committerDenys Dmytriyenko <denys@ti.com>2016-01-27 15:57:06 -0500
commitcbe0d8c8fd42ff546756c89c330173b00efb5ad1 (patch)
treebf8359f94c71e5b1e3e1503dd4d9847b60372ff8 /recipes-bsp/edma3-lld
parent533dfb7d5738d0d0a253c290963eded29b08873d (diff)
downloadmeta-ti-cbe0d8c8fd42ff546756c89c330173b00efb5ad1.tar.gz
edma3-lld-rtos: Extend supported SOCs
* Extend support to ti33x and ti43x * Fix build for keystone Signed-off-by: Jacob Stiffler <j-stiffler@ti.com> Signed-off-by: Denys Dmytriyenko <denys@ti.com>
Diffstat (limited to 'recipes-bsp/edma3-lld')
-rw-r--r--recipes-bsp/edma3-lld/edma3-lld-rtos_git.bb69
1 files changed, 57 insertions, 12 deletions
diff --git a/recipes-bsp/edma3-lld/edma3-lld-rtos_git.bb b/recipes-bsp/edma3-lld/edma3-lld-rtos_git.bb
index 4ebfd16e..dc39fee3 100644
--- a/recipes-bsp/edma3-lld/edma3-lld-rtos_git.bb
+++ b/recipes-bsp/edma3-lld/edma3-lld-rtos_git.bb
@@ -4,12 +4,45 @@ require recipes-ti/includes/ti-staging.inc
4 4
5PR = "${INC_PR}.0" 5PR = "${INC_PR}.0"
6 6
7DEPENDS = "ti-cgt6x-native ti-sysbios ti-xdctools" 7DEPENDS = "ti-sysbios ti-xdctools"
8 8
9COMPATIBLE_MACHINE = "dra7xx|keystone" 9DEPENDS_append_keystone = " gcc-arm-none-eabi-native ti-cgt6x-native"
10DEPENDS_append_ti33x = " gcc-arm-none-eabi-native"
11DEPENDS_append_ti43x = " gcc-arm-none-eabi-native"
12DEPENDS_append_omap-a15 = " gcc-arm-none-eabi-native ti-ccsv6-native ti-cgt6x-native"
13
14COMPATIBLE_MACHINE = "ti33x|ti43x|omap-a15|keystone"
10PACKAGE_ARCH = "${MACHINE_ARCH}" 15PACKAGE_ARCH = "${MACHINE_ARCH}"
11 16
12PLATFORMLIST = "" 17PLATFORMLIST = ""
18TARGETLIST = ""
19
20PLATFORMLIST_ti33x = " \
21 am335x-evm \
22"
23
24TARGETLIST_ti33x = " \
25 a8 \
26"
27
28PLATFORMLIST_ti43x = " \
29 am437x-evm \
30"
31
32TARGETLIST_ti43x = " \
33 arm9 \
34"
35
36PLATFORMLIST_omap-a15 = " \
37 tda2xx-evm \
38"
39
40TARGETLIST_omap-a15 = " \
41 66 \
42 a15 \
43 m4 \
44"
45
13PLATFORMLIST_keystone = " \ 46PLATFORMLIST_keystone = " \
14 tci6636k2h-evm \ 47 tci6636k2h-evm \
15 tci6638k2k-evm \ 48 tci6638k2k-evm \
@@ -17,13 +50,13 @@ PLATFORMLIST_keystone = " \
17 c66ak2e-evm \ 50 c66ak2e-evm \
18" 51"
19 52
20PLATFORMLIST_dra7xx = " \ 53TARGETLIST_keystone = " \
21 tda2xx-evm \ 54 66 \
22 dra72x-evm \ 55 a15 \
23 am571x-evm \
24 am572x-evm \
25" 56"
26 57
58FORMAT="ELF"
59
27S = "${WORKDIR}/git" 60S = "${WORKDIR}/git"
28 61
29PARALLEL_MAKE = "" 62PARALLEL_MAKE = ""
@@ -44,10 +77,17 @@ export CROSSCC="${TARGET_PREFIX}gcc"
44export CROSSAR="${TARGET_PREFIX}ar" 77export CROSSAR="${TARGET_PREFIX}ar"
45export CROSSLNK="${TARGET_PREFIX}gcc" 78export CROSSLNK="${TARGET_PREFIX}gcc"
46 79
47
48EXTRA_OEMAKE += " -C ${S}/packages TARGET=66 FORMAT=ELF"
49
50do_configure () { 80do_configure () {
81 sed -i -e "s|_config.bld|config.bld|g" ${S}/makerules/env.mk
82 sed -i -e "s|^edma3_lld_PATH =.*$|edma3_lld_PATH = ${S}|g" ${S}/makerules/env.mk
83 sed -i -e "s|^CODEGEN_PATH_M3 =.*$|CODEGEN_PATH_M3 = ${M4_TOOLCHAIN_INSTALL_DIR}|g" ${S}/makerules/env.mk
84 sed -i -e "s|^CODEGEN_PATH_M4 =.*$|CODEGEN_PATH_M4 = ${M4_TOOLCHAIN_INSTALL_DIR}|g" ${S}/makerules/env.mk
85 sed -i -e "s|^CODEGEN_PATH_A8 =.*$|CODEGEN_PATH_A8 = ${M4_TOOLCHAIN_INSTALL_DIR}|g" ${S}/makerules/env.mk
86 sed -i -e "s|^CODEGEN_PATH_A8_GCC =.*$|CODEGEN_PATH_A8_GCC = ${GCC_ARM_NONE_TOOLCHAIN}|g" ${S}/makerules/env.mk
87 sed -i -e "s|^CODEGEN_PATH_ARM9 =.*$|CODEGEN_PATH_ARM9 = ${M4_TOOLCHAIN_INSTALL_DIR}|g" ${S}/makerules/env.mk
88 sed -i -e "s|^CODEGEN_PATH_A9_GCC =.*$|CODEGEN_PATH_A9_GCC = ${GCC_ARM_NONE_TOOLCHAIN}|g" ${S}/makerules/env.mk
89 sed -i -e "s|^CODEGEN_PATH_A15 =.*$|CODEGEN_PATH_A15 = ${GCC_ARM_NONE_TOOLCHAIN}|g" ${S}/makerules/env.mk
90 sed -i -e "s|^CODEGEN_PATH_A15_GCC =.*$|CODEGEN_PATH_A15_GCC = ${GCC_ARM_NONE_TOOLCHAIN}|g" ${S}/makerules/env.mk
51 sed -i -e "s|^UTILS_INSTALL_DIR =.*$|UTILS_INSTALL_DIR = ${XDC_INSTALL_DIR}|g" ${S}/makerules/env.mk 91 sed -i -e "s|^UTILS_INSTALL_DIR =.*$|UTILS_INSTALL_DIR = ${XDC_INSTALL_DIR}|g" ${S}/makerules/env.mk
52 sed -i -e "s|^bios_PATH =.*$|bios_PATH = ${SYSBIOS_INSTALL_DIR}|g" ${S}/makerules/env.mk 92 sed -i -e "s|^bios_PATH =.*$|bios_PATH = ${SYSBIOS_INSTALL_DIR}|g" ${S}/makerules/env.mk
53 sed -i -e "s|^xdc_PATH =.*$|xdc_PATH = ${XDC_INSTALL_DIR}|g" ${S}/makerules/env.mk 93 sed -i -e "s|^xdc_PATH =.*$|xdc_PATH = ${XDC_INSTALL_DIR}|g" ${S}/makerules/env.mk
@@ -59,10 +99,15 @@ do_configure () {
59} 99}
60 100
61do_compile () { 101do_compile () {
102 cd ${S}/packages
62 for p in ${PLATFORMLIST} 103 for p in ${PLATFORMLIST}
63 do 104 do
64 oe_runmake PLATFORM=${p} 105 for t in ${TARGETLIST}
106 do
107 make PLATFORM=${p} TARGET=${t} FORMAT=${FORMAT}
108 done
65 done 109 done
110 sourceipk_do_create_srcipk
66} 111}
67 112
68do_install () { 113do_install () {
@@ -70,7 +115,7 @@ do_install () {
70 cp -pPrf ${S}/* ${D}${EDMA3_LLD_INSTALL_DIR_RECIPE} 115 cp -pPrf ${S}/* ${D}${EDMA3_LLD_INSTALL_DIR_RECIPE}
71} 116}
72 117
73INSANE_SKIP_${PN}-dev = "arch" 118INSANE_SKIP_${PN}-dev = "arch ldflags"
74 119
75ALLOW_EMPTY_${PN} = "1" 120ALLOW_EMPTY_${PN} = "1"
76FILES_${PN}-dev += "${EDMA3_LLD_INSTALL_DIR_RECIPE}" 121FILES_${PN}-dev += "${EDMA3_LLD_INSTALL_DIR_RECIPE}"