Introduce an include file to be able to support multiple boards using the cfa10036 by reusing the imx-bootlets, barebox and kernel configurations.
Signed-off-by: Alexandre Belloni <[email protected]> --- conf/machine/cfa10036.conf | 34 +--------------------------------- conf/machine/include/cfa10036.inc | 30 ++++++++++++++++++++++++++++++ 2 files changed, 31 insertions(+), 33 deletions(-) create mode 100644 conf/machine/include/cfa10036.inc diff --git a/conf/machine/cfa10036.conf b/conf/machine/cfa10036.conf index b7cdd8d..242d352 100644 --- a/conf/machine/cfa10036.conf +++ b/conf/machine/cfa10036.conf @@ -3,36 +3,4 @@ #@SOC: i.MX28 #@DESCRIPTION: Machine configuration for CFA-10036 -include conf/machine/include/mxs-base.inc - -SOC_FAMILY = "mxs:mx28" - -PREFERRED_PROVIDER_virtual/kernel = "linux-cfa" - -IMAGE_BOOTLOADER = "barebox" -BAREBOX_BINARY = "barebox" - -IMXBOOTLETS_MACHINE = "cfa10036" - -KERNEL_IMAGETYPE = "zImage" -KERNEL_DEVICETREE = "imx28-cfa10036.dtb \ - imx28-cfa10037.dtb \ - imx28-cfa10049.dtb \ - imx28-cfa10055.dtb \ - imx28-cfa10056.dtb \ - imx28-cfa10057.dtb \ - imx28-cfa10058.dtb \ -" - -# we need the kernel to be installed in the final image -IMAGE_INSTALL_append = " kernel-image kernel-devicetree" - -SDCARD_ROOTFS ?= "${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.ext3" -IMAGE_FSTYPES ?= "tar.bz2 ext3 barebox.mxsboot-sdcard sdcard" - -SERIAL_CONSOLE = "115200 ttyAMA0" - -MACHINE_FEATURES = "apm usbgadget usbhost vfat" - -# Gstreamer plugin -MACHINE_GSTREAMER_PLUGIN ?= "gst-fsl-plugin" +include conf/machine/include/cfa10036.inc diff --git a/conf/machine/include/cfa10036.inc b/conf/machine/include/cfa10036.inc new file mode 100644 index 0000000..0adea54 --- /dev/null +++ b/conf/machine/include/cfa10036.inc @@ -0,0 +1,30 @@ +# Common definitions for cfa-10036 boards + +include conf/machine/include/mxs-base.inc + +SOC_FAMILY = "mxs:mx28" + +MACHINEOVERRIDES =. "cfa10036:" + +PREFERRED_PROVIDER_virtual/kernel = "linux-cfa" + +IMAGE_BOOTLOADER = "barebox" +BAREBOX_BINARY = "barebox" + +IMXBOOTLETS_MACHINE = "cfa10036" + +KERNEL_IMAGETYPE = "zImage" +KERNEL_DEVICETREE = "imx28-cfa10036.dtb" + +# we need the kernel to be installed in the final image +IMAGE_INSTALL_append = " kernel-image kernel-devicetree" + +SDCARD_ROOTFS ?= "${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.ext3" +IMAGE_FSTYPES ?= "tar.bz2 ext3 barebox.mxsboot-sdcard sdcard" + +SERIAL_CONSOLE = "115200 ttyAMA0" + +MACHINE_FEATURES = "apm usbgadget usbhost vfat" + +# Gstreamer plugin +MACHINE_GSTREAMER_PLUGIN ?= "gst-fsl-plugin" -- 1.8.1.2 _______________________________________________ meta-freescale mailing list [email protected] https://lists.yoctoproject.org/listinfo/meta-freescale
