meta-openembedded/meta-networking
Hongxu Jia 5506dc7ddb ndpi: fix autoconf-2.71 compatibility
While DEBUG_BUILD != 1, Yocto adds option _FORTIFY_SOURCE to CPP and CC [1],
since _FORTIFY_SOURCE requires -O1 or higher, if no -O1 or higher then
results in a compiler warning.

The configure.ac of ndpi uses macro AC_PROG_CC to test toolchain, since
CPPFLAGS does not have the option -O<level> [1], while building with autoconf
2.71+, the toolchain test will report a warning.

The configure.ac of ndpi uses macro AC_LANG_WERROR to treat the warning as
error. Then it broke the build
...
|configure: error: C preprocessor "i686-wrs-linux-gcc -E --sysroot=tmp-glibc/
work/core2-32-wrs-linux/ndpi/3.4-r0/recipe-sysroot  -m32 -march=core2
-mtune=core2 -msse3 -mfpmath=sse -fstack-protector-strong -D_FORTIFY_SOURCE=2
-Wformat -Wformat-security -Werror=format-security" fails sanity check
...

The SELECTED_OPTIMIZATION contains option -O<level>, add SELECTED_OPTIMIZATION
to CPPFLAGS to could fix the issue

[1] The definition of CPP and CC and XXXFLAGS in bitbake.conf
[snip]
export CPP = "${HOST_PREFIX}gcc -E${TOOLCHAIN_OPTIONS} ${HOST_CC_ARCH}"
export CC = "${CCACHE}${HOST_PREFIX}gcc ${HOST_CC_ARCH}${TOOLCHAIN_OPTIONS}"
...
export CFLAGS = "${TARGET_CFLAGS}"
TARGET_CFLAGS = "${TARGET_CPPFLAGS} ${SELECTED_OPTIMIZATION}"
...
export CPPFLAGS = "${TARGET_CPPFLAGS}"
TARGET_CPPFLAGS = ""
[snip]

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-02-09 08:51:48 -08:00
..
classes
conf layer.conf: Add hardknott to LAYERSERIES_COMPAT 2020-11-04 12:43:55 -08:00
files/waf-cross-answers waf: Add cross answers for riscv32 2020-04-29 22:32:17 -07:00
licenses
recipes-connectivity mosquitto: Upgrade 1.6.12 -> 2.0.7 2021-02-08 13:41:41 -08:00
recipes-core packagegroup-meta-networking: Add ipset 2021-01-18 14:35:52 -08:00
recipes-daemons atftp: update to 0.7.4 2021-02-07 20:38:39 -08:00
recipes-devtools/python python3-ldap: upgrade 3.2.0 -> 3.3.1 2021-01-04 14:48:29 -08:00
recipes-extended kronosnet: update 1.20 2021-02-06 21:52:33 -08:00
recipes-filter ipset: update to 7.10 2021-02-06 21:52:33 -08:00
recipes-irc weechat: upgrade 2.9 -> 3.0 2020-11-27 11:54:04 -08:00
recipes-kernel/wireguard wireguard-module: remove PKG assignment 2021-02-05 12:38:59 -08:00
recipes-netkit netkit-rsh: inherit update-alternatives 2020-09-18 06:07:50 -07:00
recipes-protocols netsnmp: remove --with-openssl=PATH configure option 2021-02-05 10:59:49 -08:00
recipes-support ndpi: fix autoconf-2.71 compatibility 2021-02-09 08:51:48 -08:00
site
COPYING.MIT
MAINTAINERS
README

meta-networking

This layer is intended to be a central point for networking-related packages and configuration. It should be useful directly on top of oe-core and compliments meta-openembedded. It should be primarily useful to the following groups:

  - Anyone building a small networking device (eg. a home router /
    bridge / switch).

  - Anyone wanting to add network services to their device (eg.
    anything that might benefit from a small ftp/tftp server)

Dependencies

This layer depends on:

URI: git://github.com/openembedded/openembedded-core.git branch: master revision: HEAD

For some recipes, the meta-oe layer is required:

URI: git://github.com/openembedded/meta-openembedded.git subdirectory: meta-oe branch: master revision: HEAD

URI: git://github.com/openembedded/meta-openembedded.git subdirectory: meta-python branch: master revision: HEAD

Maintenance

Please see the MAINTAINERS file for information on contacting the maintainers of this layer, as well as instructions for submitting patches.