summaryrefslogtreecommitdiffstats
path: root/bsp/meta-freescale-3rdparty/recipes-bsp/u-boot/u-boot-digi_2017.03.bb
blob: aa7757276fdd6275640fd3538939036fb27a9f74 (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
# Copyright (C) 2018 Digi International
# Released under the MIT license (see COPYING.MIT for the terms)

DESCRIPTION = "Bootloader for Digi platforms"
SECTION = "bootloaders"
LICENSE = "GPLv2+"
LIC_FILES_CHKSUM = "file://Licenses/README;md5=a2c678cfd4a4d97135585cad908541c6"

require recipes-bsp/u-boot/u-boot.inc

DEPENDS = "u-boot-mkimage-native"

PROVIDES += "u-boot"

SRCBRANCH = "v2017.03/maint"
SRCREV = "8d60f536d2063ac6a0676bdf34c4c8c8807371c5"

SRC_URI = "\
    git://github.com/digi-embedded/u-boot.git;protocol=git;nobranch=1 \
    file://bootscript.txt \
"

LOCALVERSION ?= "-${SRCBRANCH}"

S = "${WORKDIR}/git"

inherit dtc-145 fsl-u-boot-localversion

UBOOT_ENV = "boot"
UBOOT_ENV_SUFFIX = "scr"

do_compile_append () {
    uboot-mkimage -A arm -O linux -T script -C none -a 0 -e 0 \
        -n "boot script" -d ${WORKDIR}/bootscript.txt \
        ${WORKDIR}/${UBOOT_ENV_BINARY}
}

PACKAGE_ARCH = "${MACHINE_ARCH}"

COMPATIBLE_MACHINE = "(ccimx6ul)"