From d282001d128f5e427f09bfe2b5f90af2b35e86bc Mon Sep 17 00:00:00 2001 From: Tristan Van Berkom Date: Fri, 16 Oct 2015 13:07:23 +0900 Subject: Adding common ICU build A common ICU stratum to share across system builds. This morph adds a conditional statement which possibly should be improved - as per commit ID 8874a7c7, we sed the makefiles specifically for arm builds. Change-Id: I282f6d4f1f599e76a1c196269233e38ea2d57d4f --- strata/icu-common.morph | 10 ++++++++++ strata/icu-common/icu.morph | 20 ++++++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 strata/icu-common.morph create mode 100644 strata/icu-common/icu.morph diff --git a/strata/icu-common.morph b/strata/icu-common.morph new file mode 100644 index 00000000..51a44361 --- /dev/null +++ b/strata/icu-common.morph @@ -0,0 +1,10 @@ +name: icu-common +kind: stratum +build-depends: +- morph: strata/coreutils-common.morph +chunks: +- name: icu + morph: strata/icu-common/icu.morph + repo: upstream:icu + ref: ba023548a3bff7277cbea4acade3042ce9d8949e + unpetrify-ref: baserock/morph diff --git a/strata/icu-common/icu.morph b/strata/icu-common/icu.morph new file mode 100644 index 00000000..42a7bc58 --- /dev/null +++ b/strata/icu-common/icu.morph @@ -0,0 +1,20 @@ +name: icu +kind: chunk +configure-commands: +- | + # As per commit 8874a7c7, We issue this sed command when + # building ICU libraries on arm architectures. + cpu=$(echo $TARGET | cut -d '-' -f 1) + case "$cpu" in + *arm*) + sed -e 's/LDFLAGSICUDT/#LDFLAGSICUDT/' -i source/config/mh-linux + ;; + *) + ;; + esac + cd source + ./runConfigureICU Linux --prefix=/usr --sysconfdir=/etc +build-commands: +- cd source; unset TARGET ; make +install-commands: +- cd source; unset TARGET ; make DESTDIR="$DESTDIR" install -- cgit v1.2.1