meta-digi/meta-digi-arm/recipes-bsp/u-boot/u-boot-dey-fw-utils_2013.04.bb

31 lines
719 B
BlitzBasic

DESCRIPTION = "U-boot bootloader fw_printenv/setenv utils"
LICENSE = "GPLv2+"
LIC_FILES_CHKSUM = "file://COPYING;md5=1707d6db1d42237583f50183a5651ecb"
SECTION = "bootloader"
include u-boot-dey-rev_${PV}.inc
SRC_URI += "file://fw_env.config"
S = "${WORKDIR}/git"
EXTRA_OEMAKE = 'HOSTCC="${CC}" HOSTSTRIP="true"'
inherit uboot-config
do_compile() {
oe_runmake ${UBOOT_MACHINE}
oe_runmake env
}
do_install() {
install -d ${D}${base_sbindir} ${D}${sysconfdir}
install -m 0755 ${S}/tools/env/fw_printenv ${D}${base_sbindir}/fw_printenv
ln -sf fw_printenv ${D}${base_sbindir}/fw_setenv
install -m 0644 ${WORKDIR}/fw_env.config ${D}${sysconfdir}/
}
PACKAGE_ARCH = "${MACHINE_ARCH}"
COMPATIBLE_MACHINE = "(mx6)"