Skip to contentSkip to conversation

colibri-vf.conf: change some assignments to soft default

PATCH In review Brandon Shibley 2 participants 5 messages Mar 24, 2016 Arm i.MX and Layerscape

lore
Share & tools
lore
#0 lore raw

PATCH 1/3 colibri-vf.conf: change some assignments to soft default

Changed some machine variable assignments in colibri-vf.conf from hard assignments to soft defaults so they may be overridden by user configuration (e.g. conf/local.conf).

---
 conf/machine/colibri-vf.conf | 20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)
conf/machine/colibri-vf.conf +10 -10
index 09b51af..b224418 100644
@@ -16,16 +16,16 @@ KERNEL_DEVICETREE += "vf500-colibri-eval-v3.dtb vf610-colibri-eval-v3.dtb"
 # U-Boot expects the kernel and device tree directly in /boot of the rootfs
 MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "kernel-image kernel-devicetree"
 
-PREFERRED_PROVIDER_u-boot = "u-boot-toradex"
-PREFERRED_PROVIDER_virtual/bootloader = "u-boot-toradex"
-PREFERRED_PROVIDER_virtual/kernel-module-mcc = "kernel-module-mcc-toradex"
-PREFERRED_PROVIDER_virtual/kernel-module-mcc-dev = "kernel-module-mcc-toradex"
-PREFERRED_VERSION_mqxboot = "1.%"
+PREFERRED_PROVIDER_u-boot ?= "u-boot-toradex"
+PREFERRED_PROVIDER_virtual/bootloader ?= "u-boot-toradex"
+PREFERRED_PROVIDER_virtual/kernel-module-mcc ?= "kernel-module-mcc-toradex"
+PREFERRED_PROVIDER_virtual/kernel-module-mcc-dev ?= "kernel-module-mcc-toradex"
+PREFERRED_VERSION_mqxboot ?= "1.%"
 
 # U-Boot NAND binary includes 0x400 padding required for NAND boot
-UBOOT_BINARY = "u-boot-nand.imx"
-UBOOT_MAKE_TARGET = "u-boot-nand.imx"
-UBOOT_MACHINE = "colibri_vf_defconfig"
+UBOOT_BINARY ?= "u-boot-nand.imx"
+UBOOT_MAKE_TARGET ?= "u-boot-nand.imx"
+UBOOT_MACHINE ?= "colibri_vf_defconfig"
 
 IMAGE_FSTYPES = "tar.bz2 ubifs ubi"
 
@@ -34,6 +34,6 @@ MKUBIFS_ARGS = " -c 8112 -e 124KiB -m 2KiB -F"
 UBINIZE_ARGS = " -p 128KiB -m 2048 -s 2048"
 UBI_VOLNAME = "rootfs"
 
-SERIAL_CONSOLE = "115200 ttyLP0"
+SERIAL_CONSOLE ?= "115200 ttyLP0"
 
-MACHINE_FEATURES = "apm usbgadget usbhost vfat alsa touchscreen"
+MACHINE_FEATURES += "apm usbgadget usbhost vfat alsa touchscreen"

--
1.9.1

[https://docs.toradex.com/102179-toradex-logo-for-us-email-signature.png]<http://toradex.com> Global Leader in ARM™
Embedded Computer Modules

Products<http://www.toradex.com/products/compare-products> | Developer Center<http://developer.toradex.com/> | Request Samples<http://www.toradex.com/shop/request-samples> | Challenge<http://challenge.toradex.com/> Meet our engineers at:<https://www.toradex.com/events>
- GPU Technology Conference, Silicon Valley, CA, United States, Apr 04-07, 2016
- Embedded Systems Conference (ESC) Boston 2016, Boston, MA, United States, Apr 13-14, 2016
- NXP FTF Tech Forum 2016, Austin, TX, United States, May 16-19, 2016
Join our webinar:
- Getting Started with Azure IoT on Devices. Register here<https://www.toradex.com/webinars/getting-started-with-azure-iot-on-devices>.

#1 lore raw

PATCH 2/3 colibri-imx6.conf: change some assignments to soft default

Changed some machine variable assignments in colibri-imx6.conf from hard assignments to soft defaults so they may be overridden by user configuration (e.g. conf/local.conf).

---
 conf/machine/colibri-imx6.conf | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
conf/machine/colibri-imx6.conf +6 -6
index 64987a6..4342f0f 100644
@@ -9,14 +9,14 @@ include conf/machine/include/tune-cortexa9.inc
 
 SOC_FAMILY = "mx6:mx6dl"
 
-PREFERRED_PROVIDER_virtual/kernel = "linux-toradex"
-KERNEL_DEVICETREE = "imx6dl-colibri-eval-v3.dtb imx6dl-colibri-cam-eval-v3.dtb"
+PREFERRED_PROVIDER_virtual/kernel ?= "linux-toradex"
+KERNEL_DEVICETREE += "imx6dl-colibri-eval-v3.dtb imx6dl-colibri-cam-eval-v3.dtb"
 KERNEL_IMAGETYPE = "uImage"
 
-PREFERRED_PROVIDER_u-boot = "u-boot-toradex"
-PREFERRED_PROVIDER_virtual/bootloader = "u-boot-toradex"
-UBOOT_MACHINE = "colibri_imx6_defconfig"
+PREFERRED_PROVIDER_u-boot ?= "u-boot-toradex"
+PREFERRED_PROVIDER_virtual/bootloader ?= "u-boot-toradex"
+UBOOT_MACHINE ?= "colibri_imx6_defconfig"
 
-SERIAL_CONSOLE = "115200 ttymxc0"
+SERIAL_CONSOLE ?= "115200 ttymxc0"
 
 MACHINE_FEATURES += "screen usbgadget usbhost vfat ext2 alsa touchscreen wifi bluetooth 3g"

--
1.9.1

[https://docs.toradex.com/102179-toradex-logo-for-us-email-signature.png]<http://toradex.com> Global Leader in ARM™
Embedded Computer Modules

Products<http://www.toradex.com/products/compare-products> | Developer Center<http://developer.toradex.com/> | Request Samples<http://www.toradex.com/shop/request-samples> | Challenge<http://challenge.toradex.com/> Meet our engineers at:<https://www.toradex.com/events>
- GPU Technology Conference, Silicon Valley, CA, United States, Apr 04-07, 2016
- Embedded Systems Conference (ESC) Boston 2016, Boston, MA, United States, Apr 13-14, 2016
- NXP FTF Tech Forum 2016, Austin, TX, United States, May 16-19, 2016
Join our webinar:
- Getting Started with Azure IoT on Devices. Register here<https://www.toradex.com/webinars/getting-started-with-azure-iot-on-devices>.

#2 lore raw

PATCH 3/3 apalis-imx6.conf: change some assignments to soft default

In reply to Brandon Shibley

Changed some machine variable assignments in apalis-imx6.conf from hard assignments to soft defaults so they may be overridden by user configuration (e.g. conf/local.conf).

---
 conf/machine/apalis-imx6.conf | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
conf/machine/apalis-imx6.conf +5 -5
index 137e12c..e77b1de 100644
@@ -9,13 +9,13 @@ include conf/machine/include/tune-cortexa9.inc
 
 SOC_FAMILY = "mx6:mx6q"
 
-PREFERRED_PROVIDER_virtual/kernel = "linux-toradex"
-KERNEL_DEVICETREE = "imx6q-apalis-eval.dtb imx6q-apalis_v1_0-eval.dtb \
+PREFERRED_PROVIDER_virtual/kernel ?= "linux-toradex"
+KERNEL_DEVICETREE += "imx6q-apalis-eval.dtb imx6q-apalis_v1_0-eval.dtb \
                      imx6q-apalis-ixora.dtb imx6q-apalis_v1_0-ixora.dtb"
 KERNEL_IMAGETYPE = "uImage"
 
-PREFERRED_PROVIDER_u-boot = "u-boot-toradex"
-PREFERRED_PROVIDER_virtual/bootloader = "u-boot-toradex"
+PREFERRED_PROVIDER_u-boot ?= "u-boot-toradex"
+PREFERRED_PROVIDER_virtual/bootloader ?= "u-boot-toradex"
 # Modules in commercial and industrial temperature range have different RAM.
 # Using apalis_imx6_it_defconfig builds an U-Boot working for both temperature
 # ranges, however, on commercially rated modules the RAM bandwidth is 5-10%
@@ -25,6 +25,6 @@ UBOOT_CONFIG ??= "it"
 UBOOT_CONFIG[com] = "apalis_imx6_defconfig"
 UBOOT_CONFIG[it] = "apalis_imx6_it_defconfig"
 
-SERIAL_CONSOLE = "115200 ttymxc0"
+SERIAL_CONSOLE ?= "115200 ttymxc0"
 
 MACHINE_FEATURES += "screen usbgadget usbhost vfat ext2 alsa touchscreen wifi bluetooth 3g pci"

--
1.9.1

[https://docs.toradex.com/102179-toradex-logo-for-us-email-signature.png]<http://toradex.com> Global Leader in ARM™
Embedded Computer Modules

Products<http://www.toradex.com/products/compare-products> | Developer Center<http://developer.toradex.com/> | Request Samples<http://www.toradex.com/shop/request-samples> | Challenge<http://challenge.toradex.com/> Meet our engineers at:<https://www.toradex.com/events>
- GPU Technology Conference, Silicon Valley, CA, United States, Apr 04-07, 2016
- Embedded Systems Conference (ESC) Boston 2016, Boston, MA, United States, Apr 13-14, 2016
- NXP FTF Tech Forum 2016, Austin, TX, United States, May 16-19, 2016
Join our webinar:
- Getting Started with Azure IoT on Devices. Register here<https://www.toradex.com/webinars/getting-started-with-azure-iot-on-devices>.

#4 lore raw

Hi Brandon

Quoted 3 lines

I'll send a v2 of the series in plaintext and with my Acked-by.

Disregard this. Otavio was able to apply the patches.

Regards
Max