49 lines
1.2 KiB
BlitzBasic
49 lines
1.2 KiB
BlitzBasic
# Copyright (C) 2016 Freescale Semiconductor
|
|
# Copyright 2017-2018 NXP
|
|
# Copyright (C) 2018 Digi International.
|
|
|
|
DESCRIPTION = "i.MX System Controller Firmware"
|
|
LICENSE = "MIT"
|
|
LIC_FILES_CHKSUM = "file://COPYING;md5=ab61cab9599935bfe9f700405ef00f28"
|
|
SECTION = "BSP"
|
|
|
|
inherit pkgconfig deploy
|
|
|
|
SRC_URI = "${DIGI_PKG_SRC}/${PN}-${PV}.tar.gz"
|
|
|
|
SRC_URI[md5sum] = "2b403986a9a0e47528baa3138015ce02"
|
|
SRC_URI[sha256sum] = "dbdffdd9b0d527218a1bf90aad2ef8dcee1b4c5170e5a983ae6f5e54b062cddc"
|
|
|
|
S = "${WORKDIR}/${PN}-${PV}"
|
|
|
|
SC_FIRMWARE_NAME ?= "mx8qx-${DIGI_FAMILY}-scfw-tcm.bin"
|
|
symlink_name = "scfw_tcm.bin"
|
|
|
|
SYSROOT_DIRS += "/boot"
|
|
|
|
do_install () {
|
|
install -d ${D}/boot
|
|
install -m 0644 ${S}/${SC_FIRMWARE_NAME} ${D}/boot/
|
|
}
|
|
|
|
BOOT_TOOLS = "imx-boot-tools"
|
|
|
|
do_deploy () {
|
|
install -d ${DEPLOYDIR}/${BOOT_TOOLS}
|
|
install -m 0644 ${S}/${SC_FIRMWARE_NAME} ${DEPLOYDIR}/${BOOT_TOOLS}/
|
|
cd ${DEPLOYDIR}/${BOOT_TOOLS}/
|
|
rm -f ${symlink_name}
|
|
ln -sf ${SC_FIRMWARE_NAME} ${symlink_name}
|
|
cd -
|
|
}
|
|
|
|
addtask deploy after do_install
|
|
|
|
INHIBIT_PACKAGE_STRIP = "1"
|
|
INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
|
|
PACKAGE_ARCH = "${MACHINE_ARCH}"
|
|
|
|
FILES_${PN} = "/boot"
|
|
|
|
COMPATIBLE_MACHINE = "(ccimx8x)"
|