diff options
author | Marc Kleine-Budde <mkl@pengutronix.de> | 2010-01-09 14:37:08 +0100 |
---|---|---|
committer | Marc Kleine-Budde <mkl@pengutronix.de> | 2010-01-10 02:16:55 +0100 |
commit | 61211865e20efac9042ad89a9a5c28e4bc0d3100 (patch) | |
tree | ea81c64ea40cdb3e3b8795d018379fb2bb8a8835 /rules/php5.make | |
parent | 7c9defe70b8e5c25c6c70057c7be47d9f29a2310 (diff) | |
download | ptxdist-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 'rules/php5.make')
0 files changed, 0 insertions, 0 deletions