diff options
author | Jon Ringle <jringle@gridpoint.com> | 2014-10-01 01:09:56 -0400 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2014-10-01 12:03:28 +0200 |
commit | 45c235d9d86b1b31bfe61e59c557235c2ffd415c (patch) | |
tree | a16937826384ff50e50a98eda8741aa20708cbd2 /rules | |
parent | 75478999c3f7087fd9186534fbc11553b52bf51f (diff) | |
download | ptxdist-45c235d9d86b1b31bfe61e59c557235c2ffd415c.tar.gz ptxdist-45c235d9d86b1b31bfe61e59c557235c2ffd415c.tar.xz |
install_dir: Allow one to specify an alternate root dir
This is useful if you install a package to /opt and libs are in /opt/lib:
$(call install_lib, foo, 0, 0, 0644, libfoo, /opt)
Signed-off-by: Jon Ringle <jringle@gridpoint.com>
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'rules')
-rw-r--r-- | rules/post/install.make | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/rules/post/install.make b/rules/post/install.make index d57e5dd47..2ff9f4083 100644 --- a/rules/post/install.make +++ b/rules/post/install.make @@ -231,6 +231,7 @@ install_package = \ # $3: GID # $4: permissions (octal) # $5: library name without suffix. +# $6: optional root dir # install_lib = \ XPKG=$(subst _,-,$(strip $(1))); \ @@ -238,8 +239,9 @@ install_lib = \ GRP="$(strip $(3))"; \ PER="$(strip $(4))"; \ LIB=$(strip $(5)); \ + DST=$(strip $(6)); \ $(call install_check, install_lib); \ - echo "ptxd_install_lib '$$LIB' '$$OWN' '$$GRP' '$$PER'" >> "$(STATEDIR)/$$XPKG.cmds" + echo "ptxd_install_lib '$$LIB' '$$DST' '$$OWN' '$$GRP' '$$PER'" >> "$(STATEDIR)/$$XPKG.cmds" # # install_replace |