diff options
author | Linus Walleij <linus.walleij@linaro.org> | 2023-01-24 01:07:21 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2023-02-06 21:04:52 +0300 |
commit | 0c1413f6d748d7bb685ad3b554edce6a9ca5c09d (patch) | |
tree | b0025b465b2f90aa2baa714822261a4aa0a08730 /test | |
parent | 4209c4736475de4186dc1006d3b929a51b664f73 (diff) | |
download | u-boot-0c1413f6d748d7bb685ad3b554edce6a9ca5c09d.tar.xz |
test: bootdev: Do not require USB to compile test
This test will block compilation of the entire test suite
on platforms without USB support. Make the extern
"usb_started" conditional on USB host or gadget and
define a dummy flag if neither is enabled.
Cc: Simon Glass <sjg@chromium.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'test')
-rw-r--r-- | test/boot/bootdev.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/boot/bootdev.c b/test/boot/bootdev.c index ef5215bbce..de8dd66b82 100644 --- a/test/boot/bootdev.c +++ b/test/boot/bootdev.c @@ -18,7 +18,11 @@ #include "bootstd_common.h" /* Allow reseting the USB-started flag */ +#if defined(CONFIG_USB_HOST) || defined(CONFIG_USB_GADGET) extern char usb_started; +#else +char usb_started; +#endif /* Check 'bootdev list' command */ static int bootdev_test_cmd_list(struct unit_test_state *uts) |