blob: 1b6f3206afe7c903b03fba3bc8af536b12a413f6 (
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
|
DESCRIPTION = "Boot Monitor - TI ARM Boot monitor code"
LICENSE = "BSD"
LIC_FILES_CHKSUM = "file://COPYING;md5=25fe219a6febf6e5bb45beda1b2eb315"
COMPATIBLE_MACHINE = "keystone"
PACKAGE_ARCH = "${MACHINE_ARCH}"
DEPENDS = "u-boot-mkimage-native"
SRC_URI = "git://git.ti.com/processor-firmware/ks2-boot-monitor.git;protocol=git;branch=${BRANCH}"
PV = "4.0+git${SRCPV}"
BRANCH = "master"
S = "${WORKDIR}/git"
SRCREV = "e1f885ab6dc544884728e333cc6e396f7eb08286"
BOOT_MONITOR_IMAGE ?= "skern-${BOOT_MONITOR_MAKE_TARGET}.bin"
FLOATABI = "${@bb.utils.contains("TUNE_FEATURES", "vfp", bb.utils.contains("TUNE_FEATURES", "callconvention-hard", " -mfloat-abi=hard", " -mfloat-abi=softfp", d), "" ,d)}"
EXTRA_OEMAKE = "CROSS_COMPILE=${TARGET_PREFIX} CC="${TARGET_PREFIX}gcc ${TOOLCHAIN_OPTIONS} ${FLOATABI}" LD="${TARGET_PREFIX}gcc ${TOOLCHAIN_OPTIONS} ${FLOATABI}""
FILES_${PN} = "/boot"
inherit deploy
do_compile () {
unset LDFLAGS
unset CFLAGS
unset CPPFLAGS
oe_runmake image_${BOOT_MONITOR_MAKE_TARGET}
}
do_install () {
install -d ${D}/boot
install -m 0644 ${S}/${BOOT_MONITOR_IMAGE} ${D}/boot/
}
do_deploy () {
install -d ${DEPLOYDIR}
install -m 0644 ${S}/${BOOT_MONITOR_IMAGE} ${DEPLOYDIR}/
}
addtask deploy before do_build after do_compile
|