Patchwork [meta-fsl-arm,3/7] imx6sabreauto-common.inc: Create file for SABRE AUTO common

login
register
mail settings
Submitter Otavio Salvador
Date Aug. 6, 2013, 5:33 p.m.
Message ID <1375810400-1854-3-git-send-email-otavio@ossystems.com.br>
Download mbox | patch
Permalink /patch/55201/
State Accepted
Delegated to: Otavio Salvador
Headers show

Comments

Otavio Salvador - Aug. 6, 2013, 5:33 p.m.
From: Daiane Angolini <daiane.angolini@freescale.com>

Freescale i.MX6 SABRE AUTO machines have some common
configuration. This file is used in order to avoid
duplicating in all SABRE AUTO boards.

Replace any 'include' to 'require' to make sure an
error is launched in case the file is missing.

Change-Id: I0d1e9e7b64ac3e34a18a32ca13872c23d4d668b2
Signed-off-by: Daiane Angolini <daiane.angolini@freescale.com>
---
 conf/machine/imx6qsabreauto.conf              | 7 +------
 conf/machine/include/imx6sabreauto-common.inc | 8 ++++++++
 2 files changed, 9 insertions(+), 6 deletions(-)
 create mode 100644 conf/machine/include/imx6sabreauto-common.inc

Patch

diff --git a/conf/machine/imx6qsabreauto.conf b/conf/machine/imx6qsabreauto.conf
index f47f33a..979ad86 100644
--- a/conf/machine/imx6qsabreauto.conf
+++ b/conf/machine/imx6qsabreauto.conf
@@ -3,15 +3,10 @@ 
 #@SOC: i.MX6Q
 #@DESCRIPTION: Machine configuration for Freescale i.MX6Q SABRE Automotive
 
-include conf/machine/include/imx-base.inc
-include conf/machine/include/tune-cortexa9.inc
+require conf/machine/include/imx6sabreauto-common.inc
 
 SOC_FAMILY = "mx6:mx6q"
 
 KERNEL_DEVICETREE = "${S}/arch/arm/boot/dts/imx6q-sabreauto.dts"
 
 UBOOT_MACHINE = "mx6qsabreauto_config"
-
-SERIAL_CONSOLE = "115200 ttymxc3"
-
-MACHINE_FEATURES += " pci wifi bluetooth"
diff --git a/conf/machine/include/imx6sabreauto-common.inc b/conf/machine/include/imx6sabreauto-common.inc
new file mode 100644
index 0000000..b5177a4
--- /dev/null
+++ b/conf/machine/include/imx6sabreauto-common.inc
@@ -0,0 +1,8 @@ 
+# Provides the i.MX6 SABRE AUTO common settings
+
+require conf/machine/include/imx-base.inc
+require conf/machine/include/tune-cortexa9.inc
+
+SERIAL_CONSOLE = "115200 ttymxc3"
+
+MACHINE_FEATURES += " pci wifi bluetooth"