diff options
author | Jacob Stiffler <j-stiffler@ti.com> | 2016-01-28 00:12:26 +0000 |
---|---|---|
committer | Denys Dmytriyenko <denys@ti.com> | 2016-01-27 15:57:06 -0500 |
commit | cbe0d8c8fd42ff546756c89c330173b00efb5ad1 (patch) | |
tree | bf8359f94c71e5b1e3e1503dd4d9847b60372ff8 /recipes-bsp/edma3-lld | |
parent | 533dfb7d5738d0d0a253c290963eded29b08873d (diff) | |
download | meta-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.bb | 69 |
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 | ||
5 | PR = "${INC_PR}.0" | 5 | PR = "${INC_PR}.0" |
6 | 6 | ||
7 | DEPENDS = "ti-cgt6x-native ti-sysbios ti-xdctools" | 7 | DEPENDS = "ti-sysbios ti-xdctools" |
8 | 8 | ||
9 | COMPATIBLE_MACHINE = "dra7xx|keystone" | 9 | DEPENDS_append_keystone = " gcc-arm-none-eabi-native ti-cgt6x-native" |
10 | DEPENDS_append_ti33x = " gcc-arm-none-eabi-native" | ||
11 | DEPENDS_append_ti43x = " gcc-arm-none-eabi-native" | ||
12 | DEPENDS_append_omap-a15 = " gcc-arm-none-eabi-native ti-ccsv6-native ti-cgt6x-native" | ||
13 | |||
14 | COMPATIBLE_MACHINE = "ti33x|ti43x|omap-a15|keystone" | ||
10 | PACKAGE_ARCH = "${MACHINE_ARCH}" | 15 | PACKAGE_ARCH = "${MACHINE_ARCH}" |
11 | 16 | ||
12 | PLATFORMLIST = "" | 17 | PLATFORMLIST = "" |
18 | TARGETLIST = "" | ||
19 | |||
20 | PLATFORMLIST_ti33x = " \ | ||
21 | am335x-evm \ | ||
22 | " | ||
23 | |||
24 | TARGETLIST_ti33x = " \ | ||
25 | a8 \ | ||
26 | " | ||
27 | |||
28 | PLATFORMLIST_ti43x = " \ | ||
29 | am437x-evm \ | ||
30 | " | ||
31 | |||
32 | TARGETLIST_ti43x = " \ | ||
33 | arm9 \ | ||
34 | " | ||
35 | |||
36 | PLATFORMLIST_omap-a15 = " \ | ||
37 | tda2xx-evm \ | ||
38 | " | ||
39 | |||
40 | TARGETLIST_omap-a15 = " \ | ||
41 | 66 \ | ||
42 | a15 \ | ||
43 | m4 \ | ||
44 | " | ||
45 | |||
13 | PLATFORMLIST_keystone = " \ | 46 | PLATFORMLIST_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 | ||
20 | PLATFORMLIST_dra7xx = " \ | 53 | TARGETLIST_keystone = " \ |
21 | tda2xx-evm \ | 54 | 66 \ |
22 | dra72x-evm \ | 55 | a15 \ |
23 | am571x-evm \ | ||
24 | am572x-evm \ | ||
25 | " | 56 | " |
26 | 57 | ||
58 | FORMAT="ELF" | ||
59 | |||
27 | S = "${WORKDIR}/git" | 60 | S = "${WORKDIR}/git" |
28 | 61 | ||
29 | PARALLEL_MAKE = "" | 62 | PARALLEL_MAKE = "" |
@@ -44,10 +77,17 @@ export CROSSCC="${TARGET_PREFIX}gcc" | |||
44 | export CROSSAR="${TARGET_PREFIX}ar" | 77 | export CROSSAR="${TARGET_PREFIX}ar" |
45 | export CROSSLNK="${TARGET_PREFIX}gcc" | 78 | export CROSSLNK="${TARGET_PREFIX}gcc" |
46 | 79 | ||
47 | |||
48 | EXTRA_OEMAKE += " -C ${S}/packages TARGET=66 FORMAT=ELF" | ||
49 | |||
50 | do_configure () { | 80 | do_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 | ||
61 | do_compile () { | 101 | do_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 | ||
68 | do_install () { | 113 | do_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 | ||
73 | INSANE_SKIP_${PN}-dev = "arch" | 118 | INSANE_SKIP_${PN}-dev = "arch ldflags" |
74 | 119 | ||
75 | ALLOW_EMPTY_${PN} = "1" | 120 | ALLOW_EMPTY_${PN} = "1" |
76 | FILES_${PN}-dev += "${EDMA3_LLD_INSTALL_DIR_RECIPE}" | 121 | FILES_${PN}-dev += "${EDMA3_LLD_INSTALL_DIR_RECIPE}" |