summaryrefslogtreecommitdiffstats
path: root/scripts
Commit message (Collapse)AuthorAgeFilesLines
* hardening: add option for -fstack-clash-protectionMichael Olbrich2019-02-211-0/+1
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_make_world_license_yaml: fix and improve patch informationMichael Olbrich2019-02-211-1/+5
| | | | | | | | Use ptxd_make_world_patchin_init to make sure that pkg_patch_dir is actually defined. Also add the series filename if patches are used and it has a non default filename. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_make_world_package_info: fix printing the patch directoryMichael Olbrich2019-02-211-1/+2
| | | | | | | The ptxd_make_world_patchin_init here is correct: It defines pkg_patch_dir. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* progress: fix total countMichael Olbrich2019-02-211-2/+2
| | | | | | | This was broken in the final cleanup of the last change. Also, remove accidentally commited debug 'tee a'. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_kconfig_create_config_merge: handle values that contain '='Michael Olbrich2019-02-201-1/+1
| | | | | | | Only split at the first '='. This way, 'b' contains the rest of the line, even if it contains another '='. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptx/collection: validate collection filesMichael Olbrich2019-02-201-0/+22
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxdist: add new command 'bsp-info'Michael Olbrich2019-02-201-0/+46
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_make_world_package_info: extend and handle image packagesMichael Olbrich2019-02-201-44/+45
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_make_world_license: add more data and and handle image packagesMichael Olbrich2019-02-201-15/+50
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_kconfig_create_config_merge: add sanity check to detect parse errorsMichael Olbrich2019-02-201-0/+4
| | | | | | | Otherwise, 'config' may be called with invalid arguments. This catches the error earlier and provides a hint where the error occured. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_kconfig_create_config_merge: handle more characters in symbol namesMichael Olbrich2019-02-201-1/+1
| | | | | | Without this symbols with e.g. lowercase letters are not parsed correctly. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* introduce 'world/execute' and 'execute' macrosMichael Olbrich2019-02-191-0/+73
| | | | | | | | With these, arbitrary commands can be executed in the build stages. They habe the advantage that the environment is identical to the default build stages. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_make_world_prepare: move build dir setup into a separate functionMichael Olbrich2019-02-191-5/+10
| | | | | | This makes it reusable elsewhere. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* progress: count image stagesMichael Olbrich2019-02-191-3/+3
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* pkg-config-wrapper: make sure PKG_CONFIG_SYSROOT_DIR is not setMichael Olbrich2019-02-091-0/+3
| | | | | | | Some packages try to be clever and set it but it interferes with our own filter magic. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* fuse: version bump 2.9.5 -> 2.9.9Michael Olbrich2019-02-061-0/+8
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_make_import: add prefix in conditional promptsMichael Olbrich2019-01-271-0/+4
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_install_glob: fix glob argument splittingMichael Olbrich2019-01-121-8/+14
| | | | | | | | | | | The shell is used to split the strings into multiple array elements. However, this means that other expansions are performed as well. E.g. path expansion (with workspace as current directory). So files that match a pattern break the build. Disable pathname and brace expansion temporarily to fix this. Use an array afterwards to ensure that the patterns can be quoted correctly afterwards. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_make_world_init: use the system python for python packages if ↵Michael Olbrich2019-01-121-1/+5
| | | | | | | | | 'HOST_SYSTEM_PYTHON' is selected This makes it possible to use '<PKG>_CONF_TOOL := python' for packages that are not helper for target python packages but arbitrary build tools. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* kconfig: fix warnings on formatDenis OSTERLAND2019-01-021-0/+2
| | | | | | | | | | | | Fixes warnings like: conf.c:79:3: warning: format not a string literal and no format arguments [-Wformat-security] printf(_("aborted!\n\n")); ^ Note: not all compilers show this warning. Signed-off-by: Denis Osterland <Denis.Osterland@diehl.com> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_make_kconfig_sync: fix handling config changesMichael Olbrich2018-12-121-20/+21
| | | | | | | | | | | Update the config for any *config make targets (unchanged). For anything else, update only in interactive sessions (= when a tty is available). Otherwise fail if the config changes. This emulates the old 'silentoldconfig' mode that no longer exists in the kernel. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_make_setup_progress: remove debug leftoverMichael Olbrich2018-12-121-1/+1
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_make_progress: make the dry-run more robustMichael Olbrich2018-12-101-3/+7
| | | | | | | | | | Set MAKE=false to ensure any sub-make fails immediately if the dry-run setup does not work correctly. Also, don't ignore errors during 'make --dry-run'. Note: only errors for 'make' are relevant. 'grep' fails if no targets are found. That can happen if nothing needs to be done. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_make_setup_progress: only in quiet modeMichael Olbrich2018-12-101-1/+1
| | | | | | | The progress output is only printed in quiet mode so skip the expensive setup otherwise. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_make_get: fix typo in messageRoland Hieber2018-12-081-1/+1
| | | | | Signed-off-by: Roland Hieber <r.hieber@pengutronix.de> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxdist: add --progress optionMichael Olbrich2018-12-062-0/+44
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_lib_dgen: fix pkghash for manually included menu filesMichael Olbrich2018-12-061-3/+8
| | | | | | | | | | | Manual includes are relative to the temporary kconfig file tree. The current working directory for ptxd_lib_dgen.awk is the workspace, so these relative files are not found. Add the correct absolute prefix for these files to fix this. Also, make 'tmp' und dump_file() a local variable to ensure that it does not contain old contents. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_kconfig: fix restoring missing diffMichael Olbrich2018-11-291-0/+6
| | | | | | | | | | If the diff is missing, then it must be regenerated from base and current config. If the current config is up to date then no config files are written and no diff is generated. Force a config update if the diff is missing to ensure a new one is generated. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_make_kconfig: improve oldconfig handling with -qMichael Olbrich2018-11-232-7/+9
| | | | | | | | | Not all packages support 'silentoldconfig' and at least the kernel no longer fails when user input is needed. So always run oldconfig and verify that the config is unchanged instead. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_kconfig_sync_config: improve 'check' error message for package configsMichael Olbrich2018-11-231-1/+6
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_make_log: redirect stdin to /dev/null for -qMichael Olbrich2018-11-231-0/+2
| | | | | | | This ensures that nothing waits for user input. Any output that requests the input will not be visible anyways. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_make_get_git: add local Git repositories supportValentin Gorelov2018-11-221-0/+4
| | | | | Signed-off-by: Valentin Gorelov <gorelov.v@bpa.ru> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_init_*_env: use -B instead of -LMichael Olbrich2018-11-172-3/+3
| | | | | | | | | | | It's not quite correct, but it shouldn't hurt and with -B the path is added to 'libraries:' in 'gcc -print-search-dirs'. Libtool uses this for manual seaching. This avoid explicit paths to .la files found in the system when building host packages. Also assume -print-search-dirs means compiling/linking to ensure the options are used. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* bluez: rename PTXCONF_BLUEZ{_UTILS -> _TOOLS}* for consistencyRoland Hieber2018-11-171-0/+8
| | | | | | | | "utils" is never used anywhere, neither in configure.ac, nor in our kconfig menu. Rename it to prevent confusion. Signed-off-by: Roland Hieber <r.hieber@pengutronix.de> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* xorg-lib-x11: version bump 1.6.2 -> 1.6.7Michael Olbrich2018-11-171-0/+8
| | | | | | | Also, split the locale data into a separate package. This way, libxkbcommon can use it independently for key composing. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_get_path_filtered: define new helper functionMichael Olbrich2018-11-151-0/+27
| | | | | | | It is mostly the same as ptxd_get_path() but it filters out any results that are symlinks to /dev/null. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_kconfig: don't overwrite confdirMichael Olbrich2018-11-151-1/+4
| | | | | | | | | | for collections, ptxd_kconfig is called for ptxconfig and platformconfig for each layer. In this case confdir is already set and modified for the correct layer. Without this some files are generated for the wrong layer and the collections effectively use the ptxconfig from the lowest layer. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_kconfig_find_config: fail for mode=run if no config is foundMichael Olbrich2018-11-151-1/+1
| | | | | | | | | | | mode=run is used to generate the dependencies. Usually, this only happens explicitly on the current top layer. A non-existent config already fails earlier. For collections, the dependencies are generated for each layer to generate the kconfig files. With this all layers below the first config file are ignored. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_kconfig: make sure the stamp file is always generatedMichael Olbrich2018-11-151-2/+2
| | | | | | | Without this the stamp file is only generated when a diff is applied. As a result, reading the stamp file produces an error message. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_kconfig_update_config: don't use -nt or -otMichael Olbrich2018-11-121-3/+5
| | | | | | | It does not handle equal timestamps or sub-second changes correctly. Use stat to the full timestamp and just check if it changed in any way. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_kconfig_update_config: don't save the config if it wasn't modifiedMichael Olbrich2018-11-121-1/+1
| | | | | | | | If the timestamps are equal then the file was not modified by kconfig. Don't save the config file in this case. There is nothing new and the options may be sorted incorrectly after applying the diff. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_install_replace_figlet: don't confuse debug highlighting with log outputMichael Olbrich2018-11-101-1/+1
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_install_file: improve debug handlingMichael Olbrich2018-11-101-6/+30
| | | | | | | | - don't create debug files if debugging is disabled - print created debug file path - install gdb debug helpers into root/ and debug packages Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* define and use PTXDIST_BUILD_TIMESTAMPMichael Olbrich2018-11-101-0/+3
| | | | | | | A lot of packages use such a build timestamp. Define it once and use it everywhere. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_make_world_init: define variables for more reproducible kbuild packagesMichael Olbrich2018-11-101-0/+7
| | | | | | | These variables are used by kernel and barebox packages. Define those to get more reproducible results. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_make_world_init: reset SOURCE_DATE_EPOCH for local-src packagesMichael Olbrich2018-11-101-0/+2
| | | | | | | | | | If a temporary symlink in local_src/ is used to provide the source code for a package, then reset SOURCE_DATE_EPOCH to the current date/time. Such symlinks are used during development only and built-in timestamps can be used to determine that the correct version of a binary is used. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_install_setup_src: fix usr-merge sanity checkMichael Olbrich2018-11-061-1/+1
| | | | | | | This check only makes sense for 'alternative' and 'config'. For all other commands $src is a global absolute path, not a target path. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_make_kconfig: set KCONFIG_NOTIMESTAMPMichael Olbrich2018-11-021-0/+2
| | | | | | | This ensures that the config files does not contain a timestamp. Even if the packages using world/kconfig etc. do not set this variable. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_install_resolve_usr_grp: skip empty paramsAndrej.Gantvorg@wago.com2018-10-291-2/+2
| | | | | | | | | | | | Empty parameters may be passed to ptxd_install_resolve_usr_grp i.e. when calling install_archive with UID/GID set to '-'. According to documentation this should preserve the owner/group stored in the archive. Without this patch, empty strings are mapped to the first entry in /etc/{passwd,group} (usually 0) instead, thus breaking the documented behaviour. Signed-off-by: Andrej Gantvorg <andrej.gantvorg@wago.com> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_lib_kconfig: add some more outputMichael Olbrich2018-10-251-0/+1
| | | | | | | If a config (and diff) is removed because the diff is empty, then print a appropriate message. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>