meta-phosphor: bmcweb: add PACKAGECONFIG for expand support
Expand queries require a non-default meson option to be enabled. Add a
PACKAGECONFIG to control it, which will still be disabled by default,
so that we don't end up with EXTRA_OEMESON settings.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: Ia3635ae17b1390f07e878010a7862f9922391c83
diff --git a/meta-phosphor/recipes-phosphor/interfaces/bmcweb_git.bb b/meta-phosphor/recipes-phosphor/interfaces/bmcweb_git.bb
index 3abd78a..5e5d2fd 100644
--- a/meta-phosphor/recipes-phosphor/interfaces/bmcweb_git.bb
+++ b/meta-phosphor/recipes-phosphor/interfaces/bmcweb_git.bb
@@ -27,6 +27,9 @@
inherit useradd
inherit pkgconfig meson ptest
+PACKAGECONFIG ??= ""
+PACKAGECONFIG[insecure-redfish-expand]="-Dinsecure-enable-redfish-query=enabled"
+
EXTRA_OEMESON = " \
--buildtype=minsize \
-Dtests=${@bb.utils.contains('PTEST_ENABLED', '1', 'enabled', 'disabled', d)} \