diff options
author | Marc Kleine-Budde <mkl@pengutronix.de> | 2009-11-04 16:42:41 +0100 |
---|---|---|
committer | Marc Kleine-Budde <mkl@pengutronix.de> | 2009-11-06 09:39:45 +0100 |
commit | 269ece6b2309e87cd11fe47f0f8021f0a337b05f (patch) | |
tree | 70773ae43fdd31f549a461ef34575b32262ff1ac /scripts/lib/ptxd_make_world_common.sh | |
parent | 090094f85317cd9de45e0ff611dbf3fb38daee85 (diff) | |
download | ptxdist-269ece6b2309e87cd11fe47f0f8021f0a337b05f.tar.gz ptxdist-269ece6b2309e87cd11fe47f0f8021f0a337b05f.tar.xz |
[ptxd_make_world] new variable <PKG>_INSTALL_OPT
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>
Diffstat (limited to 'scripts/lib/ptxd_make_world_common.sh')
-rw-r--r-- | scripts/lib/ptxd_make_world_common.sh | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/scripts/lib/ptxd_make_world_common.sh b/scripts/lib/ptxd_make_world_common.sh index e7422cfca..b163a692d 100644 --- a/scripts/lib/ptxd_make_world_common.sh +++ b/scripts/lib/ptxd_make_world_common.sh @@ -101,8 +101,27 @@ ptxd_make_world_init_compat() { pkg_make_opt="${pkg_deprecated_makevars}" fi + # install_opt - pkg_install_opt="${pkg_deprecated_makevars}${pkg_deprecated_makevars:+${pkg_deprecated_install_opt:+ }}${pkg_deprecated_install_opt}" + if [ -z "${pkg_install_opt}" ]; then + pkg_install_opt="install" + + # deprecared_makevars + pkg_install_opt="${pkg_install_opt}${pkg_deprecated_makevars:+ }${pkg_deprecated_makevars}" + + # deprecared_install_opt + pkg_install_opt="${pkg_install_opt}${pkg_deprecated_install_opt:+ }${pkg_deprecated_install_opt}" + else + if [ -n "${pkg_deprecated_makevars}" -o -n "${pkg_deprecated_install_opt}" ]; then + ptxd_bailout "${FUNCNAME}: <PKG>_MAKEVARS is incompatibel with <PKG>_INSTALL_OPT" + fi + fi + + # DESTDIR + case "${pkg_type}" in + target) pkg_install_opt="DESTDIR=\"${pkg_pkgdir}\" ${pkg_install_opt}" + esac + # pkg_env case "${pkg_type}" in |