mirror of
https://git.yoctoproject.org/poky
synced 2026-09-16 09:49:35 +02:00
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>
This commit is contained in:
@@ -43,7 +43,3 @@ SRC_URI = "\
|
|||||||
file://CVE-2020-0551.patch \
|
file://CVE-2020-0551.patch \
|
||||||
"
|
"
|
||||||
S = "${WORKDIR}/git"
|
S = "${WORKDIR}/git"
|
||||||
|
|
||||||
do_configure_prepend () {
|
|
||||||
rm -rf ${S}/gdb ${S}/libdecnumber ${S}/readline ${S}/sim
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -75,6 +75,11 @@ EXTRA_OECONF = "--program-prefix=${TARGET_PREFIX} \
|
|||||||
--disable-werror \
|
--disable-werror \
|
||||||
--enable-deterministic-archives \
|
--enable-deterministic-archives \
|
||||||
--enable-plugins \
|
--enable-plugins \
|
||||||
|
--disable-gdb \
|
||||||
|
--disable-gdbserver \
|
||||||
|
--disable-libdecnumber \
|
||||||
|
--disable-readline \
|
||||||
|
--disable-sim \
|
||||||
${LDGOLD} \
|
${LDGOLD} \
|
||||||
${EXTRA_TARGETS} \
|
${EXTRA_TARGETS} \
|
||||||
${@bb.utils.contains('DISTRO_FEATURES', 'multiarch', '--enable-64-bit-bfd', '', d)}"
|
${@bb.utils.contains('DISTRO_FEATURES', 'multiarch', '--enable-64-bit-bfd', '', d)}"
|
||||||
|
|||||||
@@ -18,6 +18,11 @@ EXTRA_OECONF_class-native = "--enable-targets=all \
|
|||||||
--enable-64-bit-bfd \
|
--enable-64-bit-bfd \
|
||||||
--enable-install-libiberty \
|
--enable-install-libiberty \
|
||||||
--enable-install-libbfd \
|
--enable-install-libbfd \
|
||||||
|
--disable-gdb \
|
||||||
|
--disable-gdbserver \
|
||||||
|
--disable-libdecnumber \
|
||||||
|
--disable-readline \
|
||||||
|
--disable-sim \
|
||||||
--disable-werror"
|
--disable-werror"
|
||||||
|
|
||||||
# gcc9.0 end up mis-compiling libbfd.so with O2 which then crashes on target
|
# gcc9.0 end up mis-compiling libbfd.so with O2 which then crashes on target
|
||||||
|
|||||||
Reference in New Issue
Block a user