]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
cmake: pass RTE_DEVEL_BUILD=n when building dpdk 45261/head
authorKefu Chai <tchaikov@gmail.com>
Sat, 5 Mar 2022 04:49:57 +0000 (12:49 +0800)
committerIlya Dryomov <idryomov@gmail.com>
Sat, 5 Mar 2022 14:41:08 +0000 (15:41 +0100)
commit010d74a8f628d79f2c746f52a53fe9decef87b84
tree6363c93ce7eb4827cb00373986e38b494d3d947e
parentb4ff5c892248214eccd82c268073badc97db9abe
cmake: pass RTE_DEVEL_BUILD=n when building dpdk

ceph is still using the Makefile based building system for building
DPDK. and DPDK enables -Werror if RTE_DEVEL_BUILD is 'y' which is
enabled by default when the dpdk is built from a git repo.

but newer GCC is more picky than the older versions, to prevent
the possible FTBFS when we switch to newer GCC for building old
branches whose dpdk submodule might be include the changes addressing
those warnings. let's just disable this option.

the only effect of this option is to add -Werror to CFLAGS. but
the building warnings from DPDK is not our focus when developing
Ceph in the most cases. so it should be fine.

see also
https://github.com/ceph/dpdk/blob/eac901ce29be559b1bb5c5da33fe2bf5c0b4bfd6/doc/build-sdk-quick.txt#L18

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
(cherry picked from commit 91a616b26e830e85962200d0bac86bee7e022892)

Conflicts:
cmake/modules/BuildDPDK.cmake [ commit d3c315703ae6 ("cmake:
  pass -Wunused-but-set-variable when building dpdk") not in
  octopus ]
cmake/modules/BuildDPDK.cmake