nitrogen8mm: 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:40 -08:00 committed by Otavio Salvador
parent bd2e637193
commit cd78a1905d

View File

@ -35,8 +35,17 @@ SPL_BINARY = "spl/u-boot-spl.bin"
UBOOT_DTB_NAME ?= "imx8mm-nitrogen8mm_rev2.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 ?= "nitrogen8mm_rev2_2g"
UBOOT_CONFIG ??= "sd"
UBOOT_CONFIG[sd] = "nitrogen8mm_rev2_2g_defconfig,sdcard"
UBOOT_CONFIG[sd] = "${BOUNDARY_DEVICES_UBOOT_DEFCONFIG}_defconfig,sdcard"
# Set ATF platform name
ATF_PLATFORM = "imx8mm"