Skip to content

Introduce BR2_ENABLE_RUNTIME_DEBUG

Thomas De Schampheleire buildroot 4 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest16 patches 0 repliesNew
  2. v315 patches 0 repliesSuperseded
  3. v27 patches 0 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v17 patches0 repliesSuperseded

Changes in v4 from the cover letter

- drop uclibc patch (Arnout)
- reintroduce global -DNDEBUG
- sofia-sip: fix then remove the handling of NDEBUG
- zmqpp: change buildtype to 'buildroot' in case of BR2_ENABLE_RUNTIME_DEBUG

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/16core: introduce BR2_ENABLE_RUNTIME_DEBUGConfig.in+13 -01 reply
2/16core: enable 'NDEBUG' unless BR2_ENABLE_RUNTIME_DEBUG is setpackage/Makefile.in+3 -08 replies
2/16core: enable 'NDEBUG' unless BR2_ENABLE_RUNTIME_DEBUG is set+0 -00 replies
3/16package/pkg-cmake.mk: determine CMAKE_BUILD_TYPE depending on BR2_ENABLE_RUNTIME_DEBUGdocs/manual/adding-packages-cmake.txt package/pkg-cmake.mk+2 -21 reply
4/16package/flare-engine: disable effect of CMAKE_BUILD_TYPEpackage/flare-engine/flare-engine.mk+4 -80 replies
5/16package/sysrepo: use default CMAKE_BUILD_TYPE for host packagepackage/sysrepo/sysrepo.mk+2 -10 replies
6/16package/sysrepo: remove explicit setting of CMAKE_BUILD_TYPEpackage/sysrepo/sysrepo.mk+4 -20 replies
7/16package/boost: use BR2_ENABLE_RUNTIME_DEBUG iso BR2_ENABLE_DEBUGpackage/boost/boost.mk+1 -10 replies
8/16package/oracle-mysql: use BR2_ENABLE_RUNTIME_DEBUG iso BR2_ENABLE_DEBUGpackage/oracle-mysql/oracle-mysql.mk+1 -10 replies
9/16package/qt5: use BR2_ENABLE_RUNTIME_DEBUG iso BR2_ENABLE_DEBUGpackage/qt5/qt5base/qt5base.mk+1 -10 replies
10/16package/ripgrep: use BR2_ENABLE_RUNTIME_DEBUG iso BR2_ENABLE_DEBUGpackage/ripgrep/ripgrep.mk+1 -10 replies
11/16package/sofia-sip: correct passing of '--enable-ndebug'package/sofia-sip/sofia-sip.mk+1 -10 replies
12/16package/sofia-sip: don't set 'NDEBUG' explicitlypackage/sofia-sip/sofia-sip.mk+0 -40 replies
13/16package/zmqpp: don't set CONFIG=debugpackage/zmqpp/zmqpp.mk+1 -10 replies
14/16package/zmqpp: use BR2_ENABLE_RUNTIME_DEBUG iso BR2_ENABLE_DEBUGpackage/zmqpp/zmqpp.mk+1 -10 replies
15/16package/pkg-meson.mk: determine 'buildtype' based on BR2_ENABLE_RUNTIME_DEBUG iso BR2_ENABLE_DEBUGpackage/pkg-meson.mk+1 -12 replies
16/16utils/genrandconfig: also test BR2_ENABLE_RUNTIME_DEBUGutils/genrandconfig+2 -00 replies

Reviews trailers per patch

10 of 17 patches have a Reviewed-by or Acked-by.

PatchArnout Vandecappelle (Essensium/Mind)Heiko ThieryYann E. MORIN
1/16A-b R-b
2/16R-b
2/16R-b
3/16A-b R-b
4/16
5/16A-b A-b
6/16A-b A-b
7/16
8/16A-b
9/16A-b
10/16A-b
11/16
12/16
13/16
14/16
15/16
16/16A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v4 thread

Cover letter [Buildroot] [PATCHv4 00/16] Introduce BR2_ENABLE_RUNTIME_DEBUG

From: Thomas De Schampheleire <[email protected]>

Hello,

This patch series started with as main goal to fix the performance degradation found when testing gRPC in combination with BR2_ENABLE_DEBUG.

Its implementation strives to settle a discussion that has happened several times, regarding the CMAKE_BUILD_TYPE that Buildroot should set, by not forcing anything upon the user but allowing the choice.

Additionally, it cleans up some related changes done in specific packages.

After this series, there are still packages that set CMAKE_BUILD_TYPE explicitly, but the associated comments indicate that they are needed to avoid build failures, so they are not touched.

v2: fix sysrepo after comment by Jan Kundr?t (thanks!)
v3:
- new patch setting -g0 (Arnout)
- don't set -DNDEBUG globally anymore, and drop related libjson change
- flare-engine, supertux: retain disabling of -pg option (Arnout)
- sysrepo: new patch for host-sysrepo, disable tests for target (Arnout)
- update several packages to use BR2_ENABLE_RUNTIME_DEBUG instead of BR2_ENABLE_DEBUG
v4:
- drop uclibc patch (Arnout)
- reintroduce global -DNDEBUG
- sofia-sip: fix then remove the handling of NDEBUG
- zmqpp: change buildtype to 'buildroot' in case of BR2_ENABLE_RUNTIME_DEBUG

Thomas De Schampheleire (16):
core: introduce BR2_ENABLE_RUNTIME_DEBUG
core: enable 'NDEBUG' unless BR2_ENABLE_RUNTIME_DEBUG is set package/pkg-cmake.mk: determine CMAKE_BUILD_TYPE depending on
BR2_ENABLE_RUNTIME_DEBUG
package/flare-engine: disable effect of CMAKE_BUILD_TYPE package/sysrepo: use default CMAKE_BUILD_TYPE for host package package/sysrepo: remove explicit setting of CMAKE_BUILD_TYPE package/boost: use BR2_ENABLE_RUNTIME_DEBUG iso BR2_ENABLE_DEBUG package/oracle-mysql: use BR2_ENABLE_RUNTIME_DEBUG iso
BR2_ENABLE_DEBUG
package/qt5: use BR2_ENABLE_RUNTIME_DEBUG iso BR2_ENABLE_DEBUG package/ripgrep: use BR2_ENABLE_RUNTIME_DEBUG iso BR2_ENABLE_DEBUG package/sofia-sip: correct passing of '--enable-ndebug' package/sofia-sip: don't set 'NDEBUG' explicitly package/zmqpp: don't set CONFIG=debug
package/zmqpp: use BR2_ENABLE_RUNTIME_DEBUG iso BR2_ENABLE_DEBUG package/pkg-meson.mk: determine 'buildtype' based on
BR2_ENABLE_RUNTIME_DEBUG iso BR2_ENABLE_DEBUG
utils/genrandconfig: also test BR2_ENABLE_RUNTIME_DEBUG

 Config.in                             | 13 +++++++++++++
 docs/manual/adding-packages-cmake.txt |  2 +-
 package/Makefile.in                   |  3 +++
 package/boost/boost.mk                |  2 +-
 package/flare-engine/flare-engine.mk  | 12 ++++--------
 package/oracle-mysql/oracle-mysql.mk  |  2 +-
 package/pkg-cmake.mk                  |  2 +-
 package/pkg-meson.mk                  |  2 +-
 package/qt5/qt5base/qt5base.mk        |  2 +-
 package/ripgrep/ripgrep.mk            |  2 +-
 package/sofia-sip/sofia-sip.mk        |  4 ----
 package/sysrepo/sysrepo.mk            |  9 ++++++---
 package/zmqpp/zmqpp.mk                |  2 +-
 utils/genrandconfig                   |  2 ++
 14 files changed, 36 insertions(+), 23 deletions(-)
Signature · 1 line
2.26.3