diff options
| author | Yann E. MORIN <yann.morin.1998@free.fr> | 2016-06-22 21:07:37 +0200 |
|---|---|---|
| committer | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2016-07-05 15:53:05 +0200 |
| commit | 50adab522c0fbf1c99b904b8513200b114eb4a0b (patch) | |
| tree | 5ff32934efcc96e15eedc81ceabdf94488def225 /package/perl | |
| parent | 624dbec7e1f971519be9a165b09c0b95a8ee282b (diff) | |
| download | buildroot-50adab522c0fbf1c99b904b8513200b114eb4a0b.tar.gz buildroot-50adab522c0fbf1c99b904b8513200b114eb4a0b.zip | |
packages: use the <PKG>_TARGET_FINALIZE_HOOKS
Register package-specific target-finalize hooks with the
newly-introduced <PKG>_TARGET_FINALIZE_HOOKS.
This incidentally fixes luarocks, which was registering target-finalize
hooks even when it was not enabled.
To be noted, the skeleton package is not converted, because it is not
optional, we always have it; so its hooks would always be registered
anyway. Besides, the followup patches would render this conversion moot
anyway, since those hooks would be spread across the various skeleton
packages.
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Reviewed-by: Romain Naour <romain.naour@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/perl')
| -rw-r--r-- | package/perl/perl.mk | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/package/perl/perl.mk b/package/perl/perl.mk index 38f30ab60e..29b4455932 100644 --- a/package/perl/perl.mk +++ b/package/perl/perl.mk @@ -111,7 +111,6 @@ endef $(eval $(generic-package)) $(eval $(host-generic-package)) -ifeq ($(BR2_PACKAGE_PERL),y) define PERL_FINALIZE_TARGET rm -rf $(TARGET_DIR)/usr/lib/perl5/$(PERL_VERSION)/pod rm -rf $(TARGET_DIR)/usr/lib/perl5/$(PERL_VERSION)/$(PERL_ARCHNAME)/CORE @@ -119,5 +118,4 @@ define PERL_FINALIZE_TARGET find $(TARGET_DIR)/usr/lib/perl5/ -name '*.bs' -print0 | xargs -0 rm -f find $(TARGET_DIR)/usr/lib/perl5/ -name '.packlist' -print0 | xargs -0 rm -f endef -TARGET_FINALIZE_HOOKS += PERL_FINALIZE_TARGET -endif +PERL_TARGET_FINALIZE_HOOKS += PERL_FINALIZE_TARGET |

