nitrogen8m: add BOUNDARY_DEVICES_UBOOT_DEFCONFIG variable

Add dedicated BOUNDARY_DEVICES_UBOOT_DEFCONFIG variable, as there can
be different board variants in which the defconfig needs to be
modified in the build.

Signed-off-by: Chris Dimich <Chris.Dimich@boundarydevices.com>
This commit is contained in:
Chris Dimich 2021-01-26 16:01:00 -08:00 committed by Otavio Salvador
parent 1738e559d8
commit bd2e637193

View File

@ -31,8 +31,17 @@ SPL_BINARY = "spl/u-boot-spl.bin"
UBOOT_DTB_NAME ?= "imx8mq-nitrogen8m.dtb"
UBOOT_MAKE_TARGET = ""
UBOOT_SUFFIX = "bin"
# Used to define the U-Boot defconfig for different board variants. The naming
# is here as a safeguard mechanism so that a user doesn't build and flash the
# wrong configuration.
#
# This method will be optimized in the future, but for now, use this variable to
# define the defconfig to be built.
BOUNDARY_DEVICES_UBOOT_DEFCONFIG ?= "nitrogen8m"
UBOOT_CONFIG ??= "sd"
UBOOT_CONFIG[sd] = "nitrogen8m_defconfig,sdcard"
UBOOT_CONFIG[sd] = "${BOUNDARY_DEVICES_UBOOT_DEFCONFIG}_defconfig,sdcard"
# Set ATF platform name
ATF_PLATFORM = "imx8mq"