summaryrefslogtreecommitdiffstats
path: root/meta-ti-bsp/recipes-ti/ti-rtos-bin/ti-rtos-metadata.bb
blob: be1ff013839bfba3b7f134ee7f968f03b2d671c2 (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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
LICENSE = "BSD-3-Clause"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/BSD-3-Clause;md5=550794465ba0ec5312d6919e203a55f9"

COMPATIBLE_MACHINE = "ti-soc"

PACKAGE_ARCH = "${MACHINE_ARCH}"

INHIBIT_DEFAULT_DEPS = "1"

inherit nopackages deploy

PLAT_SFX = ""
PLAT_SFX:j7 = "/j721e"
PLAT_SFX:j7200-evm = "/j7200"
PLAT_SFX:am65xx = "/am65xx"
PLAT_SFX:am64xx = "/am64x"

# Use weak assignment to set defaults to TI_RTOS_METADATA_* variables
TI_RTOS_METADATA_URI ?= "git://git.ti.com/git/processor-sdk/coresdk_rtos_releases.git"
TI_RTOS_METADATA_PROTOCOL ?= "https"
TI_RTOS_METADATA_SRCREV ?= "2ecbf45af64bc47806623cc5bf7ab493489acaf9"
TI_RTOS_METADATA_BRANCH ?= "master"
TI_RTOS_METADATA_DIR ?= "${PLAT_SFX}"
TI_RTOS_METADATA_FILE ?= "${S}${TI_RTOS_METADATA_DIR}/metadata.inc"
TI_RTOS_METADATA_FILE:am64xx ?= "${S}${TI_RTOS_METADATA_DIR}/mcusdk_metadata.inc"

PV = "1.0.0+git${SRCPV}"

S = "${WORKDIR}/git"

SRC_URI = "${TI_RTOS_METADATA_URI};branch=${TI_RTOS_METADATA_BRANCH};protocol=${TI_RTOS_METADATA_PROTOCOL}"
SRCREV = "${TI_RTOS_METADATA_SRCREV}"

do_configure[noexec] = "1"
do_compile[noexec] = "1"
do_install[noexec] = "1"

do_deploy () {
	:
}

do_deploy:k3 () {
	install -d ${DEPLOYDIR}
	install -m 0644 ${TI_RTOS_METADATA_FILE} ${DEPLOYDIR}/
}

addtask deploy before do_build after do_compile