summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorslpsystem.m <slpsystem.m@samsung.com>2012-09-07 17:48:34 +0900
committerslpsystem.m <slpsystem.m@samsung.com>2012-09-07 17:48:34 +0900
commit4ee924ac918007faa1457f75fa4ea73bc15778b7 (patch)
tree80c8cc2a130011af6dc275b38e57bc3908475f94
parent397e51ecebd41e147ca93c3e0abf2df05983fe90 (diff)
downloadgcc-master.tar.gz
gcc-master.tar.bz2
gcc-master.zip
modify compile option of the libgomp, modify baselibs, modify arch option for the cross toolsHEAD2.0_alphamaster2.0alpha
-rw-r--r--packaging/baselibs.conf130
-rw-r--r--packaging/cross-armv5tel-gcc-accel.spec33
-rw-r--r--packaging/cross-armv5tel-gcc.spec33
-rw-r--r--packaging/cross-armv6l-gcc-accel.spec33
-rw-r--r--packaging/cross-armv6l-gcc.spec33
-rw-r--r--packaging/cross-armv7hl-gcc-accel.spec33
-rw-r--r--packaging/cross-armv7hl-gcc.spec33
-rw-r--r--packaging/cross-armv7l-gcc-accel.spec33
-rw-r--r--packaging/cross-armv7l-gcc.spec33
-rw-r--r--packaging/cross-armv7nhl-gcc-accel.spec33
-rw-r--r--packaging/cross-armv7nhl-gcc.spec33
-rw-r--r--packaging/gcc.spec33
-rw-r--r--packaging/incorrect-immediate-for-movt.diff19
-rw-r--r--packaging/libgomp-ftls-global-dynamic.diff13
-rw-r--r--packaging/precheckin.sh26
15 files changed, 259 insertions, 292 deletions
diff --git a/packaging/baselibs.conf b/packaging/baselibs.conf
index 17be96595..6ce1dec80 100644
--- a/packaging/baselibs.conf
+++ b/packaging/baselibs.conf
@@ -18,7 +18,6 @@ cross-armv5tel-gcc-accel
targettype armv5tel requires "gcc"
targettype armv5tel requires "gcc-c++"
-
targettype armv5tel prefix /emul/ia32-linux
targettype armv5tel extension -arm
targettype armv5tel +/
@@ -34,26 +33,26 @@ cross-armv5tel-gcc-accel
targettype armv5tel post " echo \"GCCVER: $GCCVER GCCVER_NEW: $GCCVER_NEW \" "
targettype armv5tel post " if test "${GCCVER}" == "${GCCVER_NEW}"; then"
targettype armv5tel post " echo "GCC and GCC-accel versions match. Enabling cross-compiler." "
- targettype armv5tel post " for bin in gcc g++ ; do "
+ targettype armv5tel post " for bin in c++ c89 c99 cpp g++ gcc gcov ; do "
targettype armv5tel post " binary="/usr/bin/${bin}" "
- targettype armv5tel post " if test -e ${binary} -a ! -e ${binary}.orig-arm ; then"
- targettype armv5tel post " mv ${binary} ${binary}.orig-arm && cp <prefix>${binary} ${binary}"
- targettype armv5tel post " else "
+ targettype armv5tel post " if test -L ${binary} -a -e ${binary}.orig-arm ; then"
targettype armv5tel post " echo "${binary} not installed or ${binary}.orig-arm already present !" "
+ targettype armv5tel post " else "
+ targettype armv5tel post " mv ${binary} ${binary}.orig-arm && cp <prefix>${binary} ${binary}"
targettype armv5tel post " fi "
targettype armv5tel post " done "
- targettype armv5tel post " for bin in cc1 cc1plus ; do "
+ targettype armv5tel post " for bin in cc1 cc1plus collect2 lto-wrapper lto1 ; do "
targettype armv5tel post " binary="/usr/libexec/gcc/armv5tel-tizen-linux-gnueabi/$GCCVER/$bin" "
- targettype armv5tel post " if test -e ${binary} -a ! -e ${binary}.orig-arm ; then"
- targettype armv5tel post " mv ${binary} ${binary}.orig-arm && cp <prefix>/usr/libexec/gcc/armv5tel-tizen-linux-gnueabi/$GCCVER_NEW/${bin} ${binary}"
- targettype armv5tel post " else "
+ targettype armv5tel post " if test -L ${binary} -a -e ${binary}.orig-arm ; then"
targettype armv5tel post " echo "${binary} not installed or ${binary}.orig-arm already present !" "
+ targettype armv5tel post " else "
+ targettype armv5tel post " mv ${binary} ${binary}.orig-arm && cp <prefix>/usr/libexec/gcc/armv5tel-tizen-linux-gnueabi/$GCCVER_NEW/${bin} ${binary}"
targettype armv5tel post " fi "
targettype armv5tel post " done "
targettype armv5tel post " else"
targettype armv5tel post " echo "GCC and GCC-accel versions don't match. Rollback also binutils..." "
- targettype armv5tel post " for bin in addr2line ar as c++filt gprov ld nm objcopy objdump ranlib readelf size strings strip ; do"
+ targettype armv5tel post " for bin in addr2line ar as c++filt gprov ld ld.bfd nm objcopy objdump ranlib readelf size strings strip ; do"
targettype armv5tel post " binary="/usr/bin/${bin}" "
targettype armv5tel post " if test -e ${binary}.orig-arm ; then"
targettype armv5tel post " rm ${binary} && mv ${binary}.orig-arm ${binary}"
@@ -61,11 +60,14 @@ cross-armv5tel-gcc-accel
targettype armv5tel post " echo "${binary}.orig-arm not present !" "
targettype armv5tel post " fi "
targettype armv5tel post " done "
+ targettype armv5tel post " rm -f /usr/libexec/gcc/armv5tel-tizen-linux-gnueabi/4.5.3/ld"
+ targettype armv5tel post " rm -f /usr/libexec/gcc/armv5tel-tizen-linux-gnueabi/4.5.3/ld.bfd"
+
targettype armv5tel post " fi"
targettype armv5tel preun " export GCCVER=$(LANG=C gcc --version | head -1 | cut -d" " -f3) "
- targettype armv5tel preun " for i in gcc g++ ; do if test -e /usr/bin/${i}.orig-arm ; then rm /usr/bin/${i} ; mv /usr/bin/${i}.orig-arm /usr/bin/${i}; fi ; done "
- targettype armv5tel preun " for i in cc1 cc1plus ; do cd /usr/libexec/gcc/armv5tel-tizen-linux-gnueabi/$GCCVER ; if test -e ${i}.orig-arm ; then rm ${i} ; mv ${i}.orig-arm ${i} ; fi ; done "
+ targettype armv5tel preun " for i in c++ c89 c99 cpp g++ gcc gcov ; do if test -e /usr/bin/${i}.orig-arm ; then rm /usr/bin/${i} ; mv /usr/bin/${i}.orig-arm /usr/bin/${i}; fi ; done "
+ targettype armv5tel preun " for i in cc1 cc1plus collect2 lto-wrapper lto1 ; do cd /usr/libexec/gcc/armv5tel-tizen-linux-gnueabi/$GCCVER ; if test -e ${i}.orig-arm ; then rm ${i} ; mv ${i}.orig-arm ${i} ; fi ; done "
@@ -87,7 +89,6 @@ cross-armv6l-gcc-accel
targettype armv6l requires "gcc"
targettype armv6l requires "gcc-c++"
-
targettype armv6l prefix /emul/ia32-linux
targettype armv6l extension -arm
targettype armv6l +/
@@ -103,26 +104,26 @@ cross-armv6l-gcc-accel
targettype armv6l post " echo \"GCCVER: $GCCVER GCCVER_NEW: $GCCVER_NEW \" "
targettype armv6l post " if test "${GCCVER}" == "${GCCVER_NEW}"; then"
targettype armv6l post " echo "GCC and GCC-accel versions match. Enabling cross-compiler." "
- targettype armv6l post " for bin in gcc g++ ; do "
+ targettype armv6l post " for bin in c++ c89 c99 cpp g++ gcc gcov ; do "
targettype armv6l post " binary="/usr/bin/${bin}" "
- targettype armv6l post " if test -e ${binary} -a ! -e ${binary}.orig-arm ; then"
- targettype armv6l post " mv ${binary} ${binary}.orig-arm && cp <prefix>${binary} ${binary}"
- targettype armv6l post " else "
+ targettype armv6l post " if test -L ${binary} -a -e ${binary}.orig-arm ; then"
targettype armv6l post " echo "${binary} not installed or ${binary}.orig-arm already present !" "
+ targettype armv6l post " else "
+ targettype armv6l post " mv ${binary} ${binary}.orig-arm && cp <prefix>${binary} ${binary}"
targettype armv6l post " fi "
targettype armv6l post " done "
- targettype armv6l post " for bin in cc1 cc1plus ; do "
+ targettype armv6l post " for bin in cc1 cc1plus collect2 lto-wrapper lto1 ; do "
targettype armv6l post " binary="/usr/libexec/gcc/armv6l-tizen-linux-gnueabi/$GCCVER/$bin" "
- targettype armv6l post " if test -e ${binary} -a ! -e ${binary}.orig-arm ; then"
- targettype armv6l post " mv ${binary} ${binary}.orig-arm && cp <prefix>/usr/libexec/gcc/armv6l-tizen-linux-gnueabi/$GCCVER_NEW/${bin} ${binary}"
- targettype armv6l post " else "
+ targettype armv6l post " if test -L ${binary} -a -e ${binary}.orig-arm ; then"
targettype armv6l post " echo "${binary} not installed or ${binary}.orig-arm already present !" "
+ targettype armv6l post " else "
+ targettype armv6l post " mv ${binary} ${binary}.orig-arm && cp <prefix>/usr/libexec/gcc/armv6l-tizen-linux-gnueabi/$GCCVER_NEW/${bin} ${binary}"
targettype armv6l post " fi "
targettype armv6l post " done "
targettype armv6l post " else"
targettype armv6l post " echo "GCC and GCC-accel versions don't match. Rollback also binutils..." "
- targettype armv6l post " for bin in addr2line ar as c++filt gprov ld nm objcopy objdump ranlib readelf size strings strip ; do"
+ targettype armv6l post " for bin in addr2line ar as c++filt gprov ld ld.bfd nm objcopy objdump ranlib readelf size strings strip ; do"
targettype armv6l post " binary="/usr/bin/${bin}" "
targettype armv6l post " if test -e ${binary}.orig-arm ; then"
targettype armv6l post " rm ${binary} && mv ${binary}.orig-arm ${binary}"
@@ -130,11 +131,14 @@ cross-armv6l-gcc-accel
targettype armv6l post " echo "${binary}.orig-arm not present !" "
targettype armv6l post " fi "
targettype armv6l post " done "
+ targettype armv6l post " rm -f /usr/libexec/gcc/armv6l-tizen-linux-gnueabi/4.5.3/ld"
+ targettype armv6l post " rm -f /usr/libexec/gcc/armv6l-tizen-linux-gnueabi/4.5.3/ld.bfd"
+
targettype armv6l post " fi"
targettype armv6l preun " export GCCVER=$(LANG=C gcc --version | head -1 | cut -d" " -f3) "
- targettype armv6l preun " for i in gcc g++ ; do if test -e /usr/bin/${i}.orig-arm ; then rm /usr/bin/${i} ; mv /usr/bin/${i}.orig-arm /usr/bin/${i}; fi ; done "
- targettype armv6l preun " for i in cc1 cc1plus ; do cd /usr/libexec/gcc/armv6l-tizen-linux-gnueabi/$GCCVER ; if test -e ${i}.orig-arm ; then rm ${i} ; mv ${i}.orig-arm ${i} ; fi ; done "
+ targettype armv6l preun " for i in c++ c89 c99 cpp g++ gcc gcov ; do if test -e /usr/bin/${i}.orig-arm ; then rm /usr/bin/${i} ; mv /usr/bin/${i}.orig-arm /usr/bin/${i}; fi ; done "
+ targettype armv6l preun " for i in cc1 cc1plus collect2 lto-wrapper lto1 ; do cd /usr/libexec/gcc/armv6l-tizen-linux-gnueabi/$GCCVER ; if test -e ${i}.orig-arm ; then rm ${i} ; mv ${i}.orig-arm ${i} ; fi ; done "
@@ -156,7 +160,6 @@ cross-armv7l-gcc-accel
targettype armv7l requires "gcc"
targettype armv7l requires "gcc-c++"
-
targettype armv7l prefix /emul/ia32-linux
targettype armv7l extension -arm
targettype armv7l +/
@@ -172,26 +175,26 @@ cross-armv7l-gcc-accel
targettype armv7l post " echo \"GCCVER: $GCCVER GCCVER_NEW: $GCCVER_NEW \" "
targettype armv7l post " if test "${GCCVER}" == "${GCCVER_NEW}"; then"
targettype armv7l post " echo "GCC and GCC-accel versions match. Enabling cross-compiler." "
- targettype armv7l post " for bin in gcc g++ ; do "
+ targettype armv7l post " for bin in c++ c89 c99 cpp g++ gcc gcov ; do "
targettype armv7l post " binary="/usr/bin/${bin}" "
- targettype armv7l post " if test -e ${binary} -a ! -e ${binary}.orig-arm ; then"
- targettype armv7l post " mv ${binary} ${binary}.orig-arm && cp <prefix>${binary} ${binary}"
- targettype armv7l post " else "
+ targettype armv7l post " if test -L ${binary} -a -e ${binary}.orig-arm ; then"
targettype armv7l post " echo "${binary} not installed or ${binary}.orig-arm already present !" "
+ targettype armv7l post " else "
+ targettype armv7l post " mv ${binary} ${binary}.orig-arm && cp <prefix>${binary} ${binary}"
targettype armv7l post " fi "
targettype armv7l post " done "
- targettype armv7l post " for bin in cc1 cc1plus ; do "
+ targettype armv7l post " for bin in cc1 cc1plus collect2 lto-wrapper lto1 ; do "
targettype armv7l post " binary="/usr/libexec/gcc/armv7l-tizen-linux-gnueabi/$GCCVER/$bin" "
- targettype armv7l post " if test -e ${binary} -a ! -e ${binary}.orig-arm ; then"
- targettype armv7l post " mv ${binary} ${binary}.orig-arm && cp <prefix>/usr/libexec/gcc/armv7l-tizen-linux-gnueabi/$GCCVER_NEW/${bin} ${binary}"
- targettype armv7l post " else "
+ targettype armv7l post " if test -L ${binary} -a -e ${binary}.orig-arm ; then"
targettype armv7l post " echo "${binary} not installed or ${binary}.orig-arm already present !" "
+ targettype armv7l post " else "
+ targettype armv7l post " mv ${binary} ${binary}.orig-arm && cp <prefix>/usr/libexec/gcc/armv7l-tizen-linux-gnueabi/$GCCVER_NEW/${bin} ${binary}"
targettype armv7l post " fi "
targettype armv7l post " done "
targettype armv7l post " else"
targettype armv7l post " echo "GCC and GCC-accel versions don't match. Rollback also binutils..." "
- targettype armv7l post " for bin in addr2line ar as c++filt gprov ld nm objcopy objdump ranlib readelf size strings strip ; do"
+ targettype armv7l post " for bin in addr2line ar as c++filt gprov ld ld.bfd nm objcopy objdump ranlib readelf size strings strip ; do"
targettype armv7l post " binary="/usr/bin/${bin}" "
targettype armv7l post " if test -e ${binary}.orig-arm ; then"
targettype armv7l post " rm ${binary} && mv ${binary}.orig-arm ${binary}"
@@ -199,11 +202,14 @@ cross-armv7l-gcc-accel
targettype armv7l post " echo "${binary}.orig-arm not present !" "
targettype armv7l post " fi "
targettype armv7l post " done "
+ targettype armv7l post " rm -f /usr/libexec/gcc/armv7l-tizen-linux-gnueabi/4.5.3/ld"
+ targettype armv7l post " rm -f /usr/libexec/gcc/armv7l-tizen-linux-gnueabi/4.5.3/ld.bfd"
+
targettype armv7l post " fi"
targettype armv7l preun " export GCCVER=$(LANG=C gcc --version | head -1 | cut -d" " -f3) "
- targettype armv7l preun " for i in gcc g++ ; do if test -e /usr/bin/${i}.orig-arm ; then rm /usr/bin/${i} ; mv /usr/bin/${i}.orig-arm /usr/bin/${i}; fi ; done "
- targettype armv7l preun " for i in cc1 cc1plus ; do cd /usr/libexec/gcc/armv7l-tizen-linux-gnueabi/$GCCVER ; if test -e ${i}.orig-arm ; then rm ${i} ; mv ${i}.orig-arm ${i} ; fi ; done "
+ targettype armv7l preun " for i in c++ c89 c99 cpp g++ gcc gcov ; do if test -e /usr/bin/${i}.orig-arm ; then rm /usr/bin/${i} ; mv /usr/bin/${i}.orig-arm /usr/bin/${i}; fi ; done "
+ targettype armv7l preun " for i in cc1 cc1plus collect2 lto-wrapper lto1 ; do cd /usr/libexec/gcc/armv7l-tizen-linux-gnueabi/$GCCVER ; if test -e ${i}.orig-arm ; then rm ${i} ; mv ${i}.orig-arm ${i} ; fi ; done "
@@ -225,7 +231,6 @@ cross-armv7hl-gcc-accel
targettype armv7hl requires "gcc"
targettype armv7hl requires "gcc-c++"
-
targettype armv7hl prefix /emul/ia32-linux
targettype armv7hl extension -arm
targettype armv7hl +/
@@ -241,26 +246,26 @@ cross-armv7hl-gcc-accel
targettype armv7hl post " echo \"GCCVER: $GCCVER GCCVER_NEW: $GCCVER_NEW \" "
targettype armv7hl post " if test "${GCCVER}" == "${GCCVER_NEW}"; then"
targettype armv7hl post " echo "GCC and GCC-accel versions match. Enabling cross-compiler." "
- targettype armv7hl post " for bin in gcc g++ ; do "
+ targettype armv7hl post " for bin in c++ c89 c99 cpp g++ gcc gcov ; do "
targettype armv7hl post " binary="/usr/bin/${bin}" "
- targettype armv7hl post " if test -e ${binary} -a ! -e ${binary}.orig-arm ; then"
- targettype armv7hl post " mv ${binary} ${binary}.orig-arm && cp <prefix>${binary} ${binary}"
- targettype armv7hl post " else "
+ targettype armv7hl post " if test -L ${binary} -a -e ${binary}.orig-arm ; then"
targettype armv7hl post " echo "${binary} not installed or ${binary}.orig-arm already present !" "
+ targettype armv7hl post " else "
+ targettype armv7hl post " mv ${binary} ${binary}.orig-arm && cp <prefix>${binary} ${binary}"
targettype armv7hl post " fi "
targettype armv7hl post " done "
- targettype armv7hl post " for bin in cc1 cc1plus ; do "
+ targettype armv7hl post " for bin in cc1 cc1plus collect2 lto-wrapper lto1 ; do "
targettype armv7hl post " binary="/usr/libexec/gcc/armv7hl-tizen-linux-gnueabi/$GCCVER/$bin" "
- targettype armv7hl post " if test -e ${binary} -a ! -e ${binary}.orig-arm ; then"
- targettype armv7hl post " mv ${binary} ${binary}.orig-arm && cp <prefix>/usr/libexec/gcc/armv7hl-tizen-linux-gnueabi/$GCCVER_NEW/${bin} ${binary}"
- targettype armv7hl post " else "
+ targettype armv7hl post " if test -L ${binary} -a -e ${binary}.orig-arm ; then"
targettype armv7hl post " echo "${binary} not installed or ${binary}.orig-arm already present !" "
+ targettype armv7hl post " else "
+ targettype armv7hl post " mv ${binary} ${binary}.orig-arm && cp <prefix>/usr/libexec/gcc/armv7hl-tizen-linux-gnueabi/$GCCVER_NEW/${bin} ${binary}"
targettype armv7hl post " fi "
targettype armv7hl post " done "
targettype armv7hl post " else"
targettype armv7hl post " echo "GCC and GCC-accel versions don't match. Rollback also binutils..." "
- targettype armv7hl post " for bin in addr2line ar as c++filt gprov ld nm objcopy objdump ranlib readelf size strings strip ; do"
+ targettype armv7hl post " for bin in addr2line ar as c++filt gprov ld ld.bfd nm objcopy objdump ranlib readelf size strings strip ; do"
targettype armv7hl post " binary="/usr/bin/${bin}" "
targettype armv7hl post " if test -e ${binary}.orig-arm ; then"
targettype armv7hl post " rm ${binary} && mv ${binary}.orig-arm ${binary}"
@@ -268,11 +273,14 @@ cross-armv7hl-gcc-accel
targettype armv7hl post " echo "${binary}.orig-arm not present !" "
targettype armv7hl post " fi "
targettype armv7hl post " done "
+ targettype armv7hl post " rm -f /usr/libexec/gcc/armv7hl-tizen-linux-gnueabi/4.5.3/ld"
+ targettype armv7hl post " rm -f /usr/libexec/gcc/armv7hl-tizen-linux-gnueabi/4.5.3/ld.bfd"
+
targettype armv7hl post " fi"
targettype armv7hl preun " export GCCVER=$(LANG=C gcc --version | head -1 | cut -d" " -f3) "
- targettype armv7hl preun " for i in gcc g++ ; do if test -e /usr/bin/${i}.orig-arm ; then rm /usr/bin/${i} ; mv /usr/bin/${i}.orig-arm /usr/bin/${i}; fi ; done "
- targettype armv7hl preun " for i in cc1 cc1plus ; do cd /usr/libexec/gcc/armv7hl-tizen-linux-gnueabi/$GCCVER ; if test -e ${i}.orig-arm ; then rm ${i} ; mv ${i}.orig-arm ${i} ; fi ; done "
+ targettype armv7hl preun " for i in c++ c89 c99 cpp g++ gcc gcov ; do if test -e /usr/bin/${i}.orig-arm ; then rm /usr/bin/${i} ; mv /usr/bin/${i}.orig-arm /usr/bin/${i}; fi ; done "
+ targettype armv7hl preun " for i in cc1 cc1plus collect2 lto-wrapper lto1 ; do cd /usr/libexec/gcc/armv7hl-tizen-linux-gnueabi/$GCCVER ; if test -e ${i}.orig-arm ; then rm ${i} ; mv ${i}.orig-arm ${i} ; fi ; done "
@@ -294,7 +302,6 @@ cross-armv7nhl-gcc-accel
targettype armv7nhl requires "gcc"
targettype armv7nhl requires "gcc-c++"
-
targettype armv7nhl prefix /emul/ia32-linux
targettype armv7nhl extension -arm
targettype armv7nhl +/
@@ -310,26 +317,26 @@ cross-armv7nhl-gcc-accel
targettype armv7nhl post " echo \"GCCVER: $GCCVER GCCVER_NEW: $GCCVER_NEW \" "
targettype armv7nhl post " if test "${GCCVER}" == "${GCCVER_NEW}"; then"
targettype armv7nhl post " echo "GCC and GCC-accel versions match. Enabling cross-compiler." "
- targettype armv7nhl post " for bin in gcc g++ ; do "
+ targettype armv7nhl post " for bin in c++ c89 c99 cpp g++ gcc gcov ; do "
targettype armv7nhl post " binary="/usr/bin/${bin}" "
- targettype armv7nhl post " if test -e ${binary} -a ! -e ${binary}.orig-arm ; then"
- targettype armv7nhl post " mv ${binary} ${binary}.orig-arm && cp <prefix>${binary} ${binary}"
- targettype armv7nhl post " else "
+ targettype armv7nhl post " if test -L ${binary} -a -e ${binary}.orig-arm ; then"
targettype armv7nhl post " echo "${binary} not installed or ${binary}.orig-arm already present !" "
+ targettype armv7nhl post " else "
+ targettype armv7nhl post " mv ${binary} ${binary}.orig-arm && cp <prefix>${binary} ${binary}"
targettype armv7nhl post " fi "
targettype armv7nhl post " done "
- targettype armv7nhl post " for bin in cc1 cc1plus ; do "
+ targettype armv7nhl post " for bin in cc1 cc1plus collect2 lto-wrapper lto1 ; do "
targettype armv7nhl post " binary="/usr/libexec/gcc/armv7nhl-tizen-linux-gnueabi/$GCCVER/$bin" "
- targettype armv7nhl post " if test -e ${binary} -a ! -e ${binary}.orig-arm ; then"
- targettype armv7nhl post " mv ${binary} ${binary}.orig-arm && cp <prefix>/usr/libexec/gcc/armv7nhl-tizen-linux-gnueabi/$GCCVER_NEW/${bin} ${binary}"
- targettype armv7nhl post " else "
+ targettype armv7nhl post " if test -L ${binary} -a -e ${binary}.orig-arm ; then"
targettype armv7nhl post " echo "${binary} not installed or ${binary}.orig-arm already present !" "
+ targettype armv7nhl post " else "
+ targettype armv7nhl post " mv ${binary} ${binary}.orig-arm && cp <prefix>/usr/libexec/gcc/armv7nhl-tizen-linux-gnueabi/$GCCVER_NEW/${bin} ${binary}"
targettype armv7nhl post " fi "
targettype armv7nhl post " done "
targettype armv7nhl post " else"
targettype armv7nhl post " echo "GCC and GCC-accel versions don't match. Rollback also binutils..." "
- targettype armv7nhl post " for bin in addr2line ar as c++filt gprov ld nm objcopy objdump ranlib readelf size strings strip ; do"
+ targettype armv7nhl post " for bin in addr2line ar as c++filt gprov ld ld.bfd nm objcopy objdump ranlib readelf size strings strip ; do"
targettype armv7nhl post " binary="/usr/bin/${bin}" "
targettype armv7nhl post " if test -e ${binary}.orig-arm ; then"
targettype armv7nhl post " rm ${binary} && mv ${binary}.orig-arm ${binary}"
@@ -337,10 +344,13 @@ cross-armv7nhl-gcc-accel
targettype armv7nhl post " echo "${binary}.orig-arm not present !" "
targettype armv7nhl post " fi "
targettype armv7nhl post " done "
+ targettype armv7nhl post " rm -f /usr/libexec/gcc/armv7nhl-tizen-linux-gnueabi/4.5.3/ld"
+ targettype armv7nhl post " rm -f /usr/libexec/gcc/armv7nhl-tizen-linux-gnueabi/4.5.3/ld.bfd"
+
targettype armv7nhl post " fi"
targettype armv7nhl preun " export GCCVER=$(LANG=C gcc --version | head -1 | cut -d" " -f3) "
- targettype armv7nhl preun " for i in gcc g++ ; do if test -e /usr/bin/${i}.orig-arm ; then rm /usr/bin/${i} ; mv /usr/bin/${i}.orig-arm /usr/bin/${i}; fi ; done "
- targettype armv7nhl preun " for i in cc1 cc1plus ; do cd /usr/libexec/gcc/armv7nhl-tizen-linux-gnueabi/$GCCVER ; if test -e ${i}.orig-arm ; then rm ${i} ; mv ${i}.orig-arm ${i} ; fi ; done "
+ targettype armv7nhl preun " for i in c++ c89 c99 cpp g++ gcc gcov ; do if test -e /usr/bin/${i}.orig-arm ; then rm /usr/bin/${i} ; mv /usr/bin/${i}.orig-arm /usr/bin/${i}; fi ; done "
+ targettype armv7nhl preun " for i in cc1 cc1plus collect2 lto-wrapper lto1 ; do cd /usr/libexec/gcc/armv7nhl-tizen-linux-gnueabi/$GCCVER ; if test -e ${i}.orig-arm ; then rm ${i} ; mv ${i}.orig-arm ${i} ; fi ; done "
diff --git a/packaging/cross-armv5tel-gcc-accel.spec b/packaging/cross-armv5tel-gcc-accel.spec
index 73a8edb90..b3d25e932 100644
--- a/packaging/cross-armv5tel-gcc-accel.spec
+++ b/packaging/cross-armv5tel-gcc-accel.spec
@@ -45,7 +45,7 @@ BuildRequires: cross-armv6l-kernel-headers cross-armv6l-binutils
%if "%{name}" == "cross-armv7l-gcc"
BuildRequires: cross-armv7l-eglibc cross-armv7l-eglibc-devel cross-armv7l-eglibc-headers
BuildRequires: cross-armv7l-kernel-headers cross-armv7l-binutils
-%define crossextraconfig %{nil}
+%define crossextraconfig --with-float=softfp --with-fpu=vfpv3 --with-arch=armv7-a
%endif
%if "%{name}" == "cross-armv7hl-gcc"
BuildRequires: cross-armv7hl-eglibc cross-armv7hl-eglibc-devel cross-armv7hl-eglibc-headers
@@ -71,7 +71,7 @@ BuildRequires: cross-armv6l-kernel-headers cross-armv6l-binutils
%if "%{name}" == "cross-armv7l-gcc-accel"
BuildRequires: cross-armv7l-eglibc cross-armv7l-eglibc-devel cross-armv7l-eglibc-headers
BuildRequires: cross-armv7l-kernel-headers cross-armv7l-binutils
-%define crossextraconfig %{nil}
+%define crossextraconfig --with-float=softfp --with-fpu=vfpv3 --with-arch=armv7-a
%endif
%if "%{name}" == "cross-armv7hl-gcc-accel"
BuildRequires: cross-armv7hl-eglibc cross-armv7hl-eglibc-devel cross-armv7hl-eglibc-headers
@@ -86,7 +86,7 @@ BuildRequires: cross-armv7nhl-kernel-headers cross-armv7nhl-binutils
# single target atm.
ExclusiveArch: %ix86
#
-# special handling for ARM build acceleration
+# special handling for Tizen ARM build acceleration
# cross-armv*-gcc-accel
%if "%(echo %{name} | sed -e "s/cross-.*-gcc-\\(.*\\)/\\1/")" == "accel"
# cross architecture
@@ -140,7 +140,6 @@ Source100: gcc-rpmlintrc
Source200: baselibs.conf
Source300: precheckin.sh
Source301: aaa_README.PACKAGER
-Source1001: packaging/cross-armv5tel-gcc-accel.manifest
BuildRequires: binutils >= 2.19.51.0.14
BuildRequires: eglibc-devel >= 2.4.90-13
@@ -188,17 +187,19 @@ Patch20:gcc-arm-earlyclobbers.diff
Patch21:libstdc++-arm-wno-abi.diff
Patch22:arm-unbreak-eabi-armv4t.diff
Patch23:gcc-multiarch.diff
-Patch24:config-ml.diff
+#Patch24:config-ml.diff
Patch25:gcc-no-add-needed.diff
Patch26:gcc-as-needed.diff
Patch27:gcc-system-root.diff
Patch28:armhf-triplet-backport.diff
-Patch39: gcc-4.5-build-id.patch
+#Patch39: gcc-4.5-build-id.patch
Patch40: gcc-4.5.1-arm-stack-protect-libgcc.patch
Patch41: libgcc_post_upgrade.c.arm.patch
Patch42: fix-memory-exhausted.patch
+Patch100: incorrect-immediate-for-movt.diff
+Patch101: libgomp-ftls-global-dynamic.diff
#We need -gnueabi indicator for ARM
%ifnarch %{arm}
%global _gnu %{nil}
@@ -368,18 +369,21 @@ This is one set of libraries which support 64bit multilib on top of
%patch21 -p2
%patch22 -p2
%patch23 -p2
-%patch24 -p2
+#%patch24 -p2
%patch25 -p2
-%patch26 -p2
+#%patch26 -p2
%patch27 -p2
%patch28 -p2
-%patch39 -p0
+#%patch39 -p0
%patch40 -p1
%ifarch %arm
%patch42 -p1
%endif
+%patch100 -p0
+%patch101 -p0
+
echo '%{version}' >gcc/BASE-VER
cp -a libstdc++-v3/config/cpu/i{4,3}86/atomicity.h
@@ -389,7 +393,6 @@ cp -a libstdc++-v3/config/cpu/i{4,3}86/atomicity.h
LC_ALL=C sed -i -e 's/\xa0/ /' gcc/doc/options.texi
%build
-cp %{SOURCE1001} .
rm -fr obj-%{gcc_target_platform}
mkdir obj-%{gcc_target_platform}
cd obj-%{gcc_target_platform}
@@ -789,7 +792,6 @@ rm -rf %{buildroot}
%postun -n libmudflap -p /sbin/ldconfig
%files
-%manifest cross-armv5tel-gcc-accel.manifest
%defattr(-,root,root,-)
%{_prefix}/bin/cc
%{_prefix}/bin/c89
@@ -903,7 +905,6 @@ rm -rf %{buildroot}
%doc gcc/README* gcc/COPYING*
%files -n cpp
-%manifest cross-armv5tel-gcc-accel.manifest
%defattr(-,root,root,-)
/lib/cpp
%{_prefix}/bin/cpp
@@ -914,7 +915,6 @@ rm -rf %{buildroot}
%{_prefix}/libexec/gcc/%{gcc_target_platform}/%{gcc_version}/cc1
%files -n libgcc
-%manifest cross-armv5tel-gcc-accel.manifest
%defattr(-,root,root,-)
/%{_lib}/libgcc_s-%{gcc_version}.so.1
/%{_lib}/libgcc_s.*
@@ -928,7 +928,6 @@ rm -rf %{buildroot}
%endif
%files c++
-%manifest cross-armv5tel-gcc-accel.manifest
%defattr(-,root,root,-)
%ifnarch %{arm}
%{_prefix}/bin/%{gcc_target_platform}-*++
@@ -955,7 +954,6 @@ rm -rf %{buildroot}
%endif
%files -n libstdc++
-%manifest cross-armv5tel-gcc-accel.manifest
%defattr(-,root,root,-)
%{_prefix}/%{_lib}/libstdc++.*
%dir %{_datadir}/gdb
@@ -967,7 +965,6 @@ rm -rf %{buildroot}
%{_prefix}/share/gcc-%{gcc_version}/python
%files -n libstdc++-devel
-%manifest cross-armv5tel-gcc-accel.manifest
%defattr(-,root,root,-)
%dir %{_prefix}/include/c++
%dir %{_prefix}/include/c++/%{gcc_version}
@@ -984,18 +981,15 @@ rm -rf %{buildroot}
%endif
%files -n libgomp
-%manifest cross-armv5tel-gcc-accel.manifest
%defattr(-,root,root,-)
%{_prefix}/%{_lib}/libgomp.*
%files -n libmudflap
-%manifest cross-armv5tel-gcc-accel.manifest
%defattr(-,root,root,-)
%{_prefix}/%{_lib}/libmudflap.*
%{_prefix}/%{_lib}/libmudflapth.*
%files -n libmudflap-devel
-%manifest cross-armv5tel-gcc-accel.manifest
%defattr(-,root,root,-)
%dir %{_prefix}/lib/gcc
%dir %{_prefix}/lib/gcc/%{gcc_target_platform}
@@ -1013,7 +1007,6 @@ rm -rf %{buildroot}
# cross
# \/\/\/
%files
-%manifest cross-armv5tel-gcc-accel.manifest
%defattr(-,root,root,-)
%{_prefix}
# /\/\/\
diff --git a/packaging/cross-armv5tel-gcc.spec b/packaging/cross-armv5tel-gcc.spec
index 1b24b731c..aa122926f 100644
--- a/packaging/cross-armv5tel-gcc.spec
+++ b/packaging/cross-armv5tel-gcc.spec
@@ -45,7 +45,7 @@ BuildRequires: cross-armv6l-kernel-headers cross-armv6l-binutils
%if "%{name}" == "cross-armv7l-gcc"
BuildRequires: cross-armv7l-eglibc cross-armv7l-eglibc-devel cross-armv7l-eglibc-headers
BuildRequires: cross-armv7l-kernel-headers cross-armv7l-binutils
-%define crossextraconfig %{nil}
+%define crossextraconfig --with-float=softfp --with-fpu=vfpv3 --with-arch=armv7-a
%endif
%if "%{name}" == "cross-armv7hl-gcc"
BuildRequires: cross-armv7hl-eglibc cross-armv7hl-eglibc-devel cross-armv7hl-eglibc-headers
@@ -71,7 +71,7 @@ BuildRequires: cross-armv6l-kernel-headers cross-armv6l-binutils
%if "%{name}" == "cross-armv7l-gcc-accel"
BuildRequires: cross-armv7l-eglibc cross-armv7l-eglibc-devel cross-armv7l-eglibc-headers
BuildRequires: cross-armv7l-kernel-headers cross-armv7l-binutils
-%define crossextraconfig %{nil}
+%define crossextraconfig --with-float=softfp --with-fpu=vfpv3 --with-arch=armv7-a
%endif
%if "%{name}" == "cross-armv7hl-gcc-accel"
BuildRequires: cross-armv7hl-eglibc cross-armv7hl-eglibc-devel cross-armv7hl-eglibc-headers
@@ -86,7 +86,7 @@ BuildRequires: cross-armv7nhl-kernel-headers cross-armv7nhl-binutils
# single target atm.
ExclusiveArch: %ix86
#
-# special handling for ARM build acceleration
+# special handling for Tizen ARM build acceleration
# cross-armv*-gcc-accel
%if "%(echo %{name} | sed -e "s/cross-.*-gcc-\\(.*\\)/\\1/")" == "accel"
# cross architecture
@@ -140,7 +140,6 @@ Source100: gcc-rpmlintrc
Source200: baselibs.conf
Source300: precheckin.sh
Source301: aaa_README.PACKAGER
-Source1001: packaging/cross-armv5tel-gcc.manifest
BuildRequires: binutils >= 2.19.51.0.14
BuildRequires: eglibc-devel >= 2.4.90-13
@@ -188,17 +187,19 @@ Patch20:gcc-arm-earlyclobbers.diff
Patch21:libstdc++-arm-wno-abi.diff
Patch22:arm-unbreak-eabi-armv4t.diff
Patch23:gcc-multiarch.diff
-Patch24:config-ml.diff
+#Patch24:config-ml.diff
Patch25:gcc-no-add-needed.diff
Patch26:gcc-as-needed.diff
Patch27:gcc-system-root.diff
Patch28:armhf-triplet-backport.diff
-Patch39: gcc-4.5-build-id.patch
+#Patch39: gcc-4.5-build-id.patch
Patch40: gcc-4.5.1-arm-stack-protect-libgcc.patch
Patch41: libgcc_post_upgrade.c.arm.patch
Patch42: fix-memory-exhausted.patch
+Patch100: incorrect-immediate-for-movt.diff
+Patch101: libgomp-ftls-global-dynamic.diff
#We need -gnueabi indicator for ARM
%ifnarch %{arm}
%global _gnu %{nil}
@@ -368,18 +369,21 @@ This is one set of libraries which support 64bit multilib on top of
%patch21 -p2
%patch22 -p2
%patch23 -p2
-%patch24 -p2
+#%patch24 -p2
%patch25 -p2
-%patch26 -p2
+#%patch26 -p2
%patch27 -p2
%patch28 -p2
-%patch39 -p0
+#%patch39 -p0
%patch40 -p1
%ifarch %arm
%patch42 -p1
%endif
+%patch100 -p0
+%patch101 -p0
+
echo '%{version}' >gcc/BASE-VER
cp -a libstdc++-v3/config/cpu/i{4,3}86/atomicity.h
@@ -389,7 +393,6 @@ cp -a libstdc++-v3/config/cpu/i{4,3}86/atomicity.h
LC_ALL=C sed -i -e 's/\xa0/ /' gcc/doc/options.texi
%build
-cp %{SOURCE1001} .
rm -fr obj-%{gcc_target_platform}
mkdir obj-%{gcc_target_platform}
cd obj-%{gcc_target_platform}
@@ -789,7 +792,6 @@ rm -rf %{buildroot}
%postun -n libmudflap -p /sbin/ldconfig
%files
-%manifest cross-armv5tel-gcc.manifest
%defattr(-,root,root,-)
%{_prefix}/bin/cc
%{_prefix}/bin/c89
@@ -903,7 +905,6 @@ rm -rf %{buildroot}
%doc gcc/README* gcc/COPYING*
%files -n cpp
-%manifest cross-armv5tel-gcc.manifest
%defattr(-,root,root,-)
/lib/cpp
%{_prefix}/bin/cpp
@@ -914,7 +915,6 @@ rm -rf %{buildroot}
%{_prefix}/libexec/gcc/%{gcc_target_platform}/%{gcc_version}/cc1
%files -n libgcc
-%manifest cross-armv5tel-gcc.manifest
%defattr(-,root,root,-)
/%{_lib}/libgcc_s-%{gcc_version}.so.1
/%{_lib}/libgcc_s.*
@@ -928,7 +928,6 @@ rm -rf %{buildroot}
%endif
%files c++
-%manifest cross-armv5tel-gcc.manifest
%defattr(-,root,root,-)
%ifnarch %{arm}
%{_prefix}/bin/%{gcc_target_platform}-*++
@@ -955,7 +954,6 @@ rm -rf %{buildroot}
%endif
%files -n libstdc++
-%manifest cross-armv5tel-gcc.manifest
%defattr(-,root,root,-)
%{_prefix}/%{_lib}/libstdc++.*
%dir %{_datadir}/gdb
@@ -967,7 +965,6 @@ rm -rf %{buildroot}
%{_prefix}/share/gcc-%{gcc_version}/python
%files -n libstdc++-devel
-%manifest cross-armv5tel-gcc.manifest
%defattr(-,root,root,-)
%dir %{_prefix}/include/c++
%dir %{_prefix}/include/c++/%{gcc_version}
@@ -984,18 +981,15 @@ rm -rf %{buildroot}
%endif
%files -n libgomp
-%manifest cross-armv5tel-gcc.manifest
%defattr(-,root,root,-)
%{_prefix}/%{_lib}/libgomp.*
%files -n libmudflap
-%manifest cross-armv5tel-gcc.manifest
%defattr(-,root,root,-)
%{_prefix}/%{_lib}/libmudflap.*
%{_prefix}/%{_lib}/libmudflapth.*
%files -n libmudflap-devel
-%manifest cross-armv5tel-gcc.manifest
%defattr(-,root,root,-)
%dir %{_prefix}/lib/gcc
%dir %{_prefix}/lib/gcc/%{gcc_target_platform}
@@ -1013,7 +1007,6 @@ rm -rf %{buildroot}
# cross
# \/\/\/
%files
-%manifest cross-armv5tel-gcc.manifest
%defattr(-,root,root,-)
%{_prefix}
# /\/\/\
diff --git a/packaging/cross-armv6l-gcc-accel.spec b/packaging/cross-armv6l-gcc-accel.spec
index 19b7a13ff..b1481ca4c 100644
--- a/packaging/cross-armv6l-gcc-accel.spec
+++ b/packaging/cross-armv6l-gcc-accel.spec
@@ -45,7 +45,7 @@ BuildRequires: cross-armv6l-kernel-headers cross-armv6l-binutils
%if "%{name}" == "cross-armv7l-gcc"
BuildRequires: cross-armv7l-eglibc cross-armv7l-eglibc-devel cross-armv7l-eglibc-headers
BuildRequires: cross-armv7l-kernel-headers cross-armv7l-binutils
-%define crossextraconfig %{nil}
+%define crossextraconfig --with-float=softfp --with-fpu=vfpv3 --with-arch=armv7-a
%endif
%if "%{name}" == "cross-armv7hl-gcc"
BuildRequires: cross-armv7hl-eglibc cross-armv7hl-eglibc-devel cross-armv7hl-eglibc-headers
@@ -71,7 +71,7 @@ BuildRequires: cross-armv6l-kernel-headers cross-armv6l-binutils
%if "%{name}" == "cross-armv7l-gcc-accel"
BuildRequires: cross-armv7l-eglibc cross-armv7l-eglibc-devel cross-armv7l-eglibc-headers
BuildRequires: cross-armv7l-kernel-headers cross-armv7l-binutils
-%define crossextraconfig %{nil}
+%define crossextraconfig --with-float=softfp --with-fpu=vfpv3 --with-arch=armv7-a
%endif
%if "%{name}" == "cross-armv7hl-gcc-accel"
BuildRequires: cross-armv7hl-eglibc cross-armv7hl-eglibc-devel cross-armv7hl-eglibc-headers
@@ -86,7 +86,7 @@ BuildRequires: cross-armv7nhl-kernel-headers cross-armv7nhl-binutils
# single target atm.
ExclusiveArch: %ix86
#
-# special handling for ARM build acceleration
+# special handling for Tizen ARM build acceleration
# cross-armv*-gcc-accel
%if "%(echo %{name} | sed -e "s/cross-.*-gcc-\\(.*\\)/\\1/")" == "accel"
# cross architecture
@@ -140,7 +140,6 @@ Source100: gcc-rpmlintrc
Source200: baselibs.conf
Source300: precheckin.sh
Source301: aaa_README.PACKAGER
-Source1001: packaging/cross-armv6l-gcc-accel.manifest
BuildRequires: binutils >= 2.19.51.0.14
BuildRequires: eglibc-devel >= 2.4.90-13
@@ -188,17 +187,19 @@ Patch20:gcc-arm-earlyclobbers.diff
Patch21:libstdc++-arm-wno-abi.diff
Patch22:arm-unbreak-eabi-armv4t.diff
Patch23:gcc-multiarch.diff
-Patch24:config-ml.diff
+#Patch24:config-ml.diff
Patch25:gcc-no-add-needed.diff
Patch26:gcc-as-needed.diff
Patch27:gcc-system-root.diff
Patch28:armhf-triplet-backport.diff
-Patch39: gcc-4.5-build-id.patch
+#Patch39: gcc-4.5-build-id.patch
Patch40: gcc-4.5.1-arm-stack-protect-libgcc.patch
Patch41: libgcc_post_upgrade.c.arm.patch
Patch42: fix-memory-exhausted.patch
+Patch100: incorrect-immediate-for-movt.diff
+Patch101: libgomp-ftls-global-dynamic.diff
#We need -gnueabi indicator for ARM
%ifnarch %{arm}
%global _gnu %{nil}
@@ -368,18 +369,21 @@ This is one set of libraries which support 64bit multilib on top of
%patch21 -p2
%patch22 -p2
%patch23 -p2
-%patch24 -p2
+#%patch24 -p2
%patch25 -p2
-%patch26 -p2
+#%patch26 -p2
%patch27 -p2
%patch28 -p2
-%patch39 -p0
+#%patch39 -p0
%patch40 -p1
%ifarch %arm
%patch42 -p1
%endif
+%patch100 -p0
+%patch101 -p0
+
echo '%{version}' >gcc/BASE-VER
cp -a libstdc++-v3/config/cpu/i{4,3}86/atomicity.h
@@ -389,7 +393,6 @@ cp -a libstdc++-v3/config/cpu/i{4,3}86/atomicity.h
LC_ALL=C sed -i -e 's/\xa0/ /' gcc/doc/options.texi
%build
-cp %{SOURCE1001} .
rm -fr obj-%{gcc_target_platform}
mkdir obj-%{gcc_target_platform}
cd obj-%{gcc_target_platform}
@@ -789,7 +792,6 @@ rm -rf %{buildroot}
%postun -n libmudflap -p /sbin/ldconfig
%files
-%manifest cross-armv6l-gcc-accel.manifest
%defattr(-,root,root,-)
%{_prefix}/bin/cc
%{_prefix}/bin/c89
@@ -903,7 +905,6 @@ rm -rf %{buildroot}
%doc gcc/README* gcc/COPYING*
%files -n cpp
-%manifest cross-armv6l-gcc-accel.manifest
%defattr(-,root,root,-)
/lib/cpp
%{_prefix}/bin/cpp
@@ -914,7 +915,6 @@ rm -rf %{buildroot}
%{_prefix}/libexec/gcc/%{gcc_target_platform}/%{gcc_version}/cc1
%files -n libgcc
-%manifest cross-armv6l-gcc-accel.manifest
%defattr(-,root,root,-)
/%{_lib}/libgcc_s-%{gcc_version}.so.1
/%{_lib}/libgcc_s.*
@@ -928,7 +928,6 @@ rm -rf %{buildroot}
%endif
%files c++
-%manifest cross-armv6l-gcc-accel.manifest
%defattr(-,root,root,-)
%ifnarch %{arm}
%{_prefix}/bin/%{gcc_target_platform}-*++
@@ -955,7 +954,6 @@ rm -rf %{buildroot}
%endif
%files -n libstdc++
-%manifest cross-armv6l-gcc-accel.manifest
%defattr(-,root,root,-)
%{_prefix}/%{_lib}/libstdc++.*
%dir %{_datadir}/gdb
@@ -967,7 +965,6 @@ rm -rf %{buildroot}
%{_prefix}/share/gcc-%{gcc_version}/python
%files -n libstdc++-devel
-%manifest cross-armv6l-gcc-accel.manifest
%defattr(-,root,root,-)
%dir %{_prefix}/include/c++
%dir %{_prefix}/include/c++/%{gcc_version}
@@ -984,18 +981,15 @@ rm -rf %{buildroot}
%endif
%files -n libgomp
-%manifest cross-armv6l-gcc-accel.manifest
%defattr(-,root,root,-)
%{_prefix}/%{_lib}/libgomp.*
%files -n libmudflap
-%manifest cross-armv6l-gcc-accel.manifest
%defattr(-,root,root,-)
%{_prefix}/%{_lib}/libmudflap.*
%{_prefix}/%{_lib}/libmudflapth.*
%files -n libmudflap-devel
-%manifest cross-armv6l-gcc-accel.manifest
%defattr(-,root,root,-)
%dir %{_prefix}/lib/gcc
%dir %{_prefix}/lib/gcc/%{gcc_target_platform}
@@ -1013,7 +1007,6 @@ rm -rf %{buildroot}
# cross
# \/\/\/
%files
-%manifest cross-armv6l-gcc-accel.manifest
%defattr(-,root,root,-)
%{_prefix}
# /\/\/\
diff --git a/packaging/cross-armv6l-gcc.spec b/packaging/cross-armv6l-gcc.spec
index 25a53568c..22b7a5e90 100644
--- a/packaging/cross-armv6l-gcc.spec
+++ b/packaging/cross-armv6l-gcc.spec
@@ -45,7 +45,7 @@ BuildRequires: cross-armv6l-kernel-headers cross-armv6l-binutils
%if "%{name}" == "cross-armv7l-gcc"
BuildRequires: cross-armv7l-eglibc cross-armv7l-eglibc-devel cross-armv7l-eglibc-headers
BuildRequires: cross-armv7l-kernel-headers cross-armv7l-binutils
-%define crossextraconfig %{nil}
+%define crossextraconfig --with-float=softfp --with-fpu=vfpv3 --with-arch=armv7-a
%endif
%if "%{name}" == "cross-armv7hl-gcc"
BuildRequires: cross-armv7hl-eglibc cross-armv7hl-eglibc-devel cross-armv7hl-eglibc-headers
@@ -71,7 +71,7 @@ BuildRequires: cross-armv6l-kernel-headers cross-armv6l-binutils
%if "%{name}" == "cross-armv7l-gcc-accel"
BuildRequires: cross-armv7l-eglibc cross-armv7l-eglibc-devel cross-armv7l-eglibc-headers
BuildRequires: cross-armv7l-kernel-headers cross-armv7l-binutils
-%define crossextraconfig %{nil}
+%define crossextraconfig --with-float=softfp --with-fpu=vfpv3 --with-arch=armv7-a
%endif
%if "%{name}" == "cross-armv7hl-gcc-accel"
BuildRequires: cross-armv7hl-eglibc cross-armv7hl-eglibc-devel cross-armv7hl-eglibc-headers
@@ -86,7 +86,7 @@ BuildRequires: cross-armv7nhl-kernel-headers cross-armv7nhl-binutils
# single target atm.
ExclusiveArch: %ix86
#
-# special handling for ARM build acceleration
+# special handling for Tizen ARM build acceleration
# cross-armv*-gcc-accel
%if "%(echo %{name} | sed -e "s/cross-.*-gcc-\\(.*\\)/\\1/")" == "accel"
# cross architecture
@@ -140,7 +140,6 @@ Source100: gcc-rpmlintrc
Source200: baselibs.conf
Source300: precheckin.sh
Source301: aaa_README.PACKAGER
-Source1001: packaging/cross-armv6l-gcc.manifest
BuildRequires: binutils >= 2.19.51.0.14
BuildRequires: eglibc-devel >= 2.4.90-13
@@ -188,17 +187,19 @@ Patch20:gcc-arm-earlyclobbers.diff
Patch21:libstdc++-arm-wno-abi.diff
Patch22:arm-unbreak-eabi-armv4t.diff
Patch23:gcc-multiarch.diff
-Patch24:config-ml.diff
+#Patch24:config-ml.diff
Patch25:gcc-no-add-needed.diff
Patch26:gcc-as-needed.diff
Patch27:gcc-system-root.diff
Patch28:armhf-triplet-backport.diff
-Patch39: gcc-4.5-build-id.patch
+#Patch39: gcc-4.5-build-id.patch
Patch40: gcc-4.5.1-arm-stack-protect-libgcc.patch
Patch41: libgcc_post_upgrade.c.arm.patch
Patch42: fix-memory-exhausted.patch
+Patch100: incorrect-immediate-for-movt.diff
+Patch101: libgomp-ftls-global-dynamic.diff
#We need -gnueabi indicator for ARM
%ifnarch %{arm}
%global _gnu %{nil}
@@ -368,18 +369,21 @@ This is one set of libraries which support 64bit multilib on top of
%patch21 -p2
%patch22 -p2
%patch23 -p2
-%patch24 -p2
+#%patch24 -p2
%patch25 -p2
-%patch26 -p2
+#%patch26 -p2
%patch27 -p2
%patch28 -p2
-%patch39 -p0
+#%patch39 -p0
%patch40 -p1
%ifarch %arm
%patch42 -p1
%endif
+%patch100 -p0
+%patch101 -p0
+
echo '%{version}' >gcc/BASE-VER
cp -a libstdc++-v3/config/cpu/i{4,3}86/atomicity.h
@@ -389,7 +393,6 @@ cp -a libstdc++-v3/config/cpu/i{4,3}86/atomicity.h
LC_ALL=C sed -i -e 's/\xa0/ /' gcc/doc/options.texi
%build
-cp %{SOURCE1001} .
rm -fr obj-%{gcc_target_platform}
mkdir obj-%{gcc_target_platform}
cd obj-%{gcc_target_platform}
@@ -789,7 +792,6 @@ rm -rf %{buildroot}
%postun -n libmudflap -p /sbin/ldconfig
%files
-%manifest cross-armv6l-gcc.manifest
%defattr(-,root,root,-)
%{_prefix}/bin/cc
%{_prefix}/bin/c89
@@ -903,7 +905,6 @@ rm -rf %{buildroot}
%doc gcc/README* gcc/COPYING*
%files -n cpp
-%manifest cross-armv6l-gcc.manifest
%defattr(-,root,root,-)
/lib/cpp
%{_prefix}/bin/cpp
@@ -914,7 +915,6 @@ rm -rf %{buildroot}
%{_prefix}/libexec/gcc/%{gcc_target_platform}/%{gcc_version}/cc1
%files -n libgcc
-%manifest cross-armv6l-gcc.manifest
%defattr(-,root,root,-)
/%{_lib}/libgcc_s-%{gcc_version}.so.1
/%{_lib}/libgcc_s.*
@@ -928,7 +928,6 @@ rm -rf %{buildroot}
%endif
%files c++
-%manifest cross-armv6l-gcc.manifest
%defattr(-,root,root,-)
%ifnarch %{arm}
%{_prefix}/bin/%{gcc_target_platform}-*++
@@ -955,7 +954,6 @@ rm -rf %{buildroot}
%endif
%files -n libstdc++
-%manifest cross-armv6l-gcc.manifest
%defattr(-,root,root,-)
%{_prefix}/%{_lib}/libstdc++.*
%dir %{_datadir}/gdb
@@ -967,7 +965,6 @@ rm -rf %{buildroot}
%{_prefix}/share/gcc-%{gcc_version}/python
%files -n libstdc++-devel
-%manifest cross-armv6l-gcc.manifest
%defattr(-,root,root,-)
%dir %{_prefix}/include/c++
%dir %{_prefix}/include/c++/%{gcc_version}
@@ -984,18 +981,15 @@ rm -rf %{buildroot}
%endif
%files -n libgomp
-%manifest cross-armv6l-gcc.manifest
%defattr(-,root,root,-)
%{_prefix}/%{_lib}/libgomp.*
%files -n libmudflap
-%manifest cross-armv6l-gcc.manifest
%defattr(-,root,root,-)
%{_prefix}/%{_lib}/libmudflap.*
%{_prefix}/%{_lib}/libmudflapth.*
%files -n libmudflap-devel
-%manifest cross-armv6l-gcc.manifest
%defattr(-,root,root,-)
%dir %{_prefix}/lib/gcc
%dir %{_prefix}/lib/gcc/%{gcc_target_platform}
@@ -1013,7 +1007,6 @@ rm -rf %{buildroot}
# cross
# \/\/\/
%files
-%manifest cross-armv6l-gcc.manifest
%defattr(-,root,root,-)
%{_prefix}
# /\/\/\
diff --git a/packaging/cross-armv7hl-gcc-accel.spec b/packaging/cross-armv7hl-gcc-accel.spec
index 4bcd4c5ac..742eec2d1 100644
--- a/packaging/cross-armv7hl-gcc-accel.spec
+++ b/packaging/cross-armv7hl-gcc-accel.spec
@@ -45,7 +45,7 @@ BuildRequires: cross-armv6l-kernel-headers cross-armv6l-binutils
%if "%{name}" == "cross-armv7l-gcc"
BuildRequires: cross-armv7l-eglibc cross-armv7l-eglibc-devel cross-armv7l-eglibc-headers
BuildRequires: cross-armv7l-kernel-headers cross-armv7l-binutils
-%define crossextraconfig %{nil}
+%define crossextraconfig --with-float=softfp --with-fpu=vfpv3 --with-arch=armv7-a
%endif
%if "%{name}" == "cross-armv7hl-gcc"
BuildRequires: cross-armv7hl-eglibc cross-armv7hl-eglibc-devel cross-armv7hl-eglibc-headers
@@ -71,7 +71,7 @@ BuildRequires: cross-armv6l-kernel-headers cross-armv6l-binutils
%if "%{name}" == "cross-armv7l-gcc-accel"
BuildRequires: cross-armv7l-eglibc cross-armv7l-eglibc-devel cross-armv7l-eglibc-headers
BuildRequires: cross-armv7l-kernel-headers cross-armv7l-binutils
-%define crossextraconfig %{nil}
+%define crossextraconfig --with-float=softfp --with-fpu=vfpv3 --with-arch=armv7-a
%endif
%if "%{name}" == "cross-armv7hl-gcc-accel"
BuildRequires: cross-armv7hl-eglibc cross-armv7hl-eglibc-devel cross-armv7hl-eglibc-headers
@@ -86,7 +86,7 @@ BuildRequires: cross-armv7nhl-kernel-headers cross-armv7nhl-binutils
# single target atm.
ExclusiveArch: %ix86
#
-# special handling for ARM build acceleration
+# special handling for Tizen ARM build acceleration
# cross-armv*-gcc-accel
%if "%(echo %{name} | sed -e "s/cross-.*-gcc-\\(.*\\)/\\1/")" == "accel"
# cross architecture
@@ -140,7 +140,6 @@ Source100: gcc-rpmlintrc
Source200: baselibs.conf
Source300: precheckin.sh
Source301: aaa_README.PACKAGER
-Source1001: packaging/cross-armv7hl-gcc-accel.manifest
BuildRequires: binutils >= 2.19.51.0.14
BuildRequires: eglibc-devel >= 2.4.90-13
@@ -188,17 +187,19 @@ Patch20:gcc-arm-earlyclobbers.diff
Patch21:libstdc++-arm-wno-abi.diff
Patch22:arm-unbreak-eabi-armv4t.diff
Patch23:gcc-multiarch.diff
-Patch24:config-ml.diff
+#Patch24:config-ml.diff
Patch25:gcc-no-add-needed.diff
Patch26:gcc-as-needed.diff
Patch27:gcc-system-root.diff
Patch28:armhf-triplet-backport.diff
-Patch39: gcc-4.5-build-id.patch
+#Patch39: gcc-4.5-build-id.patch
Patch40: gcc-4.5.1-arm-stack-protect-libgcc.patch
Patch41: libgcc_post_upgrade.c.arm.patch
Patch42: fix-memory-exhausted.patch
+Patch100: incorrect-immediate-for-movt.diff
+Patch101: libgomp-ftls-global-dynamic.diff
#We need -gnueabi indicator for ARM
%ifnarch %{arm}
%global _gnu %{nil}
@@ -368,18 +369,21 @@ This is one set of libraries which support 64bit multilib on top of
%patch21 -p2
%patch22 -p2
%patch23 -p2
-%patch24 -p2
+#%patch24 -p2
%patch25 -p2
-%patch26 -p2
+#%patch26 -p2
%patch27 -p2
%patch28 -p2
-%patch39 -p0
+#%patch39 -p0
%patch40 -p1
%ifarch %arm
%patch42 -p1
%endif
+%patch100 -p0
+%patch101 -p0
+
echo '%{version}' >gcc/BASE-VER
cp -a libstdc++-v3/config/cpu/i{4,3}86/atomicity.h
@@ -389,7 +393,6 @@ cp -a libstdc++-v3/config/cpu/i{4,3}86/atomicity.h
LC_ALL=C sed -i -e 's/\xa0/ /' gcc/doc/options.texi
%build
-cp %{SOURCE1001} .
rm -fr obj-%{gcc_target_platform}
mkdir obj-%{gcc_target_platform}
cd obj-%{gcc_target_platform}
@@ -789,7 +792,6 @@ rm -rf %{buildroot}
%postun -n libmudflap -p /sbin/ldconfig
%files
-%manifest cross-armv7hl-gcc-accel.manifest
%defattr(-,root,root,-)
%{_prefix}/bin/cc
%{_prefix}/bin/c89
@@ -903,7 +905,6 @@ rm -rf %{buildroot}
%doc gcc/README* gcc/COPYING*
%files -n cpp
-%manifest cross-armv7hl-gcc-accel.manifest
%defattr(-,root,root,-)
/lib/cpp
%{_prefix}/bin/cpp
@@ -914,7 +915,6 @@ rm -rf %{buildroot}
%{_prefix}/libexec/gcc/%{gcc_target_platform}/%{gcc_version}/cc1
%files -n libgcc
-%manifest cross-armv7hl-gcc-accel.manifest
%defattr(-,root,root,-)
/%{_lib}/libgcc_s-%{gcc_version}.so.1
/%{_lib}/libgcc_s.*
@@ -928,7 +928,6 @@ rm -rf %{buildroot}
%endif
%files c++
-%manifest cross-armv7hl-gcc-accel.manifest
%defattr(-,root,root,-)
%ifnarch %{arm}
%{_prefix}/bin/%{gcc_target_platform}-*++
@@ -955,7 +954,6 @@ rm -rf %{buildroot}
%endif
%files -n libstdc++
-%manifest cross-armv7hl-gcc-accel.manifest
%defattr(-,root,root,-)
%{_prefix}/%{_lib}/libstdc++.*
%dir %{_datadir}/gdb
@@ -967,7 +965,6 @@ rm -rf %{buildroot}
%{_prefix}/share/gcc-%{gcc_version}/python
%files -n libstdc++-devel
-%manifest cross-armv7hl-gcc-accel.manifest
%defattr(-,root,root,-)
%dir %{_prefix}/include/c++
%dir %{_prefix}/include/c++/%{gcc_version}
@@ -984,18 +981,15 @@ rm -rf %{buildroot}
%endif
%files -n libgomp
-%manifest cross-armv7hl-gcc-accel.manifest
%defattr(-,root,root,-)
%{_prefix}/%{_lib}/libgomp.*
%files -n libmudflap
-%manifest cross-armv7hl-gcc-accel.manifest
%defattr(-,root,root,-)
%{_prefix}/%{_lib}/libmudflap.*
%{_prefix}/%{_lib}/libmudflapth.*
%files -n libmudflap-devel
-%manifest cross-armv7hl-gcc-accel.manifest
%defattr(-,root,root,-)
%dir %{_prefix}/lib/gcc
%dir %{_prefix}/lib/gcc/%{gcc_target_platform}
@@ -1013,7 +1007,6 @@ rm -rf %{buildroot}
# cross
# \/\/\/
%files
-%manifest cross-armv7hl-gcc-accel.manifest
%defattr(-,root,root,-)
%{_prefix}
# /\/\/\
diff --git a/packaging/cross-armv7hl-gcc.spec b/packaging/cross-armv7hl-gcc.spec
index e80867b6c..7437a8315 100644
--- a/packaging/cross-armv7hl-gcc.spec
+++ b/packaging/cross-armv7hl-gcc.spec
@@ -45,7 +45,7 @@ BuildRequires: cross-armv6l-kernel-headers cross-armv6l-binutils
%if "%{name}" == "cross-armv7l-gcc"
BuildRequires: cross-armv7l-eglibc cross-armv7l-eglibc-devel cross-armv7l-eglibc-headers
BuildRequires: cross-armv7l-kernel-headers cross-armv7l-binutils
-%define crossextraconfig %{nil}
+%define crossextraconfig --with-float=softfp --with-fpu=vfpv3 --with-arch=armv7-a
%endif
%if "%{name}" == "cross-armv7hl-gcc"
BuildRequires: cross-armv7hl-eglibc cross-armv7hl-eglibc-devel cross-armv7hl-eglibc-headers
@@ -71,7 +71,7 @@ BuildRequires: cross-armv6l-kernel-headers cross-armv6l-binutils
%if "%{name}" == "cross-armv7l-gcc-accel"
BuildRequires: cross-armv7l-eglibc cross-armv7l-eglibc-devel cross-armv7l-eglibc-headers
BuildRequires: cross-armv7l-kernel-headers cross-armv7l-binutils
-%define crossextraconfig %{nil}
+%define crossextraconfig --with-float=softfp --with-fpu=vfpv3 --with-arch=armv7-a
%endif
%if "%{name}" == "cross-armv7hl-gcc-accel"
BuildRequires: cross-armv7hl-eglibc cross-armv7hl-eglibc-devel cross-armv7hl-eglibc-headers
@@ -86,7 +86,7 @@ BuildRequires: cross-armv7nhl-kernel-headers cross-armv7nhl-binutils
# single target atm.
ExclusiveArch: %ix86
#
-# special handling for ARM build acceleration
+# special handling for Tizen ARM build acceleration
# cross-armv*-gcc-accel
%if "%(echo %{name} | sed -e "s/cross-.*-gcc-\\(.*\\)/\\1/")" == "accel"
# cross architecture
@@ -140,7 +140,6 @@ Source100: gcc-rpmlintrc
Source200: baselibs.conf
Source300: precheckin.sh
Source301: aaa_README.PACKAGER
-Source1001: packaging/cross-armv7hl-gcc.manifest
BuildRequires: binutils >= 2.19.51.0.14
BuildRequires: eglibc-devel >= 2.4.90-13
@@ -188,17 +187,19 @@ Patch20:gcc-arm-earlyclobbers.diff
Patch21:libstdc++-arm-wno-abi.diff
Patch22:arm-unbreak-eabi-armv4t.diff
Patch23:gcc-multiarch.diff
-Patch24:config-ml.diff
+#Patch24:config-ml.diff
Patch25:gcc-no-add-needed.diff
Patch26:gcc-as-needed.diff
Patch27:gcc-system-root.diff
Patch28:armhf-triplet-backport.diff
-Patch39: gcc-4.5-build-id.patch
+#Patch39: gcc-4.5-build-id.patch
Patch40: gcc-4.5.1-arm-stack-protect-libgcc.patch
Patch41: libgcc_post_upgrade.c.arm.patch
Patch42: fix-memory-exhausted.patch
+Patch100: incorrect-immediate-for-movt.diff
+Patch101: libgomp-ftls-global-dynamic.diff
#We need -gnueabi indicator for ARM
%ifnarch %{arm}
%global _gnu %{nil}
@@ -368,18 +369,21 @@ This is one set of libraries which support 64bit multilib on top of
%patch21 -p2
%patch22 -p2
%patch23 -p2
-%patch24 -p2
+#%patch24 -p2
%patch25 -p2
-%patch26 -p2
+#%patch26 -p2
%patch27 -p2
%patch28 -p2
-%patch39 -p0
+#%patch39 -p0
%patch40 -p1
%ifarch %arm
%patch42 -p1
%endif
+%patch100 -p0
+%patch101 -p0
+
echo '%{version}' >gcc/BASE-VER
cp -a libstdc++-v3/config/cpu/i{4,3}86/atomicity.h
@@ -389,7 +393,6 @@ cp -a libstdc++-v3/config/cpu/i{4,3}86/atomicity.h
LC_ALL=C sed -i -e 's/\xa0/ /' gcc/doc/options.texi
%build
-cp %{SOURCE1001} .
rm -fr obj-%{gcc_target_platform}
mkdir obj-%{gcc_target_platform}
cd obj-%{gcc_target_platform}
@@ -789,7 +792,6 @@ rm -rf %{buildroot}
%postun -n libmudflap -p /sbin/ldconfig
%files
-%manifest cross-armv7hl-gcc.manifest
%defattr(-,root,root,-)
%{_prefix}/bin/cc
%{_prefix}/bin/c89
@@ -903,7 +905,6 @@ rm -rf %{buildroot}
%doc gcc/README* gcc/COPYING*
%files -n cpp
-%manifest cross-armv7hl-gcc.manifest
%defattr(-,root,root,-)
/lib/cpp
%{_prefix}/bin/cpp
@@ -914,7 +915,6 @@ rm -rf %{buildroot}
%{_prefix}/libexec/gcc/%{gcc_target_platform}/%{gcc_version}/cc1
%files -n libgcc
-%manifest cross-armv7hl-gcc.manifest
%defattr(-,root,root,-)
/%{_lib}/libgcc_s-%{gcc_version}.so.1
/%{_lib}/libgcc_s.*
@@ -928,7 +928,6 @@ rm -rf %{buildroot}
%endif
%files c++
-%manifest cross-armv7hl-gcc.manifest
%defattr(-,root,root,-)
%ifnarch %{arm}
%{_prefix}/bin/%{gcc_target_platform}-*++
@@ -955,7 +954,6 @@ rm -rf %{buildroot}
%endif
%files -n libstdc++
-%manifest cross-armv7hl-gcc.manifest
%defattr(-,root,root,-)
%{_prefix}/%{_lib}/libstdc++.*
%dir %{_datadir}/gdb
@@ -967,7 +965,6 @@ rm -rf %{buildroot}
%{_prefix}/share/gcc-%{gcc_version}/python
%files -n libstdc++-devel
-%manifest cross-armv7hl-gcc.manifest
%defattr(-,root,root,-)
%dir %{_prefix}/include/c++
%dir %{_prefix}/include/c++/%{gcc_version}
@@ -984,18 +981,15 @@ rm -rf %{buildroot}
%endif
%files -n libgomp
-%manifest cross-armv7hl-gcc.manifest
%defattr(-,root,root,-)
%{_prefix}/%{_lib}/libgomp.*
%files -n libmudflap
-%manifest cross-armv7hl-gcc.manifest
%defattr(-,root,root,-)
%{_prefix}/%{_lib}/libmudflap.*
%{_prefix}/%{_lib}/libmudflapth.*
%files -n libmudflap-devel
-%manifest cross-armv7hl-gcc.manifest
%defattr(-,root,root,-)
%dir %{_prefix}/lib/gcc
%dir %{_prefix}/lib/gcc/%{gcc_target_platform}
@@ -1013,7 +1007,6 @@ rm -rf %{buildroot}
# cross
# \/\/\/
%files
-%manifest cross-armv7hl-gcc.manifest
%defattr(-,root,root,-)
%{_prefix}
# /\/\/\
diff --git a/packaging/cross-armv7l-gcc-accel.spec b/packaging/cross-armv7l-gcc-accel.spec
index c956d306c..2cbe7fed9 100644
--- a/packaging/cross-armv7l-gcc-accel.spec
+++ b/packaging/cross-armv7l-gcc-accel.spec
@@ -45,7 +45,7 @@ BuildRequires: cross-armv6l-kernel-headers cross-armv6l-binutils
%if "%{name}" == "cross-armv7l-gcc"
BuildRequires: cross-armv7l-eglibc cross-armv7l-eglibc-devel cross-armv7l-eglibc-headers
BuildRequires: cross-armv7l-kernel-headers cross-armv7l-binutils
-%define crossextraconfig %{nil}
+%define crossextraconfig --with-float=softfp --with-fpu=vfpv3 --with-arch=armv7-a
%endif
%if "%{name}" == "cross-armv7hl-gcc"
BuildRequires: cross-armv7hl-eglibc cross-armv7hl-eglibc-devel cross-armv7hl-eglibc-headers
@@ -71,7 +71,7 @@ BuildRequires: cross-armv6l-kernel-headers cross-armv6l-binutils
%if "%{name}" == "cross-armv7l-gcc-accel"
BuildRequires: cross-armv7l-eglibc cross-armv7l-eglibc-devel cross-armv7l-eglibc-headers
BuildRequires: cross-armv7l-kernel-headers cross-armv7l-binutils
-%define crossextraconfig %{nil}
+%define crossextraconfig --with-float=softfp --with-fpu=vfpv3 --with-arch=armv7-a
%endif
%if "%{name}" == "cross-armv7hl-gcc-accel"
BuildRequires: cross-armv7hl-eglibc cross-armv7hl-eglibc-devel cross-armv7hl-eglibc-headers
@@ -86,7 +86,7 @@ BuildRequires: cross-armv7nhl-kernel-headers cross-armv7nhl-binutils
# single target atm.
ExclusiveArch: %ix86
#
-# special handling for ARM build acceleration
+# special handling for Tizen ARM build acceleration
# cross-armv*-gcc-accel
%if "%(echo %{name} | sed -e "s/cross-.*-gcc-\\(.*\\)/\\1/")" == "accel"
# cross architecture
@@ -140,7 +140,6 @@ Source100: gcc-rpmlintrc
Source200: baselibs.conf
Source300: precheckin.sh
Source301: aaa_README.PACKAGER
-Source1001: packaging/cross-armv7l-gcc-accel.manifest
BuildRequires: binutils >= 2.19.51.0.14
BuildRequires: eglibc-devel >= 2.4.90-13
@@ -188,17 +187,19 @@ Patch20:gcc-arm-earlyclobbers.diff
Patch21:libstdc++-arm-wno-abi.diff
Patch22:arm-unbreak-eabi-armv4t.diff
Patch23:gcc-multiarch.diff
-Patch24:config-ml.diff
+#Patch24:config-ml.diff
Patch25:gcc-no-add-needed.diff
Patch26:gcc-as-needed.diff
Patch27:gcc-system-root.diff
Patch28:armhf-triplet-backport.diff
-Patch39: gcc-4.5-build-id.patch
+#Patch39: gcc-4.5-build-id.patch
Patch40: gcc-4.5.1-arm-stack-protect-libgcc.patch
Patch41: libgcc_post_upgrade.c.arm.patch
Patch42: fix-memory-exhausted.patch
+Patch100: incorrect-immediate-for-movt.diff
+Patch101: libgomp-ftls-global-dynamic.diff
#We need -gnueabi indicator for ARM
%ifnarch %{arm}
%global _gnu %{nil}
@@ -368,18 +369,21 @@ This is one set of libraries which support 64bit multilib on top of
%patch21 -p2
%patch22 -p2
%patch23 -p2
-%patch24 -p2
+#%patch24 -p2
%patch25 -p2
-%patch26 -p2
+#%patch26 -p2
%patch27 -p2
%patch28 -p2
-%patch39 -p0
+#%patch39 -p0
%patch40 -p1
%ifarch %arm
%patch42 -p1
%endif
+%patch100 -p0
+%patch101 -p0
+
echo '%{version}' >gcc/BASE-VER
cp -a libstdc++-v3/config/cpu/i{4,3}86/atomicity.h
@@ -389,7 +393,6 @@ cp -a libstdc++-v3/config/cpu/i{4,3}86/atomicity.h
LC_ALL=C sed -i -e 's/\xa0/ /' gcc/doc/options.texi
%build
-cp %{SOURCE1001} .
rm -fr obj-%{gcc_target_platform}
mkdir obj-%{gcc_target_platform}
cd obj-%{gcc_target_platform}
@@ -789,7 +792,6 @@ rm -rf %{buildroot}
%postun -n libmudflap -p /sbin/ldconfig
%files
-%manifest cross-armv7l-gcc-accel.manifest
%defattr(-,root,root,-)
%{_prefix}/bin/cc
%{_prefix}/bin/c89
@@ -903,7 +905,6 @@ rm -rf %{buildroot}
%doc gcc/README* gcc/COPYING*
%files -n cpp
-%manifest cross-armv7l-gcc-accel.manifest
%defattr(-,root,root,-)
/lib/cpp
%{_prefix}/bin/cpp
@@ -914,7 +915,6 @@ rm -rf %{buildroot}
%{_prefix}/libexec/gcc/%{gcc_target_platform}/%{gcc_version}/cc1
%files -n libgcc
-%manifest cross-armv7l-gcc-accel.manifest
%defattr(-,root,root,-)
/%{_lib}/libgcc_s-%{gcc_version}.so.1
/%{_lib}/libgcc_s.*
@@ -928,7 +928,6 @@ rm -rf %{buildroot}
%endif
%files c++
-%manifest cross-armv7l-gcc-accel.manifest
%defattr(-,root,root,-)
%ifnarch %{arm}
%{_prefix}/bin/%{gcc_target_platform}-*++
@@ -955,7 +954,6 @@ rm -rf %{buildroot}
%endif
%files -n libstdc++
-%manifest cross-armv7l-gcc-accel.manifest
%defattr(-,root,root,-)
%{_prefix}/%{_lib}/libstdc++.*
%dir %{_datadir}/gdb
@@ -967,7 +965,6 @@ rm -rf %{buildroot}
%{_prefix}/share/gcc-%{gcc_version}/python
%files -n libstdc++-devel
-%manifest cross-armv7l-gcc-accel.manifest
%defattr(-,root,root,-)
%dir %{_prefix}/include/c++
%dir %{_prefix}/include/c++/%{gcc_version}
@@ -984,18 +981,15 @@ rm -rf %{buildroot}
%endif
%files -n libgomp
-%manifest cross-armv7l-gcc-accel.manifest
%defattr(-,root,root,-)
%{_prefix}/%{_lib}/libgomp.*
%files -n libmudflap
-%manifest cross-armv7l-gcc-accel.manifest
%defattr(-,root,root,-)
%{_prefix}/%{_lib}/libmudflap.*
%{_prefix}/%{_lib}/libmudflapth.*
%files -n libmudflap-devel
-%manifest cross-armv7l-gcc-accel.manifest
%defattr(-,root,root,-)
%dir %{_prefix}/lib/gcc
%dir %{_prefix}/lib/gcc/%{gcc_target_platform}
@@ -1013,7 +1007,6 @@ rm -rf %{buildroot}
# cross
# \/\/\/
%files
-%manifest cross-armv7l-gcc-accel.manifest
%defattr(-,root,root,-)
%{_prefix}
# /\/\/\
diff --git a/packaging/cross-armv7l-gcc.spec b/packaging/cross-armv7l-gcc.spec
index e1124f511..1bacc8f5f 100644
--- a/packaging/cross-armv7l-gcc.spec
+++ b/packaging/cross-armv7l-gcc.spec
@@ -45,7 +45,7 @@ BuildRequires: cross-armv6l-kernel-headers cross-armv6l-binutils
%if "%{name}" == "cross-armv7l-gcc"
BuildRequires: cross-armv7l-eglibc cross-armv7l-eglibc-devel cross-armv7l-eglibc-headers
BuildRequires: cross-armv7l-kernel-headers cross-armv7l-binutils
-%define crossextraconfig %{nil}
+%define crossextraconfig --with-float=softfp --with-fpu=vfpv3 --with-arch=armv7-a
%endif
%if "%{name}" == "cross-armv7hl-gcc"
BuildRequires: cross-armv7hl-eglibc cross-armv7hl-eglibc-devel cross-armv7hl-eglibc-headers
@@ -71,7 +71,7 @@ BuildRequires: cross-armv6l-kernel-headers cross-armv6l-binutils
%if "%{name}" == "cross-armv7l-gcc-accel"
BuildRequires: cross-armv7l-eglibc cross-armv7l-eglibc-devel cross-armv7l-eglibc-headers
BuildRequires: cross-armv7l-kernel-headers cross-armv7l-binutils
-%define crossextraconfig %{nil}
+%define crossextraconfig --with-float=softfp --with-fpu=vfpv3 --with-arch=armv7-a
%endif
%if "%{name}" == "cross-armv7hl-gcc-accel"
BuildRequires: cross-armv7hl-eglibc cross-armv7hl-eglibc-devel cross-armv7hl-eglibc-headers
@@ -86,7 +86,7 @@ BuildRequires: cross-armv7nhl-kernel-headers cross-armv7nhl-binutils
# single target atm.
ExclusiveArch: %ix86
#
-# special handling for ARM build acceleration
+# special handling for Tizen ARM build acceleration
# cross-armv*-gcc-accel
%if "%(echo %{name} | sed -e "s/cross-.*-gcc-\\(.*\\)/\\1/")" == "accel"
# cross architecture
@@ -140,7 +140,6 @@ Source100: gcc-rpmlintrc
Source200: baselibs.conf
Source300: precheckin.sh
Source301: aaa_README.PACKAGER
-Source1001: packaging/cross-armv7l-gcc.manifest
BuildRequires: binutils >= 2.19.51.0.14
BuildRequires: eglibc-devel >= 2.4.90-13
@@ -188,17 +187,19 @@ Patch20:gcc-arm-earlyclobbers.diff
Patch21:libstdc++-arm-wno-abi.diff
Patch22:arm-unbreak-eabi-armv4t.diff
Patch23:gcc-multiarch.diff
-Patch24:config-ml.diff
+#Patch24:config-ml.diff
Patch25:gcc-no-add-needed.diff
Patch26:gcc-as-needed.diff
Patch27:gcc-system-root.diff
Patch28:armhf-triplet-backport.diff
-Patch39: gcc-4.5-build-id.patch
+#Patch39: gcc-4.5-build-id.patch
Patch40: gcc-4.5.1-arm-stack-protect-libgcc.patch
Patch41: libgcc_post_upgrade.c.arm.patch
Patch42: fix-memory-exhausted.patch
+Patch100: incorrect-immediate-for-movt.diff
+Patch101: libgomp-ftls-global-dynamic.diff
#We need -gnueabi indicator for ARM
%ifnarch %{arm}
%global _gnu %{nil}
@@ -368,18 +369,21 @@ This is one set of libraries which support 64bit multilib on top of
%patch21 -p2
%patch22 -p2
%patch23 -p2
-%patch24 -p2
+#%patch24 -p2
%patch25 -p2
-%patch26 -p2
+#%patch26 -p2
%patch27 -p2
%patch28 -p2
-%patch39 -p0
+#%patch39 -p0
%patch40 -p1
%ifarch %arm
%patch42 -p1
%endif
+%patch100 -p0
+%patch101 -p0
+
echo '%{version}' >gcc/BASE-VER
cp -a libstdc++-v3/config/cpu/i{4,3}86/atomicity.h
@@ -389,7 +393,6 @@ cp -a libstdc++-v3/config/cpu/i{4,3}86/atomicity.h
LC_ALL=C sed -i -e 's/\xa0/ /' gcc/doc/options.texi
%build
-cp %{SOURCE1001} .
rm -fr obj-%{gcc_target_platform}
mkdir obj-%{gcc_target_platform}
cd obj-%{gcc_target_platform}
@@ -789,7 +792,6 @@ rm -rf %{buildroot}
%postun -n libmudflap -p /sbin/ldconfig
%files
-%manifest cross-armv7l-gcc.manifest
%defattr(-,root,root,-)
%{_prefix}/bin/cc
%{_prefix}/bin/c89
@@ -903,7 +905,6 @@ rm -rf %{buildroot}
%doc gcc/README* gcc/COPYING*
%files -n cpp
-%manifest cross-armv7l-gcc.manifest
%defattr(-,root,root,-)
/lib/cpp
%{_prefix}/bin/cpp
@@ -914,7 +915,6 @@ rm -rf %{buildroot}
%{_prefix}/libexec/gcc/%{gcc_target_platform}/%{gcc_version}/cc1
%files -n libgcc
-%manifest cross-armv7l-gcc.manifest
%defattr(-,root,root,-)
/%{_lib}/libgcc_s-%{gcc_version}.so.1
/%{_lib}/libgcc_s.*
@@ -928,7 +928,6 @@ rm -rf %{buildroot}
%endif
%files c++
-%manifest cross-armv7l-gcc.manifest
%defattr(-,root,root,-)
%ifnarch %{arm}
%{_prefix}/bin/%{gcc_target_platform}-*++
@@ -955,7 +954,6 @@ rm -rf %{buildroot}
%endif
%files -n libstdc++
-%manifest cross-armv7l-gcc.manifest
%defattr(-,root,root,-)
%{_prefix}/%{_lib}/libstdc++.*
%dir %{_datadir}/gdb
@@ -967,7 +965,6 @@ rm -rf %{buildroot}
%{_prefix}/share/gcc-%{gcc_version}/python
%files -n libstdc++-devel
-%manifest cross-armv7l-gcc.manifest
%defattr(-,root,root,-)
%dir %{_prefix}/include/c++
%dir %{_prefix}/include/c++/%{gcc_version}
@@ -984,18 +981,15 @@ rm -rf %{buildroot}
%endif
%files -n libgomp
-%manifest cross-armv7l-gcc.manifest
%defattr(-,root,root,-)
%{_prefix}/%{_lib}/libgomp.*
%files -n libmudflap
-%manifest cross-armv7l-gcc.manifest
%defattr(-,root,root,-)
%{_prefix}/%{_lib}/libmudflap.*
%{_prefix}/%{_lib}/libmudflapth.*
%files -n libmudflap-devel
-%manifest cross-armv7l-gcc.manifest
%defattr(-,root,root,-)
%dir %{_prefix}/lib/gcc
%dir %{_prefix}/lib/gcc/%{gcc_target_platform}
@@ -1013,7 +1007,6 @@ rm -rf %{buildroot}
# cross
# \/\/\/
%files
-%manifest cross-armv7l-gcc.manifest
%defattr(-,root,root,-)
%{_prefix}
# /\/\/\
diff --git a/packaging/cross-armv7nhl-gcc-accel.spec b/packaging/cross-armv7nhl-gcc-accel.spec
index a609b5c13..187b8ae69 100644
--- a/packaging/cross-armv7nhl-gcc-accel.spec
+++ b/packaging/cross-armv7nhl-gcc-accel.spec
@@ -45,7 +45,7 @@ BuildRequires: cross-armv6l-kernel-headers cross-armv6l-binutils
%if "%{name}" == "cross-armv7l-gcc"
BuildRequires: cross-armv7l-eglibc cross-armv7l-eglibc-devel cross-armv7l-eglibc-headers
BuildRequires: cross-armv7l-kernel-headers cross-armv7l-binutils
-%define crossextraconfig %{nil}
+%define crossextraconfig --with-float=softfp --with-fpu=vfpv3 --with-arch=armv7-a
%endif
%if "%{name}" == "cross-armv7hl-gcc"
BuildRequires: cross-armv7hl-eglibc cross-armv7hl-eglibc-devel cross-armv7hl-eglibc-headers
@@ -71,7 +71,7 @@ BuildRequires: cross-armv6l-kernel-headers cross-armv6l-binutils
%if "%{name}" == "cross-armv7l-gcc-accel"
BuildRequires: cross-armv7l-eglibc cross-armv7l-eglibc-devel cross-armv7l-eglibc-headers
BuildRequires: cross-armv7l-kernel-headers cross-armv7l-binutils
-%define crossextraconfig %{nil}
+%define crossextraconfig --with-float=softfp --with-fpu=vfpv3 --with-arch=armv7-a
%endif
%if "%{name}" == "cross-armv7hl-gcc-accel"
BuildRequires: cross-armv7hl-eglibc cross-armv7hl-eglibc-devel cross-armv7hl-eglibc-headers
@@ -86,7 +86,7 @@ BuildRequires: cross-armv7nhl-kernel-headers cross-armv7nhl-binutils
# single target atm.
ExclusiveArch: %ix86
#
-# special handling for ARM build acceleration
+# special handling for Tizen ARM build acceleration
# cross-armv*-gcc-accel
%if "%(echo %{name} | sed -e "s/cross-.*-gcc-\\(.*\\)/\\1/")" == "accel"
# cross architecture
@@ -140,7 +140,6 @@ Source100: gcc-rpmlintrc
Source200: baselibs.conf
Source300: precheckin.sh
Source301: aaa_README.PACKAGER
-Source1001: packaging/cross-armv7nhl-gcc-accel.manifest
BuildRequires: binutils >= 2.19.51.0.14
BuildRequires: eglibc-devel >= 2.4.90-13
@@ -188,17 +187,19 @@ Patch20:gcc-arm-earlyclobbers.diff
Patch21:libstdc++-arm-wno-abi.diff
Patch22:arm-unbreak-eabi-armv4t.diff
Patch23:gcc-multiarch.diff
-Patch24:config-ml.diff
+#Patch24:config-ml.diff
Patch25:gcc-no-add-needed.diff
Patch26:gcc-as-needed.diff
Patch27:gcc-system-root.diff
Patch28:armhf-triplet-backport.diff
-Patch39: gcc-4.5-build-id.patch
+#Patch39: gcc-4.5-build-id.patch
Patch40: gcc-4.5.1-arm-stack-protect-libgcc.patch
Patch41: libgcc_post_upgrade.c.arm.patch
Patch42: fix-memory-exhausted.patch
+Patch100: incorrect-immediate-for-movt.diff
+Patch101: libgomp-ftls-global-dynamic.diff
#We need -gnueabi indicator for ARM
%ifnarch %{arm}
%global _gnu %{nil}
@@ -368,18 +369,21 @@ This is one set of libraries which support 64bit multilib on top of
%patch21 -p2
%patch22 -p2
%patch23 -p2
-%patch24 -p2
+#%patch24 -p2
%patch25 -p2
-%patch26 -p2
+#%patch26 -p2
%patch27 -p2
%patch28 -p2
-%patch39 -p0
+#%patch39 -p0
%patch40 -p1
%ifarch %arm
%patch42 -p1
%endif
+%patch100 -p0
+%patch101 -p0
+
echo '%{version}' >gcc/BASE-VER
cp -a libstdc++-v3/config/cpu/i{4,3}86/atomicity.h
@@ -389,7 +393,6 @@ cp -a libstdc++-v3/config/cpu/i{4,3}86/atomicity.h
LC_ALL=C sed -i -e 's/\xa0/ /' gcc/doc/options.texi
%build
-cp %{SOURCE1001} .
rm -fr obj-%{gcc_target_platform}
mkdir obj-%{gcc_target_platform}
cd obj-%{gcc_target_platform}
@@ -789,7 +792,6 @@ rm -rf %{buildroot}
%postun -n libmudflap -p /sbin/ldconfig
%files
-%manifest cross-armv7nhl-gcc-accel.manifest
%defattr(-,root,root,-)
%{_prefix}/bin/cc
%{_prefix}/bin/c89
@@ -903,7 +905,6 @@ rm -rf %{buildroot}
%doc gcc/README* gcc/COPYING*
%files -n cpp
-%manifest cross-armv7nhl-gcc-accel.manifest
%defattr(-,root,root,-)
/lib/cpp
%{_prefix}/bin/cpp
@@ -914,7 +915,6 @@ rm -rf %{buildroot}
%{_prefix}/libexec/gcc/%{gcc_target_platform}/%{gcc_version}/cc1
%files -n libgcc
-%manifest cross-armv7nhl-gcc-accel.manifest
%defattr(-,root,root,-)
/%{_lib}/libgcc_s-%{gcc_version}.so.1
/%{_lib}/libgcc_s.*
@@ -928,7 +928,6 @@ rm -rf %{buildroot}
%endif
%files c++
-%manifest cross-armv7nhl-gcc-accel.manifest
%defattr(-,root,root,-)
%ifnarch %{arm}
%{_prefix}/bin/%{gcc_target_platform}-*++
@@ -955,7 +954,6 @@ rm -rf %{buildroot}
%endif
%files -n libstdc++
-%manifest cross-armv7nhl-gcc-accel.manifest
%defattr(-,root,root,-)
%{_prefix}/%{_lib}/libstdc++.*
%dir %{_datadir}/gdb
@@ -967,7 +965,6 @@ rm -rf %{buildroot}
%{_prefix}/share/gcc-%{gcc_version}/python
%files -n libstdc++-devel
-%manifest cross-armv7nhl-gcc-accel.manifest
%defattr(-,root,root,-)
%dir %{_prefix}/include/c++
%dir %{_prefix}/include/c++/%{gcc_version}
@@ -984,18 +981,15 @@ rm -rf %{buildroot}
%endif
%files -n libgomp
-%manifest cross-armv7nhl-gcc-accel.manifest
%defattr(-,root,root,-)
%{_prefix}/%{_lib}/libgomp.*
%files -n libmudflap
-%manifest cross-armv7nhl-gcc-accel.manifest
%defattr(-,root,root,-)
%{_prefix}/%{_lib}/libmudflap.*
%{_prefix}/%{_lib}/libmudflapth.*
%files -n libmudflap-devel
-%manifest cross-armv7nhl-gcc-accel.manifest
%defattr(-,root,root,-)
%dir %{_prefix}/lib/gcc
%dir %{_prefix}/lib/gcc/%{gcc_target_platform}
@@ -1013,7 +1007,6 @@ rm -rf %{buildroot}
# cross
# \/\/\/
%files
-%manifest cross-armv7nhl-gcc-accel.manifest
%defattr(-,root,root,-)
%{_prefix}
# /\/\/\
diff --git a/packaging/cross-armv7nhl-gcc.spec b/packaging/cross-armv7nhl-gcc.spec
index 37a8732e0..dce5a602c 100644
--- a/packaging/cross-armv7nhl-gcc.spec
+++ b/packaging/cross-armv7nhl-gcc.spec
@@ -45,7 +45,7 @@ BuildRequires: cross-armv6l-kernel-headers cross-armv6l-binutils
%if "%{name}" == "cross-armv7l-gcc"
BuildRequires: cross-armv7l-eglibc cross-armv7l-eglibc-devel cross-armv7l-eglibc-headers
BuildRequires: cross-armv7l-kernel-headers cross-armv7l-binutils
-%define crossextraconfig %{nil}
+%define crossextraconfig --with-float=softfp --with-fpu=vfpv3 --with-arch=armv7-a
%endif
%if "%{name}" == "cross-armv7hl-gcc"
BuildRequires: cross-armv7hl-eglibc cross-armv7hl-eglibc-devel cross-armv7hl-eglibc-headers
@@ -71,7 +71,7 @@ BuildRequires: cross-armv6l-kernel-headers cross-armv6l-binutils
%if "%{name}" == "cross-armv7l-gcc-accel"
BuildRequires: cross-armv7l-eglibc cross-armv7l-eglibc-devel cross-armv7l-eglibc-headers
BuildRequires: cross-armv7l-kernel-headers cross-armv7l-binutils
-%define crossextraconfig %{nil}
+%define crossextraconfig --with-float=softfp --with-fpu=vfpv3 --with-arch=armv7-a
%endif
%if "%{name}" == "cross-armv7hl-gcc-accel"
BuildRequires: cross-armv7hl-eglibc cross-armv7hl-eglibc-devel cross-armv7hl-eglibc-headers
@@ -86,7 +86,7 @@ BuildRequires: cross-armv7nhl-kernel-headers cross-armv7nhl-binutils
# single target atm.
ExclusiveArch: %ix86
#
-# special handling for ARM build acceleration
+# special handling for Tizen ARM build acceleration
# cross-armv*-gcc-accel
%if "%(echo %{name} | sed -e "s/cross-.*-gcc-\\(.*\\)/\\1/")" == "accel"
# cross architecture
@@ -140,7 +140,6 @@ Source100: gcc-rpmlintrc
Source200: baselibs.conf
Source300: precheckin.sh
Source301: aaa_README.PACKAGER
-Source1001: packaging/cross-armv7nhl-gcc.manifest
BuildRequires: binutils >= 2.19.51.0.14
BuildRequires: eglibc-devel >= 2.4.90-13
@@ -188,17 +187,19 @@ Patch20:gcc-arm-earlyclobbers.diff
Patch21:libstdc++-arm-wno-abi.diff
Patch22:arm-unbreak-eabi-armv4t.diff
Patch23:gcc-multiarch.diff
-Patch24:config-ml.diff
+#Patch24:config-ml.diff
Patch25:gcc-no-add-needed.diff
Patch26:gcc-as-needed.diff
Patch27:gcc-system-root.diff
Patch28:armhf-triplet-backport.diff
-Patch39: gcc-4.5-build-id.patch
+#Patch39: gcc-4.5-build-id.patch
Patch40: gcc-4.5.1-arm-stack-protect-libgcc.patch
Patch41: libgcc_post_upgrade.c.arm.patch
Patch42: fix-memory-exhausted.patch
+Patch100: incorrect-immediate-for-movt.diff
+Patch101: libgomp-ftls-global-dynamic.diff
#We need -gnueabi indicator for ARM
%ifnarch %{arm}
%global _gnu %{nil}
@@ -368,18 +369,21 @@ This is one set of libraries which support 64bit multilib on top of
%patch21 -p2
%patch22 -p2
%patch23 -p2
-%patch24 -p2
+#%patch24 -p2
%patch25 -p2
-%patch26 -p2
+#%patch26 -p2
%patch27 -p2
%patch28 -p2
-%patch39 -p0
+#%patch39 -p0
%patch40 -p1
%ifarch %arm
%patch42 -p1
%endif
+%patch100 -p0
+%patch101 -p0
+
echo '%{version}' >gcc/BASE-VER
cp -a libstdc++-v3/config/cpu/i{4,3}86/atomicity.h
@@ -389,7 +393,6 @@ cp -a libstdc++-v3/config/cpu/i{4,3}86/atomicity.h
LC_ALL=C sed -i -e 's/\xa0/ /' gcc/doc/options.texi
%build
-cp %{SOURCE1001} .
rm -fr obj-%{gcc_target_platform}
mkdir obj-%{gcc_target_platform}
cd obj-%{gcc_target_platform}
@@ -789,7 +792,6 @@ rm -rf %{buildroot}
%postun -n libmudflap -p /sbin/ldconfig
%files
-%manifest cross-armv7nhl-gcc.manifest
%defattr(-,root,root,-)
%{_prefix}/bin/cc
%{_prefix}/bin/c89
@@ -903,7 +905,6 @@ rm -rf %{buildroot}
%doc gcc/README* gcc/COPYING*
%files -n cpp
-%manifest cross-armv7nhl-gcc.manifest
%defattr(-,root,root,-)
/lib/cpp
%{_prefix}/bin/cpp
@@ -914,7 +915,6 @@ rm -rf %{buildroot}
%{_prefix}/libexec/gcc/%{gcc_target_platform}/%{gcc_version}/cc1
%files -n libgcc
-%manifest cross-armv7nhl-gcc.manifest
%defattr(-,root,root,-)
/%{_lib}/libgcc_s-%{gcc_version}.so.1
/%{_lib}/libgcc_s.*
@@ -928,7 +928,6 @@ rm -rf %{buildroot}
%endif
%files c++
-%manifest cross-armv7nhl-gcc.manifest
%defattr(-,root,root,-)
%ifnarch %{arm}
%{_prefix}/bin/%{gcc_target_platform}-*++
@@ -955,7 +954,6 @@ rm -rf %{buildroot}
%endif
%files -n libstdc++
-%manifest cross-armv7nhl-gcc.manifest
%defattr(-,root,root,-)
%{_prefix}/%{_lib}/libstdc++.*
%dir %{_datadir}/gdb
@@ -967,7 +965,6 @@ rm -rf %{buildroot}
%{_prefix}/share/gcc-%{gcc_version}/python
%files -n libstdc++-devel
-%manifest cross-armv7nhl-gcc.manifest
%defattr(-,root,root,-)
%dir %{_prefix}/include/c++
%dir %{_prefix}/include/c++/%{gcc_version}
@@ -984,18 +981,15 @@ rm -rf %{buildroot}
%endif
%files -n libgomp
-%manifest cross-armv7nhl-gcc.manifest
%defattr(-,root,root,-)
%{_prefix}/%{_lib}/libgomp.*
%files -n libmudflap
-%manifest cross-armv7nhl-gcc.manifest
%defattr(-,root,root,-)
%{_prefix}/%{_lib}/libmudflap.*
%{_prefix}/%{_lib}/libmudflapth.*
%files -n libmudflap-devel
-%manifest cross-armv7nhl-gcc.manifest
%defattr(-,root,root,-)
%dir %{_prefix}/lib/gcc
%dir %{_prefix}/lib/gcc/%{gcc_target_platform}
@@ -1013,7 +1007,6 @@ rm -rf %{buildroot}
# cross
# \/\/\/
%files
-%manifest cross-armv7nhl-gcc.manifest
%defattr(-,root,root,-)
%{_prefix}
# /\/\/\
diff --git a/packaging/gcc.spec b/packaging/gcc.spec
index fbee596c1..481bca662 100644
--- a/packaging/gcc.spec
+++ b/packaging/gcc.spec
@@ -45,7 +45,7 @@ BuildRequires: cross-armv6l-kernel-headers cross-armv6l-binutils
%if "%{name}" == "cross-armv7l-gcc"
BuildRequires: cross-armv7l-eglibc cross-armv7l-eglibc-devel cross-armv7l-eglibc-headers
BuildRequires: cross-armv7l-kernel-headers cross-armv7l-binutils
-%define crossextraconfig %{nil}
+%define crossextraconfig --with-float=softfp --with-fpu=vfpv3 --with-arch=armv7-a
%endif
%if "%{name}" == "cross-armv7hl-gcc"
BuildRequires: cross-armv7hl-eglibc cross-armv7hl-eglibc-devel cross-armv7hl-eglibc-headers
@@ -71,7 +71,7 @@ BuildRequires: cross-armv6l-kernel-headers cross-armv6l-binutils
%if "%{name}" == "cross-armv7l-gcc-accel"
BuildRequires: cross-armv7l-eglibc cross-armv7l-eglibc-devel cross-armv7l-eglibc-headers
BuildRequires: cross-armv7l-kernel-headers cross-armv7l-binutils
-%define crossextraconfig %{nil}
+%define crossextraconfig --with-float=softfp --with-fpu=vfpv3 --with-arch=armv7-a
%endif
%if "%{name}" == "cross-armv7hl-gcc-accel"
BuildRequires: cross-armv7hl-eglibc cross-armv7hl-eglibc-devel cross-armv7hl-eglibc-headers
@@ -86,7 +86,7 @@ BuildRequires: cross-armv7nhl-kernel-headers cross-armv7nhl-binutils
# single target atm.
ExclusiveArch: %ix86
#
-# special handling for ARM build acceleration
+# special handling for Tizen ARM build acceleration
# cross-armv*-gcc-accel
%if "%(echo %{name} | sed -e "s/cross-.*-gcc-\\(.*\\)/\\1/")" == "accel"
# cross architecture
@@ -140,7 +140,6 @@ Source100: gcc-rpmlintrc
Source200: baselibs.conf
Source300: precheckin.sh
Source301: aaa_README.PACKAGER
-Source1001: packaging/gcc.manifest
BuildRequires: binutils >= 2.19.51.0.14
BuildRequires: eglibc-devel >= 2.4.90-13
@@ -188,17 +187,19 @@ Patch20:gcc-arm-earlyclobbers.diff
Patch21:libstdc++-arm-wno-abi.diff
Patch22:arm-unbreak-eabi-armv4t.diff
Patch23:gcc-multiarch.diff
-Patch24:config-ml.diff
+#Patch24:config-ml.diff
Patch25:gcc-no-add-needed.diff
Patch26:gcc-as-needed.diff
Patch27:gcc-system-root.diff
Patch28:armhf-triplet-backport.diff
-Patch39: gcc-4.5-build-id.patch
+#Patch39: gcc-4.5-build-id.patch
Patch40: gcc-4.5.1-arm-stack-protect-libgcc.patch
Patch41: libgcc_post_upgrade.c.arm.patch
Patch42: fix-memory-exhausted.patch
+Patch100: incorrect-immediate-for-movt.diff
+Patch101: libgomp-ftls-global-dynamic.diff
#We need -gnueabi indicator for ARM
%ifnarch %{arm}
%global _gnu %{nil}
@@ -368,18 +369,21 @@ This is one set of libraries which support 64bit multilib on top of
%patch21 -p2
%patch22 -p2
%patch23 -p2
-%patch24 -p2
+#%patch24 -p2
%patch25 -p2
-%patch26 -p2
+#%patch26 -p2
%patch27 -p2
%patch28 -p2
-%patch39 -p0
+#%patch39 -p0
%patch40 -p1
%ifarch %arm
%patch42 -p1
%endif
+%patch100 -p0
+%patch101 -p0
+
echo '%{version}' >gcc/BASE-VER
cp -a libstdc++-v3/config/cpu/i{4,3}86/atomicity.h
@@ -389,7 +393,6 @@ cp -a libstdc++-v3/config/cpu/i{4,3}86/atomicity.h
LC_ALL=C sed -i -e 's/\xa0/ /' gcc/doc/options.texi
%build
-cp %{SOURCE1001} .
rm -fr obj-%{gcc_target_platform}
mkdir obj-%{gcc_target_platform}
cd obj-%{gcc_target_platform}
@@ -789,7 +792,6 @@ rm -rf %{buildroot}
%postun -n libmudflap -p /sbin/ldconfig
%files
-%manifest gcc.manifest
%defattr(-,root,root,-)
%{_prefix}/bin/cc
%{_prefix}/bin/c89
@@ -903,7 +905,6 @@ rm -rf %{buildroot}
%doc gcc/README* gcc/COPYING*
%files -n cpp
-%manifest gcc.manifest
%defattr(-,root,root,-)
/lib/cpp
%{_prefix}/bin/cpp
@@ -914,7 +915,6 @@ rm -rf %{buildroot}
%{_prefix}/libexec/gcc/%{gcc_target_platform}/%{gcc_version}/cc1
%files -n libgcc
-%manifest gcc.manifest
%defattr(-,root,root,-)
/%{_lib}/libgcc_s-%{gcc_version}.so.1
/%{_lib}/libgcc_s.*
@@ -928,7 +928,6 @@ rm -rf %{buildroot}
%endif
%files c++
-%manifest gcc.manifest
%defattr(-,root,root,-)
%ifnarch %{arm}
%{_prefix}/bin/%{gcc_target_platform}-*++
@@ -955,7 +954,6 @@ rm -rf %{buildroot}
%endif
%files -n libstdc++
-%manifest gcc.manifest
%defattr(-,root,root,-)
%{_prefix}/%{_lib}/libstdc++.*
%dir %{_datadir}/gdb
@@ -967,7 +965,6 @@ rm -rf %{buildroot}
%{_prefix}/share/gcc-%{gcc_version}/python
%files -n libstdc++-devel
-%manifest gcc.manifest
%defattr(-,root,root,-)
%dir %{_prefix}/include/c++
%dir %{_prefix}/include/c++/%{gcc_version}
@@ -984,18 +981,15 @@ rm -rf %{buildroot}
%endif
%files -n libgomp
-%manifest gcc.manifest
%defattr(-,root,root,-)
%{_prefix}/%{_lib}/libgomp.*
%files -n libmudflap
-%manifest gcc.manifest
%defattr(-,root,root,-)
%{_prefix}/%{_lib}/libmudflap.*
%{_prefix}/%{_lib}/libmudflapth.*
%files -n libmudflap-devel
-%manifest gcc.manifest
%defattr(-,root,root,-)
%dir %{_prefix}/lib/gcc
%dir %{_prefix}/lib/gcc/%{gcc_target_platform}
@@ -1013,7 +1007,6 @@ rm -rf %{buildroot}
# cross
# \/\/\/
%files
-%manifest gcc.manifest
%defattr(-,root,root,-)
%{_prefix}
# /\/\/\
diff --git a/packaging/incorrect-immediate-for-movt.diff b/packaging/incorrect-immediate-for-movt.diff
new file mode 100644
index 000000000..b7e2b9b91
--- /dev/null
+++ b/packaging/incorrect-immediate-for-movt.diff
@@ -0,0 +1,19 @@
+--- gcc/config/arm/arm.md-ori 2012-06-13 18:09:49.423036002 +0900
++++ gcc/config/arm/arm.md 2012-06-13 18:13:38.287036001 +0900
+@@ -11186,13 +11186,15 @@
+ [(set_attr "conds" "clob")]
+ )
+
++;; We only care about the lower 16 bits of the constant
++;; being inserted into the upper 16 bits of the register.
+ (define_insn "*arm_movtas_ze"
+ [(set (zero_extract:SI (match_operand:SI 0 "s_register_operand" "+r")
+ (const_int 16)
+ (const_int 16))
+ (match_operand:SI 1 "const_int_operand" ""))]
+ "arm_arch_thumb2"
+- "movt%?\t%0, %c1"
++ "movt%?\t%0, %L1"
+ [(set_attr "predicable" "yes")
+ (set_attr "length" "4")]
+ )
diff --git a/packaging/libgomp-ftls-global-dynamic.diff b/packaging/libgomp-ftls-global-dynamic.diff
new file mode 100644
index 000000000..1f97d93bd
--- /dev/null
+++ b/packaging/libgomp-ftls-global-dynamic.diff
@@ -0,0 +1,13 @@
+diff --git libgomp/configure.tgt libgomp/configure.tgt
+index fd55277..1a1028b 100644
+--- libgomp/configure.tgt
++++ libgomp/configure.tgt
+@@ -15,7 +15,7 @@ if test $gcc_cv_have_tls = yes ; then
+ case "${target}" in
+
+ *-*-linux*)
+- XCFLAGS="${XCFLAGS} -ftls-model=initial-exec"
++ XCFLAGS="${XCFLAGS} -ftls-model=global-dynamic"
+ ;;
+ esac
+ fi
diff --git a/packaging/precheckin.sh b/packaging/precheckin.sh
index 0cb1c0585..7606fc19a 100644
--- a/packaging/precheckin.sh
+++ b/packaging/precheckin.sh
@@ -42,7 +42,6 @@ cat >> baselibs.conf << EOF
targettype ${l} requires "gcc"
targettype ${l} requires "gcc-c++"
-
targettype ${l} prefix /emul/ia32-linux
targettype ${l} extension -arm
targettype ${l} +/
@@ -58,26 +57,26 @@ cat >> baselibs.conf << EOF
targettype ${l} post " echo \"GCCVER: \$GCCVER GCCVER_NEW: \$GCCVER_NEW \" "
targettype ${l} post " if test "\${GCCVER}" == "\${GCCVER_NEW}"; then"
targettype ${l} post " echo "GCC and GCC-accel versions match. Enabling cross-compiler." "
- targettype ${l} post " for bin in gcc g++ ; do "
+ targettype ${l} post " for bin in c++ c89 c99 cpp g++ gcc gcov ; do "
targettype ${l} post " binary="/usr/bin/\${bin}" "
- targettype ${l} post " if test -e \${binary} -a ! -e \${binary}.orig-arm ; then"
- targettype ${l} post " mv \${binary} \${binary}.orig-arm && cp <prefix>\${binary} \${binary}"
- targettype ${l} post " else "
+ targettype ${l} post " if test -L \${binary} -a -e \${binary}.orig-arm ; then"
targettype ${l} post " echo "\${binary} not installed or \${binary}.orig-arm already present !" "
+ targettype ${l} post " else "
+ targettype ${l} post " mv \${binary} \${binary}.orig-arm && cp <prefix>\${binary} \${binary}"
targettype ${l} post " fi "
targettype ${l} post " done "
- targettype ${l} post " for bin in cc1 cc1plus ; do "
+ targettype ${l} post " for bin in cc1 cc1plus collect2 lto-wrapper lto1 ; do "
targettype ${l} post " binary="/usr/libexec/gcc/${l}-tizen-linux-gnueabi/\$GCCVER/\$bin" "
- targettype ${l} post " if test -e \${binary} -a ! -e \${binary}.orig-arm ; then"
- targettype ${l} post " mv \${binary} \${binary}.orig-arm && cp <prefix>/usr/libexec/gcc/${l}-tizen-linux-gnueabi/\$GCCVER_NEW/\${bin} \${binary}"
- targettype ${l} post " else "
+ targettype ${l} post " if test -L \${binary} -a -e \${binary}.orig-arm ; then"
targettype ${l} post " echo "\${binary} not installed or \${binary}.orig-arm already present !" "
+ targettype ${l} post " else "
+ targettype ${l} post " mv \${binary} \${binary}.orig-arm && cp <prefix>/usr/libexec/gcc/${l}-tizen-linux-gnueabi/\$GCCVER_NEW/\${bin} \${binary}"
targettype ${l} post " fi "
targettype ${l} post " done "
targettype ${l} post " else"
targettype ${l} post " echo "GCC and GCC-accel versions don't match. Rollback also binutils..." "
- targettype ${l} post " for bin in addr2line ar as c++filt gprov ld nm objcopy objdump ranlib readelf size strings strip ; do"
+ targettype ${l} post " for bin in addr2line ar as c++filt gprov ld ld.bfd nm objcopy objdump ranlib readelf size strings strip ; do"
targettype ${l} post " binary="/usr/bin/\${bin}" "
targettype ${l} post " if test -e \${binary}.orig-arm ; then"
targettype ${l} post " rm \${binary} && mv \${binary}.orig-arm \${binary}"
@@ -85,11 +84,14 @@ cat >> baselibs.conf << EOF
targettype ${l} post " echo "\${binary}.orig-arm not present !" "
targettype ${l} post " fi "
targettype ${l} post " done "
+ targettype ${l} post " rm -f /usr/libexec/gcc/${l}-tizen-linux-gnueabi/4.5.3/ld"
+ targettype ${l} post " rm -f /usr/libexec/gcc/${l}-tizen-linux-gnueabi/4.5.3/ld.bfd"
+
targettype ${l} post " fi"
targettype ${l} preun " export GCCVER=\$(LANG=C gcc --version | head -1 | cut -d" " -f3) "
- targettype ${l} preun " for i in gcc g++ ; do if test -e /usr/bin/\${i}.orig-arm ; then rm /usr/bin/\${i} ; mv /usr/bin/\${i}.orig-arm /usr/bin/\${i}; fi ; done "
- targettype ${l} preun " for i in cc1 cc1plus ; do cd /usr/libexec/gcc/${l}-tizen-linux-gnueabi/\$GCCVER ; if test -e \${i}.orig-arm ; then rm \${i} ; mv \${i}.orig-arm \${i} ; fi ; done "
+ targettype ${l} preun " for i in c++ c89 c99 cpp g++ gcc gcov ; do if test -e /usr/bin/\${i}.orig-arm ; then rm /usr/bin/\${i} ; mv /usr/bin/\${i}.orig-arm /usr/bin/\${i}; fi ; done "
+ targettype ${l} preun " for i in cc1 cc1plus collect2 lto-wrapper lto1 ; do cd /usr/libexec/gcc/${l}-tizen-linux-gnueabi/\$GCCVER ; if test -e \${i}.orig-arm ; then rm \${i} ; mv \${i}.orig-arm \${i} ; fi ; done "
EOF