summaryrefslogtreecommitdiffstats
path: root/package/gdb
Commit message (Collapse)AuthorAgeFilesLines
...
* gdb: specify where to find lzma librariesVicente Olivert Riera2016-03-131-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | As reported in... https://bugs.busybox.net/show_bug.cgi?id=8786 ..., gdb fails to build with xz and expat support at the same time when using an external toolchain. This is how the problem is shown: checking for liblzma... no configure: error: missing liblzma for --with-lzma And having a deeper look in gdb/config.log we can se a message like this one: /lib64/liblzma.so.5: undefined reference to `clock_gettime@GLIBC_2.17' As Thomas said in the bug report quoted above, that error is related to the fact that it find the host's lzma. Adding --with-lzma-prefix=$(STAGING_DIR)/usr to GDB_CONF_OPTS fixes the problem. Credit-to: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* gdb: backport xtensa NPTL support to 7.10.1Max Filippov2016-03-101-0/+267
| | | | | | | | | These changes allow debugging multithreaded NPTL xtensa applications and inspect TLS variables. Backported from: 40045d91812b25c88c8275b8c08d27c234b68ba8 Signed-off-by: Max Filippov <jcmvbkbc@gmail.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* gdb: add upstream patches to fix musl buildArnout Vandecappelle2016-03-0512-0/+786
| | | | | | | | | | | | | | | Backported three patches from upstream to all four versions of gdb that we support. The "skipping exited and joined thread" message only exists in 7.10.1 so that hunk is removed in the earlier versions. The ChangeLog modifications are also removed. Fixes http://autobuild.buildroot.net/results/e81/e8156d0b89e7157b8f10e428fc0958b0eb29e50a/ Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* package/gdb: add optional support for xzBernd Kuhls2016-02-161-0/+7
| | | | | | | | | | | | | | | | When xz was compiled before, gdb will use it as optional dependency: $ output/host/usr/bin/i586-buildroot-linux-uclibc-readelf -a output/target/usr/bin/gdb | grep NEEDED 0x00000001 (NEEDED) Shared library: [libdl.so.1] 0x00000001 (NEEDED) Shared library: [libncurses.so.5] 0x00000001 (NEEDED) Shared library: [libz.so.1] 0x00000001 (NEEDED) Shared library: [libm.so.1] 0x00000001 (NEEDED) Shared library: [liblzma.so.5] 0x00000001 (NEEDED) Shared library: [libc.so.1] Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de> Reviewed-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* toolchain: bump ARC toolchain components to arc-2015.12Lada Trimasova2016-02-052-2/+2
| | | | | | | | | | | | | | | | | | | This change introduces newer ARC toolchain in Buildroot. That new arc-2015.12 release doesn't bring any significant changes but mostly is focused on fixes and minor improvements here and there. Most noticeable changes are: * GCC: Source update to v4.8.5 * GDB: Updated to upstream 7.10 release. You may find more info on fixes and improvements in that release at: https://github.com/foss-for-synopsys-dwc-arc-processors/toolchain/releases/tag/arc-2015.12 Signed-off-by: Lada Trimasova <ltrimas@synopsys.com> Cc: Alexey Brodkin <abrodkin@synopsys.com> Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Cc: Peter Korsgaard <peter@korsgaard.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* toolchain: bump ARC toolchain components to arc-2015.12-rc1Alexey Brodkin2016-01-192-2/+2
| | | | | | | | | | | | | | | | | | | | | This change introduces newer ARC toolchain in Buildroot. Note this is the first release candidate and we'll probably see another RC before cutting the final release. That new arc-2015.12 release doesn't bring any significant changes but mostly is focused on fixes and minor improvements here and there. Most noticeable changes are: * GCC updated to v4.8.5 * GDB updated to 7.10 You may find more info on fixes and improvements in that release at: https://github.com/foss-for-synopsys-dwc-arc-processors/toolchain/releases/tag/arc-2015.12-rc1 Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com> Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Cc: Peter Korsgaard <peter@korsgaard.com> Cc: arc-buildroot@synopsys.com Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* gdb: comma separate licensesGustavo Zacarias2015-12-151-1/+1
| | | | | Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* gdb: bump 7.10 series to 7.10.1Gustavo Zacarias2015-12-072-2/+2
| | | | | | | Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Reviewed-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com> Tested-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* gdb: enable host-gdb on aarch64Alex Suykov2015-10-201-1/+1
| | | | | | | | | | | | | gdb has full support for aarch64 since version 7.6, current minimum is 7.7.1. Target build was re-enabled over a year ago, but host-gdb was not. Related commits: 0e49733b306b353aad3a29a2c7a6faf25841ef0b gdb disabled for aarch64 4372449a4f8e16f763c7d5a0c125ca015a7cbef6 target-gdb re-enabled Signed-off-by: Alex Suykov <alex.suykov@gmail.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* gdb: backport xtensa NPTL supportMax Filippov2015-10-121-0/+267
| | | | | | | | These changes allow debugging multithreaded NPTL xtensa applications and inspect TLS variables. Signed-off-by: Max Filippov <jcmvbkbc@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* gdb: do not build documentation for bfd and gprofVicente Olivert Riera2015-10-031-0/+6
| | | | | | | | | | | | | | Our previous patch to disable the documentation in gdb wasn't complete. There are cases where the documentation under bfd and gprof directories is being built, causing the subsequent failure due to missing makeinfo. This patch fixes that problem. Fixes: http://autobuild.buildroot.org/results/244/2442e697d8a300496434fd42fcb1ee3941d13e06/ Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* gdb: prevent building the documentationVicente Olivert Riera2015-09-111-11/+7
| | | | | | | | | | | | | | | | | | Force gdb to not build the documentation. This way we avoid depending on host-texinfo. This is a temporary fix until upstream accepts a proposed --disable-docs configure option. Since the documentation will not be build at all, we can remove the parts related to host-texinfo and MAKEINFO in the gdb.mk file. Fixes: http://autobuild.buildroot.net/results/dd5/dd50ed99abb2c8495def826866b184030953f90e/ Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com> Tested-by: Brendan Heading <brendanheading@gmail.com> Acked-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* gdb: use 7.9 by defaultThomas Petazzoni2015-08-291-3/+3
| | | | | | | | Now that we have added 7.10, let's switch to 7.9 as the default gdb version. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* gdb: add support for gdb 7.10Thomas Petazzoni2015-08-292-0/+5
| | | | | | | | | | | | | | | | | | | | | This commit adds support for gdb 7.10. gdb 7.9.1 carries the following patches: - 0001-gdbserver-fix-uClibc-whithout-MMU.patch merged as 6282837972a5c7b89968319caf821fcbd2a166bb, and part of 7.10 - 0002-gdbserver-xtensa-drop-xtensa_usrregs_info.patch merged as deb44829ecc1dd38275af0fcf91acd319e227a89, and part of 7.10 - 0003-gdbserver-xtensa-fix-typo-in-XCHAL_HAVE_LOOPS.patch merged as a2d5a9d76f2366ed93095fc5a63eafa06b22f808, and part of 7.10 Consequently, none of the three patches we have for 7.9.1 are useful for 7.10. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* ARC: update tools to arc-2015.06 releaseAlexey Brodkin2015-07-182-2/+2
| | | | | | | | | | | | | | | | | | | | | | I'm happy to update GNU tools for ARC cores to the most recent arc-2015.06 release. This release brings following major improvements: * GCC: source update to v4.8.4 * GCC: C ABI compatibility between MetaWare and GNU toolchains * uClibc: support for thread local storage and Native Pthread Library (NPTL) * GDB: updated to version 7.9.1 Also a lot of fixes and improvements has been done, please refer to https://github.com/foss-for-synopsys-dwc-arc-processors/toolchain/releases/tag/arc-2015.06 for more details. Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com> Cc: Anton Kolesov <akolesov@synopsys.com> Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Cc: Peter Korsgaard <peter@korsgaard.com> Cc: Romain Naour <romain.naour@openwide.fr> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* ARC: switch to RC1 of upcoming arc-2015.06 toolsAlexey Brodkin2015-06-282-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | Even though this is only RC1 it's been heavily used internally so it should not be any worse than existing arc-2014.12. Moreover this relase (and so its RC1) finally delivers support of NPTL for ARC in uClibc. That's why it would be good to allow interested users to start trying it (for example WebKit and apps that use WebKit could be successfully built and run) also it will be helpful to run that new toolchain through autobuilder in attempt to find any hidden regressions so we have a solid toolchain for release. If there's an interest in that patch more patches will follow with subsequent RCs and essentially on appearence or relese Buildroot will be updated with it. Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com> Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Cc: Peter Korsgaard <peter@korsgaard.com> Cc: arc-buildroot@synopsys.com Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* gdb: bump 7.9 series to 7.9.1Thomas Petazzoni2015-06-235-2/+2
| | | | | | | | | | Note that both gdb 7.9 and 7.9.1 fail to build in a chroot without texinfo, due to the infamous makeinfo issue. This should be fixed separately. [Peter: fixup white space] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* package/gdb: gdb+expat build fixDoug Kehn2015-06-211-0/+1
| | | | | | | | | | | | | | | | Commit 23413b51b2308225584b65c2fcd800ca8f7c56af added --with-expat configure option and expat dependency when BR2_PACKAGE_EXPAT is configured. When cross-compiling, gdb configure fails because the host system libexpat is referenced. Configuring gdb with --with-libexpat-prefix=$(STAGING_DIR)/usr fixes the reference and allows gdb to build successfully. Tested with arm-buildroot-linux-gnueabihf toolchain. Signed-off-by: Doug Kehn <rdkehn@yahoo.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* package/gdb: Add optional dependenciesBernd Kuhls2015-06-121-1/+16
| | | | | | | | | | | | | | | | | | | | | | To allow reproducable builds of target gdb add some optional dependencies $ output/host/usr/bin/i586-buildroot-linux-uclibc-readelf -a output/target/usr/bin/gdb | grep NEEDED 0x00000001 (NEEDED) Shared library: [libdl.so.0] 0x00000001 (NEEDED) Shared library: [libncurses.so.5] 0x00000001 (NEEDED) Shared library: [libz.so.1] 0x00000001 (NEEDED) Shared library: [libm.so.0] 0x00000001 (NEEDED) Shared library: [libiconv.so.2] 0x00000001 (NEEDED) Shared library: [libpthread.so.0] 0x00000001 (NEEDED) Shared library: [libutil.so.0] 0x00000001 (NEEDED) Shared library: [libpython2.7.so.1.0] 0x00000001 (NEEDED) Shared library: [libexpat.so.1] 0x00000001 (NEEDED) Shared library: [libc.so.0] [Thomas: explicitly use --{with,without}-{expat,zlib}. There is no such option for libiconv, so for libiconv, the code was left as is.] Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* gdb: disable on BlackfinThomas Petazzoni2015-05-031-4/+4
| | | | | | | | | | | | | | | | | gdbserver does not build on Blackfin FLAT (undefined reference to `_td_thr_tlsbase') and while it builds on Blackfin FDPIC, it's pretty unlikely that it is going to work properly with the cross-gdb provided by the Analog Devices toolchain: the Analog Devices toolchain provides a 6.6 cross-gdb, while we use gdb 7.8.2 for gdbserver. Therefore, let's simply disable gdb completely for Blackfin. Fixes: http://autobuild.buildroot.org/results/2e5/2e5310d0e869f036ec70b978c62c7bd9d3d2bd70/ Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* gdb: add hash fileGustavo Zacarias2015-04-281-0/+7
| | | | | Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* package/gdb: backport xtensa gdbserver fixesMax Filippov2015-04-204-0/+186
| | | | | Signed-off-by: Max Filippov <jcmvbkbc@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* package/gdb: gdb 7.9 fix uClibc build whitout MMURomain Naour2015-04-121-0/+34
| | | | | | Signed-off-by: Romain Naour <romain.naour@openwide.fr> Cc: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* package/gdb: fix uClibc build whitout MMURomain Naour2015-04-111-0/+34
| | | | | | | | Fixes: http://autobuild.buildroot.net/results/9e4/9e4df085319e346803c26c65478accb27eb950ae Signed-off-by: Romain Naour <romain.naour@openwide.fr> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* packages: indentation cleanupJerzy Grzegorek2015-03-311-10/+10
| | | | | | | This commit doesn't touch infra packages. Signed-off-by: Jerzy Grzegorek <jerzy.grzegorek@trzebnica.net> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* gdb: deprecate version 7.7.xGustavo Zacarias2015-03-291-0/+1
| | | | | | | | Now that 7.9 was added and 7.8.x is default we don't want to have a dozen versions so mark it as deprecated. Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* gdb: switch default to 7.8.xGustavo Zacarias2015-03-291-3/+3
| | | | | | | Now that we've got 7.9 added default to version 7.8.x Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* gdb: add version 7.9Gustavo Zacarias2015-03-292-5/+8
| | | | | | | | | Add gdb version 7.9, and adjust the tarball logic to default to .tar.xz (for 7.8 & 7.9), fall back to .tar.bz2 for 7.7.x and leave the rest alone. Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* package/gdb: fix build with glibc 2.20 (2)Romain Naour2015-03-201-0/+37
| | | | | | | | | | | Backport a second patch from gdb 7.8 for aarch64. Fixes: http://autobuild.buildroot.net/results/2fc/2fcf1a40a08baf881fdbccd070b1a1a6c89127e1/ Signed-off-by: Romain Naour <romain.naour@openwide.fr> Tested-by: Steven Noonan <steven@uplinklabs.net> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* gdb: fix target gdb building from gitAlexey Brodkin2015-03-161-0/+1
| | | | | | | | | | | | | | | | Currently we only add "host-texinfo" dependency for host GDB built from git sources. But in case of target gdb texinfo won't be built and so gdb building will fail on attempt to build documentation. Fix is trivial - add "host-texinfo" as a dependency for target gdb in the sme way as we disable documentation building via both GDB_CONF_ENV (for target) and HOST_GDB_CONF_ENV (host) GDB flavors. Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com> Cc: Anton Kolesov <akolesov@synopsys.com> Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Cc: Peter Korsgaard <peter@korsgaard.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* package/gdb: fix build with glibc 2.20Romain Naour2015-03-131-0/+36
| | | | | | | | | | Backport a patch from gdb 7.8. Fixes: http://autobuild.buildroot.net/results/3d5/3d5cb8bea0964f0d46733e47d04a053021e63643/ Signed-off-by: Romain Naour <romain.naour@openwide.fr> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* package/gdb: farewell avr32Yann E. MORIN2015-02-143-17/+3
| | | | | Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* ARC: bump tools to 2014.12 releaseAlexey Brodkin2015-02-021-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Now when new shiny tools are released by Synopsys we're ready for version update in Buildroot again. More details about arc-2014.12 release are available here: https://github.com/foss-for-synopsys-dwc-arc-processors/toolchain/releases/tag/arc-2014.12 Following patches were removed from GCC since they are a part of release now: * 200-size_type_unsigned_int.patch * 300-ptrdiff_type_int.patch * 400-call-arc_hazard-before-branch-shortening.patch * 401-fix-length-attribute-for-casesi_load-pattern.patch * 402-fix-length-of-instructions-that-are-in-delay-slot-and-needs-to-be-predicated.patch * 403-update-casesi_compact_jump-instruction-length.patch But since arc-2014.12 tools are still based on GCC 4.8 following patches ar still relevant so moving to the new folder to match ARC gcc bump. * 100-libstdcxx-uclibc-c99.patch * 910-gcc-poison-system-directories.patch Binutils are still based on 2.23 so following patch still makes sense: * 600-poison-system-directories.patch Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com> Cc: Anton Kolesov <akolesov@synopsys.com> Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Cc: Peter Korsgaard <peter@korsgaard.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* gdb: bump to version 7.8.2Gustavo Zacarias2015-01-161-1/+1
| | | | | Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* gdb: bump to 7.8.1Thomas Petazzoni2014-12-292-2/+4
| | | | | | | | This commit bumps to 7.8.1, and updates the logic to use .tar.xz tarballs so that it applies to all 7.8.x versions. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* package/gdb: fix shared-only buildRomain Naour2014-12-211-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | The shared build only of gdb is actually not supported. When --disable-static is given to the gdb's main configure script, it also disable the static build of bundled libraries like bfd, readline and opcodes, which must be build statically. Force the static build of bundled libraries by adding --enable-static in GDB_CONF_OPTS. Fixes: http://autobuild.buildroot.net/results/219/21979e730dca1fce5bdda9a4c7fad4485e788866/ http://autobuild.buildroot.net/results/c10/c1096d0bd22de5c6feba848f743601ad0416a944/ http://autobuild.buildroot.net/results/d8a/d8a5bcc7fa374fb0c916a9d0f33ef283109cb404/ http://autobuild.buildroot.net/results/22a/22a86d0f1df0fc4698c0f734f3d659e6317404a4/ http://autobuild.buildroot.net/results/404/404e61e5c30040ee5756f4b5839149dca38660d4/ And many more. Signed-off-by: Romain Naour <romain.naour@openwide.fr> Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* gdb: unbreak host-gdb with python support if python3 is enabledPeter Korsgaard2014-12-011-1/+1
| | | | | | | | Fixes http://autobuild.buildroot.net/results/ef4/ef487b495e57f098af0fe9508d430b56b0750339/ Explicitly pass the path to host-python to ensure it gets used. Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* package: indentation cleanupJerzy Grzegorek2014-11-021-1/+1
| | | | | Signed-off-by: Jerzy Grzegorek <jerzy.grzegorek@trzebnica.net> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* .mk files: bulk aligment and whitespace cleanup of assignmentsThomas De Schampheleire2014-10-071-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The Buildroot coding style defines one space around make assignments and does not align the assignment symbols. This patch does a bulk fix of offending packages. The package infrastructures (or more in general assignments to calculated variable names, like $(2)_FOO) are not touched. Alignment of line continuation characters (\) is kept as-is. The sed command used to do this replacement is: find * -name "*.mk" | xargs sed -i \ -e 's#^\([A-Z0-9a-z_]\+\)\s*\([?:+]\?=\)\s*$#\1 \2#' -e 's#^\([A-Z0-9a-z_]\+\)\s*\([?:+]\?=\)\s*\([^\\]\+\)$#\1 \2 \3#' -e 's#^\([A-Z0-9a-z_]\+\)\s*\([?:+]\?=\)\s*\([^\\ \t]\+\s*\\\)\s*$#\1 \2 \3#' -e 's#^\([A-Z0-9a-z_]\+\)\s*\([?:+]\?=\)\(\s*\\\)#\1 \2\3#' Brief explanation of this command: ^\([A-Z0-9a-z_]\+\) a regular variable at the beginning of the line \([?:+]\?=\) any assignment character =, :=, ?=, += \([^\\]\+\) any string not containing a line continuation \([^\\ \t]\+\s*\\\) string, optional whitespace, followed by a line continuation character \(\s*\\\) optional whitespace, followed by a line continuation character Hence, the first subexpression handles empty assignments, the second handles regular assignments, the third handles regular assignments with line continuation, and the fourth empty assignments with line continuation. This expression was tested on following test text: (initial tab not included) FOO = spaces before FOO = spaces before and after FOO = tab before FOO = tab and spaces before FOO = tab after FOO = tab and spaces after FOO = spaces and tab after FOO = \ FOO = bar \ FOO = bar space \ FOO = \ GENIMAGE_DEPENDENCIES = host-pkgconf libconfuse FOO += spaces before FOO ?= spaces before and after FOO := FOO = FOO = FOO = FOO = $(MAKE1) CROSS_COMPILE=$(TARGET_CROSS) -C AT91BOOTSTRAP3_DEFCONFIG = \ AXEL_DISABLE_I18N=--i18n=0 After this bulk change, following manual fixups were done: - fix line continuation alignment in cegui06 and spice (the sed expression leaves the number of whitespace between the value and line continuation character intact, but the whitespace before that could have changed, causing misalignment. - qt5base was reverted, as this package uses extensive alignment which actually makes the code more readable. Finally, the end result was manually reviewed. Signed-off-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com> Cc: Yann E. Morin <yann.morin.1998@free.fr> Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* packages: rename FOO_CONF_OPT into FOO_CONF_OPTSThomas De Schampheleire2014-10-041-13/+13
| | | | | | | | | | | | To be consistent with the recent change of FOO_MAKE_OPT into FOO_MAKE_OPTS, make the same change for FOO_CONF_OPT. Sed command used: find * -type f | xargs sed -i 's#_CONF_OPT\>#&S#g' Signed-off-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com> Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* gdb: add support for Python in target gdbThomas Petazzoni2014-09-163-0/+50
| | | | | | | | | | | | | | This commit adds a new option BR2_PACKAGE_GDB_PYTHON to enable Python support in the target gdb. Since we can assume that the user will be aware that Python is needed to get Python support in gdb, we chose to use a "depends on" dependency instead of a "select" dependency. The other weird thing is the need for a wrapper shell script to replace gdb's provided python-config.py script. See the shell script comment itself for all the details. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* gdb: add support for Python in host gdbThomas Petazzoni2014-09-162-0/+12
| | | | | | | | This commit adds an option BR2_PACKAGE_HOST_GDB_PYTHON that allows to enable Python support in the cross gdb built by Buildroot. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* gdb: reword prompt for host TUI optionThomas Petazzoni2014-09-161-1/+1
| | | | | | | | | There is no need to name the option "GDB TUI support", since this option is already visible "below" GDB in menuconfig/xconfig. Naming it "TUI support" is therefore sufficient. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* gdb: enable tui support for target packageVincent Stehlé2014-09-162-1/+22
| | | | | | | | | | | | | | | | | | | Add a configuration option to compile the gdb target package with the --enable-tui switch. This is done pretty much in the same way as in commit 2474fb0bf1a7 ("host-gdb: enable terminal user interface support"), but for the gdb package on target. This makes sense only when a full debugger is installed on target, not for a gdbserver. [Thomas: remove "default n" since this is the default, adjust the prompt of the option, and rewrap the help text.] Signed-off-by: Vincent Stehlé <vincent.stehle@laposte.net> Cc: Yegor Yefremov <yegorslists@googlemail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* gdb: needs host-ncurses on the hostThomas Petazzoni2014-09-161-3/+3
| | | | | | | | | | | | | | | | | | Commit 2474fb0bf1a786f3a170631f3dbce8b38092f986 ("host-gdb: enable terminal user interface support") has added TUI support to host gdb, and therefore added a dependency on host-ncurses when TUI support is enabled. However, host-ncurses is not only needed for TUI support, it is needed for gdb in all cases as well, so this commit adds a dependency of host-gdb to host-ncurses. Fixes: http://autobuild.buildroot.org/results/153/153dbdc42103074f7a0895e8871e2eee4eae3325/ Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* gdb: remove version 7.6Thomas Petazzoni2014-09-161-5/+0
| | | | | | | | Now that the default version has changed to 7.7, we can get rid of the older gdb 7.6 version. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* gdb: switch to 7.7 as the default versionThomas Petazzoni2014-09-161-4/+3
| | | | | | | | Now that gdb 7.8 is out, it's time to move to 7.7 as the default version instead of 7.6. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* gdb: add version 7.8Thomas Petazzoni2014-09-162-0/+8
| | | | | | | | | This commit adds support for the 7.8 version of gdb. Note that the tarball of this version is not available as a .tar.bz2, so we have to add a special case and download the .tar.xz for this version. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* ARC: bump tools to 2014.08 releaseAlexey Brodkin2014-09-012-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | Now when new shiny tools are released by Synopsys we're ready for version update in Buildroot. Important change in this release is switching to combined "binutils-gdb" repo in accordance to upstream move. Following patch now is a part of the most recent relese: https://github.com/foss-for-synopsys-dwc-arc-processors/binutils-gdb/commit/e6ab8cac627a44a7594aeb907a579d8d2f066ba5 So dropping it. package/binutils/arc-4.8-R3/0001-arc-Honor-DESTDIR-in-custom-Makefile.patch Since arc-2014.08 tools are still based on GCC 4.8 following patch is still relevant so moving to the new folder to matxh ARC gcc bump. package/gcc/arc-4.8-R3/100-libstdcxx-uclibc-c99.patch -> package/gcc/arc-2014.08/100-libstdcxx-uclibc-c99.patch Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com> Cc: Anton Kolesov <akolesov@synopsys.com> Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Cc: Peter Korsgaard <peter@korsgaard.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* gdb: fixup host gdb tui optionPeter Korsgaard2014-08-301-1/+0
| | | | | | | | Seems like I accidently picked v1 instead of v2 from patchwork. BR2_PACKAGE_NCURSES is for ncurses on the target, not host. Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
OpenPOWER on IntegriCloud