summaryrefslogtreecommitdiff
path: root/boot/bootmeth_pxe.c
diff options
context:
space:
mode:
Diffstat (limited to 'boot/bootmeth_pxe.c')
-rw-r--r--boot/bootmeth_pxe.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/boot/bootmeth_pxe.c b/boot/bootmeth_pxe.c
index e6992168c06..ecf8557af83 100644
--- a/boot/bootmeth_pxe.c
+++ b/boot/bootmeth_pxe.c
@@ -44,10 +44,13 @@ static int distro_pxe_check(struct udevice *dev, struct bootflow_iter *iter)
int ret;
/* This only works on network devices */
- ret = bootflow_iter_uses_network(iter);
+ ret = bootflow_iter_check_net(iter);
if (ret)
return log_msg_ret("net", ret);
+ if (iter->method_flags & BOOTFLOW_METHF_DHCP_ONLY)
+ return log_msg_ret("dhcp", -ENOTSUPP);
+
return 0;
}