summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Kanavin <alex.kanavin@gmail.com>2021-04-19 11:00:43 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-04-23 10:12:09 +0100
commitdd35211b690fc98c3a2abb6bba965e6e9b8b7df3 (patch)
tree2580507799416c33e51b361c5f5d9fcd088eecda
parent972888296cf425f1e6771a175561ef755e95197f (diff)
downloadpoky-dd35211b690fc98c3a2abb6bba965e6e9b8b7df3.tar.gz
default-distrovars.inc: add debuginfod to default DISTRO_FEATURES
Obtaining debug information by having it served automatically via http is far more pleasant than messing about with debugfs and gdbserver or transferring and installing -dbg packages by hand. I believe we should follow the desktop distros and have it enabled out of the box. Please see the following commit for the description of how it works. (From OE-Core rev: 024c88c82791a113b614abf61ffd82e097bf21d1) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/conf/distro/include/default-distrovars.inc2
-rw-r--r--meta/recipes-devtools/binutils/binutils_2.36.bb2
-rw-r--r--meta/recipes-devtools/elfutils/elfutils_0.183.bb2
-rw-r--r--meta/recipes-devtools/gdb/gdb-common.inc2
4 files changed, 4 insertions, 4 deletions
diff --git a/meta/conf/distro/include/default-distrovars.inc b/meta/conf/distro/include/default-distrovars.inc
index 433d4b6651..9fcc10f83a 100644
--- a/meta/conf/distro/include/default-distrovars.inc
+++ b/meta/conf/distro/include/default-distrovars.inc
@@ -10,7 +10,7 @@ LOCALE_UTF8_ONLY ?= "0"
10LOCALE_UTF8_IS_DEFAULT ?= "1" 10LOCALE_UTF8_IS_DEFAULT ?= "1"
11LOCALE_UTF8_IS_DEFAULT_class-nativesdk = "0" 11LOCALE_UTF8_IS_DEFAULT_class-nativesdk = "0"
12 12
13DISTRO_FEATURES_DEFAULT ?= "acl alsa argp bluetooth ext2 ipv4 ipv6 largefile pcmcia usbgadget usbhost wifi xattr nfs zeroconf pci 3g nfc x11 vfat" 13DISTRO_FEATURES_DEFAULT ?= "acl alsa argp bluetooth debuginfod ext2 ipv4 ipv6 largefile pcmcia usbgadget usbhost wifi xattr nfs zeroconf pci 3g nfc x11 vfat"
14DISTRO_FEATURES ?= "${DISTRO_FEATURES_DEFAULT}" 14DISTRO_FEATURES ?= "${DISTRO_FEATURES_DEFAULT}"
15IMAGE_FEATURES ?= "" 15IMAGE_FEATURES ?= ""
16 16
diff --git a/meta/recipes-devtools/binutils/binutils_2.36.bb b/meta/recipes-devtools/binutils/binutils_2.36.bb
index a50d2ee7ee..ee9617de1d 100644
--- a/meta/recipes-devtools/binutils/binutils_2.36.bb
+++ b/meta/recipes-devtools/binutils/binutils_2.36.bb
@@ -25,7 +25,7 @@ EXTRA_OECONF_class-native = "--enable-targets=all \
25 --disable-sim \ 25 --disable-sim \
26 --disable-werror" 26 --disable-werror"
27 27
28PACKAGECONFIG ??= "" 28PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'debuginfod', d)}"
29PACKAGECONFIG[debuginfod] = "--with-debuginfod, --without-debuginfod, elfutils" 29PACKAGECONFIG[debuginfod] = "--with-debuginfod, --without-debuginfod, elfutils"
30# gcc9.0 end up mis-compiling libbfd.so with O2 which then crashes on target 30# gcc9.0 end up mis-compiling libbfd.so with O2 which then crashes on target
31# So remove -O2 and use -Os as workaround 31# So remove -O2 and use -Os as workaround
diff --git a/meta/recipes-devtools/elfutils/elfutils_0.183.bb b/meta/recipes-devtools/elfutils/elfutils_0.183.bb
index be77730945..7aebaf1b6d 100644
--- a/meta/recipes-devtools/elfutils/elfutils_0.183.bb
+++ b/meta/recipes-devtools/elfutils/elfutils_0.183.bb
@@ -39,7 +39,7 @@ EXTRA_OECONF = "--program-prefix=eu-"
39DEPENDS_BZIP2 = "bzip2-replacement-native" 39DEPENDS_BZIP2 = "bzip2-replacement-native"
40DEPENDS_BZIP2_class-target = "bzip2" 40DEPENDS_BZIP2_class-target = "bzip2"
41 41
42PACKAGECONFIG ??= "" 42PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'debuginfod', 'debuginfod libdebuginfod', '', d)}"
43PACKAGECONFIG[bzip2] = "--with-bzlib,--without-bzlib,${DEPENDS_BZIP2}" 43PACKAGECONFIG[bzip2] = "--with-bzlib,--without-bzlib,${DEPENDS_BZIP2}"
44PACKAGECONFIG[xz] = "--with-lzma,--without-lzma,xz" 44PACKAGECONFIG[xz] = "--with-lzma,--without-lzma,xz"
45PACKAGECONFIG[libdebuginfod] = "--enable-libdebuginfod,--disable-libdebuginfod,curl" 45PACKAGECONFIG[libdebuginfod] = "--enable-libdebuginfod,--disable-libdebuginfod,curl"
diff --git a/meta/recipes-devtools/gdb/gdb-common.inc b/meta/recipes-devtools/gdb/gdb-common.inc
index 6e04552034..a2a6364daf 100644
--- a/meta/recipes-devtools/gdb/gdb-common.inc
+++ b/meta/recipes-devtools/gdb/gdb-common.inc
@@ -29,7 +29,7 @@ EXTRA_OECONF = "--disable-gdbtk --disable-x --disable-werror \
29 --disable-gprof \ 29 --disable-gprof \
30" 30"
31 31
32PACKAGECONFIG ??= "readline" 32PACKAGECONFIG ??= "readline ${@bb.utils.filter('DISTRO_FEATURES', 'debuginfod', d)}"
33# Use --without-system-readline to compile with readline 5. 33# Use --without-system-readline to compile with readline 5.
34PACKAGECONFIG[readline] = "--with-system-readline,--without-system-readline,readline" 34PACKAGECONFIG[readline] = "--with-system-readline,--without-system-readline,readline"
35PACKAGECONFIG[python] = "--with-python=${WORKDIR}/python,--without-python,python3,python3 python3-codecs" 35PACKAGECONFIG[python] = "--with-python=${WORKDIR}/python,--without-python,python3,python3 python3-codecs"