summaryrefslogtreecommitdiffstats
path: root/bin
Commit message (Collapse)AuthorAgeFilesLines
* 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>
* ptxdist: accept the long option --keep-goingMichael Olbrich2012-10-281-2/+2
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxdist: add 'image' command do build individual imagesMichael Olbrich2012-10-151-0/+7
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxdist: add compiler check for 'nfsroot'Michael Olbrich2012-09-141-0/+1
| | | | | | we may need to build something here Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxdist: add command to export the nfsroot with a userspace nfsdMichael Olbrich2012-09-121-0/+5
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxdist: add documentation for --verbose optionMarc Kleine-Budde2012-08-011-0/+1
| | | | Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* ptxdist: add --verbose option and start using itMichael Olbrich2012-07-291-1/+6
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxdist: try to keep PTXDIST_PLATFORMCONFIGDIR relative to PTXDIST_WORKSPACEMichael Olbrich2012-07-031-1/+2
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* Core CPU count detection: do not rely on a fixed path to the 'sysctl' toolJuergen Beisert2012-06-131-1/+1
| | | | | | | | Using a fix path is a bad idea. Lets 'configure' search for the tool and use it as is. Signed-off-by: Juergen Beisert <jbe@pengutronix.de> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxdist: support multiple targets per commandMarc Kleine-Budde2012-06-121-28/+51
| | | | | | | | | | | | | Without this patch ptxdist supports only one target per command. With this patch, ptxdist supports multiple targets, e.g.: ptxdist clean libpcap tcpdump or ptxdist targetinstall kernel ncurses Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* Honor the Barebox bootloaderJuergen Beisert2012-06-021-0/+2
| | | | | Signed-off-by: Juergen Beisert <jbe@pengutronix.de> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxdist: Check for GNU readlinkBernhard Walle2012-03-131-1/+21
| | | | | | | | | | | | | | | | ptxdist heavily uses "readlink -f" which only works with GNU readlink. So add the usual check here. However, because "readlink -f" is also used before the symlinks in the ptxdist directory is added to the PATH, that "readlink -f" call is replaced by a bash-only implementation. This one is inspired from http://mailman.archlinux.org/pipermail/pacman-dev/2009-February/008130.html. Tested on Mac OS 10.7. Signed-off-by: Bernhard Walle <bernhard@bwalle.de> [mol: fixed some more quoting] Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxdist: fix "environment variable PTXDIST_DEP_TARGET undefined"Michael Olbrich2012-03-131-2/+2
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxdist: use install to create directoriesMichael Olbrich2012-02-081-5/+5
| | | | | | | This way we also set the specified permissions for created parent directories Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* Support reading number of CPUs on Darwin and BSDsBernhard Walle2012-01-251-1/+3
| | | | | | | Tested on Mac OS 10.7 (Lion). Signed-off-by: Bernhard Walle <bernhard@bwalle.de> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* Setup vim folding in the logfile automaticallyBernhard Walle2012-01-231-0/+3
| | | | | | | | | | | | | | | | | | | This patch adds the modeline # vim: set fdm=marker fdl=1: to the Logfile. There's already a modeline for Emacs in the file, so it shouldn't be too annoying for users that don't use vim. The first setting tells vim to recognize the fold markers '{{{' and '}}}' in the logfile (which doesn't have any file type in vim). However, with this setting vim automatically closes all folds, including the first '{{{' which only is for Emacs. That's why I add fdl=1, which results in vim opening the file visible one fold per ptxdist run. Signed-off-by: Bernhard Walle <bernhard@bwalle.de> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* move template generation to a separate scriptMichael Olbrich2011-12-171-215/+1
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* add environment make targetAndreas Bießmann2011-12-021-0/+3
| | | | | | | | | The new make target 'environment' set up links to sane tools found by configure. This change was first discussed in http://thread.gmane.org/gmane.comp.embedded.ptxdist.devel/8157/focus=8180 Signed-off-by: Andreas Bießmann <andreas@biessmann.de> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxdist: allow PTXDIST_PTXRC_DEFAULT to be set from environmentJon Ringle2011-09-291-2/+2
| | | | | Signed-off-by: Jon Ringle <jon@ringle.org> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>