aboutsummaryrefslogtreecommitdiffstats
path: root/package/base-files/image-config.in
diff options
context:
space:
mode:
authorStijn Tintel <stijn@linux-ipv6.be>2022-12-07 19:04:12 +0200
committerStijn Tintel <stijn@linux-ipv6.be>2023-02-17 16:20:03 +0200
commitbaf76634f38d7415c3d8a5034f40b75e3612b967 (patch)
tree0dec2dffa14ab3f7642a9e46e7b2bbaebf960e28 /package/base-files/image-config.in
parent8c3bcc1989ac5fb596da86bfd82af6f8aafca1ab (diff)
downloadupstream-baf76634f38d7415c3d8a5034f40b75e3612b967.tar.gz
upstream-baf76634f38d7415c3d8a5034f40b75e3612b967.tar.bz2
upstream-baf76634f38d7415c3d8a5034f40b75e3612b967.zip
build: add option to use preinit IP as LAN IP
We currently have build options to customize the IP address used in the preinit phase of the boot process, but not to set the default LAN IP. Introduce a boolean build option that, when enabled, results in the IP address configured for the preinit phase, to be also used as the default LAN IP address. Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
Diffstat (limited to 'package/base-files/image-config.in')
-rw-r--r--package/base-files/image-config.in7
1 files changed, 7 insertions, 0 deletions
diff --git a/package/base-files/image-config.in b/package/base-files/image-config.in
index ac406bc456..2de2130b84 100644
--- a/package/base-files/image-config.in
+++ b/package/base-files/image-config.in
@@ -5,6 +5,13 @@
# See /LICENSE for more information.
#
+config TARGET_DEFAULT_LAN_IP_FROM_PREINIT
+ bool "Use preinit IP configuration as default LAN IP" if IMAGEOPT
+ default n
+ help
+ Enabling this will set the default LAN IP address and netmask
+ to the preinit values set in the image config.
+
menuconfig PREINITOPT
bool "Preinit configuration options" if IMAGEOPT
default n