summaryrefslogtreecommitdiffstats
path: root/scripts/libptxdist.sh
Commit message (Collapse)AuthorAgeFilesLines
* kconfig: update to latest versionMichael Olbrich2016-05-131-1/+2
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxdist: add support for alldefconfigMichael Olbrich2016-05-041-11/+2
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_kconfig: allow the BSP to overwrite kconfig subtrees in config/Michael Olbrich2015-08-041-1/+10
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxdist: add option for global parallel buildingMichael Olbrich2015-05-261-1/+1
| | | | | | | 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-1/+1
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_lib_kgen: optimizeMichael Olbrich2014-06-301-1/+1
| | | | | | | The generated Kconfig files for the sections don't change during on ptxdist run. There is no need to generate those more than once. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* libptxdist: remove some useless echoMichael Olbrich2014-06-101-4/+3
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxdist: atomically replace wrapper linksMichael Olbrich2014-02-251-0/+12
| | | | | | | 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>
* ptxd_in_path: don't add trailing '/'Michael Olbrich2013-06-111-1/+1
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxdist: add randconfig optionMichael Olbrich2013-04-141-0/+3
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* move ptxd_abs2rel to libptxdist.shMichael Olbrich2012-12-171-0/+44
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_verbose: fix logfile file descriptorMichael Olbrich2012-12-141-1/+1
| | | | | | | | Redirecting with ">&${PTXDIST_FD_LOGFILE}" would be better, however this does not work if the function using it is define outside of 'make' and then called inside 'make'. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxdist: cleanup output redirectionMichael Olbrich2012-12-131-27/+23
| | | | | | | | | 5, 6 and 7 are also used in configure scripts, so avoid those. Allocate PTXDIST_FD_STDOUT and PTXDIST_FD_STDERR dynamically Set PTXDIST_FD_LOGFILE=9 so the wrapper works when 'dash' is /bin/sh for the wrapper scripts: dash only works with 0-9 for fd redirection. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* libptxdist: add ptxd_get_kconfigMichael Olbrich2012-09-121-19/+24
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* libptxdist: verbose: only use fd 7 when it's setupMarc Kleine-Budde2012-09-061-1/+1
| | | | | Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* libptxdist: really fix verbose printingMichael Olbrich2012-09-031-1/+1
| | | | | | PTXDIST_VERBOSE is set to '0' or '1' Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* libptxdist: fix verbose printingMarc Kleine-Budde2012-08-011-1/+1
| | | | | | | PTXDIST_VERBOSE is set to "1" when enabled, not "true". So test for non zero length instead of true. Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* ptxdist: add --verbose option and start using itMichael Olbrich2012-07-291-0/+22
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* libptxdist: add file descriptor to log only to the logfileMichael Olbrich2012-07-291-1/+2
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_abspath: fix for directories ending with '..'Michael Olbrich2012-06-131-2/+9
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_init_sysroot_toolchain: improve sysroot detectionMichael Olbrich2012-06-131-0/+24
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* libptxdist: define ptxd_get_alternativeMichael Olbrich2012-06-131-0/+30
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_replace_magic: allow lowercase magicMichael Olbrich2011-12-171-2/+2
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* libptxdist: improve version compareMichael Olbrich2011-12-091-5/+7
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_ipkg_rev_smaller: fix compareBenoît Burnichon2011-12-051-13/+63
| | | | | | | | | Derived from solution of the script given in the following thread: http://list.us.dell.com/pipermail/dkms-devel/2004-July/000142.html Porting it to ptxdist. Signed-off-by: Benoît Burnichon <benoit.burnichon@airtag.com>
* libptxdist: explicitly use sed to run migrate_*Michael Olbrich2011-10-131-2/+2
| | | | | | this fixes migrate on systems where sed is not in /bin/ (e.g. OS X). Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* libptxdist: fix including scripts/lib/ptxd_make_*.shMichael Olbrich2011-04-121-2/+5
| | | | | | | e449e28d4edfbf0ebc1fe9bfbbf0fa93e134e1c2 broke BSPs with a scripts/ directory but no file matching scripts/lib/ptxd_make_*.sh Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* libptxdist: load scripts/lib/ptxd_make_* scripts from the BSPMichael Olbrich2011-03-281-2/+6
| | | | | | this makes it possible to overwrite stuff exported during ptxd_make Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* scripts: add ptxd_filter_dirMichael Olbrich2011-03-101-0/+36
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_kconfig: export all necessary functionsMichael Olbrich2011-01-261-0/+1
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* [libptxdist] add ptxd_in_path to find files in ":" separated pathsMichael Olbrich2011-01-191-0/+22
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* Merge branch 'next/kconfig'Michael Olbrich2010-11-171-6/+10
|\
| * ptxdist: enable building nconf and add option to use itMichael Olbrich2010-11-171-0/+4
| | | | | | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
| * kconfig: update with kconfig from linux-2.6.37-rc2Michael Olbrich2010-11-171-6/+6
| | | | | | | | | | | | | | The kconfig upstream now has a configurable conig symbol prefix and there are no more references to the kernel in the help texts. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* | [libptxdist] use set -a for ptxd_source_kconfigMichael Olbrich2010-11-061-9/+6
| | | | | | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* | [libptxdist] export ptxd_source_kconfigMichael Olbrich2010-11-051-0/+1
|/ | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* [libptxdist] export ptxd_name_to_NAMEMichael Olbrich2010-10-111-0/+1
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* [ptxd_make_log] provide stderr on PTXDIST_FD_STDERRMarc Kleine-Budde2010-08-021-3/+5
| | | | Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* [ptxd_make_log] provide stdout on PTXDIST_FD_STDOUTMarc Kleine-Budde2010-08-021-3/+5
| | | | | | | | | | | With ptxd_make_log, the filedescriptor 1 (stdout) goes into a "tee" process and is written into the logfile and out the original stdout. Some tools don't provide status information if their stdout isn't a tty. This patch clones the original stdout to filedescriptor $PTXDIST_FD_STDOUT (==5). Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* [ptxd_make_log] unify quiet and non quiet modeMarc Kleine-Budde2010-08-021-16/+14
| | | | Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* [ptxd_make_log] clean filedescriptor usage and add commentsMarc Kleine-Budde2010-08-021-5/+11
| | | | Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* [ptxd_get_path] return with error if first argument is emptyMarc Kleine-Budde2010-07-151-0/+2
| | | | Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* [libptxdist] rename "ptxd_get_dirs" -> "ptxd_get_path"Marc Kleine-Budde2010-07-151-4/+7
| | | | | | ...because this function works for directories and/or files. Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* [libptxdist] ptxd_replace_magic: don't replace unset MAGICsMarc Kleine-Budde2010-07-151-4/+10
| | | | | | | | | | | | | This patch changes the semantics of the function. Originally all @MAGIC@ are replaced with their environemnt value. Even if MAGIC is unset in the env, resulting in @MAGIC@ to be removed from the output. With this patch ptxd_replace_magic will only replace @MAGIC@ if MAGIC is set in the environment. Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* [libptxdist] remove obsolete DOPERMISSIONS definitionMarc Kleine-Budde2010-07-151-7/+0
| | | | Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* [ptxdist] add option to modify scheduling priority (nice)Marc Kleine-Budde2010-04-201-1/+1
| | | | Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* [libptxdist] provide ptxd_print_pathMarc Kleine-Budde2010-04-011-0/+23
| | | | Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* [libptxdist] ptxd_get_dirsMarc Kleine-Budde2010-04-011-0/+13
| | | | Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* [libptxdist] use PTXDIST_LOG_PROMPT instead of PROMPTMarc Kleine-Budde2010-03-191-2/+2
| | | | | | | | | | since commit eba86d88277a8702174cc2be61099a18a11d06b8 we use PTXDIST_LOG_PROMPT. note: it's really "PTXDIST_LOG_PROMPT", not "PTXDIST_LOG_PREFIX" as stated in that commit message. Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* [ptxdist] streamline message printingMarc Kleine-Budde2010-03-111-6/+6
| | | | | | Use PTXDIST_LOG_PREFIX, neither PROMPT nor PREFIX. Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>