summaryrefslogtreecommitdiffstats
path: root/rules/pre
Commit message (Collapse)AuthorAgeFilesLines
* ptx/in-path: don't call the shell unless neededMichael Olbrich2019-02-201-2/+2
| | | | | | | | The optimization didn't actually work: The second argument for ptx/in-path3 was always evaluated. Move the shell execution directly to the 'if' argument to really skip. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* rules: install to sysroot-host/bin with HOST_PYTHON and HOST_SYSTEM_PYTHONDenis OSTERLAND2019-02-061-1/+1
| | | | | | | | | | | | | Using system python "install --prefix= --root=..." gets resolved to "/local/bin" installation prefix. With self compiled python to "/bin". With "--prefix=" system python uses "/usr/local/bin" and self compiled "/bin". With "--prefix=/" the following "--root=..." is ignored. With "--prefix=/." system python uses "/./bin" and self compiled, too. Signed-off-by: Denis Osterland <Denis.Osterland@diehl.com> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* kernel: fix download url for release candidatesMichael Tretter2019-01-121-2/+2
| | | | | | | | | | | The check, if the release candidate needs to be downloaded from the git url, compares major and minor version numbers. It fails for Linux 5.0, because the minor is smaller than the minor of 4.12. Check for the minor version only if the major version is 4. Signed-off-by: Michael Tretter <m.tretter@pengutronix.de> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* rules: use ptx/force-shell in more placesptxdist-2018.12.0Michael Olbrich2018-12-124-8/+8
| | | | | | | Any $(shell ...) call that influences the dependency list must use ptx/force-shell instead. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* Toplevel.make: introduce and & use ptx/force-shellMichael Olbrich2018-12-101-1/+1
| | | | | | | ptx/get-alternative must run during dry-run to resolve paths, so do some magic to execute it anyways while SHELL=true. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptx/in-platformconfigdir: rewrite in makeMichael Olbrich2018-10-091-1/+14
| | | | | | This is a lot faster than starting a shell. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptx/in-path: rewrite in makeMichael Olbrich2018-10-091-1/+19
| | | | | | This is a lot faster than starting a shell. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_make_image_genimage: speed up config dependenciesMichael Olbrich2018-10-081-14/+0
| | | | | | | | Calling ptxd_get_alternative during make startup is slow. Create the full list of possible paths when generating the dependency and let make find the first existing one. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* pre/gdb: use ':='Michael Olbrich2018-10-071-2/+2
| | | | | | | This will be evaluated during make startup anyways for the source dependencies. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* gdb: optionally use toolchain gdb versionMichael Olbrich2018-10-051-0/+27
| | | | | | | This requires switching to tar.xz archives. Otherwise, the md5 does not match. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* rules: implement & use ptx/in-platformconfigdirMichael Olbrich2018-09-201-0/+2
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* rules/pre: define ptx/in-pathMichael Olbrich2018-09-201-0/+2
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* rules: rename ptx/get_alternative to ptx/get-alternativeMichael Olbrich2018-09-201-1/+2
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* some more pkg-config cleanupMichael Olbrich2018-09-061-10/+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-4/+4
| | | | | | | | | | | - 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>
* HOST_MESON_OPT: Add --libdirptxdist-2018.08.0Jon Ringle2018-07-311-1/+2
| | | | | | | | Otherwise libdir is autodetected and will be 'lib64' or 'lib/x86_64-linux-gnu' on a x86_64 build host. Signed-off-by: Jon Ringle <jringle@gridpoint.com> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* remove unmaintained microblaze stuffMichael Olbrich2018-05-301-74/+0
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* remove obsolete and broken klibc/initramfsMichael Olbrich2018-05-301-52/+0
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* kernel-headers: Fix -rc download urlLadislav Michl2018-04-201-0/+12
| | | | | | | | kernel-headers url is by default the same as kernel one, however it does not reflect -rc tarballs are no longer provided. Fix that. Signed-off-by: Ladislav Michl <ladis@linux-mips.org> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* add macro for yes / no optionsMichael Olbrich2018-04-161-0/+12
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ncurses: version bump 5.9 -> 6.1Ladislav Michl2018-02-281-8/+8
| | | | | | | | | | Wih update to ncurses-6.1 also: - sort configure options the way they appear in configure to make future reviews easies - as C++ code is not built remove CPPFLAGS Signed-off-by: Ladislav Michl <ladis@linux-mips.org> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* make sure $CC and $CXX are set for mesonMichael Olbrich2018-02-211-0/+3
| | | | | | | 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>
* pre/Rules: refactor HOST_ENVMichael Olbrich2018-02-211-5/+12
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* cleanup pkg-config environment handlingMichael Olbrich2018-02-211-2/+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>
* Rules.make: add options for host meson packagesMichael Olbrich2017-11-161-0/+5
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* add macros to simplify meson optionsMichael Olbrich2017-11-101-0/+24
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* Rules: define CPP correctlyMichael Olbrich2017-05-041-2/+2
| | | | | | | | | | 'gcc -E' is what autoconf and others use as default for CPP. The arguments an behaviour is different from calling 'cpp' directly, so define CPP accordingly to avoid problems. libX11 really want the raw cpp. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* Rules: swap order of --host and --buildMichael Olbrich2017-05-041-2/+2
| | | | | | This way the order matches the output of './configure --help'. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* add meson conf toolMichael Olbrich2017-04-131-0/+7
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* Remove unused Version.makeLadislav Michl2016-02-011-27/+0
| | | | | Signed-off-by: Ladislav Michl <ladis@linux-mips.org> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* xorg: remove XORG_DEFAULT_DATA_DIR configuration optionPhilipp Zabel2015-12-091-0/+1
| | | | | | | | | | Modern distributions set datadir to /usr/share instead of /usr/lib. Replace the XORG_DEFAULT_DATA_DIR configuration option with a fixed XORG_DATADIR variable and point it to /usr/share. Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de> [mol: fix libx11, xorg-server targetinstall] Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* add helper macro for simpler cmake options settingAlexander Dahl2015-11-071-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | | Background: while for autotools there are the ptx/endis, ptx/disen, and ptx/wwo helpers, nothing comparable exists for cmake. For options setting on cmake packages you can add those to FOO_CONF_OPT of your package and currently there are for example those two ways: ifdef PTXCONF_FOO_ENABLE_BAR FOO_CONF_OPT += -DENABLE_BAR:BOOL=ON else FOO_CONF_OPT += -DENABLE_BAR:BOOL=OFF endif You could also use something shorter like: FOO_CONF_OPT += -DENABLE_BAR=$(call ptx/ifdef, \ PTXCONF_FOO_ENABLE_BAR, ON, OFF) With the new helper macro this will be even easier: FOO_CONF_OPT += -DENABLE_BAR=$(call ptx/onoff, PTXCONF_FOO_ENABLE_BAR) Signed-off-by: Alexander Dahl <post@lespocky.de> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* pre/Rules: simplify clean: don't check for existanceMarc Kleine-Budde2015-06-111-3/+1
| | | | | | | | Don't check for existance before rm -rf: - rm -f doesn't fail, if target doesn't exist - we will not delete links with non existing targets Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* add helper to build python packagesMichael Olbrich2015-06-091-0/+3
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* try to avoid building static librariesMichael Olbrich2014-09-241-0/+2
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* pre/Rules: set enable_maintainer_mode=no for host packages as wellMichael Olbrich2014-08-061-0/+1
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* pre/Rules: set enable_option_checking=fatal for host packages as wellMichael Olbrich2014-06-221-0/+1
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* pre/Rules: disable maintainer mode by defaultMichael Olbrich2014-06-201-0/+1
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* PTXdist: fix a typo in the macro documentationJuergen Beisert2014-02-031-2/+2
| | | | | Signed-off-by: Juergen Beisert <jbe@pengutronix.de> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* pre/Rules: readd CC/CXX to HOST_ENVMichael Olbrich2014-01-141-0/+4
| | | | | | Otherwise some packages may use clang instead, Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* kernel.make: Add missing backslashSascha Hauer2013-10-031-1/+1
| | | | | | | | | in kernel/opts a backslash is missing. Without it the kernel options lack INSTALL_MOD_PATH which makes the install stage in the kernel make templates unusable. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* kernel: rearange URLs so that v3.x kernels are found fasterMarc Kleine-Budde2013-07-211-5/+5
| | | | Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* pre/Rules: add global SELinux optionMarc Kleine-Budde2013-02-051-0/+6
| | | | Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* rules: get_alternative: add make helper for ptxd_get_alternative shell functionMarc Kleine-Budde2013-02-051-0/+13
| | | | Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* option-disabled: add ptx/ifdef helperMarc Kleine-Budde2013-02-051-0/+14
| | | | Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* ptxdist: use host compiler wrapperMarc Kleine-Budde2013-02-051-18/+1
| | | | | | | | - create links to wrapper scripts and real components - use gcc, g++ for HOSTCC, HOSTCXX - remove HOST_* Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* qmake: make builds silent unless ptxdist is started with '-v'Michael Olbrich2012-12-191-1/+3
|
* wrapper: introduce a wrapper for cc, c++, cpp and ldJan Luebbe2012-11-201-42/+0
| | | | | | | | | | | This is used to inject compiler and linker options without relying on the build-systems to pass additional options to the tools. It is used for options needed for cross-compiling, hardening flags and other user defined options. The wrapper also calls ccache if ptxdist is configured to use it. Signed-off-by: Jan Luebbe <jlu@pengutronix.de> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* change cross-libkmod -> host-libkmodMichael Olbrich2012-11-191-1/+1
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* kernel: use depmod from cross-libkmodMichael Olbrich2012-11-191-1/+1
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>