diff options
author | Ed Tanous <edtanous@google.com> | 2021-06-16 22:44:37 +0300 |
---|---|---|
committer | Ed Tanous <ed@tanous.net> | 2023-06-22 22:55:16 +0300 |
commit | a994d3acc956247777270010c67a2936cf3fd597 (patch) | |
tree | 1b7141136328f167f841e018aaaa3f668f8d1a3a /meta-phosphor/recipes-support/nghttp2 | |
parent | 8e62f73b7c4df73b1f72f1dec5caf18e8b3968bf (diff) | |
download | openbmc-a994d3acc956247777270010c67a2936cf3fd597.tar.xz |
add nghttp2 dependency on bmcweb
This commit is part of the review here:
https://gerrit.openbmc-project.xyz/c/openbmc/bmcweb/+/40978
It adds a compile time dependency on nghttp2, and adjusts some of the
build params for OpenBMC. Namely:
1. Building only a static library.
2. Enabling LTO.
3. Removing all features that we don't use (to reduce binary size)
Signed-off-by: Ed Tanous <edtanous@google.com>
Change-Id: Ifa9695c3c2313b4895d500a410307ef71ae1fad9
Diffstat (limited to 'meta-phosphor/recipes-support/nghttp2')
-rw-r--r-- | meta-phosphor/recipes-support/nghttp2/nghttp2_%.bbappend | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/meta-phosphor/recipes-support/nghttp2/nghttp2_%.bbappend b/meta-phosphor/recipes-support/nghttp2/nghttp2_%.bbappend new file mode 100644 index 0000000000..f1757e93c2 --- /dev/null +++ b/meta-phosphor/recipes-support/nghttp2/nghttp2_%.bbappend @@ -0,0 +1,15 @@ +EXTRA_OECMAKE:prepend = " \ + -DENABLE_LIB_ONLY=ON \ + -DENABLE_STATIC_LIB=ON \ + -DENABLE_SHARED_LIB=OFF \ + -DCMAKE_INTERPROCEDURAL_OPTIMIZATION=ON \ + -DENABLE_SHARED_LIB=OFF \ + -DENABLE_HTTP3=OFF \ + -DWITH_LIBXML2=OFF \ + -DWITH_JEMALLOC=OFF \ + -DWITH_MRUBY=OFF \ + -DWITH_NEVERBLEED=OFF \ + -DWITH_LIBBPF=OFF \ + -DENABLE_ASIO_LIB=OFF \ + -DENABLE_THREADS=OFF \ +" |