summaryrefslogtreecommitdiff
path: root/scripts/build/debug
AgeCommit message (Collapse)AuthorFilesLines
2017-01-13Unify fetching Linaro components.Alexey Neyman1-20/+11
Add CT_GetLinaro, use it from gcc/binutils/gdb/glibc/newlib. Signed-off-by: Alexey Neyman <stilor@att.net>
2017-01-10Pick up <linux/ioctl.h> and friends from TARGET.Alexey Neyman1-9/+21
Otherwise, cross-compiling fails on non-Linux build machines. Signed-off-by: Alexey Neyman <stilor@att.net>
2017-01-10${LD_TARGET} -> ${CT_TARGET}.Alexey Neyman1-1/+1
Obvious typo, worked by some miracle. Signed-off-by: Alexey Neyman <stilor@att.net>
2017-01-10Shut clang's warning that confuses configure.Alexey Neyman1-0/+6
Warning causes gdb's configure to not detect <limit.h> declarations of LONG_MIN/MAX. Found-by: Kirill Smirnov <kirill.k.smirnov@gmail.com> Signed-off-by: Alexey Neyman <stilor@att.net>
2016-12-17Kill dmalloc.Alexey Neyman1-57/+0
- No new releases in almost 10 year. - No public bug tracker or VCS. - No responses from maintainer over sent patches. RIP, dmalloc. Signed-off-by: Alexey Neyman <stilor@att.net>
2016-12-06Merge pull request #443 from KirillSmirnov/gdb-nativeAlexey Neyman1-2/+21
debug/gdb: properly link with expat
2016-12-05debug/gdb: restore commentsKirill K. Smirnov1-0/+12
There are two separate issues with gdb configure usage: 1) inspecting build system libraries while cross-compiling; 2) preferring a shared library over static one. The first usage issue is described and fixed now. The second issue was described but the notes were removed for some reason. This patch restores those notes. Suggested-by: Alexey Neyman <stilor@att.net> Signed-off-by: Kirill K. Smirnov <kirill.k.smirnov@gmail.com>
2016-12-02Fix use of custom location if it is a directory.Alexey Neyman2-2/+2
In that case, CT_GetCustom just creates a symlink to the original. In that case, 'cp -a <path> .' gives an error and 'cp -a <path> <newdir>' creates <newdir> as a symlink (which will then run the build inside the shared directory, .build/src/<package>). Signed-off-by: Alexey Neyman <stilor@att.net>
2016-11-21Partially revert 6f8e89cb5ca061e899bf3feaaf3fecf30d366c3e.Alexey Neyman6-26/+26
The referenced commit replaced 'make' with '${make}' everywhere. This is wrong for at least the utilities that we may build as companion tools (make, libtool): this will always invoke the version detected by configure by supplying the absolute path. In other words, the wrappers in .build/tools/bin are not fallbacks - they are either temporary (in case a respective companion tool is built) or permanent redirectors. This is the reason why the PATH= has .build/*/buildtools/bin at higher precedence than .build/tools/bin; the latter has the versions detected by configure and the former has the versions built as companion tools. Revert the rest of the gang (grep/sed/...) for consistency. After all, we may decide to supply some of them as well (awk, for instance). Signed-off-by: Alexey Neyman <stilor@att.net>
2016-09-11debug/gdb: Add comments for untrivial flags.Kirill K. Smirnov1-0/+14
The necessity of --without-libexpat-prefix is not obvious and needs comments. Signed-off-by: Kirill K. Smirnov <kirill.k.smirnov@gmail.com>
2016-09-09debug/gdb: properly link with expatKirill Smirnov1-10/+3
This patch fixes libexpat detection for gdb-native and gdb-cross static builds. For gdb-native build configure should not touch system /usr/{lib,include} directories while looking for libexpat. To fix this we pass --without-libexpat-prefix flag to configure script. For gdb-cross build configure is allowed to investigate system /usr/{lib,include} directories, but it does not hurt to disable this behavior. In this case configure falls back to -lexpat, which works as expected. For more info: http://marc.info/?l=gnulib-bug&m=129660262901148&w=2 Signed-off-by: Kirill Smirnov <kirill.k.smirnov@gmail.com>
2016-04-02Work-around another quirk in GDB configure.Alexey Neyman1-4/+11
Previous fix for cross-gdb broke powerpc-unknown_nofpu-linux-gnu which uses an old GDB (6.8a). That GDB's configure chokes on $CC values with multiple consecutive spaces; see the comment in 300-gdb.sh. Signed-off-by: Alexey Neyman <stilor@att.net>
2016-04-02Unbreak static cross-gdb.Alexey Neyman1-5/+14
GDB's configure mishandles the libexpat.{so,a} libraries when it is given -static in CFLAGS AND --with-libexpat-prefix in configure's args: it checks for <prefix>/lib/libexpat.so and finding that, attempts to link it as `gcc -static .. conftest.c <prefix>/lib/libexpat.so`; this obviously fails (.so cannot be statically linked), so configure assumes libexpat is unusable. Thus, --with-libexpat-prefix is dangerous and should be avoided; instead, configure should find the libraries via the supplied CC/LD definitions.
2015-12-08Whitespace: We don't use tabs in shell or kconfig filesBryan Hundven1-12/+12
We indent by multiples of 4. This change cleans up whitespace in offending files. Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
2015-12-08scripts: Update usage of CT_GetCustomBryan Hundven1-7/+2
This commit updates the build scripts to match the new usage of CT_GetCustom from the previous change. Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
2015-11-25binutils/gdb: Fix configure options when building from binutils-gdb repoBryan Hundven1-0/+15
When building from: {git,http}://sourceware.org/git/binutils-gdb.git and setting BINUTILS_CUSTOM or GDB_CUSTOM, they could be the same source. These config options should not affect normal released versions. Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
2015-11-17consistency: Use exported variables of required toolsBryan Hundven6-23/+23
We check for apps: * make * sed * grep * awk * libtool/libtoolize * install * patch * and more ...during configure. Our scripts should be consistent about using the variables that define where the found tool was found. Of course, we do hard-link these tools in buildtools, but that should be a backup for the components we are building. Our scripts should always use the tools we find. Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
2015-11-13Clean up 300-gdb.sh a bit.Alexey Neyman1-52/+31
Now that expat/curses have migrated into separate script, no need for do_debug_gdb_parts() and need_gdb_src checks. Signed-off-by: Alexey Neyman <stilor@att.net>
2015-11-13Enable building expat/ncurses for host.Alexey Neyman1-2/+2
Then re-enable cross-gdb for nios2-spico-elf sample, previously disabled.
2015-11-13Change ncurses to a companion library.Alexey Neyman1-112/+1
Currently, builds for build and target (matching the current implementation). Need to add building for host for canadian crosses. TIC_PATH is removed - configure in ncurses searches $PATH, so it finds 'tic' in buildtools anyway. Arguably unneeded code for MacOS also removed, with a FIXME comment for validation by someone using MacOS. Signed-off-by: Alexey Neyman <stilor@att.net>
2015-11-13Convert expat for target into a companion lib.Alexey Neyman1-53/+0
Expat-for-host to be done. Signed-off-by: Alexey Neyman <stilor@att.net>
2015-11-13xtensa: add support for the configurable Xtensa architecture.Chris Zankel1-0/+4
The Xtensa processor architecture is a configurable, extensible, and synthesizable 32-bit RISC processor core. Processor and SOC vendors can select from various processor options and even create customized instructions in addition to a base ISA to tailor the processor for a particular application. Because of the configurability, the build process requires one additional step for gcc, binutils, and gdb to update the default configuration. These configurations are packed into an 'overlay' tar image, and are simply untarred on top of the default configuration during the build. Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
2015-06-01gdb: Update 300-gdb.sh for multiple compilersRay Donnelly1-4/+4
Update 300-gdb.sh to use the new config options. Signed-off-by: Ray Donnelly <mingw.android@gmail.com> Reviewed-by: Bryan Hundven <bryanhundven@gmail.com> Reviewed-by: Yann Diorcet <diorcetyann@gmail.com>
2015-02-02scripts/*/*.sh: prioritize http downloadsBryan Hundven2-3/+4
Prirotize http downloads before ftp downloads. By having http download first, those using proxy will work with the current download mechnism. This tells me that that mechnism needs to be updated. (proxy support and/or kconfig toggles) closes #3 Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
2015-01-16debug: gdb: Add Linaro GDB 7.8-2014.09 and Linaro GDB 7.6.1-2013.10Cristoforo Cataldo1-14/+16
This commit allows to choose, download and build latest Linaro GDB: - gdb-linaro-7.8-2014.09 - gdb-linaro-7.6.1-2013.10 Signed-off-by: Cristoforo Cataldo <cristoforo.cataldo@gmail.com>
2014-12-10gdb: fix typo made in gdb build scriptBryan Hundven1-1/+1
I made a typo in: 1e17619b273fb49f8d2e162f34c26994698285b3 It should be version, not release. Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
2014-12-09gcc and gdb: fix fetching linaro builds (part three)Bryan Hundven1-1/+1
Yes, I missed the backslash which messed up the linaro stuff. The more I look at this code, I feel it needs to be refactored a bit. So I'll come back to this in the future and clean it up. Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
2014-12-09gcc and gdb: fix fetching linaro builds (part two)Bryan Hundven1-1/+1
It's not my day. linaro_version is a filter. If it is not a linaro toolchain, it will just be CT_{CC,GDB}_VERSION. If it is a linaro toolchain, CT_{CC,GDB}_VERSION will be prefixed with 'linaro-' and will not match linaro_version, as linaro_version will just have the part after 'linaro-'. This *really* fixes the issue :sigh: Thanks again to @elsonwei for being right the first time! Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
2014-12-09gcc and gdb: fix fetching linaro buildsBryan Hundven1-2/+2
linaro_version and linaro_series are defined but not set if we are not configured for linaro builds. Therefore we need to default them to "" (null string). As reported by @elsonwei Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
2014-12-08scripts: Update download locationsBryan Hundven2-6/+10
This change updates the download locations to default to the official download site. For gcc and gdb, also separate out the linaro download locations so that if you are downloading the linaro variant, it skips trying to download from the official gcc mirror. This commit closes #3 Signed-off-by: Bryan Hundven <bryanhundven@gmail.com> Reported-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2013-11-15debug/gdb: fix canadian-cross in case of static cross gdbYann E. MORIN"1-2/+2
Building the cross-gdb shoud be done using the host compiler, not the native compiler. Reported-by: Per Arnold Blaasmo <per-arnold.blaasmo@atmel.com> Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
2013-03-16debug/dmalloc: enforce cross-compilationSamuel Martin"1-0/+3
Signed-off-by: Samuel Martin <s.martin49@gmail.com> Message-Id: <69772732f551aa342a2c.1363446264@laptop> Patchwork-Id: 228221
2013-03-16debug/strace: enforce cross-compilationSamuel Martin"1-0/+3
Signed-off-by: Samuel Martin <s.martin49@gmail.com> Message-Id: <24b6540a08cbca7ee1fa.1363446263@laptop> Patchwork-Id: 228220
2013-03-16debug/gdb: enforce gdbserver cross-compilationSamuel Martin"1-0/+3
Signed-off-by: Samuel Martin <s.martin49@gmail.com> Message-Id: <ca85cad85c4dd20e74f1.1363446262@laptop> Patchwork-Id: 228219
2013-03-03debug/gdb: a litle bit of trivial code-reorderingYann E. MORIN"1-11/+7
Move all options-setting code at the same place. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
2013-03-03debug/gdb: fix possibly broken codeYann E. MORIN"1-2/+3
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
2013-03-03debug/gdb: move the ncurses build to a backendYann E. MORIN"1-56/+82
This cleans up the code a bit. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
2013-03-03debug/gdb: always enable expat for the cross-gdbYann E. MORIN"1-10/+6
There's no point in not supporting XML in the cross-gdb. I mean, come on... ;-) It's still the responsibility of the user to have the necessary devel expat packages installed for his/her distro. Reported-by: Trevor Woerner <twoerner@gmail.com> Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
2013-03-03debug/gdb: fix $need_expat_src usage for native-gdbYann E. MORIN"1-20/+39
For the native-gdb (ie on the target), we unconditionally need to build expat. Make it a backend, it makes a litle bit cleaner code. Reported-by: Trevor Woerner <twoerner@gmail.com> Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
2013-03-03debug/gdb: fix $need_ncurses_src usageYann E. MORIN"1-1/+1
It should be used only to decide whether we need to download/extract ncurses, not wheter we should build it or not. Reported-by: Trevor Woerner <twoerner@gmail.com> Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
2013-03-03debug/gdb: fix the mess do_{gdb,expat,ncurses} have becomeYann E. MORIN"1-19/+19
Rename those three variables to properly reflect their purpose: decide whether we need to download/extract gdb/libexpat/libncurses, not whether we need to build them or not. This is only a rename for now, subsequent changes will further fix this mess. Reported-by: Trevor Woerner <twoerner@gmail.com> Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
2012-10-29debug/gdb: remove ncurses cleanupYann E. MORIN"1-9/+0
That's legacy code that was usefull when ncurses was installed in the sysroot. Still it's not longer the case (it's installed in a special dedicated directory), we can remove that piece of code. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
2012-10-11debug/gdb: Add CUSTOM version and CUSTOM_LOCATION config options and GetCustomDavid Holsgrove1-4/+13
CUSTOM_LOCATION config options only presented in menuconfig if component CUSTOM version selected. Signed-off-by: "David Holsgrove" <david.holsgrove@xilinx.com> [yann.morin.1998@free.fr: don't patch custom dir location] Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Message-Id: <9ea1b5021fc77582867f.1349931197@localhost.localdomain> PatchWork-Id: 190791
2012-09-29debug/gdb: disable nls when CT_TOOLCHAIN_ENABLE_NLS is not selectedZhenqiang Chen1-0/+6
Signed-off-by: Zhenqiang Chen <zhenqiang.chen@linaro.org> Message-Id: <CACgzC7Bn+WpbgDruNeZ4s1z0x1deF6n4YyS22Dy7p_d1fFDVCA@mail.gmail.com> PatchWork-Id: 191042
2012-10-03scripts/gdb: If not building expat for gdb, disableDavid Holsgrove1-1/+7
--with-expat=yes is unconditionally passed to the gdb configure stage, instead of respecting the ${do_expat} decision. Disable if not needed. Prevents error building canadian cross; configure: error: expat is missing or unusable Where configure stage fails to find expat on the host compiler. Signed-off-by: "David Holsgrove" <david.holsgrove@xilinx.com> Signed-off-by: Bryan Hundven <bryanhundven@gmail.com> Message-Id: <4c4410a2a8aab24a29c5.1349244128@localhost.localdomain> PatchWork-Id: 188711
2012-08-19debug/expat: Update expat to 2.1.0Bryan Hundven1-1/+1
Signed-off-by: Bryan Hundven <bryanhundven@gmail.com> Message-Id: <c59009fdaf23d82822c6.1345364052@flambe.is-a-geek.org>
2012-08-19scripts: use generic urls for sourceforgeBryan Hundven3-3/+3
For expat, duma, and strace, use the generic url and 302 to the mirror instead of trying to download a file from a downed mirror and failing. Signed-off-by: Bryan Hundven <bryanhundven@gmail.com> Message-Id: <b69ebeb72fef93c04c84.1345364051@flambe.is-a-geek.org>
2012-06-10debug/duma: fix download urlYann E. MORIN"1-1/+6
Sourceforge has again changed its mirroring system... :-( Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
2012-05-17debug/gdb: add option to enable/disable the IPA lib for gdbserverYann E. MORIN"1-0/+8
gdbserver >= 7.2 comes with an optional library to use tracepoints, the In Process Agent (IPA) library, libinproctrace.so. Currently, we build gdbserver staticaly, but that breaks the build of the IPA lib. Add an option to biuld the IPA lib, but not if statically linking. Reported-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
2012-03-12debug/strace: fix download URLYann E. MORIN"1-1/+2
strace upstream location has slightly changed. Reported-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>