summaryrefslogtreecommitdiffstats
path: root/scripts/lib/ptxd_make_world_common.sh
Commit message (Collapse)AuthorAgeFilesLines
* ptxd_make_world_init: unset MAKELEVELMichael Olbrich2019-10-101-0/+3
| | | | | | | | MAKELEVEL is incremented for each sub-make call. The ptxdist make should not be counted because this can confuse package makefiles that use this variable to detect the make recursion level. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* host-meson: version bump 0.49.2 -> 0.51.1Lucas Stach2019-09-281-1/+1
| | | | | | Signed-off-by: Lucas Stach <l.stach@pengutronix.de> [mol: set CMAKE=false, otherwise preparing most packages will fail] Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_make_world_init: fix parallel building with ninja without jobserverMichael Olbrich2019-09-281-2/+4
| | | | | | | | Without jobserver, the correct PTXDIST_PARALLELMFLAGS_INTERN must be preserved. Otherwise ninja will just use the default. This is especially important when '-j1' or '-ji1' is used for debugging. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_make_world_prepare_init: allow keeping the build tree during prepare ↵Michael Olbrich2019-09-161-3/+5
| | | | | | for oot packages Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* CREDITS: remove unmaintained fileRoland Hieber2019-07-031-2/+0
| | | | | | | | | | | | | | | This file has been touched 2 times in the last 7 years, and is no longer up to date. Remove it to carry less unmaintained stuff around. Also remove all references to it from file headers using for file in `g grep -l 'See CREDITS for details about who has'`; do sed -i '/See CREDITS for details about who has/,+1d' $file done as well as the different wording from rules/other/Toplevel.make. Signed-off-by: Roland Hieber <rhi@pengutronix.de> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_make_world_init: don't let meson use cmakeMichael Olbrich2019-07-031-1/+1
| | | | | | | | | This might circumvent pkg-config blacklisting. This is needed only for host packages. For target packages cmake is already not in use because it is not defined in the cross file. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_make_world_*: allow ninja generator for cmakeMichael Olbrich2019-06-051-18/+36
| | | | | | | | | cmake can be used with 'make' and 'ninja'. Currently only 'make' is supported. This introduces a check to determine which generator is selected and calls the corresponding tool in the compile and install stages. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_make_world_init: set pkg_conf_env if no conf tool is definedMichael Olbrich2019-03-021-1/+6
| | | | | | This is useful if world/execute is used in the prepare stage. 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>
* 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_make_world_init: improve logfile orderingMichael Olbrich2018-10-091-0/+3
| | | | | | | | | | | If output-sync is enabled, then all stdout and stderr is collected for a target and dumped at the end. stdout and stderr are already merged to achieve proper interleaving. However anything written directly to the logfile comes first. Redirect the 'logfile only' file descriptor to stdout if quiet is enabled. The result is the same but correctly interleaved. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_make_world_init: fix redefining PTXDIST_LAYERS with older bash versionsMichael Olbrich2018-09-271-1/+2
| | | | | | | | This is needed for bash 4.3.30 and probably other older bash versions. Without this, exporting PTXDIST_LAYERS does not work correctly and it is no longer defined once ptxd_make_world_init() is done. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_make_world_init: make sure PTXDIST_LAYERS is definedMichael Olbrich2018-09-201-0/+6
| | | | | | | | During the round-trip through 'make', all array variables are lost. Redefine PTXDIST_LAYERS in ptxd_make_world_init() to make sure it is available in the build stages. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* some more pkg-config cleanupMichael Olbrich2018-09-061-4/+0
| | | | | | | Remove some unused/empty variables and handle sysroot fully in the wrapper. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* pkg-config: cleanup and improve path and dependency handlingMichael Olbrich2018-09-061-6/+15
| | | | | | | | | | | - move all search path magic into the wrapper script - use the wrapper script for host packages as well - enforce the dependencies for host packages - make it possible to overwrite the script in the BSP - track host and target dependencies separately Needed e.g. by barebox to build host tools Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* remove obsolete and broken klibc/initramfsMichael Olbrich2018-05-301-1/+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>
* 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-211-1/+1
| | | | | | | 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_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>
* patchin: run autogen.sh for local-src/ packagesMichael Olbrich2017-11-231-1/+0
| | | | | | | | This is useful when working with local-src/ symlinks. autogen.sh needs to run there as well and this way it will be executed in the correct environment. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* pkg-config-wrapper: only allow packages that are selectedMichael Olbrich2017-06-211-0/+6
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_make_world_compile.sh: conditionally redirect stderr>stdoutJon Ringle2017-06-021-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* add meson conf toolMichael Olbrich2017-04-131-7/+30
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_make_world_init: never use icecc during the prepare stageMichael Olbrich2016-10-301-1/+1
| | | | | | | | | Only shore test programs are compiled here. So just do this locally and avoid the overhead from calling icecc first. This can speed up the prepare stage significantly. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_make_world_init: don't set pkg_install_envMichael Olbrich2016-07-011-1/+0
| | | | | | | Setting pkg_install_env to the same value as pkg_make_env is redundant. Both are used in the install stage. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_make_world_init: make pkg_conf_dir relativeMichael Olbrich2016-05-011-0/+1
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* improve PTXdist release for license reporting mechanismMichael Olbrich2015-10-271-5/+0
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* add helper to build python packagesMichael Olbrich2015-06-091-1/+18
| | | | 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>
* ptxdist: apply load limit to outer make as wellMichael Olbrich2015-05-261-1/+1
| | | | 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>
* new command create a license report of all the selected packagesMichael Olbrich2015-02-061-0/+5
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_make_world_prepare: support <PKG>_CONF_TOOL := perlMichael Olbrich2014-04-111-1/+4
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxdist: add --verbose option and start using itMichael Olbrich2012-07-291-3/+3
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* add generic kconfig based prepare stageMichael Olbrich2011-12-171-1/+4
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxdist: make it possible to overwrite packages locallyRobert Schwebel2011-07-121-0/+15
| | | | | | | | | | Add the the possibility to overwrite any package in local_src/<package>.<platform> Just set a link to a directory or a directory there and it is used, without being patched any more and without being cleaned. Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
* trivial: fix typos concerning "incompatible"Uwe Kleine-König2010-09-131-6/+6
| | | | | Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* [ptxd_make_world_common] add extract dir definitionsMarc Kleine-Budde2010-08-021-0/+7
| | | | Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* [ptxd_make_world_init] sanatize pkg_pkg_dir for host/cross packagesMichael Olbrich2010-08-021-0/+2
| | | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de> Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* [ptxd_make_world_common] define SYSROOT for host and cross packagesMichael Olbrich2010-04-231-1/+1
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* [install] install host/cross packages to pkgdir by defaultMichael Olbrich2010-04-231-8/+10
| | | | | | define *_SYSROOT for use by others Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* [ptxd_make_world_common] always use <PKG>_BUILD_OOT when setMichael Olbrich2010-04-071-15/+10
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* [initramfs] Remove special initramfs target build directoriesJon Ringle2010-03-161-1/+1
| | | | | Signed-off-by: Jon Ringle <jon@ringle.org> Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* [ptxd_make_] provide and use variable for the fakeroot environmentMarc Kleine-Budde2010-03-101-0/+1
| | | | | | | This patch introduces the variable "pkg_fake_env" which holds the fakeroot environment. Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* [ptxdist] ad -l|--load-average= option (used with make)Michael Olbrich2010-03-051-1/+1
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* [lib] define and use pkg_xpkg_mapMichael Olbrich2010-03-051-0/+5
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* [ptxd_make_world_common] add SYSROOT to target packages environmentMarc Kleine-Budde2010-02-021-1/+1
| | | | | | | It it needed for packages which use these "*-config" scripts during compile time. Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* [ptxd_make_world_common] fix default PATH settingMarc Kleine-Budde2010-01-201-1/+1
| | | | | | | | ....the previous patch [1] was non working [1] 20021d3e2383043e40421fd31aee3ad4f70a37f7 Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>