summaryrefslogtreecommitdiff
path: root/meta-phosphor/recipes-phosphor/dbus/phosphor-dbus-interfaces_git.bb
diff options
context:
space:
mode:
authorPatrick Williams <patrick@stwcx.xyz>2020-10-06 19:43:40 +0300
committerAndrew Geissler <geissonator@yahoo.com>2020-10-07 21:59:32 +0300
commitf73f8a963685f3b17dfd1ce4aba358dc8a765bff (patch)
tree6fb2efb23010a0ecb9dd06b759c83dcd4a073efd /meta-phosphor/recipes-phosphor/dbus/phosphor-dbus-interfaces_git.bb
parentc3d88e4d9fcc08e1aae7cc9d0337c0261e996c64 (diff)
downloadopenbmc-f73f8a963685f3b17dfd1ce4aba358dc8a765bff.tar.xz
phosphor-dbus-interfaces: reduce package size
Enable LTO and ensure the generated markdown is not installed by adding it to the 'doc' subpackage. (From meta-phosphor rev: 6a07a16ffb83afe69f53ba4ace39aeed41e19965) Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: Id012670431b2e4c9364cc74f6653b11214c19144 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
Diffstat (limited to 'meta-phosphor/recipes-phosphor/dbus/phosphor-dbus-interfaces_git.bb')
-rw-r--r--meta-phosphor/recipes-phosphor/dbus/phosphor-dbus-interfaces_git.bb8
1 files changed, 7 insertions, 1 deletions
diff --git a/meta-phosphor/recipes-phosphor/dbus/phosphor-dbus-interfaces_git.bb b/meta-phosphor/recipes-phosphor/dbus/phosphor-dbus-interfaces_git.bb
index 04890971d8..98def67b73 100644
--- a/meta-phosphor/recipes-phosphor/dbus/phosphor-dbus-interfaces_git.bb
+++ b/meta-phosphor/recipes-phosphor/dbus/phosphor-dbus-interfaces_git.bb
@@ -29,4 +29,10 @@ def pdi_meson_config(d):
])
pdi_meson_config[vardeps] = "OBMC_ORG_YAML_SUBDIRS"
-EXTRA_OEMESON_append = " ${@pdi_meson_config(d)}"
+# Markdown files are installed into /usr/share/phosphor-dbus-interfaces so
+# add them to the 'doc' subpackage.
+FILES_${PN}-doc += "${datadir}/${BPN}"
+
+EXTRA_OEMESON_append = " \
+ -Db_lto=true \
+ ${@pdi_meson_config(d)}"