nitrogen8mn: 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:02:11 -08:00 committed by Otavio Salvador
parent cd78a1905d
commit 54171c5c54

View File

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