summaryrefslogtreecommitdiffstats
path: root/scripts/lib/ptxd_make_world_patchin.sh
Commit message (Collapse)AuthorAgeFilesLines
* redirect command stderr to stdoutMichael Olbrich2016-05-291-1/+1
| | | | | | | | | | | | | Redirect stderr to stdout for the actual autogen.sh, prepare, compile, install and opkg-build command. This preserves the chronological order of stdout vs. stderr when building packages in parallel with output sync enabled. As a side-effect, the stderr output of these commands won't show up on the console for quiet builds. But most of that is not really useful by itself anyways. And the resulting logfile is more readable now for the rest. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_make_world_patchin_apply_git: make sure the series file existsMichael Olbrich2016-05-191-1/+2
| | | | | | | | | | | | The series file for 'git quiltimport' was only created if the original series file is not empty. In this case, with newer git versions (at least 2.8.1) 'git quiltimport' returns an error if the series file is missing. An empty series file is usefull to start creating new patches. Create the series file for 'git quiltimport' to make sure this works with new git versions. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_make_world_patchin: don't complain about missing 'series' if there are ↵Michael Olbrich2015-11-071-21/+16
| | | | | | no patches Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_make_world_autogen: fail if autogen.sh is brokenMichael Olbrich2015-11-071-0/+3
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_make_world_patchin_apply_git: fail on errorMichael Olbrich2015-07-271-5/+5
| | | | 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>
* 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>
* git-ptx-patches: play nice with patches managed by other toolsMichael Olbrich2015-06-031-0/+11
| | | | 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>
* 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>
* patchin: set core.abbrev=12 when creating patches with gitMichael Olbrich2014-08-211-0/+1
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* Add support for xz'd patchesBernhard Walle2013-05-031-1/+4
| | | | | | | | Since kernel.org provides their patches as .xz-compressed files, that's quite useful. Signed-off-by: Bernhard Walle <bernhard@bwalle.de> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_make_world_patchin.sh: overwrite global diff.renames git optionAndreas Bießmann2013-02-031-0/+1
| | | | | | | | | | | | | | | When working with pure git work flow the git parameter diff.renames may save space when sending patches or storing them. However using a patch generated with this parameter in a mixed git/quilt/patch work flow is useless cause quilt/patch can not work with this information, they need explicit delete of lines and add of lines. This patch change the local git configuration of an extracted package to force the diff.renames parameter to false witch will overwrite a possible global configuration. Signed-off-by: Andreas Bießmann <andreas.biessmann@corscience.de> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* prepare: move autogen into a separate stageMichael Olbrich2012-05-271-42/+69
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* git tag sanitizingptxdist-2012.02.0Jon Ringle2012-02-131-1/+1
| | | | | | | Replace ~ with - when creating a git tag Signed-off-by: Jon Ringle <jon@ringle.org> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_make_world_patchin: sort patches when creating missing series fileMichael Olbrich2011-11-011-1/+1
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* git-ptx-patches: Allow patches before base tagJon Ringle2011-07-151-0/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The patch series I have for the Linux kernel includes incremental patches from upstream like patch-2.6.33.1.bz2 patch-2.6.33.1-2.bz2 followed by a patch series for my board. But ptxdist messes this up when applying the patch series with git. This patch allows one to mark the base tag in the series with: #tag:base --start-number 1 Other arbitrary tags can also be put in the series: #tag:for-upstream --start-number 5 When using 'git ptx-patches' to regenerate the series, only the patches between "#tag:base" and the next "#tag:*" or EOF in the series are regenerated. All others in the series are left untouched. To use a different tag than the default tag base, use -t tagname. e.g.: # generated by git-ptx-patches patch-2.6.33.1.bz2 patch-2.6.33.1-2.bz2 patch-2.6.33.2-3.bz2 #tag:for-upstream --start-number 1 0001-for-upstream-1.patch 0002-for-upstream-2.patch 0003-for-upstream-3.patch #tag:base --start-number 4 0004-foo.patch 0005-bar.batch # 25a3096f40bc8d841c8bf3ec24dd101f - git-ptx-patches magic Any options included on a #tag:* line are passed to git format-patch when generating the patches for that section. Signed-off-by: Jon Ringle <jon@ringle.org> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* [ptxd_make_world_patchin] use ptxd_in_path to find patch dirMichael Olbrich2011-01-241-5/+3
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* [extract] do nothing in extract and patching if both <PKG>_URL and ↵Michael Olbrich2010-10-271-0/+5
| | | | | | | | | <PKG>_SOURCE are undefined. This makes it possible to use the default extract stage for packages that have nothing to extract. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* [ptxd_make_world_patchin] alias: call git-ptx-patches directlyMarc Kleine-Budde2010-08-021-1/+1
| | | | | | | Don't use "sh" because the script uses bashisms, this breaks on ubuntu where /bin/sh is dash. Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* Merge branch 'next/image_cleanups' of git://git.pengutronix.de/git/mkl/ptxdistMarc Kleine-Budde2010-07-161-1/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: scripts/lib/ptxd_make_install.sh This is due to "360f73777af1661d85ae0aa2434b6acde22da9fa" Fix dependencies to files in projectroot. The modifications to ptxd_make_install_init have been moved to ptxd_make_xpkg_prepare. Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
| * [libptxdist] rename "ptxd_get_dirs" -> "ptxd_get_path"Marc Kleine-Budde2010-07-151-1/+1
| | | | | | | | | | | | ...because this function works for directories and/or files. Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* | [patchin] define git alias 'ptx-patches' to update the ptxist patch seriesMichael Olbrich2010-07-081-0/+1
|/ | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* [patching] don't specify the directory when calling git initMichael Olbrich2010-06-041-3/+3
| | | | | | | | | | | * it's unnecessary because that's the current directory * older git versions can't handle it Based on a patch from Remy Bohmer <linux@bohmer.net> Also: fix the error propagation. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* [patchin] add pedantic warning for missing series fileMichael Olbrich2010-04-211-0/+2
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* [txd_make_world_patchin] inform user about creation of git repoMarc Kleine-Budde2010-04-061-0/+2
| | | | | | ...because it might take some time. Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* [ptxd_make_world_patchin] git: set "para" to sane valueMarc Kleine-Budde2010-04-061-0/+5
| | | | | | ...to avoid using "para" from last cycle. Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* [ptxd_make_world_patchin] rework generation of git "patches" compat dirMarc Kleine-Budde2010-04-051-12/+11
| | | | | | | | | | | | | | | For various reasons (git quiltimport cannot handle compressed patches and uses a hardcoded "series" file) ptxdist creates a special "patches" folder that git quiltimport" works with. This patch changes the name of the folder from ".ptxdist/patches" to ".ptxdist/git-patches" so that the original patch folder can always be found in ".ptxdist/patches" and "patches" (which links to it) regardless of using git or not. This fixes a problem with the package "directfb-examples". Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* [ptxd_make_world_patchin] work around git quiltimport's limitationsMarc Kleine-Budde2010-04-031-13/+22
| | | | | | decompress bzip2 and gz patches on the fly. Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* [ptxd_make_world_patchin] add option to apply patches with gitMarc Kleine-Budde2010-04-011-1/+71
| | | | Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* [ptxd_make_world_patchin] provide shell based patchin implementationMarc Kleine-Budde2010-04-011-0/+331
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>