Skip to content

Commit cdc1503

Browse files
committed
sunxi: fix bootargs when building without net
Signed-off-by: Michel-FK <[email protected]>
1 parent 99e19e8 commit cdc1503

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

include/configs/sunxi-common.h

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -395,6 +395,18 @@ extern int soft_i2c_gpio_scl;
395395
#define BOOTENV_DEV_NAME_FEL(devtypeu, devtypel, instance) \
396396
"fel "
397397

398+
#if CONFIG_IS_ENABLED(CMD_PXE)
399+
# define BOOT_TARGET_PXE(func) func(PXE, pxe, na)
400+
#else
401+
# define BOOT_TARGET_PXE(func)
402+
#endif
403+
404+
#if CONFIG_IS_ENABLED(CMD_DHCP)
405+
# define BOOT_TARGET_DHCP(func) func(DHCP, dhcp, na)
406+
#else
407+
# define BOOT_TARGET_DHCP(func)
408+
#endif
409+
398410
#define BOOT_TARGET_DEVICES(func) \
399411
func(FEL, fel, na) \
400412
BOOT_TARGET_DEVICES_MMC(func) \

0 commit comments

Comments
 (0)