summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Agner <stefan.agner@toradex.com>2016-11-30 15:34:36 -0800
committerMarcel Ziswiler <marcel.ziswiler@toradex.com>2017-01-11 21:27:12 +0100
commitb377df805b744f4cd7b00f509e167dbbbd4023c8 (patch)
treec7da1df941333a5e1589516ab22aa4182d71724b
parentc65a82ff669c4c639c5dba67317a9406a32f7190 (diff)
distro: allow to overwrite NET USB start command
Boards with native ethernet support don't require USB start. This change lets a board configuration overwrite the NET USB command, so that U-Boot does not start USB for network boot by default. Signed-off-by: Stefan Agner <stefan.agner@toradex.com> Acked-by: Max Krummenacher <max.krummenacher@toradex.com>
-rw-r--r--include/config_distro_bootcmd.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/config_distro_bootcmd.h b/include/config_distro_bootcmd.h
index 9ecaf38a33..b227cf422f 100644
--- a/include/config_distro_bootcmd.h
+++ b/include/config_distro_bootcmd.h
@@ -212,7 +212,9 @@
#endif
#ifdef CONFIG_CMD_USB
+#ifndef BOOTENV_RUN_NET_USB_START
#define BOOTENV_RUN_NET_USB_START "run boot_net_usb_start; "
+#endif
#define BOOTENV_SHARED_USB \
"boot_net_usb_start=usb start\0" \
"usb_boot=" \