diff options
author | Khem Raj <raj.khem@gmail.com> | 2020-04-03 17:44:45 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-04-05 11:46:38 +0100 |
commit | 8fad68fb3cdb4a17b973463ba403ef136aae3946 (patch) | |
tree | 4fa520d770ba1f0d52a018f037793fa82042519a /meta | |
parent | 58796dc18f6614c1111f4308e3165a64ab1435de (diff) | |
download | poky-8fad68fb3cdb4a17b973463ba403ef136aae3946.tar.gz |
binutils: Use configure options to disable gdb and dependencies
Deleting sources is a rough way of dealing with disabling components,
using configure option is elegant way and we also keep the sources
unchanged, this should not cause any funcitonal changes otherwise
(From OE-Core rev: 1921711c9e7a915dbf04c3909bee39450c907845)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/recipes-devtools/binutils/binutils-2.34.inc | 4 | ||||
-rw-r--r-- | meta/recipes-devtools/binutils/binutils.inc | 5 | ||||
-rw-r--r-- | meta/recipes-devtools/binutils/binutils_2.34.bb | 5 |
3 files changed, 10 insertions, 4 deletions
diff --git a/meta/recipes-devtools/binutils/binutils-2.34.inc b/meta/recipes-devtools/binutils/binutils-2.34.inc index ed9f902fd2..4b085b6fe0 100644 --- a/meta/recipes-devtools/binutils/binutils-2.34.inc +++ b/meta/recipes-devtools/binutils/binutils-2.34.inc | |||
@@ -43,7 +43,3 @@ SRC_URI = "\ | |||
43 | file://CVE-2020-0551.patch \ | 43 | file://CVE-2020-0551.patch \ |
44 | " | 44 | " |
45 | S = "${WORKDIR}/git" | 45 | S = "${WORKDIR}/git" |
46 | |||
47 | do_configure_prepend () { | ||
48 | rm -rf ${S}/gdb ${S}/libdecnumber ${S}/readline ${S}/sim | ||
49 | } | ||
diff --git a/meta/recipes-devtools/binutils/binutils.inc b/meta/recipes-devtools/binutils/binutils.inc index f6c20fc229..4119960c63 100644 --- a/meta/recipes-devtools/binutils/binutils.inc +++ b/meta/recipes-devtools/binutils/binutils.inc | |||
@@ -75,6 +75,11 @@ EXTRA_OECONF = "--program-prefix=${TARGET_PREFIX} \ | |||
75 | --disable-werror \ | 75 | --disable-werror \ |
76 | --enable-deterministic-archives \ | 76 | --enable-deterministic-archives \ |
77 | --enable-plugins \ | 77 | --enable-plugins \ |
78 | --disable-gdb \ | ||
79 | --disable-gdbserver \ | ||
80 | --disable-libdecnumber \ | ||
81 | --disable-readline \ | ||
82 | --disable-sim \ | ||
78 | ${LDGOLD} \ | 83 | ${LDGOLD} \ |
79 | ${EXTRA_TARGETS} \ | 84 | ${EXTRA_TARGETS} \ |
80 | ${@bb.utils.contains('DISTRO_FEATURES', 'multiarch', '--enable-64-bit-bfd', '', d)}" | 85 | ${@bb.utils.contains('DISTRO_FEATURES', 'multiarch', '--enable-64-bit-bfd', '', d)}" |
diff --git a/meta/recipes-devtools/binutils/binutils_2.34.bb b/meta/recipes-devtools/binutils/binutils_2.34.bb index bfc9346822..2e645e1ed8 100644 --- a/meta/recipes-devtools/binutils/binutils_2.34.bb +++ b/meta/recipes-devtools/binutils/binutils_2.34.bb | |||
@@ -18,6 +18,11 @@ EXTRA_OECONF_class-native = "--enable-targets=all \ | |||
18 | --enable-64-bit-bfd \ | 18 | --enable-64-bit-bfd \ |
19 | --enable-install-libiberty \ | 19 | --enable-install-libiberty \ |
20 | --enable-install-libbfd \ | 20 | --enable-install-libbfd \ |
21 | --disable-gdb \ | ||
22 | --disable-gdbserver \ | ||
23 | --disable-libdecnumber \ | ||
24 | --disable-readline \ | ||
25 | --disable-sim \ | ||
21 | --disable-werror" | 26 | --disable-werror" |
22 | 27 | ||
23 | # gcc9.0 end up mis-compiling libbfd.so with O2 which then crashes on target | 28 | # gcc9.0 end up mis-compiling libbfd.so with O2 which then crashes on target |