]> code.ossystems Code Review - meta-freescale.git/commitdiff
qoriq-base.inc: Add support to easily choose which BSP to use
authorTing Liu <ting.liu@nxp.com>
Thu, 14 May 2020 15:07:40 +0000 (23:07 +0800)
committerOtavio Salvador <otavio@ossystems.com.br>
Fri, 15 May 2020 11:42:44 +0000 (08:42 -0300)
Machines or distros can define which BSP it should use by default. We
are intending to default for NXP BSP by default and specific
machines or DISTROs might change it if need.

Two values are considered valid: mainline, nxp

For example:

QORIQ_DEFAULT_BSP = "nxp"

Signed-off-by: Ting Liu <ting.liu@nxp.com>
conf/machine/include/qoriq-base.inc

index 6166cb2a1bd0087914a4bc4948fe85ec8058d617..1eb8d1b002b99d382a5d1e92a0040bfdbd09b24b 100644 (file)
@@ -20,6 +20,15 @@ EXTRA_IMAGEDEPENDS += "u-boot cst-native"
 
 MACHINEOVERRIDES =. "qoriq:"
 
+# Machines or distros can define which BSP it should use by default. We are
+# intending to default for nxp BSP by default and specific machines or
+# DISTROs might change it if need.
+#
+# Two values are considered valid: mainline, nxp
+QORIQ_DEFAULT_BSP ?= "nxp"
+
+MACHINEOVERRIDES =. "use-${QORIQ_DEFAULT_BSP}-bsp:"
+
 # Sub-architecture support
 MACHINE_SOCARCH_SUFFIX ?= ""
 MACHINE_SOCARCH_SUFFIX_qoriq = "-qoriq"