mkimage-profiles/features.in/net-eth/config.mk
Anton Midyukov 5e60c91a04 net-eth, mipsel-*: Add new target use/net-eth/dhcp/timeout/$TIMEOUT
Thanks for the idea Ivan A. Melnikov.
2021-02-14 23:22:56 +07:00

29 lines
876 B
Makefile

# NB: this is aimed at LiveCD/installer images
+net-eth: use/net-eth use/stage2/net-eth; @:
# see also use/stage2/net-eth; do not depend on it though
# as stage2-less images need preconfigured networking too
use/net-eth: use/net/etcnet
@$(call add_feature)
@$(call xport,NET_ETH)
@$(call add,BASE_PACKAGES,udev-rule-generator-net)
use/net-eth/networkd: use/net/networkd
@$(call add_feature)
@$(call xport,NET_ETH)
@$(call add,BASE_PACKAGES,udev-rule-generator-net)
# typical boilerplate
use/net-eth/dhcp: use/net-eth use/net/dhcp
@$(call add,NET_ETH,eth0:dhcp)
@$(call try,NET_ETH_TIMEOUT,7)
@$(call xport,NET_ETH_TIMEOUT)
use/net-eth/dhcp/timeout/%: use/net-eth/dhcp
@$(call set,NET_ETH_TIMEOUT,$*)
use/net-eth/networkd-dhcp: use/net-eth/networkd
@$(call add,NET_ETH,eth0:dhcp)
# use e.g. eth0:static:10.0.0.2/24:10.0.0.1 for predefined static configuration