From f8108bdd22c610096cbd546c47cedb2adf61e59d Mon Sep 17 00:00:00 2001 From: Chanho Park Date: Thu, 23 Jan 2014 13:31:11 +0900 Subject: [PATCH] packaging: support aarch64 build This patch supports aarch64 build for gcc48. I've only testing build using gbs. Change-Id: I29fb3d75f7edbc0af081aa7c0f07c22b9735a591 Signed-off-by: Chanho Park --- packaging/change_spec | 2 +- packaging/cross-armv7hl-gcc48-icecream-backend.spec | 3 +++ packaging/cross-armv7l-gcc48-icecream-backend.spec | 3 +++ packaging/cross-i386-gcc48-icecream-backend.spec | 3 +++ packaging/cross-x86_64-gcc48-icecream-backend.spec | 3 +++ packaging/gcc.spec.in | 3 +++ packaging/gcc48-testresults.spec | 3 +++ packaging/gcc48.spec | 3 +++ packaging/libffi48.spec | 3 +++ packaging/libgcj48.spec | 3 +++ 10 files changed, 28 insertions(+), 1 deletion(-) diff --git a/packaging/change_spec b/packaging/change_spec index 0e080ba..7606c7f 100644 --- a/packaging/change_spec +++ b/packaging/change_spec @@ -104,7 +104,7 @@ p # disabled: mips, sparc, alpha if test "$do_icecream" = 1 ; then - for arch in i386 x86_64 armv7hl armv7l; do + for arch in i386 x86_64 armv7hl armv7l aarch64; do exclarch=`echo $arch | sed -e 's/ppc$/ppc64/'` { sed -n -e '1,/COMMON-BEGIN/p' cross-icecream.spec.in sed -n -e '/COMMON-BEGIN/,/COMMON-END/p' $outfile diff --git a/packaging/cross-armv7hl-gcc48-icecream-backend.spec b/packaging/cross-armv7hl-gcc48-icecream-backend.spec index 42d9944..d3920cf 100644 --- a/packaging/cross-armv7hl-gcc48-icecream-backend.spec +++ b/packaging/cross-armv7hl-gcc48-icecream-backend.spec @@ -109,6 +109,9 @@ gcc-obj-c++. %if 0%{?gcc_icecream:1} && %{TARGET_ARCH} == "armv5tel" %define CONFIGURE_TARGET armv5tel-tizen-linux-gnueabi %endif +%if 0%{?gcc_icecream:1} && %{TARGET_ARCH} == "aarch64" +%define CONFIGURE_TARGET aarch64-tizen-linux-gnueabi +%endif %else %define TARGET_ARCH %(echo %{_target_cpu} | sed -e "s/i.86/i586/;s/ppc/powerpc/;s/sparc64.*/sparc64/;s/sparcv.*/sparc/;") %endif diff --git a/packaging/cross-armv7l-gcc48-icecream-backend.spec b/packaging/cross-armv7l-gcc48-icecream-backend.spec index ddcebde..0e0d143 100644 --- a/packaging/cross-armv7l-gcc48-icecream-backend.spec +++ b/packaging/cross-armv7l-gcc48-icecream-backend.spec @@ -109,6 +109,9 @@ gcc-obj-c++. %if 0%{?gcc_icecream:1} && %{TARGET_ARCH} == "armv5tel" %define CONFIGURE_TARGET armv5tel-tizen-linux-gnueabi %endif +%if 0%{?gcc_icecream:1} && %{TARGET_ARCH} == "aarch64" +%define CONFIGURE_TARGET aarch64-tizen-linux-gnueabi +%endif %else %define TARGET_ARCH %(echo %{_target_cpu} | sed -e "s/i.86/i586/;s/ppc/powerpc/;s/sparc64.*/sparc64/;s/sparcv.*/sparc/;") %endif diff --git a/packaging/cross-i386-gcc48-icecream-backend.spec b/packaging/cross-i386-gcc48-icecream-backend.spec index 4855f6a..81c5926 100644 --- a/packaging/cross-i386-gcc48-icecream-backend.spec +++ b/packaging/cross-i386-gcc48-icecream-backend.spec @@ -109,6 +109,9 @@ gcc-obj-c++. %if 0%{?gcc_icecream:1} && %{TARGET_ARCH} == "armv5tel" %define CONFIGURE_TARGET armv5tel-tizen-linux-gnueabi %endif +%if 0%{?gcc_icecream:1} && %{TARGET_ARCH} == "aarch64" +%define CONFIGURE_TARGET aarch64-tizen-linux-gnueabi +%endif %else %define TARGET_ARCH %(echo %{_target_cpu} | sed -e "s/i.86/i586/;s/ppc/powerpc/;s/sparc64.*/sparc64/;s/sparcv.*/sparc/;") %endif diff --git a/packaging/cross-x86_64-gcc48-icecream-backend.spec b/packaging/cross-x86_64-gcc48-icecream-backend.spec index e32daae..0c21104 100644 --- a/packaging/cross-x86_64-gcc48-icecream-backend.spec +++ b/packaging/cross-x86_64-gcc48-icecream-backend.spec @@ -109,6 +109,9 @@ gcc-obj-c++. %if 0%{?gcc_icecream:1} && %{TARGET_ARCH} == "armv5tel" %define CONFIGURE_TARGET armv5tel-tizen-linux-gnueabi %endif +%if 0%{?gcc_icecream:1} && %{TARGET_ARCH} == "aarch64" +%define CONFIGURE_TARGET aarch64-tizen-linux-gnueabi +%endif %else %define TARGET_ARCH %(echo %{_target_cpu} | sed -e "s/i.86/i586/;s/ppc/powerpc/;s/sparc64.*/sparc64/;s/sparcv.*/sparc/;") %endif diff --git a/packaging/gcc.spec.in b/packaging/gcc.spec.in index 7b2dfc9..4f0c3b3 100644 --- a/packaging/gcc.spec.in +++ b/packaging/gcc.spec.in @@ -739,6 +739,9 @@ Results from running the gcc and target library testsuites. %if 0%{?gcc_icecream:1} && %{TARGET_ARCH} == "armv5tel" %define CONFIGURE_TARGET armv5tel-tizen-linux-gnueabi %endif +%if 0%{?gcc_icecream:1} && %{TARGET_ARCH} == "aarch64" +%define CONFIGURE_TARGET aarch64-tizen-linux-gnueabi +%endif %else %define TARGET_ARCH %(echo %{_target_cpu} | sed -e "s/i.86/i586/;s/ppc/powerpc/;s/sparc64.*/sparc64/;s/sparcv.*/sparc/;") %endif diff --git a/packaging/gcc48-testresults.spec b/packaging/gcc48-testresults.spec index e33bda0..e21ad68 100644 --- a/packaging/gcc48-testresults.spec +++ b/packaging/gcc48-testresults.spec @@ -245,6 +245,9 @@ Results from running the gcc and target library testsuites. %if 0%{?gcc_icecream:1} && %{TARGET_ARCH} == "armv5tel" %define CONFIGURE_TARGET armv5tel-tizen-linux-gnueabi %endif +%if 0%{?gcc_icecream:1} && %{TARGET_ARCH} == "aarch64" +%define CONFIGURE_TARGET aarch64-tizen-linux-gnueabi +%endif %else %define TARGET_ARCH %(echo %{_target_cpu} | sed -e "s/i.86/i586/;s/ppc/powerpc/;s/sparc64.*/sparc64/;s/sparcv.*/sparc/;") %endif diff --git a/packaging/gcc48.spec b/packaging/gcc48.spec index bec81c4..1955088 100644 --- a/packaging/gcc48.spec +++ b/packaging/gcc48.spec @@ -1162,6 +1162,9 @@ Results from running the gcc and target library testsuites. %if 0%{?gcc_icecream:1} && %{TARGET_ARCH} == "armv5tel" %define CONFIGURE_TARGET armv5tel-tizen-linux-gnueabi %endif +%if 0%{?gcc_icecream:1} && %{TARGET_ARCH} == "aarch64" +%define CONFIGURE_TARGET aarch64-tizen-linux-gnueabi +%endif %else %define TARGET_ARCH %(echo %{_target_cpu} | sed -e "s/i.86/i586/;s/ppc/powerpc/;s/sparc64.*/sparc64/;s/sparcv.*/sparc/;") %endif diff --git a/packaging/libffi48.spec b/packaging/libffi48.spec index 602bb5e..fa292ec 100644 --- a/packaging/libffi48.spec +++ b/packaging/libffi48.spec @@ -315,6 +315,9 @@ Results from running the gcc and target library testsuites. %if 0%{?gcc_icecream:1} && %{TARGET_ARCH} == "armv5tel" %define CONFIGURE_TARGET armv5tel-tizen-linux-gnueabi %endif +%if 0%{?gcc_icecream:1} && %{TARGET_ARCH} == "aarch64" +%define CONFIGURE_TARGET aarch64-tizen-linux-gnueabi +%endif %else %define TARGET_ARCH %(echo %{_target_cpu} | sed -e "s/i.86/i586/;s/ppc/powerpc/;s/sparc64.*/sparc64/;s/sparcv.*/sparc/;") %endif diff --git a/packaging/libgcj48.spec b/packaging/libgcj48.spec index f25708a..ecf742f 100644 --- a/packaging/libgcj48.spec +++ b/packaging/libgcj48.spec @@ -385,6 +385,9 @@ Results from running the gcc and target library testsuites. %if 0%{?gcc_icecream:1} && %{TARGET_ARCH} == "armv5tel" %define CONFIGURE_TARGET armv5tel-tizen-linux-gnueabi %endif +%if 0%{?gcc_icecream:1} && %{TARGET_ARCH} == "aarch64" +%define CONFIGURE_TARGET aarch64-tizen-linux-gnueabi +%endif %else %define TARGET_ARCH %(echo %{_target_cpu} | sed -e "s/i.86/i586/;s/ppc/powerpc/;s/sparc64.*/sparc64/;s/sparcv.*/sparc/;") %endif -- 2.7.4