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-28 21:22:22 +0000 |
commit | 907514c1b2d07231eb6ec63d21ad5dc25e731b29 (patch) | |
tree | dcfe992a1bcbae4c6be71ef7ebb9777026f2fb45 /meta/recipes-kernel/kmod/kmod.inc | |
parent | 620b100f54c379661a8c48a1eb78ed94cd3b7a49 (diff) | |
download | openembedded-core-907514c1b2d07231eb6ec63d21ad5dc25e731b29.tar.gz openembedded-core-907514c1b2d07231eb6ec63d21ad5dc25e731b29.tar.bz2 openembedded-core-907514c1b2d07231eb6ec63d21ad5dc25e731b29.zip |
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.
Signed-off-by: Bruno Bottazzini <bruno.bottazzini@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'meta/recipes-kernel/kmod/kmod.inc')
-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 \ S = "${WORKDIR}/git" EXTRA_AUTORECONF += "--install --symlink" -EXTRA_OECONF +="--enable-debug --enable-logging --enable-tools --disable-manpages --with-zlib" +EXTRA_OECONF +=" --enable-tools --disable-manpages --with-zlib" + +PACKAGECONFIG[debug] = "--enable-debug,--disable-debug" +PACKAGECONFIG[logging] = " --enable-logging,--disable-logging" do_configure_prepend () { gtkdocize --docdir ${S}/libkmod/docs || touch ${S}/libkmod/docs/gtk-doc.make |