mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-16 17:58:23 +00:00
d8970dae27
Add a new command 'wol': Wait for an incoming Wake-on-LAN packet or time out if no WoL packed is received. If the WoL packet contains a password, it is saved in the environment variable 'wolpassword' using the etherwake format (dot or colon separated decimals). Intended use case: a networked device should boot an alternate image. It's attached to a network on a client site, modifying the DHCP server configuration or setup of a tftp server is not allowed. After power on the device waits a few seconds for a WoL packet. If a packet is received, the device boots the alternate image. Otherwise it boots the default image. This method is a simple way to interact with a system via network even if only the MAC address is known. Tools to send WoL packets are available on all common platforms. Some Ethernet drivers seem to pad the incoming packet. The additional padding bytes might be recognized as Wake-on-LAN password bytes. By default enabled in pengwyn_defconfig. Signed-off-by: Lothar Felten <lothar.felten@gmail.com> Acked-by: Joe Hershberger <joe.hershberger@ni.com>
32 lines
944 B
Makefile
32 lines
944 B
Makefile
# SPDX-License-Identifier: GPL-2.0+
|
|
#
|
|
# (C) Copyright 2000-2006
|
|
# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
|
|
|
|
#ccflags-y += -DDEBUG
|
|
|
|
obj-y += checksum.o
|
|
obj-$(CONFIG_NET) += arp.o
|
|
obj-$(CONFIG_CMD_BOOTP) += bootp.o
|
|
obj-$(CONFIG_CMD_CDP) += cdp.o
|
|
obj-$(CONFIG_CMD_DNS) += dns.o
|
|
ifdef CONFIG_DM_ETH
|
|
obj-$(CONFIG_NET) += eth-uclass.o
|
|
else
|
|
obj-$(CONFIG_NET) += eth_legacy.o
|
|
endif
|
|
obj-$(CONFIG_NET) += eth_common.o
|
|
obj-$(CONFIG_CMD_LINK_LOCAL) += link_local.o
|
|
obj-$(CONFIG_NET) += net.o
|
|
obj-$(CONFIG_CMD_NFS) += nfs.o
|
|
obj-$(CONFIG_CMD_PING) += ping.o
|
|
obj-$(CONFIG_CMD_RARP) += rarp.o
|
|
obj-$(CONFIG_CMD_SNTP) += sntp.o
|
|
obj-$(CONFIG_CMD_TFTPBOOT) += tftp.o
|
|
obj-$(CONFIG_UDP_FUNCTION_FASTBOOT) += fastboot.o
|
|
obj-$(CONFIG_CMD_WOL) += wol.o
|
|
|
|
# Disable this warning as it is triggered by:
|
|
# sprintf(buf, index ? "foo%d" : "foo", index)
|
|
# and this is intentional usage.
|
|
CFLAGS_eth_common.o += -Wno-format-extra-args
|