diff options
author | Gustavo Sverzut Barbieri <gustavo.barbieri@intel.com> | 2015-01-21 18:00:57 -0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-01-29 15:36:47 +0000 |
commit | 579aa720a4d40670de02d9a9840e8f6cf1c6078d (patch) | |
tree | b35937e153b47de9d0dd6df0d3731ae0e8c9965b /meta/recipes-kernel/kmod | |
parent | db8e08ca921367c007acbba870d4e9ca0841c2cd (diff) | |
download | poky-579aa720a4d40670de02d9a9840e8f6cf1c6078d.tar.gz |
kmod: new PACKAGECONFIG debug and logging to help reduce binary size.
debug and logging will make kmod and its library bigger than expected
due many strings in the resulting binaries. While these are useful for
development, they are of no use for deployment.
With them enabled kmod is 154Kb, libkmod is 99Kb. Disabling reduces to
kmod 139Kb (10%) and libkmod 83Kb (19%) on i586 stripped.
(From OE-Core rev: 907514c1b2d07231eb6ec63d21ad5dc25e731b29)
Signed-off-by: Bruno Bottazzini <bruno.bottazzini@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-kernel/kmod')
-rw-r--r-- | meta/recipes-kernel/kmod/kmod.inc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/meta/recipes-kernel/kmod/kmod.inc b/meta/recipes-kernel/kmod/kmod.inc index c26ea23533..899881e1fb 100644 --- a/meta/recipes-kernel/kmod/kmod.inc +++ b/meta/recipes-kernel/kmod/kmod.inc | |||
@@ -31,7 +31,10 @@ SRC_URI = "git://git.kernel.org/pub/scm/utils/kernel/kmod/kmod.git \ | |||
31 | S = "${WORKDIR}/git" | 31 | S = "${WORKDIR}/git" |
32 | 32 | ||
33 | EXTRA_AUTORECONF += "--install --symlink" | 33 | EXTRA_AUTORECONF += "--install --symlink" |
34 | EXTRA_OECONF +="--enable-debug --enable-logging --enable-tools --disable-manpages --with-zlib" | 34 | EXTRA_OECONF +=" --enable-tools --disable-manpages --with-zlib" |
35 | |||
36 | PACKAGECONFIG[debug] = "--enable-debug,--disable-debug" | ||
37 | PACKAGECONFIG[logging] = " --enable-logging,--disable-logging" | ||
35 | 38 | ||
36 | do_configure_prepend () { | 39 | do_configure_prepend () { |
37 | gtkdocize --docdir ${S}/libkmod/docs || touch ${S}/libkmod/docs/gtk-doc.make | 40 | gtkdocize --docdir ${S}/libkmod/docs || touch ${S}/libkmod/docs/gtk-doc.make |