summaryrefslogtreecommitdiffstats
path: root/scripts/lib/ptxd_lib_dgen.awk
Commit message (Collapse)AuthorAgeFilesLines
* ptxd_lib_dgen: merge dependencies of virtual packagesMichael Olbrich2016-05-191-0/+22
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_lib_dgen: handle dependencies from ptxconfig and platformconfig for the ↵Michael Olbrich2016-05-011-9/+31
| | | | | | same package Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* project-name: add option to check license information when building the packagesMichael Olbrich2015-12-111-0/+9
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* improve PTXdist release for license reporting mechanismMichael Olbrich2015-10-271-0/+1
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_lib_dgen: add order-only dependency to extractMichael Olbrich2015-05-261-0/+5
| | | | | | | | | This is not stictly necessary but useful to avoid extracting all packages first when building with '-je*'. Only do it for parallel building, so that 'ptxdist extract <pkg>' works like before. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_lib_dgen.awk: Fix warningBernhard Walle2015-04-301-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | After upgrading my gawk to 4.1.2 (which Arch Linux did today), I get tons of warnings like gawk: /usr/lib/ptxdist-2015.04.0/scripts/lib/ptxd_lib_dgen.awk:386: (FILENAME=/tmp/ptxdist.p1sg2M/dgen/platformconfig FNR=233) warning: gensub: third argument `' treated as 1 This patch fixes the warnings. According to the documentation https://www.gnu.org/software/gawk/manual/gawk.html#String-Functions: | gensub(regexp, replacement, how [, target]) # | ... | | If the how argument is a string that does not begin with ‘g’ or ‘G’, or | if it is a number that is less than or equal to zero, only one | substitution is performed. If how is zero, gawk issues a warning | message. So the fix should be safe. Signed-off-by: Bernhard Walle <bernhard@bwalle.de> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_lib_dgen: let host packages inherit license variables as wellMichael Olbrich2015-02-061-0/+3
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* new command create a license report of all the selected packagesMichael Olbrich2015-02-061-0/+1
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_lib_dgen: strip white spaces from this_pkgMichael Olbrich2014-09-051-1/+1
| | | | | | | This is necessary to e.g. handle files with dos line breaks. Otherwise this_pkg is '<pkg>\r' which causes all kinds of problems. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_lib_dgen: fix dependencies for image packagesMichael Olbrich2014-08-111-1/+2
| | | | | | | the prefix of the dependency must be checked to determine if the image depends on install or targetinstall. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_lib_dgen: be more clever about tarball dependenciesMichael Olbrich2014-07-221-1/+3
| | | | | | | | | | | | | New package versions have always been problematic. If the old version is built and the tarball for the new version is older than the get stage then ptxdist didn't build the new version. To improve the situation we now do the following: - create a dummy state file with the tarball name as part of the filename. - let the get stage depend on this. For a new version the file does not exist and the package is rebuilt. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_lib_dgen: don't dereference <PKG>_DEVPKG twiceJon Ringle2014-02-131-1/+1
| | | | | | | | | Otherwise we basically get 'ifneq ($(NO),NO)' which makes no sense. Also, strip <PKG>_DEVPKG when comparing to NO in case of trailing white-spaces. Signed-off-by: Jon Ringle <jringle@gridpoint.com> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxdist getdev: Download dev packages from ${PTXCONF_PROJECT_DEVMIRROR}Jon Ringle2014-01-291-0/+7
| | | | | | | | | | | | | This patch allows you to setup a dev package mirror to hold *-dev.tar.gz packages. Upload your *-dev.tar.gz packages to your mirror, then you can avoid rebuilding all your packages by doing: ptxdist getdev Signed-off-by: Jon Ringle <jringle@gridpoint.com> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_lib_dgen.awk: cleanup alignmentMichael Olbrich2014-01-221-2/+2
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_lib_dgen: let <pkg>.get depend on <PKG>_SOURCES instead of <PKG>_SOURCEMichael Olbrich2013-01-021-1/+1
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_lib_dgen: define <PKG>_SOURCES and use it in export_srcMichael Olbrich2012-12-171-1/+2
| | | | | | this is needed to copy multiple archives per package in export_src Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_lib_dgen: image target may need ipkg/opkgMichael Olbrich2012-11-091-0/+7
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_lib_dgen: autogen.sh is now called in .extract.post, so depend on ↵Michael Olbrich2012-10-181-1/+1
| | | | | | autogen-tools there Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptx/collection: new macro to generate a package list from a collectionconfigMichael Olbrich2012-10-121-0/+1
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_lib_dgen: image-<pkg>.install.post should depend on $(<PKG>_IMAGE)Michael Olbrich2012-07-021-0/+1
| | | | | | Otherwise selecting other images will not produce the correct dependencies. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_lib_dgen: fix image dependenciesMichael Olbrich2012-06-141-1/+4
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_lib_dgen: first steps for image packagesMichael Olbrich2012-06-131-6/+28
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_lib_dgen: more refactoringMichael Olbrich2012-06-131-135/+115
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_lib_dgen: start refactoringMichael Olbrich2012-06-131-9/+9
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* prepare: move autogen into a separate stageMichael Olbrich2012-05-271-3/+4
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_lib_dgen: fix for older gawkMichael Olbrich2012-03-131-4/+10
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_lib_dgen: introduce runtime and buildtime dependenciesMichael Olbrich2012-03-131-9/+16
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_lib_dgen: simplify deps generationMichael Olbrich2012-03-131-26/+16
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* dgen: default HOST_<PKG>_URL to <PKG>_URLMichael Olbrich2011-07-051-0/+2
| | | | | | this fixes downloading host packages with corresponding target packages. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_make_world_get: use pattern rule for sources instead of generated rulesMichael Olbrich2011-06-241-28/+0
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_lib_dgen: generate source rule for all packagesMichael Olbrich2011-06-101-5/+5
| | | | | | this is necessary in case the only the host package is selected Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* lndir: add support for lndir:// URLJon Ringle2011-05-271-1/+6
| | | | | | | | | | | | | Use lndir for local external projects referenced by lndir:// URL lndir will create a shadow directory tree of the source tree populated with symlinks of all the files contained in the source tree. Building from the lndir created shadow tree will result in all files created by the build to be created in the shadow tree and leaving the source tree prestine. This is useful when building for multiple archs. Signed-off-by: Jon Ringle <jon@ringle.org> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* [get] add md5sum checking for downloaded archivesMichael Olbrich2011-05-041-0/+1
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* Revert "[dgen] use targetinstall.post instead of targetinstall for package ↵Michael Olbrich2011-01-151-2/+2
| | | | | | | | | | dependencies" This reverts commit 4bbbb7ec5cc848232201126c2b23ace92473cf2f. The change broke the ipkg dependencies. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* [dgen] add -$(PTXCONF_ARCH_STRING)- to the devpkg namesMichael Olbrich2010-11-161-1/+1
| | | | | | | This is to make sure that we don't accidentally use devpkgs for a different architecture. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* [ptxd_lib_dgen] add "-" to packages detection regexMarc Kleine-Budde2010-08-021-1/+1
| | | | | | | | ...in order to avoid false positives with this line: PYTHON_SITEPACKAGES := /usr/lib/python$(PYTHON_MAJORMINOR)/site-packages Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* [dgen] don't define convenience variables for host/cross package without ↵ptxdist-2010.08.0Michael Olbrich2010-08-021-4/+7
| | | | | | | | | | corresponding host package We define HOST_<PKG>_DIR etc. based on the corresponding host package. If it does not exist those variables a bogus. So don't define them. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de> Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* [dgen] create non-existing source stagesMichael Olbrich2010-07-191-0/+27
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* [dgen] use targetinstall.post instead of targetinstall for package dependenciesMichael Olbrich2010-07-011-2/+2
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* [install] install host/cross packages to pkgdir by defaultMichael Olbrich2010-04-231-0/+4
| | | | | | define *_SYSROOT for use by others Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* [install] use chrpath in ptxd_make_world_install_unpack to fix the rpath of ↵Michael Olbrich2010-04-231-0/+2
| | | | | | host-tools Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* [install] create install.[un]pack stages to support devel packagesMichael Olbrich2010-04-221-1/+12
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* [ptxd_lib_dgen] define <PKG>_DEVPKG for all packagesMichael Olbrich2010-04-221-2/+13
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* [ptxd_lib_dgen] fix md5sum creationMichael Olbrich2010-04-191-2/+2
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* [ptxd_lib_dgen] create md5sum for PTXCONF options for each packageMichael Olbrich2010-04-161-0/+21
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* [ptxd_lib_dgen] fix autogen_dep for host-packagesMarc Kleine-Budde2010-02-261-10/+2
| | | | | | | | | | | | | | | | | | | | | Since commit eb18824f0bba81f3b3c961c5886ec9e53eafc0f0 we generate default package names for host and cross packages. If we have packages for both host- and target- we both $PKG and $HOST_PKG defined. The "autogen_gen" is called like this: ifneq ($(call autogen_dep,$(" this_PKG ")$(" target_PKG ")),) relying on the fact that either PKG _or_ HOST_PKG is defined. But since that commit (eb18824f0bba81f3b3c961c5886ec9e53eafc0f0) this isn't true anymore. This patch fixes the problem by just using "this_PKG". Which means the "autogen_gen" call is the same for host-, cross-, and target- packages. Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* [dgen] generate default builddir for host- and cross- packagesMarc Kleine-Budde2010-01-111-1/+4
| | | | Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* [dgen] add default package name & source variables for host-* and cross-* ↵Michael Olbrich2010-01-101-2/+14
| | | | | | packages Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* [autogen] create automatic dependencies for packages that need to run autogen.shMichael Olbrich2009-10-261-0/+17
| | | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de> Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* [dgen] add support for new "BASE" dependenciesMarc Kleine-Budde2009-08-171-2/+18
| | | | | | | | | | Until this patch all target packages depent automatically on the "virtual-cross-tools", which provide fakeroot, pkgconfig and so on. In order to install certain "target" pacakge before _all_ other target packages the "BASE" package is introduced. Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>