summaryrefslogtreecommitdiffstats
path: root/scripts
Commit message (Collapse)AuthorAgeFilesLines
...
* image: ipkg, opkg: use symbol IMAGE_XPKG_EXTRA_ARGS to pass extra arguments ↵ptxdist-2015.07.0Marc Kleine-Budde2015-07-023-2/+10
| | | | | | | | | | | | | to ipkg and opkg build Originally the symbols IMAGE_IPKG_EXTRA_ARGS, IMAGE_OPKG_EXTRA_ARGS were used in the code, but there only was the config entry for the ipkg symbol in Kconfig. This patch converts the IMAGE_IPKG_EXTRA_ARGS to IMAGE_XPKG_EXTRA_ARGS and uses it during ipkg and opkg build. Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* ptxd_make_serialize: whitespace fixMichael Olbrich2015-07-011-2/+2
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_make_world_patchin: don't fail on packages that don't extract anythingMarc Kleine-Budde2015-06-261-1/+1
| | | | | | | | | | | Since commit b6f9a55b3ddc ptxd_make_world_patchin: run use pkg_dir for patchin_fixup ptxdist will fail on packages that define a <PACKAGE>_DIR but don't create that during extract stage. This patch fixes the problem. Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* scripts: fix typo //projectroot -> /projectrootMarc Kleine-Budde2015-06-192-2/+2
| | | | Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* scripts: look in projectroot rather than genericMarc Kleine-Budde2015-06-192-2/+2
| | | | | | fixes: 28db1773524e generic: rename generic -> projectroot Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* ptxd_make_get: improve serializationMichael Olbrich2015-06-161-1/+6
| | | | | | | - add serialization for git and svn - don't call ptxd_bailout while holding a token Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_make_world_extract: don't call ptxd_bailout while holding a ↵Michael Olbrich2015-06-161-0/+1
| | | | | | serialization token Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_make_serialize_put: propagate last return valueMichael Olbrich2015-06-161-0/+2
| | | | | | | This way, we can avoid doing this whenever ptxd_make_serialize_put is called. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_make_world_extract.sh: complete get rid of deleting pkg_extract_dirMarc Kleine-Budde2015-06-111-1/+0
| | | | Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* ptxd_make_world_patchin: remove leading 0 from patch numberMarc Kleine-Budde2015-06-111-1/+1
| | | | | | | ...otherweise bash would interprete the number as octal. This fails if the patch number contains a figure >= 8. Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* ptxd_make_world_extract.sh: don't remove pkg_extract_dir too early, it might ↵Marc Kleine-Budde2015-06-111-1/+1
| | | | | | | | | | point to builddir This patch fixes: eeb8ec75531b ptxd_make_world_extract: remove pkg_extract_dir before creating it Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* ptxd_make_world_extract: remove pkg_extract_dir before creating itMarc Kleine-Budde2015-06-111-0/+1
| | | | | | ...pkg_extract_dir might be a link from a previous local_src/ override. Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* add helper to build python packagesMichael Olbrich2015-06-094-19/+69
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_make_world_common: cmake generated makefiles check if VERBOSE is set, ↵Michael Olbrich2015-06-051-1/+1
| | | | | | not the value Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_make_xpkg_pkg: rename debug filesMichael Olbrich2015-06-031-1/+1
| | | | | | | Keeping the name of the original file can confuse tools that search for files named e.g. '*.so'. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* git-ptx-patches: play nice with patches managed by other toolsMichael Olbrich2015-06-032-3/+19
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_make_serialize_put: make it work with older bashMichael Olbrich2015-06-011-3/+3
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxdist: add option for global parallel buildingMichael Olbrich2015-05-262-1/+10
| | | | | | | 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>
* limit parallel downloading and extracting for parallel buildingMichael Olbrich2015-05-263-0/+55
| | | | | | | Currently the number of parallel downloads is limited to 4 and the number of extract jobs to 2. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_lib_dgen: add order-only dependency to extractMichael Olbrich2015-05-261-0/+5
| | | | | | | | | This is not stictly necessary but useful to avoid extracting all packages first when building with '-je*'. Only do it for parallel building, so that 'ptxdist extract <pkg>' works like before. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxdist: apply load limit to outer make as wellMichael Olbrich2015-05-262-2/+2
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_make_world_install: explicitly check if host-fakeroot is installed ↵Michael Olbrich2015-05-261-1/+1
| | | | | | | | | before using it Otherwise fakeroot can fail in parallel build when it is used before it is completely installed. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_make_world_patchin: run use pkg_dir for patchin_fixupMichael Olbrich2015-05-261-5/+7
| | | | | | | | This way, it is also called when the tarball is replaced with a symlink in local_src/. Also allow symlinks for ltmain.sh and config.sub. They will be replaced with modified copies of the original link target. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* migrate: don't generate GNUPG_GPG line if GNUPG is disabledMichael Olbrich2015-05-171-1/+1
| | | | | | Otherwise migrate will always generate a modified ptxconfig. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* tags: generate cscope by default, tooMarc Kleine-Budde2015-05-061-1/+1
| | | | Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* ptxd_lib_dgen.awk: Fix warningBernhard Walle2015-04-301-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | After upgrading my gawk to 4.1.2 (which Arch Linux did today), I get tons of warnings like gawk: /usr/lib/ptxdist-2015.04.0/scripts/lib/ptxd_lib_dgen.awk:386: (FILENAME=/tmp/ptxdist.p1sg2M/dgen/platformconfig FNR=233) warning: gensub: third argument `' treated as 1 This patch fixes the warnings. According to the documentation https://www.gnu.org/software/gawk/manual/gawk.html#String-Functions: | gensub(regexp, replacement, how [, target]) # | ... | | If the how argument is a string that does not begin with ‘g’ or ‘G’, or | if it is a number that is less than or equal to zero, only one | substitution is performed. If how is zero, gawk issues a warning | message. So the fix should be safe. Signed-off-by: Bernhard Walle <bernhard@bwalle.de> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ca-certificates: new packageMichael Olbrich2015-04-271-0/+133
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* migrate_ptx: fix hackbench migrate helperMichael Olbrich2015-03-261-1/+1
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* bash: Renamed option to avoid problem with bash-completion packageCarsten Schlote2015-03-261-0/+8
| | | | | | | | | This patch just changes the name of some bash config option, so that the bash-completion package won't conflict with the bash package anymore. Signed-off-by: Carsten Schlote <schlote@vahanus.net> [mol: add migrate helper] Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* hackbench: remove obsolete packageRobert Schwebel2015-03-261-0/+9
| | | | | | | | | | | The old hackbench code has long been obsoleted by the version in rt-tests. This variant doesn't even have license information. Remove the package. Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de> [mol: simplify migrate] Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* migrate: fix gnupg ruleMichael Olbrich2015-03-211-1/+4
| | | | | | Don't add GNUPG_GPG if it's already there. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* gnupg: targetinstall: make gpg/gpg2 and gpgv2 selectableAndreas Pretzsch2015-03-211-0/+7
| | | | | | | | | | | Add new config options for targetinstall: GNUPG_GPG : Install gpg2 + symlink gpg => gpg2 GNUPG_GPGV : Install gpgv2 Signed-off-by: Andreas Pretzsch <apr@cn-eng.de> Cc: Philipp Zabel <p.zabel@pengutronix.de> [mol: add migrate helper + 'menuconfig'] Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_make_world_install_post: fix race conditionMichael Olbrich2015-02-281-1/+4
| | | | | | | | | | | | | Just copying ${pkg_pkg_dir} recursively can fail. This can happen with -jeX when 'cp' is executed for two packages the same time: 'cp' first checks if a directory exists, and creates it if not. If two instances of 'cp' try this with the same directory at the same time, there is a race condition and the second 'cp' may fail to create the directory because it already exists. Avoid this by creating the directories first. 'mkdir -p' will just try to create the directories and ignores any EEXIST. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_make_world_patchin_fixup: replace config.sub with new versionMichael Olbrich2015-02-131-0/+7
| | | | | | | This is needed for newer architectures like aarch64 because older versions of config.sub don't support those yet. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* update config.sub/config.guess to the latest upstream versionMichael Olbrich2015-02-132-518/+499
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_make_xpkg_pkg: don't add .debug/* files for kernel modulesMichael Olbrich2015-02-111-3/+5
| | | | | | | It confuses 'depmod' because may use the debug files and then ignore the real kernel modules. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_lib_dgen: let host packages inherit license variables as wellMichael Olbrich2015-02-061-0/+3
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* new command create a license report of all the selected packagesMichael Olbrich2015-02-065-0/+421
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_make_image_extract_xpkg_files: fixup permissionsMichael Olbrich2015-02-041-0/+7
| | | | | | | | | | | | | Apply all permissions. opkg does a good job for most things. However, special permissions or ownership of directories can produce unexpected results: If one package creates a directory with special permissions and another package generates a file in this directory, then the final directory may have the implicit permissions generated by the second packages. To avoid this we apply all explicit permissions and ownership after all files are extracted. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* kconfig: update to v3.18Michael Olbrich2015-02-0223-31/+44
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_make_import: handle symbols in rangesMichael Olbrich2015-02-021-2/+2
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_make_get_http: add option to define cookiesMichael Olbrich2015-01-121-0/+5
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* lowpan-tools: replace with wpan-toolsAlexander Aring2015-01-121-0/+8
| | | | | | | | | | | | This patch removes the actual lowpan-tools for the 802.15.4 stack and replace it with the wpan-tools. The lowpan-tools are deprecated now, see http://www.spinics.net/lists/linux-wpan/msg01132.html for more information. This patch also adds a migrate functionality to replace LOWPAN_TOOLS with WPAN_TOOLS. Signed-off-by: Alexander Aring <alex.aring@gmail.com> [mol: fix migrate] Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* wrapper: fix linking with goldMichael Olbrich2014-12-021-3/+3
| | | | | | gold only supports '-z option' not '-z,option' Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_make_get_git: fix permision problemMichael Olbrich2014-11-281-0/+2
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_make_xpkg_pkg: handle old touch without support for --no-dereferenceMichael Olbrich2014-11-132-4/+13
| | | | | Reported-by: Jon Ringle <jringle@gridpoint.com> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* pkg-config-wrapper: don't use check_pipe_statusMichael Olbrich2014-10-121-1/+5
| | | | | | | | | | | With the latest bash security fixes, exported shell functions get lost when a script is called indirectly, e.g. bash -> dash -> bash. This can happen when pkg-config-wrapper is called from a configure script. In this case check_pipe_status is no longer defined. Avoid the problem by replacing check_pipe_status with its content. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* install_dir: Allow one to specify an alternate root dirJon Ringle2014-10-011-2/+11
| | | | | | | | This is useful if you install a package to /opt and libs are in /opt/lib: $(call install_lib, foo, 0, 0, 0644, libfoo, /opt) Signed-off-by: Jon Ringle <jringle@gridpoint.com> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_make_dts_dtb: use local variablesMichael Olbrich2014-09-161-1/+1
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* dtc: Do not inhibit linemarker generation if supportedAlexander Stein2014-09-161-1/+5
| | | | | | | | | | | | | | | | | | | | | | Without linemarkers the error messages are somehwat useless. To demonstrate I picked a random .dts file file from the arm tree in linux sources: DTC ptx-testprj_arm/platform/images/vf610-twr.dtb Error: /tmp/testprj/platform/state/vf610-twr.dts.tmp:366.1-5 syntax error FATAL ERROR: Unable to parse input tree If linemarkers are inserted the error message clearly states in which file which line caused the error: DTC ptx-testprj_arm/platform/images/vf610-twr.dtb Error: /tmp/testprj/platform/build-target/linux/arch/arm/boot/dts/vf610-twr.dts:13.1-5 syntax error FATAL ERROR: Unable to parse input tree The support for #line markers was added in the same release as -i was added. So add -P only if -i is not supported. Signed-off-by: Alexander Stein <alexander.stein@systec-electronic.com> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>