diff options
author | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2013-02-07 12:35:04 +0000 |
---|---|---|
committer | Peter Korsgaard <jacmet@sunsite.dk> | 2013-02-08 22:32:53 +0100 |
commit | 580225af20b6c692da76eb43b20382a47b3ed170 (patch) | |
tree | 546728e33e022b878b6cf05f3af2879956002a0f /package | |
parent | 4705347ddfeaab3953cd86df2c7309b31b719f50 (diff) | |
download | buildroot-novena-580225af20b6c692da76eb43b20382a47b3ed170.tar.gz buildroot-novena-580225af20b6c692da76eb43b20382a47b3ed170.zip |
package: remove scripts listed in <pkg>_CONFIG_SCRIPTS from target
The <foo>-config scripts are useless on the target, since they are
only needed for development, so we remove them automatically.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Acked-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Acked-by: "Samuel Martin" <s.martin49@gmail.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package')
-rw-r--r-- | package/pkg-generic.mk | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/package/pkg-generic.mk b/package/pkg-generic.mk index 066b6c863..57b0fd08c 100644 --- a/package/pkg-generic.mk +++ b/package/pkg-generic.mk @@ -153,6 +153,11 @@ $(BUILD_DIR)/%/.stamp_target_installed: $($(PKG)_INSTALL_INIT_SYSV)) $($(PKG)_INSTALL_TARGET_CMDS) $(foreach hook,$($(PKG)_POST_INSTALL_TARGET_HOOKS),$(call $(hook))$(sep)) +ifeq ($(BR2_HAVE_DEVFILES),) + $(Q)if test -n "$($(PKG)_CONFIG_SCRIPTS)" ; then \ + $(RM) -f $(addprefix $(TARGET_DIR)/usr/bin/,$($(PKG)_CONFIG_SCRIPTS)) ; \ + fi +endif $(Q)touch $@ # Clean package |