]> code.ossystems Code Review - meta-freescale.git/commitdiff
imx-base.inc: Enable machine overrides extender for i.MX6
authorOtavio Salvador <otavio@ossystems.com.br>
Fri, 1 Jul 2016 18:24:03 +0000 (15:24 -0300)
committerOtavio Salvador <otavio@ossystems.com.br>
Thu, 8 Sep 2016 14:24:24 +0000 (11:24 -0300)
This enables the machine overrides extender for the i.MX6 devices. It
maps (spaces are used to easy the read):

 - mx6q  ->        imxipu imxvpu imxgpu2d imxgpu3d
 - mx6dl -> imxpxp imxipu imxvpu imxgpu2d imxgpu3d imxepdc
 - mx6sx -> imxpxp               imxgpu2d imxgpu3d
 - mx6sl -> imxpxp               imxgpu2d          imxepdc
 - mx6ul -> imxpxp
 - mx7d  -> imxpxp                                 imxepdc

So it allows for reusing of overrides while keeps this control at the
BSP side.

Change-Id: Ie43aa497ce57b4a29f7b37a3eb941fb0d66691aa
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
conf/machine/include/imx-base.inc

index a6db0382defaaa3b586ebf0f19a00343a187fa2f..b54b7f57121fee1f11728bdcab435f0fd68156e4 100644 (file)
@@ -48,6 +48,15 @@ DEFAULTTUNE_mx6ul ?= "cortexa7thf-neon"
 DEFAULTTUNE_mx7 ?= "cortexa7thf-neon"
 DEFAULTTUNE_vf ?= "cortexa5thf-neon"
 
+INHERIT += "machine-overrides-extender"
+
+MACHINEOVERRIDES_EXTENDER_mx6q  = "imxipu:imxvpu:imxgpu2d:imxgpu3d"
+MACHINEOVERRIDES_EXTENDER_mx6dl = "imxpxp:imxipu:imxvpu:imxgpu2d:imxgpu3d:imxepdc"
+MACHINEOVERRIDES_EXTENDER_mx6sx = "imxpxp:imxgpu2d:imxgpu3d"
+MACHINEOVERRIDES_EXTENDER_mx6sl = "imxpxp:imxgpu2d:imxepdc"
+MACHINEOVERRIDES_EXTENDER_mx6ul = "imxpxp"
+MACHINEOVERRIDES_EXTENDER_mx7d  = "imxpxp:imxepdc"
+
 # Sub-architecture support
 MACHINE_SOCARCH_SUFFIX ?= ""
 MACHINE_SOCARCH_SUFFIX_mx6q = "-mx6qdl"