-DISTRO_FEATURES_append = " agl-medium-arm-compiler"
-
-# This disables the Freescale/NXP Vivante GPU driver and enables
-# etnaviv support.
-MACHINEOVERRIDES .= ":use-mainline-bsp"
-
-# Disable meta-freescale package architecure mangling, as it causes
-# issues with AGL's explicit setting of DEFAULTTUNE.
-INHERIT_remove = "fsl-dynamic-packagearch"
-MACHINE_SOCARCH = "${TUNE_PKGARCH}"
+require agl_imx6-common.inc
# Include devicetrees for SOM 1.5 and Hummingboard 2 hardware
KERNEL_DEVICETREE_append = " \
- imx6dl-hummingboard-som-v15.dtb imx6q-hummingboard-som-v15.dtb \
- imx6dl-hummingboard2.dtb imx6q-hummingboard2.dtb \
- imx6dl-hummingboard2-som-v15.dtb imx6q-hummingboard2-som-v15.dtb \
+ imx6dl-hummingboard-som-v15.dtb \
+ imx6q-hummingboard-som-v15.dtb \
+ imx6dl-hummingboard2.dtb \
+ imx6q-hummingboard2.dtb \
+ imx6dl-hummingboard2-som-v15.dtb \
+ imx6q-hummingboard2-som-v15.dtb \
"
-
-# Disable the meta-freescale weston-init bbappend as it conflicts
-# with AGL's.
-BBMASK = "meta-freescale/recipes-graphics/wayland/weston-init"
-
-# Set CMA size large enough to work with AGL
-UBOOT_EXTLINUX_KERNEL_ARGS_append = " cma=512M"
--- /dev/null
+# Disable meta-freescale package architecure mangling, as it causes
+# issues with AGL's explicit setting of DEFAULTTUNE.
+INHERIT_remove = "fsl-dynamic-packagearch"
+MACHINE_SOCARCH = "${TUNE_PKGARCH}"
+
+# Disable the meta-freescale weston-init bbappend as it conflicts
+# with AGL's.
+BBMASK += "meta-freescale/recipes-graphics/wayland/weston-init"
--- /dev/null
+require agl_imx-common.inc
+
+DISTRO_FEATURES_append = " agl-medium-arm-compiler"
+
+# This disables the Freescale/NXP Vivante GPU driver and enables
+# etnaviv support. This is the default for the i.MX6 platforms in
+# meta-freescale, but not for all the ones in meta-freescale-3rdparty,
+# so set it here to give a consistent default.
+IMX_DEFAULT_BSP = "mainline"
+
+# Set CMA size large enough to work with AGL
+UBOOT_EXTLINUX_KERNEL_ARGS_append = " cma=512M"
+
+AGL_DEFAULT_INITRAMFS_FSTYPES := ""
-DISTRO_FEATURES_append = " agl-medium-arm-compiler"
-
-# This disables the Freescale/NXP Vivante GPU driver and enables
-# etnaviv support.
-MACHINEOVERRIDES .= ":use-mainline-bsp"
-
-# Disable meta-freescale package architecure mangling, as it causes
-# issues with AGL's explicit setting of DEFAULTTUNE.
-INHERIT_remove = "fsl-dynamic-packagearch"
-MACHINE_SOCARCH = "${TUNE_PKGARCH}"
-
-# Disable the meta-freescale weston-init bbappend as it conflicts
-# with AGL's.
-BBMASK = "meta-freescale/recipes-graphics/wayland/weston-init"
-
-# Set CMA size large enough to work with AGL
-UBOOT_EXTLINUX_KERNEL_ARGS_append = " cma=512M"
-
-AGL_DEFAULT_INITRAMFS_FSTYPES := ""
+require agl_imx6-common.inc
-DISTRO_FEATURES_append = " agl-medium-arm-compiler"
+require agl_imx-common.inc
# Force use of the community supported LTS kernel instead of the
# default linux-imx
# Add helper to drive setting up HCI UART device
MACHINE_EXTRA_RRECOMMENDS_append = " hci-uart-helper"
-# Disable meta-freescale package architecure mangling, as it causes
-# issues with AGL's explicit setting of DEFAULTTUNE.
-INHERIT_remove = "fsl-dynamic-packagearch"
-MACHINE_SOCARCH = "${TUNE_PKGARCH}"
-
-# Disable the meta-freescale weston-init bbappend as it conflicts
-# with AGL's.
-BBMASK = "meta-freescale/recipes-graphics/wayland/weston-init"
-
AGL_DEFAULT_INITRAMFS_FSTYPES := ""
-DISTRO_FEATURES_append = " agl-medium-arm-compiler"
-
-# This disables the Freescale/NXP Vivante GPU driver and enables
-# etnaviv support.
-MACHINEOVERRIDES .= ":use-mainline-bsp"
-
-# Disable meta-freescale package architecure mangling, as it causes
-# issues with AGL's explicit setting of DEFAULTTUNE.
-INHERIT_remove = "fsl-dynamic-packagearch"
-MACHINE_SOCARCH = "${TUNE_PKGARCH}"
-
-# Disable the meta-freescale weston-init bbappend as it conflicts
-# with AGL's.
-BBMASK = "meta-freescale/recipes-graphics/wayland/weston-init"
-
-# Set CMA size large enough to work with AGL
-UBOOT_EXTLINUX_KERNEL_ARGS_append = " cma=512M"
-
-#WKS_FILE = "imx-uboot.wks"
-AGL_DEFAULT_INITRAMFS_FSTYPES := ""
+require agl_imx6-common.inc
-find_and_ack_eula $METADIR/meta-freescale EULA
+find_and_ack_eula $METADIR/bsp/meta-freescale EULA
export EULA_FLAG_NAME="ACCEPT_FSL_EULA"
-find_and_ack_eula $METADIR/meta-freescale EULA
+find_and_ack_eula $METADIR/bsp/meta-freescale EULA
export EULA_FLAG_NAME="ACCEPT_FSL_EULA"
-find_and_ack_eula $METADIR/meta-freescale EULA
+find_and_ack_eula $METADIR/bsp/meta-freescale EULA
export EULA_FLAG_NAME="ACCEPT_FSL_EULA"