]> git.baikalelectronics.ru Git - uboot.git/commit
lx2160a: Fix distroboot device list for configs without USB/SCSI/etc
authorDaniel Klauer <daniel.klauer@gin.de>
Wed, 9 Feb 2022 14:53:41 +0000 (15:53 +0100)
committerPriyanka Jain <priyanka.jain@nxp.com>
Mon, 28 Feb 2022 06:31:02 +0000 (12:01 +0530)
commita3dbaba17161b357c009bb65be3b8684bed728b6
tree0c56a40a1d3566ea8a1582dd1e4600d337f5ba6a
parentdecd922e711c343c8697f4d261917073ad8f3c31
lx2160a: Fix distroboot device list for configs without USB/SCSI/etc

The BOOT_TARGET_DEVICES list for distro_bootcmd was hard-coded to assume
that all boot devices are available/enabled in the configuration,
thus ignoring the actual config settings. The config_distro_bootcmd.h
header file specifically has compile-time checks to detect such problems.

To allow disabling USB, SCSI, etc. in custom lx2160a board configs,
make it depend on the config settings and use only the enabled features.

Signed-off-by: Daniel Klauer <daniel.klauer@gin.de>
Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
include/configs/lx2160a_common.h