From f63ecf6e84097c4dc5c8a95764c554a66dcde709 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Fri, 3 Apr 2020 19:13:18 -0700 Subject: [PATCH] icu: Prune icudata to just include en_US locale data Reduces image size for libicudata from 27M to 12M Signed-off-by: Khem Raj --- recipes-support/icu/icu/filter.json | 30 +++++++++++++++++++++++++++++ recipes-support/icu/icu_%.bbappend | 2 ++ 2 files changed, 32 insertions(+) create mode 100644 recipes-support/icu/icu/filter.json create mode 100644 recipes-support/icu/icu_%.bbappend diff --git a/recipes-support/icu/icu/filter.json b/recipes-support/icu/icu/filter.json new file mode 100644 index 000000000..e2b56f28d --- /dev/null +++ b/recipes-support/icu/icu/filter.json @@ -0,0 +1,30 @@ +{ + "strategy": "additive", + "featureFilters": { + "brkitr_rules": "include", + "brkitr_dictionaries": "include", + "brkitr_tree": "include", + "coll_tree": "include", + "misc": "include", + "curr_tree": "include", + "lang_tree": "include", + "region_tree": "include", + "rbnf_tree": "include", + "zone_tree": "include", + "unit_tree": "include", + "cnvalias": "include", + "locales_tree": "include", + "unames": "include", + "ulayout": "include" + }, + "localeFilter": { + "filterType": "locale", + "includeChildren": false, + "whitelist": [ + "en_US", + "en_US_POSIX", + "en_001", + "en_150" + ] + } +} diff --git a/recipes-support/icu/icu_%.bbappend b/recipes-support/icu/icu_%.bbappend new file mode 100644 index 000000000..000578744 --- /dev/null +++ b/recipes-support/icu/icu_%.bbappend @@ -0,0 +1,2 @@ +FILESEXTRAPATHS_prepend := "${THISDIR}/${BPN}:" +