summaryrefslogtreecommitdiffstats
path: root/recipes-bsp/starterware/starterware-rtos_git.bb
blob: 5e3535e9618f9564bb8b46633820c90153562deb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
require starterware.inc

DEPENDS = "gcc-arm-none-eabi-native ti-pdk-build-rtos ti-xdctools-native"

require recipes-ti/includes/ti-paths.inc

PR = "${INC_PR}.0"

PARTNO_ti33x = "am335x"
PARTNO_ti43x = "am437x"

export TOOLCHAIN_PATH_A8 = "${GCC_ARM_NONE_TOOLCHAIN}"
export TOOLCHAIN_PATH_A9 = "${GCC_ARM_NONE_TOOLCHAIN}"
export PDK_INSTALL_PATH = "${PDK_INSTALL_DIR}/packages"
export XDC_INSTALL_PATH = "${XDC_INSTALL_DIR}"

do_compile() {
    cd build
    ./release_${PARTNO}.sh
}

do_install() {
    install -d ${D}${PDK_INSTALL_DIR_RECIPE}/packages/ti/starterware
    find -name "*.tar" -exec tar xf {} --no-same-owner -C ${D}${PDK_INSTALL_DIR_RECIPE}/packages/ti/starterware \;
}

FILES_${PN} += "${PDK_INSTALL_DIR_RECIPE}/packages"

INHIBIT_PACKAGE_STRIP = "1"
INHIBIT_SYSROOT_STRIP = "1"
INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
INSANE_SKIP_${PN} = "arch staticdev file-rdeps"