avs_mtk_voice/meta/meta-mediatek/recipes-bsp/u-boot/u-boot_2014.04.bb

39 lines
901 B
BlitzBasic
Raw Normal View History

2022-05-13 08:02:31 +00:00
inherit deploy u-boot-fitimage
UBOOT_SRC = "${TOPDIR}/../src/bsp/u-boot"
LIC_FILES_CHKSUM = "file://${UBOOT_SRC}/Licenses/README;md5=025bf9f768cbcb1a165dbe1a110babfb"
PV = "v2014.04-rc1+git+src"
SECTION = "bootloaders"
PROVIDES = "virtual/bootloader"
LICENSE = "GPLv2+"
PACKAGE_ARCH = "${MACHINE_ARCH}"
PROJECT = "mtk"
# Some versions of u-boot use .bin and others use .img. By default use .bin
# but enable individual recipes to change this value.
UBOOT_SUFFIX ??= "bin"
UBOOT_IMAGE ?= "u-boot-${PROJECT}.${UBOOT_SUFFIX}"
UBOOT_BINARY ?= "u-boot.${UBOOT_SUFFIX}"
UBOOT_FIT_IMAGE ?= "u-boot-fit.${UBOOT_SUFFIX}"
UBOOT_MAKE_TARGET ?= "all"
do_compile () {
cd ${UBOOT_SRC}
make clobber
make V=1 -f Makefile
cd -
}
do_deploy () {
install -d ${DEPLOYDIR}
install ${UBOOT_SRC}/${UBOOT_FIT_IMAGE} ${DEPLOYDIR}/${UBOOT_FIT_IMAGE}
}
addtask deploy before do_build after do_assemble_fitimage