summaryrefslogtreecommitdiff
path: root/Makefile.in
AgeCommit message (Collapse)AuthorFilesLines
2017-02-27Require GNU sedAlexey Neyman1-29/+6
After much struggling with macos (BSD) sed and even getting everything work in crosstool-ng itself, I had to abandon that because some components rely on GNU syntax. Specifically, GNU libc uses '/.../{H;g}' (note absense of the separator after 'g'). So, revert the -r/-E detection and check for sed's being of GNU origin. MacOS people, sorry, but you'd have to install GNU sed. Signed-off-by: Alexey Neyman <stilor@att.net>
2017-02-27Revert "Determine whether -E/-r option selects extended regexp"Alexey Neyman1-4/+1
This reverts commit 7bcf18bfab84374d3305c7a088f95ac1219ddf93.
2017-02-14Determine whether -E/-r option selects extended regexpAlexey Neyman1-1/+4
... and then use the right option. See the note in scripts/functions on where we should use ${foo} and where just 'foo'; this boils down to whether we can expect the build tools override to be in effect (e.g. in the actual build scripts) or not (i.e. outside of scripts/build). While running in scripts/functions, or in scripts/crosstool-NG.sh the build tools override directory (.build/tools/bin) may have not been set up (yet, or at all). Also, modify the installed scripts (populate, xldd) accordingly. Signed-off-by: Alexey Neyman <stilor@att.net>
2017-02-13Detect both wget/curl and allow user to select the agentAlexey Neyman1-0/+7
Signed-off-by: Alexey Neyman <stilor@att.net>
2017-01-28Rework configure logic wrt GNU autotoolsAlexey Neyman1-2/+2
Rather than requiring them of a certain version, detect if they are present (and have sufficient version) and select an appropriate companion tool otherwise. The reason is that, for example, most recent gettext requires automake 1.15, but the newest available CentOS has 1.13. Hence, the option to "upgrade your system" does not apply, and the warning comment above the companion tools is rather scary. With this approach, it will work out of the box - either by using the host's tools, or by building them as needed. Note that the user can still change the setting in the config. While there, propagate the new version checking macro to awk/bash/host binutils, and switch from --with-foo=xxx to officially blessed FOO=xxx: the latter does not require checking for bogus values (i.e., --with-foo, --without-foo) and AC_PROG_* macros recognize the corresponding settings without further modifications. For now, I kept --with-foo=, if only to complain and steer people to the new way. To be cleaned up after a release. Signed-off-by: Alexey Neyman <stilor@att.net>
2017-01-20Install canadian crosses into a separate subdir.Alexey Neyman1-3/+3
Makes them sorted out by host, and removes the need for similar hack in samples.mk. Change how canadian crosses are named: using `=' character resulted in Glibc build failure. Move loading config into a common function, CT_LoadConfig. Signed-off-by: Alexey Neyman <stilor@att.net>
2017-01-13Add a check for gperf function signature.Alexey Neyman1-0/+1
Loosely based on: https://github.com/systemd/systemd/commit/c9f7b4d356a453a01aa77a6bb74ca7ef49732c08 Signed-off-by: Alexey Neyman <stilor@att.net>
2016-09-07samples: install "broken" fileYogesh Sharma1-0/+3
Currently the broken file is not installed when doing an non-local install. This causes ct-ng list-samples to not notify the user that a sample is broken. This commit triggers the creation of the broken file as needed. Signed-off-by: Yogesh Sharma <ysharm01@harris.com>
2015-11-19Makefile.in: Fix uninstall targetBryan Hundven1-1/+1
`make uninstall` is ran against `$(TARGETS)`, which includes `lib-kconfig`. `lib-kconfig` is installed as a part of the `lib` target, so during uninstall, removing `lib` is enough to also remove `lib-kconfig`. Filter out `lib-kconfig` during `real-uninstall`. Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
2015-11-13file modes: Set files to be non-executableBryan Hundven1-0/+0
I was going to start doing some autoconf work, and noticed that configure.in was executable. Then I noticed Makefile.in was executable. o.O So, I ran ```find . -type f -executable``` and found a bunch of files that shouldn't be set executable. This commit makes them normal files again. Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
2015-11-13Cygwin: Link to libintl for gettextRay Donnelly1-0/+1
Signed-off-by: Ray Donnelly <mingw.android@gmail.com>
2015-10-03Revert the automated build optionJean-Marie Lemetayer1-1/+0
This reverts commits: * d6413fe29fbdcd72a04b3d5820ba2e134dbaf558. * 4f266e1a8c78cec2c425b17784576db56125bbbd. Signed-off-by: Jean-Marie Lemetayer <jeanmarie.lemetayer@gmail.com>
2015-09-29configure: Add automated build optionBryan Hundven1-0/+1
This commit introduces a configure time option to let the build know that this is going to be an automated build. This forces the build to disable the progress bar, log tool warnings, and force the log level to debug. Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
2013-09-14configure: Add --with-gperf optionRay Donnelly1-0/+3
On OS X, Apple supply an old gperf (3.0.3) with xcode and xcode commandline tools which causes build failures: ./zconf.hash.c:183:17: error: expected expression {offsetof(struct kconf_id_strings_t, kconf_id_strings_str2), .. upgrading to gperf 3.0.4 was sufficient to fix this, so this option allows the user to specify the gperf program that they wish to use. To install gperf 3.0.4 from homebrew, I did: brew tap homebrew/dupes brew install homebrew/dupes/gperf .. then passed --with-gperf=$BREWFIX/Cellar/gperf/3.0.4/bin/gperf to configure Signed-off-by: Ray Donnelly <mingw.android@gmail.com> Message-Id: <CAOYw7dtCmcJ9WiqmQ81MmZeRPcV-tDOqe9=kRDW4uQGuZNd2Ng@mail.gmail.com> Patchwork-Id: 274892
2013-07-10Allow reordered MAKEFLAGSRay Donnelly1-0/+5
-R and -r (-Rr) can be reordered to -r and -R (-rR). This happens with MSYS1/2 gnu-make and mingw32-make, and triggers "Recursion detected, bailing out..." Signed-off-by: Ray Donnelly <mingw.android@gmail.com> Message-Id: <CAOYw7dsdsg-XaDOwwEWJeUUSo2Vu_UD5GtkSgNTu59ai7yx0cQ@mail.gmail.com> Patchwork-Id: 258027
2013-02-25Makefile: fix parrallel (-j) installsYann E. MORIN"1-4/+3
Currently, we would remove previously installed patches before installing the new ones. Unfortunately, that does not play well with heavily parallel installs. Now, we consider it is the responsibility of the user to first uninstall any previous version before installing a new one. Reported-by: Markos Chandras <markos.chandras@gmail.com> Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
2012-11-06Makefile.in: Use only standard options compatible with BSD installTitus von Boxberg1-1/+2
Don't use options specific to FSF's coreutils install. Signed-off-by: Titus von Boxberg <titus@v9g.de> Message-Id: <51587db99510a9ec08f8.1352226968@tschetwerikow.boxberg.lan> Patchwork-Id: 197532
2012-07-14configure: check for GNU awk, not any awkYann E. MORIN"1-0/+4
Building glibc requires GNU awk, not any other. Reported-by: Han Sooloo <hansooloo@gmail.com> Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
2012-01-16configure: also detect plain grepYann E. MORIN"1-1/+1
We need just 'grep', and we need to be able to call it with 'grep -E'. Check for 'grep', and bailout if egrep != grep -E Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
2012-01-16scripts: fix tools overrideYann E. MORIN"1-22/+35
The tools found by the new autostuff configure can contain arguments, for example: grep -E This needs separating the paths set for the Makfile from the paths set for the scripts. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
2012-01-14kconfig: install compiled frontendsYann E. MORIN"1-28/+56
The kconfig frontends are currently instaleld as source files. This is a remnant of the early times, when I wanted a single installation of crosstool-NG to be shared across multiple machines, potentially of different architectures. This does not really make sense, and it's been a long time since it was las tpossible in practice. So, just build the kconfig frontends at make-time, and install them as we do for all other crosstool-NG dependent files. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
2011-11-07configure: use autoconf to generate configureYann E. MORIN"1-64/+66
Create configure.ac, an autoconf script to generate ./configure This will be needed by a subsequent patch to properly handle --build and --host, and more tests, when the kconfig stuff will be installed pre-built. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
2011-09-28Makefile: use phony targetsMichael Hope1-0/+2
Add 'build', 'build-*', and 'install' as phony targets to the top level Makefile. I tend to do everything in tree with the build in a directory called 'build'. This interfered with the target 'build', making it think the target was up to date, and stopping scripts/crosstool-NG.sh from being regenerated. Added 'install' as I often set the prefix to $PWD/install. Signed-off-by: Michael Hope <michael.hope@linaro.org>
2011-08-22configure: use def_bool for available featuresYann E. MORIN"1-2/+3
It's one line shorter, and easier to read. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
2011-08-22configure: require libtoolize, create wrapper to itTitus von Boxberg"1-10/+12
libtoolize must be checked_for and there needs to be a wrapper that points to GNU libtoolize since that may be installed as glibtoolize. This fixes a problem with building Cloog/PPL that was Reported-by: "Pierrick Brossin" <pierrick@bs-network.net> Signed-off-by: "Titus von Boxberg" <titus@v9g.de>
2011-08-21configure: recognise and handle --program-transform-nameYann E. MORIN"1-2/+4
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
2011-08-19configure: recognise and handle --program-suffixYann E. MORIN"1-2/+7
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
2011-08-17configure: handle --program-prefixYann E. MORIN"1-11/+21
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
2011-08-19Makefile: introduce PROG_NAME to contain the 'ct-ng' executable nameYann E. MORIN"1-18/+20
With the upcomming --program-{prefix,suffix,transform-name} options, we'll have a need to centralise the actual executable name, that is now no longer be a constant. Rather than spread the prefix/suffix through-out the code, just centralise the name setting in one place. Beside, transform-name would not be possible without setting the name at a single location. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
2011-07-31Makefile: fix samples installYann E. MORIN"1-4/+11
Installing samples was not installing the C library config file and the reported.by description. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
2011-06-04Makefile: make it work for auto-completionYann E. MORIN"1-0/+11
The latest autocompletion calls 'make -qp' to get all the possible targets. This currently fails, as our makefile is calling itself again and again ad-libitum. Fix it by detecting that the recursion level is not 0, and bail out if so. It works so well that it has the side effect of showing only the 'public' target, and hide our internal ones! :-) Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
2011-05-26configure: add possibility to set arbitrary variable in check_forYann E. MORIN"1-2/+23
If check_for is able to find the required prog/inc/lib, allow it to set an arbitrary variable to 'y'. This variable is then pushed down to the kconfig definition. For example: has_or_abort prog=foobar kconfig=has_foobar If foobar is available, it yields a kconfig variable defaulting to y: config CONFIGURE_has_foobar bool default y If foobar is missing, it yields a kconfig variable defaulting to n: config CONFIGURE_has_foobar bool Thus it is possible to depends on that variabel to show/hide options: config SOME_FEATURE bool prompt "Some feature" depends on CONFIGURE_has_foobar Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
2011-04-30scripts: fix installationYann E. MORIN"1-0/+1
Changeset e013ddebc063 forgot to install the samples.mk file. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
2011-04-28docs: uninstall the man pageYann E. MORIN"1-2/+2
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
2011-04-28scripts: fix installing samplesYann E. MORIN"1-4/+6
It's been a while now that the working directory CT_WORK_DIR has been changed from 'targets' to '.build'. Fix the install procedure to properly tweak the installed samples. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
2010-08-14docs: split into multiple filesYann E. MORIN"1-2/+2
The overview.txt file has evolved into more than just an overview. Split it into chapters, and include the misc tutorials. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
2010-07-15configure: fix --mandirYann E. MORIN"1-3/+8
--mandir points to the base dir of the man pages, so we have to append our man section below given dir.
2010-06-27scripts: enhance Makefile for installationYann E. MORIN"1-19/+26
Split the multiple directory copies into autonomous rules. Fix the autocompletion message.
2010-06-25test-suite: correctly install when not --localAndy Gibbs"1-1/+1
2010-05-17ct-ng: Add ability to configure and use some GNU toolsTitus von Boxberg1-0/+10
Make the paths to libtool, objcopy, objdump, readelf, patch configurable.
2010-04-01scripts: misc help and auto-complete fixesYann E. MORIN"1-1/+5
- don't list samples in the main help screen - improve the samples listing in list-samples - don't document the 'config' action, it's long dead - document the 'V' environment variable - improve on START, STOP and PREFIX environment variables - add PREFIX and V to autocomplete - advertise auto-complete at install time
2009-11-17Fix typos and adjust some documentation.Frederic Roussel"1-1/+1
2009-10-10docs: get rid of any reference to the now long-gone svn repositoryYann E. MORIN"1-5/+5
2009-05-13./configure:Yann E. MORIN"1-3/+3
- fix a few messages -------- diffstat follows -------- /trunk/Makefile.in | 6 3 3 0 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
2009-05-13Add a new action: show-tupleYann E. MORIN"1-1/+3
- in a directory containing a crosstool-NG configuration, prints the tuple of the configured target to stdout. -------- diffstat follows -------- /trunk/Makefile.in | 4 3 1 0 +++- /trunk/scripts/showTuple.sh.in | 30 30 0 0 ++++++++++++++++++++++++++++++ /trunk/ct-ng.comp | 2 1 1 0 +- /trunk/ct-ng.in | 10 9 1 0 +++++++++- 4 files changed, 43 insertions(+), 3 deletions(-)
2009-04-20There's no longer any reason to require GNU awk:Yann E. MORIN"1-2/+0
- the only part that required it (socks proxy settings) is gone, - all remaining awk scripts are POSIXly correct (or should be). -------- diffstat follows -------- /trunk/configure | 5 2 3 0 ++--- /trunk/Makefile.in | 2 0 2 0 -- /trunk/scripts/build/kernel/linux.sh | 2 1 1 0 +- /trunk/scripts/build/internals.sh | 1 0 1 0 - /trunk/scripts/build/mpfr.sh | 2 1 1 0 +- /trunk/scripts/functions | 4 2 2 0 ++-- /trunk/scripts/saveSample.sh.in | 4 2 2 0 ++-- 7 files changed, 8 insertions(+), 12 deletions(-)
2009-04-20Set the execute bit on generated script at build time, not install time.Yann E. MORIN"1-7/+3
Do not advertise "make install" when ./configure-d with "--local". -------- diffstat follows -------- /trunk/configure | 8 5 3 0 +++++--- /trunk/Makefile.in | 10 3 7 0 +++------- 2 files changed, 8 insertions(+), 10 deletions(-)
2009-02-01Use tools discovered by ./configure in scripts/saveSample.shYann E. MORIN"1-1/+6
/trunk/Makefile.in | 7 6 1 0 ++++++- /trunk/scripts/saveSample.sh.in | 23 13 10 0 +++++++++++++---------- 2 files changed, 19 insertions(+), 11 deletions(-)
2009-02-01Set proper mode to installed files; fixes running when not using --local.Yann E. MORIN"1-3/+5
/trunk/Makefile.in | 8 5 3 0 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-)
2009-01-27Ignore generated file, remove generated file on clean.Yann E. MORIN"1-0/+2
/trunk/Makefile.in | 2 2 0 0 ++ 1 file changed, 2 insertions(+)