aboutsummaryrefslogtreecommitdiffstats
path: root/meta-agl-bsp/meta-rcar-gen3/recipes-bsp/bootfiles/renesas-ota-bootfiles.bb
blob: d46f4d88500ab3d3d124c797e6e69dea0a7d13fa (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
DESCRIPTION = "Boot files (bootscripts etc.) for Renesas RCar-M3 board"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"

inherit deploy

COMPATIBLE_MACHINE = "(salvator-x|m3ulcb|h3ulcb|ebisu)"

S = "${WORKDIR}"

SRC_URI:append:sota = " file://uEnv-ota-m3ulcb.txt \
                        file://uEnv-ota-h3ulcb.txt \
                        file://uEnv-ota-h3-salvator-xs \
                        file://uEnv-ota-m3-salvator-xs"
do_deploy() {
    install -d ${DEPLOYDIR}/${PN}
}

do_deploy:append:sota() {
    install -m 0755 ${WORKDIR}/uEnv-ota-${BOARD_NAME}.txt ${DEPLOYDIR}/${PN}/uEnv.txt
}

addtask deploy before do_package after do_install
do_deploy[dirs] += "${DEPLOYDIR}/${PN}"

PACKAGE_ARCH = "${MACHINE_ARCH}"