summaryrefslogtreecommitdiffstats
path: root/scripts/lib/ptxd_make_world_common.sh
diff options
context:
space:
mode:
authorMarc Kleine-Budde <mkl@pengutronix.de>2010-01-09 14:37:08 +0100
committerMarc Kleine-Budde <mkl@pengutronix.de>2010-01-10 02:16:55 +0100
commit61211865e20efac9042ad89a9a5c28e4bc0d3100 (patch)
treeea81c64ea40cdb3e3b8795d018379fb2bb8a8835 /scripts/lib/ptxd_make_world_common.sh
parent7c9defe70b8e5c25c6c70057c7be47d9f29a2310 (diff)
downloadptxdist-61211865e20efac9042ad89a9a5c28e4bc0d3100.tar.gz
ptxdist-61211865e20efac9042ad89a9a5c28e4bc0d3100.tar.xz
[ptxd_make_world_common] introduce new variable ${PKG}_BINCONFIG_GLOB
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>
Diffstat (limited to 'scripts/lib/ptxd_make_world_common.sh')
-rw-r--r--scripts/lib/ptxd_make_world_common.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/lib/ptxd_make_world_common.sh b/scripts/lib/ptxd_make_world_common.sh
index a78307ed6..ea94ddd93 100644
--- a/scripts/lib/ptxd_make_world_common.sh
+++ b/scripts/lib/ptxd_make_world_common.sh
@@ -125,6 +125,13 @@ ptxd_make_world_init_compat() {
*) pkg_install_opt="DESTDIR=\"\" ${pkg_install_opt}" ;;
esac
+ #
+ # pkg_binconfig_glob
+ #
+ # default: "*-config"
+ #
+ pkg_binconfig_glob="${pkg_binconfig_glob:-*-config}"
+
#
# pkg_tags_opt