summaryrefslogtreecommitdiffstats
path: root/scripts
Commit message (Collapse)AuthorAgeFilesLines
* ptxd_lib_dgen: don't add options to the hash files twiceMichael Olbrich2018-07-311-1/+4
| | | | | | | Otherwise, enabling a host package in the platformconfig that is already enabled in the ptxconfig will trigger a rebuild of the package. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_make_image_archive: make sure the image does not exist when an error occursMichael Olbrich2018-07-301-1/+6
| | | | | | 'tar' may fail but leave the image file in an undefined state. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_make_image_archive: fix quoting and white-space handlingMichael Olbrich2018-07-302-3/+3
| | | | | | | Without this the quotation marks are part of the label and labels with white-spaces are broken. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* image-root-tgz: Add IMAGE_ROOT_TGZ_LABEL optionJon Ringle2018-07-132-2/+12
| | | | | Signed-off-by: Jon Ringle <jringle@gridpoint.com> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* improve dependency handlingMichael Olbrich2018-07-106-99/+72
| | | | | | | Check the content of make and in files for packages in addition to the package options to trigger the prepare stage. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* wrapper: improve blacklist handlingMichael Olbrich2018-07-091-0/+5
| | | | | | | | | | | | Explicitly disable build-id if it is blacklisted. It may be enabled by default in the toolchain. Use TARGET_HARDEN_STACK to blacklist all stack protector options. Note: With 'dash', variables for a specific command remain set afterwards if the command is a shell function. Use '()' to make sure the existing value is not overwritten. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_make_world_license: don't calculate the md5 sums againMichael Olbrich2018-07-081-4/+1
| | | | | | | | They are already known and verified. Readd the change. It was accidentally reverted in the next commit. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_lib_local_src: handle relative paths correctlyMichael Olbrich2018-07-031-0/+5
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* license: generate yaml outputMichael Olbrich2018-07-033-3/+129
| | | | | | And add a converter to create CSV from the yaml data. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_make_world_license: don't calculate the md5 sums againMichael Olbrich2018-07-031-4/+1
| | | | | | They are already known and verified. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* configure_helper: be more robust when parsing the 'configure --help' outputMichael Olbrich2018-06-211-1/+4
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_make_world_install_post: don't generate bogus pkg-config file listsMichael Olbrich2018-06-081-2/+4
| | | | | | | Don't look for pkg-config files if ${pkg_pkg_dir} is not set. Otherwise all pkg-config installes on the built host are found. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* pkg-config-wrapper: skip whitelist checking if pkg-config failsMichael Olbrich2018-06-081-6/+11
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_lib_dgen: make sure fakeroot is available when generating imagesMichael Olbrich2018-06-061-0/+1
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ca-certificates: update certdata2pem.py to latest upstream versionMichael Olbrich2018-06-051-25/+45
| | | | | | It uses Python 3 now. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* remove old base platform codeMichael Olbrich2018-06-044-81/+2
| | | | | | It's obsolete and broken. dev packages should be used instead. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* configure_helper.py: call configure from the source treeMichael Olbrich2018-05-311-1/+3
| | | | | | | Some hand crafted configure scripts fail if the current directory is not the toplevel source dir. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_lib_dgen: images that use ipkgs should depend on ipkg-push if ↵Michael Olbrich2018-05-311-0/+5
| | | | | | PTXCONF_IMAGE_INSTALL_FROM_IPKG_REPOSITORY is set Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* remove remaining helper of the old image mechanismMichael Olbrich2018-05-311-27/+0
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* remove unmaintained microblaze stuffMichael Olbrich2018-05-303-167/+0
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* remove obsolete and broken klibc/initramfsMichael Olbrich2018-05-303-12/+0
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ninja: update jobserver patches from github issueMichael Olbrich2018-05-251-2/+2
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* split-error-log: more robust stage handlingMichael Olbrich2018-05-211-5/+15
| | | | | | | The old code removed the wrong things when both .extract and .extract.post where in stages. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_make_import: try to ignore help lines that start with 'source'Michael Olbrich2018-05-211-1/+1
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* configure_helper.py: use meson from sysroot-hostMichael Olbrich2018-05-211-4/+6
| | | | | | Otherwise the version may not match. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* wrapper: don't use target LDFLAGS for host toolsMichael Olbrich2018-05-201-1/+1
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* git-ptx-patches: git 2.17.0 compatible stat widthDenis OSTERLAND2018-05-041-0/+2
| | | | | | | | | | With git 2.17.0 the stat with of old patches gets changes using git ptx-patches. This generates changes like: - drivers/tty/serial/imx.c | 46 +++++++++++++++++++++++++++++++++------------- + drivers/tty/serial/imx.c | 46 ++++++++++++++++++++++++++++------------ Signed-off-by: Denis Osterland <Denis.Osterland@diehl.com> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* migrate_ptx: fix pattern for LIGHTTPD_MEMCACHEMichael Olbrich2018-05-041-1/+1
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* wrapper: improve local extra argument handlingMichael Olbrich2018-04-224-4/+14
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* wrapper: add rpath-link for some rpathsMichael Olbrich2018-04-181-0/+3
| | | | | | | | | | | | | | | With new versions of binutils, ld will prepend the sysroot to all absolute rpaths before using them at build time. This breaks rpaths for build directories. Specifically it breaks building the gobject-introspection helper programs. Fix this by adding the same path with -rpath-link. Note: This is incomplete: It only works for "-Wl,-rpath,<path>" but not for "-Wl,-rpath -Wl,<path>". It fixes all known issues in PTXdist so it is good enough for now. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* bash_completion: cleanup & improveMichael Olbrich2018-03-271-5/+7
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* git-ptx-patches: consume complete output of manUwe Kleine-König2018-03-211-1/+1
| | | | | | | | | | | | | | | | | | On Debian unstable/testing man doesn't like it's stdout being closed prematurely: $ man git-format-patch | grep -q -e --notes Bad system call (core dumped) man: command exited with status 159: /usr/lib/man-db/zsoelim | /usr/lib/man-db/manconv -f UTF-8:ISO-8859-1 -t UTF-8//IGNORE | preconv -e UTF-8 | tbl | nroff -mandoc -Tutf8 This clutters the output of git ptx-patches which is annoying. While this is a bug of man(1), it is easy enough to work around by not using grep -q. Bug-Debian: https://bugs.debian.org/892309 Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_make_spdx: update with new scriptMichael Olbrich2018-03-121-112/+161
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_create_section_from_license: put deprecated licenses in a separate sectionMichael Olbrich2018-03-121-2/+7
| | | | | | This way, they are easily fond and can be updated. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* update_spdx: handle new upstream data formatMichael Olbrich2018-03-122-109/+62
| | | | | | | | The source data for the SPDX license data changed to XML. There are also a generated JSON files. Use those to generate our license classification function. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* split-error-log: add helper script to extract failed stages from the logfileMichael Olbrich2018-03-041-0/+47
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* gdb-wrapper: add the nfsroot to the auto-load safe-pathMichael Olbrich2018-03-021-0/+1
| | | | | | | The only useable path for auto-load scripts is right next to the corresponding binary. Anything else is broken when working with a sysroot. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* bash_completion: add some basic support for 'ptxdist gdb'Michael Olbrich2018-03-021-1/+1
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* wrapper: add -fno-diagnostics-show-caret when using iceccMichael Olbrich2018-02-281-0/+11
| | | | | | | Otherwise icecc may need to rebuild files locally. Especially qt4 seems to be affected by this. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_install_shared: don't install last linkMichael Olbrich2018-02-251-1/+1
| | | | | | It's only needed at build time. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_make_world_install_pack: remove la files, they are not neededMichael Olbrich2018-02-251-10/+4
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_make_world_install_unpack: make rpaths relocatableMichael Olbrich2018-02-252-11/+15
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_make_world_install_pack: make sure the *.prl files are relocatableMichael Olbrich2018-02-251-3/+7
| | | | | | | | | - drop QMAKE_PRL_BUILD_DIR, it's not needed. - drop all paths to the build dir - drop all paths to default paths - rewrite paths with $$[QT_INSTALL_LIBS] if possible Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_install_lib: ignore linker scripts when searching for a libraryMichael Olbrich2018-02-221-1/+4
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* make sure $CC and $CXX are set for mesonMichael Olbrich2018-02-211-1/+2
| | | | | | | Meson uses those as host compiler. If the variables are not set, then meson tries to autodetect what should be used and may decide to use ccache. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* cleanup pkg-config environment handlingMichael Olbrich2018-02-212-29/+13
| | | | | | | PTXCONF_PKG_CONFIG_PATH is never defined so remove the code that uses it. Define $PKG_CONFIG for all code paths. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_make_image_init: redirect images generation output to the logfile in ↵Michael Olbrich2018-02-041-0/+2
| | | | | | | | quiet mode With this, logging for image generation works like everything else. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* scripts: fix position sensitive options for tar 1.30Michael Tretter2018-01-311-1/+2
| | | | | | | | | | | | | | | | | | | | | | tar 1.30 reports position sensitive options and returns with an error code. This causes the following error during barebox prepare. tar: The following options were used after any non-optional arguments in archive create or update mode. These options are positional and affect only arguments that follow them. Please, rearrange them properly. tar: --exclude '.svn' has no effect tar: --exclude '.pc' has no effect tar: --exclude '.git' has no effect tar: --exclude '*.in' has no effect tar: --exclude '*.in.*' has no effect tar: --exclude '*/*~' has no effect tar: Exiting with failure status due to previous errors Reorder the arguments to tar and put the --exclude arguments before the current directory. Signed-off-by: Michael Tretter <michael.tretter@posteo.net> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* configure_helper.py: default to autoconf if not tool is configuredMichael Olbrich2018-01-291-0/+2
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_make_world_common.sh: fix meson build for non-Debian distrosptxdist-2018.01.0Clemens Gruber2018-01-181-1/+13
| | | | | | | | | | | | Debian patches glibc to add a special C.UTF-8 locale, which is not available on most other distros. For the meson build to work on other distros like ArchLinux, let's grep the output of locale -a and try to find C.UTF-8, en_US.UTF-8 or an en_* UTF-8 locale. If none can be found, fall back to any UTF-8 locale and print a warning. Signed-off-by: Clemens Gruber <clemens.gruber@pqgruber.com> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>