Skip to contentSkip to conversation

icu: remove dev files

PATCH New Gustavo Zacarias 2 participants 2 messages Mar 9, 2016 – Mar 20, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 icu: remove dev files

Remove files that aren't used for runtime purposes.

Size savings delta +450 KB.

---
 package/icu/icu.mk | 7 +++++++
 1 file changed, 7 insertions(+)
package/icu/icu.mk +7 -0
index b4574e5..68ea1ff 100644
@@ -44,5 +44,12 @@ endef
 ICU_POST_PATCH_HOOKS += ICU_COPY_CUSTOM_DATA
 endif
 
+define ICU_REMOVE_DEV_FILES
+	rm -f $(addprefix $(TARGET_DIR)/usr/bin/,derb genbrk gencfu gencnval gendict genrb icuinfo makeconv uconv)
+	rm -f $(addprefix $(TARGET_DIR)/usr/sbin/,genccode gencmn gennorm2 gensprep icupkg)
+	rm -rf $(TARGET_DIR)/usr/share/icu
+endef
+ICU_POST_INSTALL_TARGET_HOOKS += ICU_REMOVE_DEV_FILES
+
 $(eval $(autotools-package))
 $(eval $(host-autotools-package))
Signature · 1 line
2.4.10
#1 lore raw

PATCH 1/1 icu: remove dev files

Hello,

Quoted 8 lines · Gustavo Zacarias

Remove files that aren't used for runtime purposes.

Size savings delta +450 KB.

---
 package/icu/icu.mk | 7 +++++++
 1 file changed, 7 insertions(+)

Applied to master, thanks.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com