nitrogen6x: Add wic image tool support

The wic image needs to install the bootscript and it loads the
respective kernel image and device-tree files from the image, thus
those need to be included.

Change-Id: If58ef5a51a5016761f04fbf5b20aaabf903a22ea
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
This commit is contained in:
Otavio Salvador 2017-03-23 16:08:37 -03:00
parent 68613116f9
commit 79b9c97f25

View File

@ -54,10 +54,26 @@ do_rootfs[depends] += "u-boot-script-boundary:do_deploy"
# Boot scripts to install
BOOT_SCRIPTS = "6x_bootscript-${MACHINE}:6x_bootscript"
# wic support
WKS_FILE ?= "sdimage-bootpart.wks"
IMAGE_BOOT_FILES = " \
6x_bootscript-${MACHINE};6x_bootscript \
${KERNEL_IMAGETYPE} \
${KERNEL_IMAGETYPE}-imx6q-sabrelite.dtb;imx6q-sabrelite.dtb \
${KERNEL_IMAGETYPE}-imx6q-nitrogen6_max.dtb;imx6q-nitrogen6_max.dtb ${KERNEL_IMAGETYPE}-imx6qp-nitrogen6_max.dtb;imx6qp-nitrogen6_max.dtb \
${KERNEL_IMAGETYPE}-imx6q-nitrogen6x.dtb;imx6q-nitrogen6x.dtb ${KERNEL_IMAGETYPE}-imx6dl-nitrogen6x.dtb;imx6dl-nitrogen6x.dtb \
${KERNEL_IMAGETYPE}-imx6q-nitrogen6_som2.dtb;imx6q-nitrogen6_som2.dtb ${KERNEL_IMAGETYPE}-imx6qp-nitrogen6_som2.dtb;imx6qp-nitrogen6_som2.dtb \
"
IMAGE_DEPENDS_wic_append = " dosfstools-native mtools-native"
UBOOT_MACHINE ?= "nitrogen6q_config"
SERIAL_CONSOLE = "115200 ttymxc1"
MACHINE_EXTRA_RRECOMMENDS += "linux-firmware-wl12xx"
MACHINE_ESSENTIAL_EXTRA_RDEPENDS += " \
kernel-image \
kernel-devicetree \
"
MACHINE_FEATURES += " pci wifi bluetooth"