summaryrefslogtreecommitdiffstats
path: root/bin
Commit message (Collapse)AuthorAgeFilesLines
* ptxdist: add documentation for -j to --helpMichael Olbrich2017-09-151-1/+4
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxdist: handle symlinks correctly when comparing PTXDIST_TOPDIR and ↵Michael Olbrich2017-07-141-1/+1
| | | | | | | | | | | | PTXDIST_WORKSPACE PTXDIST_TOPDIR is set to based on the path to ptxdist with all symlinks resolved. PTXDIST_WORKSPACE is set to the current working directory. If this path contains symlinks then comparing the strings does not work as expected. Use '-ef' instead to check if both paths point to the same directory. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxdist: add gdb commandMichael Olbrich2017-06-211-0/+6
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* wrapper: add gdb wrapperMichael Olbrich2017-06-211-1/+1
| | | | | | Add arguments to set sysroot and debug-file-directory. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_make_world_compile.sh: conditionally redirect stderr>stdoutJon Ringle2017-06-021-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I discovered after updating to a new version of ptxdist that all of my compile output including errors/warnings are now all going to stdout instead of having the errors/warning going to stderr. This is causing some problem when I use qtcreator as my IDE because qtcreator will only filter stderr for errors/warnings to put into the Issues tab, where one can simply click on the error/warning and be taken right to the source line where the error/warning is found. I found that this problem was introduced by commit 30b9267e35eea1c2edb4da0231a428bfa25b6766 This patch will conditionally redirect stderr>stdout on compile output if ptxdist has output synchronization enabled. This small program demonstrates the behavior with this patch applied: $ cat local_src/testprog/testprog.c int main(int argc, char *argv[]) { printf("Hello World, I'm testprog!\n"); exit(EXIT_SUCCESS); } $ ptxdist compile testprog >/dev/null testprog.c:4:2: error: #error An error here #error An error here ^ make[1]: *** [testprog] Error 1 make: *** [/home/jringle-admin/code/gpec/ec1k-rootfs/platform-EC1K/state/testprog.compile] Error 2 $ ptxdist compile --output-sync testprog >/dev/null make: *** [/home/jringle-admin/code/gpec/ec1k-rootfs/platform-EC1K/state/testprog.compile] Error 2 $ ptxdist compile --no-output-sync testprog >/dev/null testprog.c:4:2: error: #error An error here #error An error here ^ make[1]: *** [testprog] Error 1 make: *** [/home/jringle-admin/code/gpec/ec1k-rootfs/platform-EC1K/state/testprog.compile] Error 2 Signed-off-by: Jon Ringle <jringle@gridpoint.com> [mol: bailout to PTXDIST_FD_STDERR and more cleanup] Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxdist: remove license report files during 'clean'Michael Olbrich2017-04-111-0/+2
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* create_docs: fix copy destinationBastian Stender2017-01-041-1/+1
| | | | | | | | | Collecting files from doc/_static in a BSP lead to two nested _static directories. This results in broken javascript and image links in the html documentation. Signed-off-by: Bastian Stender <bst@pengutronix.de> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxdist: improve 'print' handlingMichael Olbrich2016-11-291-2/+2
| | | | | | | | | | 'print-%' does not match 'print-/some/path'. This would be useful to debug the tarball/package mappings that are defined as '$(<PKG>_SOURCE) = <PKG>'. Using '/print-%' instead seems to work better. Use it but keep the old patterns for backwards compatibility. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* bin/ptxdist: setup_libs: add missing ;Marc Kleine-Budde2016-11-231-1/+1
| | | | Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* ptxdist: try harder to detect if a new icecc environment must be createdMichael Olbrich2016-11-111-3/+9
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* create_docs: create srcdir recursivelyRoland Hieber2016-11-111-1/+1
| | | | | | | | This allows to build the documentation on a fresh tree when platform-dir/ does not exist yet Signed-off-by: Roland Hieber <rohieb@rohieb.name> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxdist: use PTXCONF_SETUP_HOST_MAKE to check if --output-sync is supportedMichael Olbrich2016-10-301-1/+1
| | | | | | That's the make version that is used later with the detected argument. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxdist: add urlcheck commandMichael Olbrich2016-09-021-3/+5
| | | | | | | | | | Checking if an archive is available without downloading it is difficult and not 100 percent reliable. For best result curl needs to fail for error http status codes (--fail) and follow redirects (--location). A HEAD request (--head) is used to avoid downloading the whole file, but we send a GET anyways (--request GET) because some servers don't allow HEAD requests. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxdist: document 'get' without argumentMichael Olbrich2016-09-021-0/+1
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxdist: implement image specific nfsrootMichael Olbrich2016-08-011-0/+2
| | | | | | | | | | | | For the simple use-case (the rootfs contains all packages) the normal nfsroot works well. However, this is not useful to work with root filesystems that contain only a subset of all packages. With this change, if <IMAGE>_NFSROOT can be set to 'YES' then <platformdir>/nfsroot/<image> will be filled with the files from only the packages that are part of this image. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* root-debug: remove it everywhereMichael Olbrich2016-07-231-3/+2
| | | | | | | | | | | Separate debug files in .debug/ directories in root/ have been available for some time. This is supported by all modern toolchains and much less confusing. Remove all references to root-debug except for cleaning: This way there won't be old root-debug/ directories lying around after upgrading and running 'ptxdist clean' or 'ptxdist clean root'. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* doc: latex improvementsMichael Olbrich2016-06-211-0/+1
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxdist: add support for BSP specific documentationMichael Olbrich2016-06-201-0/+34
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* 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>