summaryrefslogtreecommitdiffstats
path: root/scripts/lib/ptxd_make_world_common.sh
Commit message (Collapse)AuthorAgeFilesLines
* 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>
* [ptxd_make_world_common] set default PATHMarc Kleine-Budde2010-01-201-0/+7
| | | | | | | | | | this patch sets the default path. Actually it only sets it for target packages to include SYSROOT_CROSS. The SYSROOT_HOST is always in path. and cross packages need cleanups anyway. Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* [ptxd_make_world_common] assign default values for prepare_envMarc Kleine-Budde2010-01-191-1/+3
| | | | | | | This patch add assignment of default values for the environemnt of host and target packages. Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* [ptxd_make_world_common] add "_target" prefix to ptx_conf_* variablesMarc Kleine-Budde2010-01-191-4/+11
| | | | | | | | | | | | This patch adds a "_target" prefix to the following variables: - ptx_conf_opt_autoconf - ptx_conf_opt_cmake - ptx_conf_opt_qmake This eases assignment of the default values quite a lot, espcially when adding support for host packages, which will follow in the next patches. Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* [ptxd_make_world_common] use case instead of if for pkg_build_dir decisionMarc Kleine-Budde2010-01-191-16/+16
| | | | Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* [ptxd_make_world_common] fix commentsMarc Kleine-Budde2010-01-191-2/+2
| | | | Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* [ptxd_make_world_common] use -eq instead of = to compare intsMarc Kleine-Budde2010-01-191-1/+1
| | | | Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* lib/ptxd_*.sh: use $( ) instead of ` ` in shell scriptsMarc Kleine-Budde2010-01-191-1/+1
| | | | Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* [ptxd_make_world_common] add INSTALL_ROOT to pkg_install_optMichael Olbrich2010-01-181-1/+1
| | | | | | qmake based packages use INSTALL_ROOT instead of DESTDIR Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* [prepare] refactor default prepare stage magicMichael Olbrich2010-01-181-9/+36
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* [ptxd_make_world_common] sanatize ${pkg_pkg_dir}Michael Olbrich2010-01-181-0/+7
| | | | | | | | if ${pkg_pkg} is not defined the ${pkg_pkg_dir} defaults to "${ptx_pkg_dir}/" which is wrong. If that happens unset ${pkg_pkg_dir} Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* [lib] define pkg_sysroot_dir for all packagesMichael Olbrich2010-01-181-1/+3
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* [lib] always set DESTDIR to ${pkg_pkg_dir}. pkg_pkg_dir is empty when unused.Michael Olbrich2010-01-181-4/+1
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* [ptxd_make_world_common] add pkg_labelMarc Kleine-Budde2010-01-131-1/+2
| | | | Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* [ptxd_make_world_common] use <PKG>_CONF_ENV when setMichael Olbrich2010-01-101-6/+7
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* [ptxd_make_world_common] introduce new variable ${PKG}_BINCONFIG_GLOBMarc Kleine-Budde2010-01-101-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch introduces a new per package variable ${PKG}_BINCONFIG_GLOB. By default this variable contains "*-config". As the name suggests it holds a shell glob pattern, intended to match the per package "-config" tools. In a later patch this mechanism is activated, then all files matching this glob pattern are copied into ${SYSROOT_CROSS}/bin. This eliminates the need for custom install stages, where these '*-config' files are copied manually. For example 'libpng': After a make install we see this in the bin directory: $ ll libpng-1.2.42/usr/bin/ total 12K drwxr-xr-x 2 frogger frogger 4.0K 2010-01-09 11:43 ./ drwxr-xr-x 6 frogger frogger 4.0K 2010-01-09 11:43 ../ -rwxr-xr-x 1 frogger frogger 2.3K 2010-01-09 11:43 libpng12-config* lrwxrwxrwx 1 frogger frogger 15 2010-01-09 11:43 libpng-config -> libpng12-config* The default "*-config" matches both files, they are copied automatically into ${SYSROOT}. Of course these -config files must be SYSROOT ware, i.e. they must respect the env var SYSROOT and add it e.g. to their prefix. $ ll sysroot-cross/bin/libpng* -rwxr-xr-x 1 frogger frogger 2.3K 2010-01-09 15:15 sysroot-cross/bin/libpng12-config* lrwxrwxrwx 1 frogger frogger 15 2010-01-09 15:15 sysroot-cross/bin/libpng-config -> libpng12-config* In case a package doesn't want files to be copied it can define the per package varibale: ${PKG}_BINCONFIG_GLOB := "" Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* [ptxd_make_world_init_compat] use <PKG>_MAKE_ENV when setMichael Olbrich2010-01-041-3/+5
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* [tags] new default for tag generation is "tags ctags"Marc Kleine-Budde2009-12-031-2/+2
| | | | Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* [ptxd_make_world] rename pkg_pkgdir -> pkg_pkg_dirMarc Kleine-Budde2009-11-091-1/+1
| | | | Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* [ptxd_make_world_install] move sysroot calculation into ptxd_make_world_commonMarc Kleine-Budde2009-11-091-0/+10
| | | | | | | ..and introduce the variable: "pkg_sysroot_dir" which points to the package's sysroot. Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* [ptxd_make_world_common.sh] fix pkg_build_dir checkMichael Olbrich2009-11-091-1/+1
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* [ptxd_make_world_common] re-add DESTDIR="" for host- and cross- packagesMarc Kleine-Budde2009-11-071-1/+2
| | | | | | This has been removed and several packages are breaking now. Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* [ptxd_make_world_tags] add generic "tags" targetMarc Kleine-Budde2009-11-061-0/+8
| | | | | | | | | | | | | | | | | | | | | | To generate tag for a certain pacakge, call ptxdist this way: $ ptxdist tags <package> PTXdist basically runs: $ make <PKG>_TAGS_OPT <PKG>_TAGS_OPT default to "tags", which is a good default for autotoolizised packages. Of course it can be overwritten on a per package base, e.g.: BUSYBOX_TAGS_OPT := tags TAGS scope Why: 1) non autotool based build system, that has cscope support. Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* [ptxd_make_world] new variable <PKG>_INSTALL_OPTMarc Kleine-Budde2009-11-061-1/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | The install stage consists basically of: make DESTDIR=<PKG>_PKGDIR <PKG>_INSTALL_OPT With default "install" for <PKG>_INSTALL_OPT. This can be overwritten or extended from a pacakge. There are (at least) two reasons for this: 1) "make install" installs too mouch, you don't want to install everything. example: MII_DIAG_INSTALL_OPT := install-mii-diag 2) The package doesn't understand DESTDIR. It uses INSTALL_ROOT instead. example: QT4_INSTALL_OPT := INSTALL_ROOT=$(QT4_PKGDIR) The variable <PKG>_PKGDIR comes predefined from PTXdist and can be used. Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* [ptxd_make_world] new variable <PKG>_MAKE_OPTMarc Kleine-Budde2009-11-061-4/+5
| | | | | | | | | | | In the compile stage no agrument is passed to <make>. Use the variable <PKG>_MAKE_OPT to pass additional arguments. example: MII_DIAG_MAKE_OPT := $(CROSS_ENV_CC) mii-diag Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* [ptxdist] fix "local -a" + IFS problemMarc Kleine-Budde2009-11-031-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | This patch fixes a problem with bash-3.0.x. This old bash versions doesn't respect IFS when splitting a variable: This costruct doesn't work: foo="bar:baz" local -a qux=( ${foo} ) echo "${foo[@]}" it prints: bar:baz bash > 3.0.x prints bar baz The correct sequence is to first declare qux as a local array and then assign it: local -a qux qux=( ${foo} ) Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* [ptxd_make_world_common] add share/pkconfig to host's PKG_CONFIG_LIBDIR, tooMarc Kleine-Budde2009-10-261-1/+1
| | | | Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* [ptxd_make_world] put pkg_config vars environemnt of every stageMarc Kleine-Budde2009-08-071-1/+6
| | | | Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>