Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 7E40BE00D7F; Thu, 5 Oct 2017 09:56:57 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE, RCVD_IN_SORBS_SPAM autolearn=no version=3.3.1 X-Spam-HAM-Report: * -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no * trust * [209.85.216.196 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * 0.5 RCVD_IN_SORBS_SPAM RBL: SORBS: sender is a spam source * [209.85.216.196 listed in dnsbl.sorbs.net] Received: from mail-qt0-f196.google.com (mail-qt0-f196.google.com [209.85.216.196]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 5D7A5E00C77 for ; Thu, 5 Oct 2017 09:56:55 -0700 (PDT) Received: by mail-qt0-f196.google.com with SMTP id 6so17500482qtw.3 for ; Thu, 05 Oct 2017 09:56:55 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:organization; bh=jKsJnYso3jPpQqPdPxKttPh8CUK2PHO4fc1K4AmtWtQ=; b=YWwygMl5dIk5UtJkQgnRw0AvArxdl7lLXVBT4cNgecQPEdU08Ye2+kQr7xo2EMXPoU im5Z8P7kCoFd3z8t2e52mweiKeBCor73NAdk5bVfUiZMUkRK/RNpaFmm7ucEybiX1XQZ PYdqyGxCai/hTw7qnDXNDnqzlHbUR18wcBndQWJSVG9EHHPVB0TmL/yx+cOk8YDx2pj6 dIGafMgZnDXh0Q/sQer3cdz2NgIagf/frcNQEcq7hURWsvalfs8qNhY2I/aVGyQUr8fz yiGl7CDUXa8HLkgvTNp4UKou68hhBvdH04Yfvx9JcGqhiZGGKid0VgoIcO8C8NNdTpqz UXEA== X-Gm-Message-State: AMCzsaUWfD0TtajSjpXwNrx9Q+cGo6P7/u/54YLE4MHNsx5TPS+tF8Zd D3jqU2cNh+bb5347SM506UA/ow== X-Google-Smtp-Source: AOwi7QAuJ5qnraBTpQcttPpl5QHiNmWEZTbN7Q7YV+H9D8FUfNic/Xfpf8CfZZ0jfAjUDhWq4Lr1jA== X-Received: by 10.237.38.68 with SMTP id z62mr2048066qtc.297.1507222614306; Thu, 05 Oct 2017 09:56:54 -0700 (PDT) Received: from localhost.localdomain ([181.220.79.73]) by smtp.gmail.com with ESMTPSA id y9sm12363974qth.6.2017.10.05.09.56.51 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 05 Oct 2017 09:56:53 -0700 (PDT) Received: by localhost.localdomain (sSMTP sendmail emulation); Thu, 05 Oct 2017 13:56:45 -0300 From: Otavio Salvador To: meta-freescale Mailing List Date: Thu, 5 Oct 2017 13:56:44 -0300 Message-Id: <20171005165644.8719-1-otavio@ossystems.com.br> X-Mailer: git-send-email 2.14.2 Organization: O.S. Systems Software LTDA. Cc: Otavio Salvador Subject: [3rdparty PATCH] Rework machines to use wic support X-BeenThere: meta-freescale@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Usage and development list for the meta-fsl-* layers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Oct 2017 16:56:57 -0000 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 --- 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(-) diff --git a/conf/machine/cgtqmx6.conf b/conf/machine/cgtqmx6.conf index fd85be0..5be7971 100644 --- a/conf/machine/cgtqmx6.conf +++ b/conf/machine/cgtqmx6.conf @@ -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" diff --git a/conf/machine/cubox-i.conf b/conf/machine/cubox-i.conf index 24e8519..4c9ae2e 100644 --- a/conf/machine/cubox-i.conf +++ b/conf/machine/cubox-i.conf @@ -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" diff --git a/conf/machine/imx6dl-riotboard.conf b/conf/machine/imx6dl-riotboard.conf index 7823cd5..157e2c9 100644 --- a/conf/machine/imx6dl-riotboard.conf +++ b/conf/machine/imx6dl-riotboard.conf @@ -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" diff --git a/conf/machine/imx6qdl-variscite-som.conf b/conf/machine/imx6qdl-variscite-som.conf index c397649..c42741a 100644 --- a/conf/machine/imx6qdl-variscite-som.conf +++ b/conf/machine/imx6qdl-variscite-som.conf @@ -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" diff --git a/conf/machine/nitrogen6sx.conf b/conf/machine/nitrogen6sx.conf index ae6fff2..1dec579 100644 --- a/conf/machine/nitrogen6sx.conf +++ b/conf/machine/nitrogen6sx.conf @@ -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" diff --git a/conf/machine/nitrogen6x-lite.conf b/conf/machine/nitrogen6x-lite.conf index 5a120c3..04b24eb 100644 --- a/conf/machine/nitrogen6x-lite.conf +++ b/conf/machine/nitrogen6x-lite.conf @@ -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" diff --git a/conf/machine/nitrogen6x.conf b/conf/machine/nitrogen6x.conf index aa6f1ba..9073d80 100644 --- a/conf/machine/nitrogen6x.conf +++ b/conf/machine/nitrogen6x.conf @@ -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" diff --git a/conf/machine/nitrogen7.conf b/conf/machine/nitrogen7.conf index 2382c13..0f1a58e 100644 --- a/conf/machine/nitrogen7.conf +++ b/conf/machine/nitrogen7.conf @@ -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" diff --git a/conf/machine/wandboard.conf b/conf/machine/wandboard.conf index d11dfed..e07046d 100644 --- a/conf/machine/wandboard.conf +++ b/conf/machine/wandboard.conf @@ -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