]> code.ossystems Code Review - meta-freescale.git/commitdiff
dpdk: fix build error with gcc 7
authorChunrong Guo <chunrong.guo@nxp.com>
Wed, 12 Jul 2017 09:01:24 +0000 (17:01 +0800)
committerOtavio Salvador <otavio@ossystems.com.br>
Fri, 14 Jul 2017 20:14:13 +0000 (17:14 -0300)
Signed-off-by: Chunrong Guo <B40290@freescale.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
recipes-extended/dpdk/dpdk_16.07.bb

index ee0fcca01a058d3aec31b9e278c8ef6d81a12376..ebc08809776d1fa0f709de3d2fc54fbf57334047 100644 (file)
@@ -12,6 +12,7 @@ inherit module
 SRC_URI = "git://git.freescale.com/ppc/sdk/dpdk.git;nobranch=1 \
     file://add-RTE_KERNELDIR_OUT-to-split-kernel-bu.patch \
     file://0001-include-sys-sysmacros.h-for-major-minor-defintions.patch \
+    file://0001-fix-build-with-gcc-7.1.patch \
 "
 SRCREV = "a3395d24774a8a7a2ce0d56a92a8ad2895b2ae8c"
 
@@ -20,6 +21,8 @@ S = "${WORKDIR}/git"
 DPAA_VER ?= "dpaa2"
 DPAA_VER_fsl-lsch2 = "dpaa"
 export RTE_TARGET = "${ARCH}-${DPAA_VER}-linuxapp-gcc"
+export ETHTOOL_LIB_PATH = "${S}/examples/ethtool/lib/${RTE_TARGET}/"
+
 
 EXTRA_OEMAKE += 'ARCH="${ARCH}" CROSS="${TARGET_PREFIX}" \
     CPU_CFLAGS="--sysroot=${STAGING_DIR_HOST}" RTE_SDK="${S}" \
@@ -37,7 +40,7 @@ do_compile() {
 do_install() {
     unset LDFLAGS TARGET_LDFLAGS BUILD_LDFLAGS
 
-    oe_runmake EXTRA_LDFLAGS="-L${STAGING_LIBDIR} --hash-style=gnu" T="${RTE_TARGET}" DESTDIR="${D}" install
+    oe_runmake EXTRA_LDFLAGS="-L${STAGING_LIBDIR} --hash-style=gnu" WERROR_FLAGS="-w" V=1  T="${RTE_TARGET}" DESTDIR="${D}" install
 
     # Build and install the DPDK examples
     for APP in examples/l2fwd examples/l3fwd examples/l2fwd-crypto examples/ipsec-secgw examples/kni examples/ip_fragmentation examples/ip_reassembly; do