summaryrefslogtreecommitdiff
path: root/scripts/build/debug
AgeCommit message (Collapse)AuthorFilesLines
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>
2012-03-06docs: update my e-mailYann E. MORIN"1-1/+1
Since anciens.enib.fr has been dead for two months now, without any hope of recovery, update my e-mail to point to @free.fr instead. Reported-by: "Bryan Hundven" <bryanhundven@gmail.com> Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
2012-02-05scripts: fix download from sourceforgeYann E. MORIN"3-3/+3
It seems sourceforge changed yet again the way to download files. This time, no longer use their 'mesh' thingy, and hard-code the server to use in the URL... Sigh... :-( Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
2011-11-18debug/gdb: --disable-sim for CT_GDB_CROSS.Yann E. MORIN"1-0/+5
sim was already disabled for CT_GDB_NATIVE. Reviewed-by: Michael Hope Signed-off-by: Zhenqiang Chen <zhenqiang.chen@linaro.org> [yann.morin.1998@anciens.enib.fr: make it a config option] Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
2011-11-23debug/gdb: add extra config for gdb cross.Yann E. MORIN"1-1/+2
Signed-off-by: Zhenqiang Chen <zhenqiang.chen@linaro.org> [yann.morin.1998@anciens.enib.fr: prompt rewording, as suggested by M. Hope] Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
2011-11-15scripts: add support for building manualsYann E. MORIN"1-0/+6
Add support for building the HTML and PDF manuals for the major components. Implement for binutils, GCC, GDB, and GLIBC. Always build all manuals and install a subset. Be explicit about the subset to reduce the clutter and to avoid getting copies of common manuals like bfd from all of the sourceware based components. Downside of being explicit is that you need to update it when a new component comes along. Build the manuals as part of the last GCC build, namely 'cc' for glibc based ones and cc_core_pass_2 for baremetal. An example of the output is at: http://people.linaro.org/~michaelh/incoming/crosstool-NG/ Signed-off-by: Michael Hope <michael.hope@linaro.org> [yann.morin.1998@anciens.enib.fr: depends on ! remove docs; gold manual install] Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
2011-11-15debug/gdb: fix tic install path, tell ncurses where to find itYann E. MORIN"1-5/+3
ncurses 5.9 wants tic to be either one of: - $TIC_PATH - /usr/bin/tic Of course, se do not want the latter, for it can be incompatible if the ncurses in the build system is too old (eg. RHEL 5.6, Debian Lenny...). So, force TIC_PATH to the location of our own tic. Also, install tic alongside the other build tools, not in a sub-dir of the toolchain installation dir. Signed-off-by: Willy Tarreau <w@1wt.eu> [yann.morin.1998@anciens.enib.fr: install in builtools/bin, move TIC_PATH] Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
2011-10-08debug/gdb: new option to enable/disable use of pythonYann E. MORIN"1-0/+5
Add a new option to enable/disable the Python scripting in gdb. Hide the option (ie. disable it) when statically linking the cross-gdb. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
2011-08-22debug/ltrace: Fix HOST_OS and arTitus von Boxberg"1-0/+2
HOST_OS really is the target OS. Allow setting it for configure via an environment variable. libltrace.a should have an index: Allow ar to be set as an environment variable, and generate an index in this lib. Reported-by: "Guylhem Aznar" <crossgcc@guylhem.net> Signed-off-by: "Titus von Boxberg" <titus@v9g.de>
2011-08-17debug/gdb: we don't care if the host tic is shared or staticYann E. MORIN"1-1/+4
Because we need our own host tic, we have to build it; and we do build it statically for now. But as MacOS/Darwin/Whatever-you-call-it does not support static linking (what a shame!), it fails. Anyway, we don't really care it being shared, in the end. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
2011-08-18debug/gdb: use ncurses-5.9Yann E. MORIN"1-1/+1
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
2011-07-29debug/gdb: don;t install sample gdbinit for old versionsYann E. MORIN"1-14/+16
Only starting with gdb-7 does installing the gdbinit sample makes senses. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
2011-07-24debug/gdb: install gdbinit sample fileYann E. MORIN"2-0/+22
gdb needs to know where to find the libstdc++ helper python script to do, well, whatever it has to do with it... We can't install that in the user's ~/.gdbinit, it's too complex to handle all the cases. Moreover, if the user is using more than one toolchain, we can't put all that stuff in there... Just provide a sample config file the user can adapt to his/her own needs. Thanks go to Khem RAJ for providing such a hint: http://sourceware.org/ml/crossgcc/2011-07/msg00026.html Reported-by: ANDY KENNEDY <ANDY.KENNEDY@adtran.com> CC: Khem Raj <raj.khem@gmail.com> Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
2011-06-08debug/cross-gdb: check host dependenciesYann E. MORIN"1-0/+1
Cross-gdb depends on expat and python. If either is missing, cross-gdb will build successfully, but lacking some features. Especially, if expat is missing, cross-gdb will be unable to parse the target description, which may lead to runtime malfunctions and the following GDB warning: "Can not parse XML target description; XML support was disabled at compile time" Hence, expat should be considered mandatory. On the other hand, the features missing without python are not critical, so python should not be considered mandatory. This patch does the following: - At configure time, warn the user if either expat or python is missing. - In menuconfig, disable the static build options regarding cross-gdb if no static version of expat is available, and disable cross-gdb if expat is missing. Signed-off-by: "Benoît THÉBAUDEAU" <benoit.thebaudeau@advansee.com> [yann.morin.1998@anciens.enib.fr: add comment for impossible static cross-gdb] Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
2011-06-03kconfig: prepend CT-NG's version tag to PKGVERSIONBenoît THÉBAUDEAU"1-2/+2
"crosstool-NG-${CT_VERSION}" is currently the default for TOOLCHAIN_PKGVERSION, and this options is passed as is to --with-pkgversion. This patch prepends "crosstool-NG ${CT_VERSION}" to TOOLCHAIN_PKGVERSION before passing it to --with-pkgversion. Signed-off-by: "Benoît THÉBAUDEAU" <benoit.thebaudeau@advansee.com>
2011-05-31gdb: use the PKGVERSION and BUGURL optionsBenoît THÉBAUDEAU"1-0/+5
This patch makes gdb benefit from the TOOLCHAIN_PKGVERSION and TOOLCHAIN_BUGURL options. Signed-off-by: "Benoît THÉBAUDEAU" <benoit.thebaudeau@advansee.com>
2011-05-25debug/gdb: fix runtime sysrootBenoît THÉBAUDEAU"1-0/+1
This patch sets the runtime sysroot to fix the following GDB warning: "Unable to find dynamic linker breakpoint function. GDB will be unable to debug shared library initializers and track explicitly loaded dynamic code." The sysroot can later be changed within gdb with the `set sysroot` command if necessary. Signed-off-by: "Benoît THÉBAUDEAU" <benoit.thebaudeau@advansee.com>
2011-03-20debug/trace: log even moreYann E. MORIN"1-1/+2
Also log variable assignement for single commands. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
2011-03-19debug/gdb: log even moreYann E. MORIN"1-4/+4
Also log variable assignement for single commands. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
2011-03-19debug/dmalloc: log even moreYann E. MORIN"1-1/+1
Also log variable assignement for single commands. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
2011-03-03debug/gdb: chmod ncurses files to u+wYann E. MORIN"1-0/+1
The ncurses-5.7 tarball contains only RO files. We have to chmod them u+w. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>