phosphor-network: Add persist-mac PACKAGECONFIG
The build option persist-mac was introduced in phosphor-network/609c12d
("Allow writing MAC address to networkd config file to be blocked").
This commit adds a PACKAGECONFIG for that option, and enables it by
default to keep current behavior.
Tested:
Build pass with both persist-mac PACKAGECONFIG enabled/disabled.
Change-Id: I900f09516ec10f0aecfa78117fe85d13e170eb1b
Signed-off-by: Jiaqing Zhao <jiaqing.zhao@intel.com>
diff --git a/meta-phosphor/recipes-phosphor/network/phosphor-network_git.bb b/meta-phosphor/recipes-phosphor/network/phosphor-network_git.bb
index 0ab2ccb..f8500a4 100644
--- a/meta-phosphor/recipes-phosphor/network/phosphor-network_git.bb
+++ b/meta-phosphor/recipes-phosphor/network/phosphor-network_git.bb
@@ -21,7 +21,7 @@
DEPENDS += "libnl"
DEPENDS += "stdplus"
-PACKAGECONFIG ??= "uboot-env default-link-local-autoconf default-ipv6-accept-ra"
+PACKAGECONFIG ??= "uboot-env default-link-local-autoconf default-ipv6-accept-ra persist-mac"
UBOOT_ENV_RDEPENDS = "${@d.getVar('PREFERRED_PROVIDER_u-boot-fw-utils', True) or 'u-boot-fw-utils'}"
PACKAGECONFIG[uboot-env] = "-Duboot-env=true,-Duboot-env=false,,${UBOOT_ENV_RDEPENDS}"
@@ -30,6 +30,7 @@
PACKAGECONFIG[nic-ethtool] = "-Dnic-ethtool=true,-Dnic-ethtool=false,,"
PACKAGECONFIG[sync-mac] = "-Dsync-mac=true,-Dsync-mac=false,nlohmann-json,"
PACKAGECONFIG[hyp-nw-config] = "-Dhyp-nw-config=true, -Dhyp-nw-config=false,,"
+PACKAGECONFIG[persist-mac] = "-Dpersist-mac=true, -persist-mac=false,,"
S = "${WORKDIR}/git"