mirror of
https://github.com/godotengine/buildroot.git
synced 2026-01-05 14:09:53 +03:00
perl: refactor with TARGET_FINALIZE_HOOKS
Signed-off-by: Francois Perrad <francois.perrad@gadz.org> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
committed by
Thomas Petazzoni
parent
edeee941c8
commit
4387568bbf
@@ -122,3 +122,15 @@ endef
|
||||
PERL_POST_INSTALL_STAGING_HOOKS += PERL_ADD_CORE_H
|
||||
|
||||
$(eval $(generic-package))
|
||||
|
||||
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
|
||||
find $(TARGET_DIR)/usr/lib/perl5/ -name 'extralibs.ld' -print0 | xargs -0 rm -f
|
||||
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
|
||||
find $(TARGET_DIR)/usr/lib/perl5/ -name 'autosplit.ix' -print0 | xargs -0 rm -f
|
||||
endef
|
||||
|
||||
TARGET_FINALIZE_HOOKS += PERL_FINALIZE_TARGET
|
||||
|
||||
|
||||
Reference in New Issue
Block a user