53 lines
1.4 KiB
BlitzBasic
53 lines
1.4 KiB
BlitzBasic
# Copyright (C) 2016 Freescale Semiconductor
|
|
# Copyright 2017-2018 NXP
|
|
# Copyright (C) 2018-2019 Digi International.
|
|
|
|
DESCRIPTION = "i.MX System Controller Firmware, customized for Digi platforms"
|
|
LICENSE = "Proprietary"
|
|
LIC_FILES_CHKSUM = "file://COPYING;md5=72c0f70181bb6e83eee6aab8de12a9f3"
|
|
SECTION = "BSP"
|
|
|
|
inherit pkgconfig deploy
|
|
|
|
SRC_URI = "${DIGI_PKG_SRC}/${PN}-${PV}.tar.gz"
|
|
|
|
SRC_URI[md5sum] = "6b6ee8074b7145a2f0c1fae74f4a7941"
|
|
SRC_URI[sha256sum] = "e6b9ef3e6db879d55072c177685ef24cbb9075c78f3537d8bcdbdede1ad8cc51"
|
|
|
|
S = "${WORKDIR}/${PN}-${PV}"
|
|
|
|
SC_FIRMWARE_NAME ?= "mx8x-${DIGI_FAMILY}-scfw-tcm.bin"
|
|
symlink_name = "scfw_tcm.bin"
|
|
|
|
SYSROOT_DIRS += "/boot"
|
|
|
|
do_install () {
|
|
install -d ${D}/boot
|
|
for ramc in ${RAM_CONFIGS}; do
|
|
install -m 0644 ${S}/${SC_FIRMWARE_NAME}-${ramc} ${D}/boot/
|
|
done
|
|
}
|
|
|
|
BOOT_TOOLS = "imx-boot-tools"
|
|
|
|
do_deploy () {
|
|
install -d ${DEPLOYDIR}/${BOOT_TOOLS}
|
|
for ramc in ${RAM_CONFIGS}; do
|
|
install -m 0644 ${S}/${SC_FIRMWARE_NAME}-${ramc} ${DEPLOYDIR}/${BOOT_TOOLS}/
|
|
cd ${DEPLOYDIR}/${BOOT_TOOLS}/
|
|
rm -f ${symlink_name}-${ramc}
|
|
ln -sf ${SC_FIRMWARE_NAME}-${ramc} ${symlink_name}-${ramc}
|
|
cd -
|
|
done
|
|
}
|
|
|
|
addtask deploy after do_install
|
|
|
|
INHIBIT_PACKAGE_STRIP = "1"
|
|
INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
|
|
PACKAGE_ARCH = "${MACHINE_ARCH}"
|
|
|
|
FILES_${PN} = "/boot"
|
|
|
|
COMPATIBLE_MACHINE = "(ccimx8x)"
|