Rework machines to use wic support
PATCH 1/1 Rework machines to use wic support
This rework existing machines to use the wic support. It allows for a lot of code removal as the image dependencies can be defined in a more accurate way.
Signed-off-by Otavio Salvador <[email protected]>
---
conf/machine/cgtqmx6.conf | 2 +- conf/machine/cubox-i.conf | 6 +----- conf/machine/imx6dl-riotboard.conf | 5 +---- conf/machine/imx6qdl-variscite-som.conf | 1 + conf/machine/nitrogen6sx.conf | 22 ++++++++-------------- conf/machine/nitrogen6x-lite.conf | 22 ++++++++-------------- conf/machine/nitrogen6x.conf | 25 ++++++++----------------- conf/machine/nitrogen7.conf | 22 ++++++++-------------- conf/machine/wandboard.conf | 5 +---- 9 files changed, 37 insertions(+), 73 deletions(-)
conf/machine/cgtqmx6.conf +1 -1
@@ -15,8 +15,8 @@ UBOOT_MAKE_TARGET = "" UBOOT_SUFFIX = "img" SPL_BINARY = "SPL" UBOOT_CONFIG ??= "cgtqmx6" - UBOOT_CONFIG[cgtqmx6] = "cgtqmx6eval_defconfig" +WKS_FILE = "imx-uboot-spl-bootpart.wks" # Use linux kernel QMX6 PREFERRED_PROVIDER_virtual/kernel ??= "linux-congatec"
conf/machine/cubox-i.conf +1 -5
@@ -23,6 +23,7 @@ UBOOT_CONFIG ??= "sd" UBOOT_CONFIG[sd] = "mx6cuboxi_defconfig,sdcard" UENV_FILENAME = "uEnv-${MACHINE}.txt" SPL_BINARY = "SPL" +WKS_FILES = "imx-uboot-spl.wks" UBOOT_EXTLINUX = "1" UBOOT_EXTLINUX_ROOT = "root=PARTUUID=${uuid}"
@@ -40,8 +41,3 @@ MACHINE_ESSENTIAL_EXTRA_RDEPENDS += " \ kernel-devicetree \ u-boot-fslc \ " - -WKS_FILES ?= "imx-uboot-spl.wks" -WKS_FILE_DEPENDS ?= "" - -IMAGE_FSTYPES = "wic.gz"
conf/machine/imx6dl-riotboard.conf +1 -4
@@ -22,7 +22,4 @@ MACHINE_ESSENTIAL_EXTRA_RDEPENDS += " \ u-boot-fslc \ " -WKS_FILES ?= "imx-uboot.wks" -WKS_FILE_DEPENDS ?= "" - -IMAGE_FSTYPES = "wic.gz" +WKS_FILES = "imx-uboot.wks"
conf/machine/imx6qdl-variscite-som.conf +1 -0
@@ -28,6 +28,7 @@ KERNEL_IMAGETYPE = "uImage" UBOOT_SPL_BUILD = "yes" UBOOT_MAKE_TARGET = "all" UBOOT_SUFFIX = "img" +WKS_FILE = "imx-uboot-spl-bootpart.wks" PREFERRED_PROVIDER_virtual/bootloader = "u-boot-variscite" PREFERRED_PROVIDER_u-boot = "u-boot-variscite"
conf/machine/nitrogen6sx.conf +8 -14
@@ -16,23 +16,17 @@ PREFERRED_PROVIDER_u-boot = "u-boot-boundary" PREFERRED_PROVIDER_virtual/kernel ??= "linux-boundary" PREFERRED_PROVIDER_virtual/kernel_use-mainline-bsp ??= "linux-fslc" -# Use SPI NOR U-Boot by default -IMAGE_BOOTLOADER ?= "" - -# Ensure boot scripts will be available at rootfs time -do_rootfs[depends] += "u-boot-script-boundary:do_deploy" - # wic support -WKS_FILE ?= "sdimage-bootpart.wks" -IMAGE_BOOT_FILES = " \ +WKS_FILE = "sdimage-bootpart.wks" +IMAGE_BOOT_FILES_append = " \ 6x_bootscript-${MACHINE};6x_bootscript \ - ${KERNEL_IMAGETYPE} \ - ${KERNEL_IMAGETYPE}-imx6sx-nitrogen6sx.dtb;imx6sx-nitrogen6sx.dtb \ " -WKS_FILE_DEPENDS ?= "" - -# Boot scripts to install -BOOT_SCRIPTS = "6x_bootscript-${MACHINE}:6x_bootscript" +WKS_FILE_DEPENDS = " \ + u-boot-script-boundary \ + \ + e2fsprogs-native \ + bmap-tools-native \ +" UBOOT_MACHINE ?= "nitrogen6sx_config"
conf/machine/nitrogen6x-lite.conf +8 -14
@@ -16,23 +16,17 @@ PREFERRED_PROVIDER_u-boot = "u-boot-boundary" PREFERRED_PROVIDER_virtual/kernel ??= "linux-boundary" PREFERRED_PROVIDER_virtual/kernel_use-mainline-bsp ??= "linux-fslc" -# Use SPI NOR U-Boot by default -IMAGE_BOOTLOADER ?= "" - -# Ensure boot scripts will be available at rootfs time -do_rootfs[depends] += "u-boot-script-boundary:do_deploy" - # wic support -WKS_FILE ?= "sdimage-bootpart.wks" -IMAGE_BOOT_FILES = " \ +WKS_FILE = "sdimage-bootpart.wks" +IMAGE_BOOT_FILES_append = " \ 6x_bootscript-${MACHINE};6x_bootscript \ - ${KERNEL_IMAGETYPE} \ - ${KERNEL_IMAGETYPE}-imx6dl-nit6xlite.dtb;imx6dl-nit6xlite.dtb \ " -WKS_FILE_DEPENDS ?= "" - -# Boot scripts to install -BOOT_SCRIPTS = "6x_bootscript-${MACHINE}:6x_bootscript" +WKS_FILE_DEPENDS = " \ + u-boot-script-boundary \ + \ + e2fsprogs-native \ + bmap-tools-native \ +" UBOOT_MACHINE ?= "nit6xlite_config"
conf/machine/nitrogen6x.conf +8 -17
@@ -50,26 +50,17 @@ PREFERRED_PROVIDER_u-boot = "u-boot-boundary" PREFERRED_PROVIDER_virtual/kernel ??= "linux-boundary" PREFERRED_PROVIDER_virtual/kernel_use-mainline-bsp ??= "linux-fslc" -# Use SPI NOR U-Boot by default -IMAGE_BOOTLOADER ?= "" - -# Ensure boot scripts will be available at rootfs time -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 = " \ +WKS_FILE = "sdimage-bootpart.wks" +IMAGE_BOOT_FILES_append = " \ 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 \ " -WKS_FILE_DEPENDS ?= "" +WKS_FILE_DEPENDS = " \ + u-boot-script-boundary \ + \ + e2fsprogs-native \ + bmap-tools-native \ +" UBOOT_MACHINE ?= "nitrogen6q_config"
conf/machine/nitrogen7.conf +8 -14
@@ -16,23 +16,17 @@ PREFERRED_PROVIDER_u-boot = "u-boot-boundary" PREFERRED_PROVIDER_virtual/kernel ??= "linux-boundary" PREFERRED_PROVIDER_virtual/kernel_use-mainline-bsp ??= "linux-fslc" -# Use SPI NOR U-Boot by default -IMAGE_BOOTLOADER ?= "" - -# Ensure boot scripts will be available at rootfs time -do_rootfs[depends] += "u-boot-script-boundary:do_deploy" - # wic support -WKS_FILE ?= "sdimage-bootpart.wks" -IMAGE_BOOT_FILES = " \ +WKS_FILE = "sdimage-bootpart.wks" +IMAGE_BOOT_FILES_append = " \ 6x_bootscript-${MACHINE};6x_bootscript \ - ${KERNEL_IMAGETYPE} \ - ${KERNEL_IMAGETYPE}-imx7d-nitrogen7.dtb;imx7d-nitrogen7.dtb \ " -WKS_FILE_DEPENDS ?= "" - -# Boot scripts to install -BOOT_SCRIPTS = "6x_bootscript-${MACHINE}:6x_bootscript" +WKS_FILE_DEPENDS = " \ + u-boot-script-boundary \ + \ + e2fsprogs-native \ + bmap-tools-native \ +" UBOOT_MACHINE ?= "nitrogen7_config"
conf/machine/wandboard.conf +1 -4
@@ -47,7 +47,4 @@ MACHINE_ESSENTIAL_EXTRA_RDEPENDS += " \ u-boot-fslc \ " -WKS_FILES ?= "imx-uboot-spl.wks" -WKS_FILE_DEPENDS ?= "" - -SOC_DEFAULT_IMAGE_FSTYPES = "wic.gz" +WKS_FILES = "imx-uboot-spl.wks"
Signature · 1 line
2.14.2
Quoted 5 lines · Otavio Salvador
This rework existing machines to use the wic support. It allows for a lot of code removal as the image dependencies can be defined in a more accurate way.
Signed-off-by Otavio Salvador <[email protected]>
Reviewed-by Daiane Angolini <[email protected]>
Quoted 241 lines
---
conf/machine/cgtqmx6.conf | 2 +- conf/machine/cubox-i.conf | 6 +----- conf/machine/imx6dl-riotboard.conf | 5 +---- conf/machine/imx6qdl-variscite-som.conf | 1 + conf/machine/nitrogen6sx.conf | 22 ++++++++-------------- conf/machine/nitrogen6x-lite.conf | 22 ++++++++-------------- conf/machine/nitrogen6x.conf | 25 ++++++++----------------- conf/machine/nitrogen7.conf | 22 ++++++++-------------- conf/machine/wandboard.conf | 5 +---- 9 files changed, 37 insertions(+), 73 deletions(-)conf/machine/cgtqmx6.conf +1
-1@@ -15,8 +15,8 @@ UBOOT_MAKE_TARGET = "" UBOOT_SUFFIX = "img" SPL_BINARY = "SPL" UBOOT_CONFIG ??= "cgtqmx6" - UBOOT_CONFIG[cgtqmx6] = "cgtqmx6eval_defconfig" +WKS_FILE = "imx-uboot-spl-bootpart.wks" # Use linux kernel QMX6 PREFERRED_PROVIDER_virtual/kernel ??= "linux-congatec"conf/machine/cubox-i.conf +1
-5@@ -23,6 +23,7 @@ UBOOT_CONFIG ??= "sd" UBOOT_CONFIG[sd] = "mx6cuboxi_defconfig,sdcard" UENV_FILENAME = "uEnv-${MACHINE}.txt" SPL_BINARY = "SPL" +WKS_FILES = "imx-uboot-spl.wks" UBOOT_EXTLINUX = "1" UBOOT_EXTLINUX_ROOT = "root=PARTUUID=${uuid}"@@ -40,8 +41,3 @@ MACHINE_ESSENTIAL_EXTRA_RDEPENDS += " \ kernel-devicetree \ u-boot-fslc \ " - -WKS_FILES ?= "imx-uboot-spl.wks" -WKS_FILE_DEPENDS ?= "" - -IMAGE_FSTYPES = "wic.gz"conf/machine/imx6dl-riotboard.conf +1
-4@@ -22,7 +22,4 @@ MACHINE_ESSENTIAL_EXTRA_RDEPENDS += " \ u-boot-fslc \ " -WKS_FILES ?= "imx-uboot.wks" -WKS_FILE_DEPENDS ?= "" - -IMAGE_FSTYPES = "wic.gz" +WKS_FILES = "imx-uboot.wks"conf/machine/imx6qdl-variscite-som.conf +1
-0@@ -28,6 +28,7 @@ KERNEL_IMAGETYPE = "uImage" UBOOT_SPL_BUILD = "yes" UBOOT_MAKE_TARGET = "all" UBOOT_SUFFIX = "img" +WKS_FILE = "imx-uboot-spl-bootpart.wks" PREFERRED_PROVIDER_virtual/bootloader = "u-boot-variscite" PREFERRED_PROVIDER_u-boot = "u-boot-variscite"conf/machine/nitrogen6sx.conf +8
-14@@ -16,23 +16,17 @@ PREFERRED_PROVIDER_u-boot = "u-boot-boundary" PREFERRED_PROVIDER_virtual/kernel ??= "linux-boundary" PREFERRED_PROVIDER_virtual/kernel_use-mainline-bsp ??= "linux-fslc" -# Use SPI NOR U-Boot by default -IMAGE_BOOTLOADER ?= "" - -# Ensure boot scripts will be available at rootfs time -do_rootfs[depends] += "u-boot-script-boundary:do_deploy" - # wic support -WKS_FILE ?= "sdimage-bootpart.wks" -IMAGE_BOOT_FILES = " \ +WKS_FILE = "sdimage-bootpart.wks" +IMAGE_BOOT_FILES_append = " \ 6x_bootscript-${MACHINE};6x_bootscript \ - ${KERNEL_IMAGETYPE} \ - ${KERNEL_IMAGETYPE}-imx6sx-nitrogen6sx.dtb;imx6sx-nitrogen6sx.dtb \ " -WKS_FILE_DEPENDS ?= "" - -# Boot scripts to install -BOOT_SCRIPTS = "6x_bootscript-${MACHINE}:6x_bootscript" +WKS_FILE_DEPENDS = " \ + u-boot-script-boundary \ + \ + e2fsprogs-native \ + bmap-tools-native \ +" UBOOT_MACHINE ?= "nitrogen6sx_config"conf/machine/nitrogen6x-lite.conf +8
-14@@ -16,23 +16,17 @@ PREFERRED_PROVIDER_u-boot = "u-boot-boundary" PREFERRED_PROVIDER_virtual/kernel ??= "linux-boundary" PREFERRED_PROVIDER_virtual/kernel_use-mainline-bsp ??= "linux-fslc" -# Use SPI NOR U-Boot by default -IMAGE_BOOTLOADER ?= "" - -# Ensure boot scripts will be available at rootfs time -do_rootfs[depends] += "u-boot-script-boundary:do_deploy" - # wic support -WKS_FILE ?= "sdimage-bootpart.wks" -IMAGE_BOOT_FILES = " \ +WKS_FILE = "sdimage-bootpart.wks" +IMAGE_BOOT_FILES_append = " \ 6x_bootscript-${MACHINE};6x_bootscript \ - ${KERNEL_IMAGETYPE} \ - ${KERNEL_IMAGETYPE}-imx6dl-nit6xlite.dtb;imx6dl-nit6xlite.dtb \ " -WKS_FILE_DEPENDS ?= "" - -# Boot scripts to install -BOOT_SCRIPTS = "6x_bootscript-${MACHINE}:6x_bootscript" +WKS_FILE_DEPENDS = " \ + u-boot-script-boundary \ + \ + e2fsprogs-native \ + bmap-tools-native \ +" UBOOT_MACHINE ?= "nit6xlite_config"conf/machine/nitrogen6x.conf +8
-17@@ -50,26 +50,17 @@ PREFERRED_PROVIDER_u-boot = "u-boot-boundary" PREFERRED_PROVIDER_virtual/kernel ??= "linux-boundary" PREFERRED_PROVIDER_virtual/kernel_use-mainline-bsp ??= "linux-fslc" -# Use SPI NOR U-Boot by default -IMAGE_BOOTLOADER ?= "" - -# Ensure boot scripts will be available at rootfs time -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 = " \ +WKS_FILE = "sdimage-bootpart.wks" +IMAGE_BOOT_FILES_append = " \ 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 \ " -WKS_FILE_DEPENDS ?= "" +WKS_FILE_DEPENDS = " \ + u-boot-script-boundary \ + \ + e2fsprogs-native \ + bmap-tools-native \ +" UBOOT_MACHINE ?= "nitrogen6q_config"conf/machine/nitrogen7.conf +8
-14@@ -16,23 +16,17 @@ PREFERRED_PROVIDER_u-boot = "u-boot-boundary" PREFERRED_PROVIDER_virtual/kernel ??= "linux-boundary" PREFERRED_PROVIDER_virtual/kernel_use-mainline-bsp ??= "linux-fslc" -# Use SPI NOR U-Boot by default -IMAGE_BOOTLOADER ?= "" - -# Ensure boot scripts will be available at rootfs time -do_rootfs[depends] += "u-boot-script-boundary:do_deploy" - # wic support -WKS_FILE ?= "sdimage-bootpart.wks" -IMAGE_BOOT_FILES = " \ +WKS_FILE = "sdimage-bootpart.wks" +IMAGE_BOOT_FILES_append = " \ 6x_bootscript-${MACHINE};6x_bootscript \ - ${KERNEL_IMAGETYPE} \ - ${KERNEL_IMAGETYPE}-imx7d-nitrogen7.dtb;imx7d-nitrogen7.dtb \ " -WKS_FILE_DEPENDS ?= "" - -# Boot scripts to install -BOOT_SCRIPTS = "6x_bootscript-${MACHINE}:6x_bootscript" +WKS_FILE_DEPENDS = " \ + u-boot-script-boundary \ + \ + e2fsprogs-native \ + bmap-tools-native \ +" UBOOT_MACHINE ?= "nitrogen7_config"conf/machine/wandboard.conf +1
-5@@ -47,7 +47,4 @@ MACHINE_ESSENTIAL_EXTRA_RDEPENDS += " \ u-boot-fslc \ " -WKS_FILES ?= "imx-uboot-spl.wks" -WKS_FILE_DEPENDS ?= "" - -SOC_DEFAULT_IMAGE_FSTYPES = "wic.gz" +WKS_FILES = "imx-uboot-spl.wks" --2.14.2
--
_______________________________________________
meta-freescale mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-freescale