am33x-cm3: Update to latest cm3 release
[glsdk/meta-ti-glsdk.git] / recipes-bsp / ti / am33x-cm3_git.bb
1 DESCRIPTION = "Cortex-M3 binary blob for suspend-resume"
3 LICENSE = "TI-BSD"
4 LIC_FILES_CHKSUM = "file://License.txt;md5=858099c817e47ea63559fc6b67ae8d91"
6 PV = "04.06.00.10"
7 PR = "r2"
9 # SRCREV corresponds to tag "AM335xPSP_04.06.00.10-rc1"
10 SRCREV = "27ca4643e422245a95723de1df0247a00eada45b"
11 BRANCH ?= "master"
13 INITSCRIPT_NAME = "am335x-pm-firmware-load"
14 INITSCRIPT_PARAMS = "defaults 96"
16 inherit update-rc.d
18 SRC_URI = "git://arago-project.org/git/projects/am33x-cm3.git;protocol=git;branch=${BRANCH} \
19            file://init-am33x-cm3 \
20           "
22 S = "${WORKDIR}/git"
24 do_compile() {
25         make CC="${TARGET_CC}" CROSS_COMPILE="${TARGET_PREFIX}"
26 }
28 do_install() {
29         install -d ${D}${base_libdir}/firmware
30         install -m 0644 bin/am335x-pm-firmware.bin ${D}${base_libdir}/firmware/
32         # Install the init script to load the PM firmware at boot
33         install -d ${D}${sysconfdir}/init.d
34         install -m 0755 ${WORKDIR}/init-am33x-cm3 ${D}${sysconfdir}/init.d/${INITSCRIPT_NAME}
35 }
37 FILES_${PN} += "${base_libdir}/firmware"