Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 93099E00CE6; Thu, 21 Feb 2019 07:38:59 -0800 (PST) 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.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE, SPF_HELO_PASS autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no * trust * [67.219.246.213 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * -0.0 SPF_HELO_PASS SPF: HELO matches SPF record Received: from mail1.bemta23.messagelabs.com (mail1.bemta23.messagelabs.com [67.219.246.213]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id C6747E00B81 for ; Thu, 21 Feb 2019 07:38:58 -0800 (PST) Received: from [67.219.246.197] (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256 bits)) by server-1.bemta.az-c.us-east-1.aws.symcld.net id 24/CB-06923-6B2CE6C5; Thu, 21 Feb 2019 15:24:38 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrCIsWRWlGSWpSXmKPExsXi5LtOQHfrobw Yg+83zS32Ps9yYPRoP9HHFsAYxZqZl5RfkcCaMXX9B5aC3zIVq18vYm1gvCrZxcjFISSwmlHi Re9NdghnK6PE/RPTWboYOTnYBHQkpuw/DGaLCKhKXL/8kB3EZhaQkTh9fxYjiC0sUCJx8EMnW JwFqKbzzAGwOK+Am8S7U1vAbAkBOYmb5zqZQWxOAXeJlevWg8WFgGo+98+CqheUODnzCQvEfA mJgy9eMEPUKEtsWXEBao6CxNoD55kmMPLPQtIyC0nLAkamVYxmSUWZ6RkluYmZObqGBga6hoZ GuuZAlqVeYpVusl5psW5qYnGJrqFeYnmxXnFlbnJOil5easkmRmAophSw5+5gPLU0/RCjJAeT kijv64N5MUJ8SfkplRmJxRnxRaU5qcWHGGU4OJQkeKWAoS0kWJSanlqRlpkDjAqYtAQHj5IIr yhImre4IDG3ODMdInWK0ZLj4PeHc5k5Xt17BiR7Dj6fyyzEkpeflyolzlsIsksApCGjNA9uHC xyLzHKSgnzMjIwMAjxFKQW5WaWoMq/YhTnYFQS5pUGWcuTmVcCt/UV0EFMQAfN+p8NclBJIkJ KqoHRRO1zZ+lBaV3nwxtX59elb6uadH2toIA964HV6w/8LnWf6HVszpIkoZsLN/RXbQnl/ar2 3n29gsYF0QvXQ38b7jfi2dD+8ufX9jT72I+vHIUWz9r7Yl6jqsv+a6LruY7xPWkUDdNyfqgte 7lp1tWiu5ciGu3ajRbMfMrN8njVXa0++71sf9l4lFiKMxINtZiLihMBftxxudcCAAA= X-Env-Sender: Alex.Gonzalez@digi.com X-Msg-Ref: server-8.tower-405.messagelabs.com!1550762676!2832890!3 X-Originating-IP: [66.77.174.16] X-SYMC-ESS-Client-Auth: outbound-route-from=pass X-StarScan-Received: X-StarScan-Version: 9.31.5; banners=-,-,- X-VirusChecked: Checked Received: (qmail 17157 invoked from network); 21 Feb 2019 15:24:37 -0000 Received: from owa.digi.com (HELO MCL-VMS-XCH01.digi.com) (66.77.174.16) by server-8.tower-405.messagelabs.com with DHE-RSA-AES256-GCM-SHA384 encrypted SMTP; 21 Feb 2019 15:24:37 -0000 Received: from MTK-SMS-XCH01.digi.com (10.10.8.195) by MCL-VMS-XCH01.digi.com (10.5.8.49) with Microsoft SMTP Server (TLS) id 14.3.408.0; Thu, 21 Feb 2019 09:24:37 -0600 Received: from log-linux-hp-agonzal.digi.com (10.101.2.214) by MTK-SMS-XCH01.digi.com (10.10.8.195) with Microsoft SMTP Server (TLS) id 14.3.408.0; Thu, 21 Feb 2019 09:24:36 -0600 From: Alex Gonzalez To: Date: Thu, 21 Feb 2019 16:24:21 +0100 Message-ID: <1550762666-17995-2-git-send-email-alex.gonzalez@digi.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1550762666-17995-1-git-send-email-alex.gonzalez@digi.com> References: <1550762666-17995-1-git-send-email-alex.gonzalez@digi.com> MIME-Version: 1.0 X-Originating-IP: [10.101.2.214] Subject: [3rdparty][PATCH 1/6] ccimx6ulsbcexpress: Separate machine configuration into SOM and board 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, 21 Feb 2019 15:38:59 -0000 Content-Type: text/plain This commit prepares for the introduction of a second ConnectCore 6UL System-On-Module based board by grouping the SOM configuration into its own file avoiding code redundancy. Signed-off-by: Alex Gonzalez --- conf/machine/ccimx6ulsbcexpress.conf | 33 +++------------------------------ conf/machine/include/ccimx6ulsom.conf | 34 ++++++++++++++++++++++++++++++++++ 2 files changed, 37 insertions(+), 30 deletions(-) create mode 100644 conf/machine/include/ccimx6ulsom.conf diff --git a/conf/machine/ccimx6ulsbcexpress.conf b/conf/machine/ccimx6ulsbcexpress.conf index 455087270653..cefc49af1379 100644 --- a/conf/machine/ccimx6ulsbcexpress.conf +++ b/conf/machine/ccimx6ulsbcexpress.conf @@ -4,35 +4,8 @@ #@DESCRIPTION: Machine configuration for ConnectCore 6UL SBC Express board. #@MAINTAINER: Alex Gonzalez -MACHINEOVERRIDES =. "mx6:mx6ul:ccimx6ul:use-mainline-bsp:" - -include conf/machine/include/imx-base.inc -include conf/machine/include/tune-cortexa7.inc - -PREFERRED_PROVIDER_virtual/bootloader = "u-boot-digi" -PREFERRED_PROVIDER_u-boot = "u-boot-digi" - -UBOOT_BOOTSCRIPT = "boot.scr" - -UBOOT_CONFIG ??= "ccimx6ulstarter1GB ccimx6ulstarter" -UBOOT_CONFIG[ccimx6ulstarter1GB] = "ccimx6ulstarter1GB_defconfig" -UBOOT_CONFIG[ccimx6ulstarter] = "ccimx6ulstarter_defconfig" - -MACHINE_EXTRA_RDEPENDS += " \ - mtd-utils-ubifs \ -" -# mkfs.ubifs parameters for boot partition (the one holding kernel and device tree files) -# Max LEB count (-c 255) calculated for a partition of up to 32 MiB considering 128 KiB erase-block size. -MKUBIFS_BOOT_ARGS ?= "-m 2048 -e 126976 -c 255" - -# mkfs.ubifs parameters for rootfs partition -# Max LEB count (-c 8191) calculated for a partition of up to 1 GiB considering 128 KiB erase-block size. -MKUBIFS_ARGS ?= "-m 2048 -e 126976 -c 8191" - -IMAGE_CLASSES += "image_types_digi" -# Overwrite the defaults in imx-base not to include wic images -IMAGE_FSTYPES = "tar.bz2 ubifs boot.ubifs" - -SERIAL_CONSOLE = "115200 ttymxc4" +include conf/machine/include/ccimx6ulsom.conf KERNEL_DEVICETREE = "imx6ul-ccimx6ulsbcexpress.dtb" + +SERIAL_CONSOLES = "115200;ttymxc4" diff --git a/conf/machine/include/ccimx6ulsom.conf b/conf/machine/include/ccimx6ulsom.conf new file mode 100644 index 000000000000..0c15e7308524 --- /dev/null +++ b/conf/machine/include/ccimx6ulsom.conf @@ -0,0 +1,34 @@ +#@TYPE: Machine +#@NAME: ConnecCore 6UL SOM +#@SOC: i.MX6UL +#@DESCRIPTION: Machine configuration for ConnectCore 6UL System-On-Module. +#@MAINTAINER: Alex Gonzalez + +MACHINEOVERRIDES =. "mx6:mx6ul:ccimx6ul:use-mainline-bsp:" + +include conf/machine/include/imx-base.inc +include conf/machine/include/tune-cortexa7.inc + +PREFERRED_PROVIDER_virtual/bootloader = "u-boot-digi" +PREFERRED_PROVIDER_u-boot = "u-boot-digi" + +UBOOT_BOOTSCRIPT = "boot.scr" + +UBOOT_CONFIG ??= "ccimx6ulstarter1GB ccimx6ulstarter" +UBOOT_CONFIG[ccimx6ulstarter1GB] = "ccimx6ulstarter1GB_defconfig" +UBOOT_CONFIG[ccimx6ulstarter] = "ccimx6ulstarter_defconfig" + +MACHINE_EXTRA_RDEPENDS += " \ + mtd-utils-ubifs \ +" +# mkfs.ubifs parameters for boot partition (the one holding kernel and device tree files) +# Max LEB count (-c 255) calculated for a partition of up to 32 MiB considering 128 KiB erase-block size. +MKUBIFS_BOOT_ARGS ?= "-m 2048 -e 126976 -c 255" + +# mkfs.ubifs parameters for rootfs partition +# Max LEB count (-c 8191) calculated for a partition of up to 1 GiB considering 128 KiB erase-block size. +MKUBIFS_ARGS ?= "-m 2048 -e 126976 -c 8191" + +IMAGE_CLASSES += "image_types_digi" +# Overwrite the defaults in imx-base not to include wic images +IMAGE_FSTYPES = "tar.bz2 ubifs boot.ubifs"