summaryrefslogtreecommitdiffstats
path: root/bin
Commit message (Collapse)AuthorAgeFilesLines
* ptxdist: fix --no-output-syncMichael Olbrich2016-05-271-0/+3
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxdist: add --output-sync optionMichael Olbrich2016-05-261-1/+20
| | | | | | | | Calling make with --output-sync=... can have unexpected effects. So don't enable it by default for parallel building. Instead this adds an option for this and enables it by default for quiet builds. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxdist: improve output ordering for parallel buildingMichael Olbrich2016-05-171-0/+4
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxdist: add support for alldefconfigMichael Olbrich2016-05-041-3/+4
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxdist: use all tools via wrapper linkMichael Olbrich2016-01-121-5/+8
|
* ptxdist: show short error message for unknown argumentsMichael Olbrich2015-12-031-1/+4
| | | | | | | | The full 'usage' text is rarely useful because this is often triggered by typos. Print the unknown argument instead and a hint where to find more information. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxdist: show man page for '--help'Michael Olbrich2015-12-031-1/+1
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxdist: rework 'print' commandMichael Olbrich2015-10-271-0/+3
| | | | | | | | | | | | - avoid "recipe for target '...' failed" messages - generate '<variable>=<value>' when running in verbose mode - produce and empty value instead of an error when "-k" is used This makes is possible to use $ ptxdist -v--k make print-<VAR1> print-<VAR2>·... to dump a useful list of many variables that may or may not be defined. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxdist: run compiler setup for 'get'Michael Olbrich2015-07-301-1/+1
| | | | | | | It may be needed in case a tarball depends on a host package. This is currently true for the nodejs modules. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxdist: export PTXDIST_PARALLELMFLAGS_EXTERNMichael Olbrich2015-07-011-0/+1
| | | | | | It is needed in ptxd_lib_dgen.awk Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxdist: initialize the toolchain for 'kernelconfig' etc.Michael Olbrich2015-06-231-1/+1
| | | | | | This is necessary to build all dependencies. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxdist: add option for global parallel buildingMichael Olbrich2015-05-261-8/+28
| | | | | | | With this option enabled the make jobserver is shared between outer and inner 'make' to optimize parallel building. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxdist: apply load limit to outer make as wellMichael Olbrich2015-05-261-3/+3
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxdist: whitelist KCONFIG_ALLCONFIG and KCONFIG_SEEDMichael Olbrich2015-05-031-1/+1
| | | | | | This makes 'ptxdist randconfig' more usefull. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxdist: print error when calling 'image' without argumentMichael Olbrich2014-11-141-0/+4
|
* ptxdist use 'export -p' to list all exported variables and functionsMichael Olbrich2014-10-101-3/+4
| | | | | | | With the latest bash security fixes /usr/bin/env shows encoded versions of exported bash functions and unset fails. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxdist: fix 'select' with auto-versionMichael Olbrich2014-09-161-0/+4
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxdist: rework icecc setupMichael Olbrich2014-08-191-29/+56
| | | | | | | | - make it work when building toolchains - abort if the host compiler is a script (such as debian hardening wrapper) icecc cannot handle this and generates a broken environment Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxdist: don't overwrite the wrapper cppMichael Olbrich2014-07-301-2/+2
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxdist: Create symlinks for toolchain-related toolsBernhard Walle2014-07-291-0/+9
| | | | | | | | | | | | | | | | | This patch adds symlinks in the toolchain wrapper dir for toolchain-related tools like as, nm, etc. Currently, that symlinks are only created for tools for which ptxdist provides the wrapper mechanism. The primary use case is our internal build system (application that resides in local_src) that expects all programs to be at the same location (because some very complicated magic...). Apart from that, I think the solution to have all tools at the same place is cleaner and the patch is very small. So it would be nice if it could be accepted. Signed-off-by: Bernhard Walle <bernhard@bwalle.de> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxdist: handle missing icecc correctlyMichael Olbrich2014-07-191-2/+2
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxdist: fix '--auto-version' for older ptxdist versionsMichael Olbrich2014-07-041-1/+11
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxdist: be more verbose when icecc setup failsMichael Olbrich2014-07-021-2/+11
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxdist: add '--auto-version' and helper scriptMichael Olbrich2014-06-202-5/+61
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxdist: make icecc handling more robustMichael Olbrich2014-06-191-9/+9
| | | | | | Create the reference link last and abort on error. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxdist: add support for iceccMichael Olbrich2014-06-181-0/+33
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxdist: check vendor for ct-ng toolchainAndreas Bießmann2014-04-211-7/+29
| | | | | | | | | Before the toolchain vendor check was dedicated to OSELAS.Toolchain. This patch introduces this feature to a toolchain built with ct-ng. Signed-off-by: Andreas Bießmann <andreas@biessmann.de> Cc: Bernhard Walle <bernhard@bwalle.de> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxdist: fix logfile fold markerMichael Olbrich2014-03-211-2/+6
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxdist: fix local-src documentationMichael Olbrich2014-03-061-1/+1
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* local-src: allow to remove the linkMichael Olbrich2014-03-061-1/+2
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* add ptxsudo alias to ptxdist bashSascha Hauer2014-03-061-0/+1
| | | | | | | | | | | | | When using 'ptxdist bash' some tools installed by ptxdist may have to be used as root. some sudo installations do not pass through the PATH environment variable so that 'sudo <somecommand-in-sysroot-host>' results in command not found error messages. This patch adds a ptxsudo alias that can be used in such situations. The name has been chosen rather than regular 'sudo' since the said feature is a security feature protecting against path spoofing which we do not want to disable silently. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxdist: Add local-src commandSascha Hauer2014-03-061-0/+7
| | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxdist: Add list-packages commandSascha Hauer2014-03-061-0/+8
| | | | | | | | | | This adds a command to list all packages currently selected. ptxdist gurus can use 'ptxdist print PACKAGES' for the same purpose, this command is for the people who can't remember the command. As a bonus list-packages prints one package per line and sorts them alphabetically. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxdist: fix check_compiler when building toolchainsMichael Olbrich2014-03-031-1/+4
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxdist: allow multiple arguments for 'ptxdist print'Michael Olbrich2014-02-251-10/+18
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxdist: don't create the logfile until the platformdir is verifiedMichael Olbrich2014-02-251-4/+3
| | | | | | | This way ptxdist won't create platform/logfile before the correct platformconfig is selected. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxdist: atomically replace wrapper linksMichael Olbrich2014-02-251-17/+18
| | | | | | | This way, it should be possible to call e.g. 'ptxdist kernelconfig' while 'ptxdist go' is still running. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxdist getdev: Download dev packages from ${PTXCONF_PROJECT_DEVMIRROR}Jon Ringle2014-01-291-0/+5
| | | | | | | | | | | | | This patch allows you to setup a dev package mirror to hold *-dev.tar.gz packages. Upload your *-dev.tar.gz packages to your mirror, then you can avoid rebuilding all your packages by doing: ptxdist getdev Signed-off-by: Jon Ringle <jringle@gridpoint.com> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxdist: allow whitelisting variables from the environmentMichael Olbrich2013-12-051-1/+1
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxdist: also source ptxd_lib_*.sh from BSP and platformMichael Olbrich2013-06-111-0/+14
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxdist: use $TMPDIR for PTXDIST_TEMPDIR if setMichael Olbrich2013-06-101-2/+2
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxdist: add randconfig optionMichael Olbrich2013-04-141-2/+3
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* Fix (host) gcc wrapper on Gentoo LinuxBernhard Walle2013-03-221-4/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | On Gentoo, the host compiler can only be executed if basename(argv[0]) is 'gcc' (or 'g++' etc.), not if it's 'gcc.real'. Then it invokes gcc-config and fails: | % ln -s /usr/bin/gcc gcc.real | % ./gcc.real --version | | * gcc-config: Could not get portage CHOST! | * gcc-config: You should verify that CHOST is set in one of these places: | * gcc-config: - //etc/portage/make.conf | * gcc-config: - active environment | gcc-config: error: could not get compiler binary path: No such file or directory I'm not a Gentoo expert (I'm just forced to use it for that purpose ;-)), so I cannot explain further details. This patch makes ptxdist working on Gentoo by changing the symbolic link from <name>.real to real/<name>, i.e. moving the final toolchain symlink to some other directory, keeping the basename. Signed-off-by: Bernhard Walle <bernhard@bwalle.de> [mol: use shell magic instead of dirname/basename] Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxdist: setup: added proxy exception configurationDennis Herbrich2013-03-131-1/+4
| | | | | Signed-off-by: Dennis Herbrich <dennis.herbrich@hytera.de> Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* ptxdist: setup: add support for https proxyMarc Kleine-Budde2013-03-121-1/+5
| | | | Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* ptxdist: remove PTX_CCACHE_DIRMarc Kleine-Budde2013-02-051-15/+2
| | | | | | ...we now call ccache directly from the host wrapper. Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* ptxdist: use host compiler wrapperMarc Kleine-Budde2013-02-051-6/+33
| | | | | | | | - create links to wrapper scripts and real components - use gcc, g++ for HOSTCC, HOSTCXX - remove HOST_* Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* ptxdist: check_premake_compiler must be called before ptxd_make_logMichael Olbrich2013-01-171-0/+1
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxdist: fix automatic uClibc toolchain detectionMarc Kleine-Budde2013-01-101-1/+1
| | | | | | | The new oselas-toolchains have uclibc with a lowercase 'c'. Reported-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* wrapper: introduce a wrapper for cc, c++, cpp and ldJan Luebbe2012-11-201-11/+15
| | | | | | | | | | | This is used to inject compiler and linker options without relying on the build-systems to pass additional options to the tools. It is used for options needed for cross-compiling, hardening flags and other user defined options. The wrapper also calls ccache if ptxdist is configured to use it. Signed-off-by: Jan Luebbe <jlu@pengutronix.de> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>