summaryrefslogtreecommitdiffstats
path: root/scripts/libptxdist.sh
Commit message (Collapse)AuthorAgeFilesLines
...
* 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>
* [libptxdist] remove ptxd_generic_option_parserMarc Kleine-Budde2010-03-111-95/+0
| | | | | | The only user "make_archive.sh" has been removed, so remove this, too. Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* [ptxdist] add -p|--pedantic optionMichael Olbrich2010-03-051-0/+18
| | | | | If this option is used ptxd_pedantic will act like ptxd_bailout. Otherwise it will act like ptxd_warning
* [ptxdist] convert readlink -e -> readlink -fMarc Kleine-Budde2010-02-211-2/+2
| | | | | | | The "-e" option is only supported by recent new GNU readlink. "-f" works with old versions and on BSD systems, too. Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* [libptxdist] rename ptxd_ipkg_rev_packet to ptxd_ipkg_rev_package.Carsten Schlote2010-02-041-3/+3
| | | | | | | | | | | | | | | | | | | The commit: commit 5a4bf8f43d1bc3796a9c9aec7ece43dc4dba6421 Author: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Date: Wed Feb 3 09:52:18 2010 +0100 [PATCH] rename newpacket command to newpackage ... broke the ipkg-push script: .../scripts/ipkg-push: line 110: ptxd_ipkg_rev_package: command not found The attached patch fixes this issue by renaming ptxd_ipkg_rev_packet to ptxd_ipkg_rev_package in scripts/libptxdist. Signed-off-by: Carsten Schlote <c.schlote@konzeptpark.de> Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* [libptxdist] fixed comment, we're using git nowMarc Kleine-Budde2009-12-251-2/+2
| | | | Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* [libptxdist] simplification of dumpstackMarc Kleine-Budde2009-12-251-7/+9
| | | | Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* version cleanupsMarc Kleine-Budde2009-12-251-2/+9
| | | | Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* [ptxd_lib_kgen] support generation of the platform menuMarc Kleine-Budde2009-12-151-1/+1
| | | | Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* check_deps: run ptxd_kgen implicit during ptxd_dgenMarc Kleine-Budde2009-12-151-3/+1
| | | | | | don't run it explizitly before calling ptxd_dgen Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* [ptxdist] fix "local -a" + IFS problemMarc Kleine-Budde2009-11-031-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | This patch fixes a problem with bash-3.0.x. This old bash versions doesn't respect IFS when splitting a variable: This costruct doesn't work: foo="bar:baz" local -a qux=( ${foo} ) echo "${foo[@]}" it prints: bar:baz bash > 3.0.x prints bar baz The correct sequence is to first declare qux as a local array and then assign it: local -a qux qux=( ${foo} ) Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* [ptxdist] fix "ptxdist -k" featureMarc Kleine-Budde2009-08-101-1/+3
| | | | | | | | | | Using an array for make's args prevents to let space slip into the args, which confuses make. $ ptxdist -k go make: *** No rule to make target ` -k'. Stop. Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* [libptxist] disable eval based ptxd_var_concatMarc Kleine-Budde2009-07-281-1/+1
| | | | | | it seems to cause problems with quoting Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* [libptxdist] use gawk instead of awkMarc Kleine-Budde2009-06-221-3/+4
| | | | | | | | ... just to be sure Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-trunk@10840 33e552b5-05e3-0310-8538-816dae2090ed
* [ptxdist] don't fail if config files don't define certain symbolsMarc Kleine-Budde2009-06-171-4/+7
| | | | | | | | | | | | | | | | This patch fixes the commit git: 0f0daf95ab605fe17d02d8daf214abf467d42549 svn: 10807 wich introduced a bug, so that projects with one of these symbols ("PTXCONF_PLATFORM, PTXCONF_PROJECT, PTXCONF_PROJECT_VERSION") missing cannot be build. Reported-by: Erwin Rol <erwin@erwinrol.com> Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-trunk@10811 33e552b5-05e3-0310-8538-816dae2090ed
* [ptxdist] provide sane error message if user uses an invalid package nameMarc Kleine-Budde2009-06-141-2/+6
| | | | | | Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-trunk@10764 33e552b5-05e3-0310-8538-816dae2090ed
* [dgen] namespace cleanupMarc Kleine-Budde2009-06-111-1/+1
| | | | | | | | rename PTX_DGEN_DIR -> PTXDIST_DGEN_DIR Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-trunk@10747 33e552b5-05e3-0310-8538-816dae2090ed
* [libptxdist] ptxd_var_concat: preserve quotingMarc Kleine-Budde2009-06-111-1/+1
| | | | | | Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-trunk@10746 33e552b5-05e3-0310-8538-816dae2090ed
* [libptxdist] ptxd_get_ptxconf: supress error messages if using not valid ↵Marc Kleine-Budde2009-06-111-1/+2
| | | | | | | | identifier Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-trunk@10745 33e552b5-05e3-0310-8538-816dae2090ed
* [libptxdist] ptxd_var_concat: do exit on errorMarc Kleine-Budde2009-06-111-1/+1
| | | | | | Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-trunk@10742 33e552b5-05e3-0310-8538-816dae2090ed
* [libptxdist] add ptxd_var_concatMarc Kleine-Budde2009-06-101-0/+16
| | | | | | Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-trunk@10700 33e552b5-05e3-0310-8538-816dae2090ed
* [libptxdist] export function ptxd_warningMarc Kleine-Budde2009-06-101-0/+1
| | | | | | Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-trunk@10699 33e552b5-05e3-0310-8538-816dae2090ed
* [ptxdist] simplify first stage parser error handlingMarc Kleine-Budde2009-06-101-4/+3
| | | | | | Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-trunk@10685 33e552b5-05e3-0310-8538-816dae2090ed
* * libptxdist.sh: initially clear variable in get_ptxconf()Wolfram Sang2009-06-091-0/+1
| | | | git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-trunk@10664 33e552b5-05e3-0310-8538-816dae2090ed
* ptxd_abspath may fail, add sane error messageRobert Schwebel2009-06-081-0/+1
| | | | | | | | | | If the path given to ptxd_abspath() contains a slash, but a part of the path does not exist, no sane error message was given. Fix and test all ptxd_abspath calls for failure. Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de> git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-trunk@10643 33e552b5-05e3-0310-8538-816dae2090ed
* [libptxdist] remove trailing whitespaceMarc Kleine-Budde2009-03-141-1/+1
| | | | | | Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-trunk@10090 33e552b5-05e3-0310-8538-816dae2090ed