diff options
Diffstat (limited to 'recipes-bsp/cm3-pm-firmware/am33x-cm3_git.bb')
-rw-r--r-- | recipes-bsp/cm3-pm-firmware/am33x-cm3_git.bb | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/recipes-bsp/cm3-pm-firmware/am33x-cm3_git.bb b/recipes-bsp/cm3-pm-firmware/am33x-cm3_git.bb new file mode 100644 index 00000000..7e636ee8 --- /dev/null +++ b/recipes-bsp/cm3-pm-firmware/am33x-cm3_git.bb | |||
@@ -0,0 +1,29 @@ | |||
1 | DESCRIPTION = "Cortex-M3 binary blob for suspend-resume" | ||
2 | |||
3 | LICENSE = "BSD-3-Clause" | ||
4 | LIC_FILES_CHKSUM = "file://License.txt;md5=7bdc54a749ab7a7dea999d25d99a41b8" | ||
5 | |||
6 | PV = "1.9.0" | ||
7 | PR = "r0" | ||
8 | PE = "1" | ||
9 | |||
10 | SRCREV = "d85e6a17da1025adac9ab7f97dd7aa2a58c517ce" | ||
11 | BRANCH ?= "ti-v3.14.y" | ||
12 | |||
13 | SRC_URI = "git://git.ti.com/ti-cm3-pm-firmware/amx3-cm3.git;protocol=git;branch=${BRANCH}" | ||
14 | |||
15 | S = "${WORKDIR}/git" | ||
16 | |||
17 | FLOATABI = "${@base_contains("TUNE_FEATURES", "vfp", base_contains("TUNE_FEATURES", "callconvention-hard", " -mfloat-abi=hard", " -mfloat-abi=softfp", d), "" ,d)}" | ||
18 | |||
19 | do_compile() { | ||
20 | make CROSS_COMPILE="${TARGET_PREFIX}" CC="${TARGET_PREFIX}gcc ${TOOLCHAIN_OPTIONS} ${FLOATABI}" | ||
21 | } | ||
22 | |||
23 | do_install() { | ||
24 | install -d ${D}${base_libdir}/firmware | ||
25 | install -m 0644 bin/am335x-pm-firmware.elf ${D}${base_libdir}/firmware/ | ||
26 | install -m 0644 bin/*-scale-data.bin ${D}${base_libdir}/firmware/ | ||
27 | } | ||
28 | |||
29 | FILES_${PN} += "${base_libdir}/firmware" | ||