Skip to content

Commit

Permalink
Use the built-in options for removing pack tools
Browse files Browse the repository at this point in the history
For distros that want to use the ENABLE_LIB_ONLY option, the rm call
will fail, because ENABLE_HPACK_TOOLS (set implicitly as part of
ENABLE_LIB_ONLY) removes those two binaries from the build, so they then
can't be removed again.  This commit sets ENABLE_HPACK_TOOLS=OFF, which not
only allows for the option to be overridden in other meta layers, also
allows a simplified use of ENABLE_LIB_ONLY in meta layers that don't
want to ship the binaries.

Signed-off-by: Ed Tanous <[email protected]>
Signed-off-by: Khem Raj <[email protected]>
  • Loading branch information
edtanous authored and kraj committed Jun 18, 2021
1 parent a15ef36 commit df8ecfe
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions meta-networking/recipes-support/nghttp2/nghttp2_1.43.0.bb
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,7 @@ PACKAGECONFIG[manpages] = ""

# examples are never installed, and don't need to be built in the
# first place
EXTRA_OECMAKE = "-DENABLE_EXAMPLES=OFF -DENABLE_APP=ON"

do_install_append() {
rm ${D}${bindir}/deflatehd ${D}${bindir}/inflatehd
}
EXTRA_OECMAKE = "-DENABLE_EXAMPLES=OFF -DENABLE_APP=ON -DENABLE_HPACK_TOOLS=OFF"

PACKAGES =+ "lib${PN} ${PN}-client ${PN}-proxy ${PN}-server"

Expand Down

0 comments on commit df8ecfe

Please sign in to comment.