meta-digi/meta-digi-arm/recipes-bsp/imx-bootlets-dey/imx-bootlets-dey_git.bb

55 lines
1.8 KiB
BlitzBasic

# Copyright (C) 2012 Digi International
SUMMARY = "IMX bootlets for Digi platforms"
SECTION = "base"
LICENSE = "GPL-2.0"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6"
SRCREV_external = "1079b5c01162c0386952da2329cfd723a6889714"
SRCREV_internal = "83b374ca20962cd241bcffb9eeb2efee77d077f2"
SRCREV = "${@base_conditional('DIGI_INTERNAL_GIT', '1' , '${SRCREV_internal}', '${SRCREV_external}', d)}"
SRC_URI_external = "${DIGI_GITHUB_GIT}/imx-bootlets.git;protocol=git;nobranch=1"
SRC_URI_internal = "${DIGI_MTK_GIT}linux/imx-bootlets.git;protocol=ssh;nobranch=1"
SRC_URI = "${@base_conditional('DIGI_INTERNAL_GIT', '1' , '${SRC_URI_internal}', '${SRC_URI_external}', d)}"
S = "${WORKDIR}/git"
# Disable parallel building or it may fail to build.
PARALLEL_MAKE = ""
EXTRA_OEMAKE = "\
BOARD='${IMXBOOTLETS_MACHINE}' \
CROSS_COMPILE='${TARGET_PREFIX}' \
CC='${CC}' \
LD='${LD}' \
"
# Ensure machine defines the IMXBOOTLETS_MACHINE
python () {
if not d.getVar("IMXBOOTLETS_MACHINE", True):
PN = d.getVar("PN", True)
FILE = os.path.basename(d.getVar("FILE", True))
bb.debug(1, "To build %s, see %s for instructions on \
setting up your machine config" % (PN, FILE))
raise bb.parse.SkipPackage("because IMXBOOTLETS_MACHINE is not set")
}
do_install () {
install -d ${STAGING_DIR_TARGET}/boot
install -m 644 boot_prep/boot_prep power_prep/power_prep \
linux_prep/output-target/linux_prep \
uboot.bd uboot_ivt.bd linux.bd linux_ivt.bd \
${STAGING_DIR_TARGET}/boot
install -d ${D}/boot
install -m 644 boot_prep/boot_prep power_prep/power_prep \
linux_prep/output-target/linux_prep \
uboot.bd uboot_ivt.bd linux.bd linux_ivt.bd \
${D}/boot
}
FILES_${PN} = "/boot"
PACKAGE_ARCH = "${MACHINE_ARCH}"
COMPATIBLE_MACHINE = "(mxs)"