Skip to contentSkip to conversation

gcc_4.5.1.linaro: implement new gcc recipe from linaro code

PATCH New Nitin A Kamble 1 participant 1 message Dec 1, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 2/3 gcc_4.5.1.linaro: implement new gcc recipe from linaro code

These recipes are created by using linaro gcc source code and existing gcc recipes in the poky.

Rebased patches to the linaro gcc code:

These two patches needed rebasing, as some of the code form these patches is already in the linaro tree code.
gcc-4.5.linaro/gcc-flags-for-build.patch gcc-4.5.linaro/gcc-poison-system-directories.patch

change the version to 4.5.1.linaro:

Change the version to 4.5.1.linaro as it reflects the linaro's gcc source tree's version correctly.

New Patch:
change_base_version_to_4.5.1.linaro.patch
This is a new patch to reflect the change in the version in the BASE_VER in the source code; more documentation in the patch.

---
 recipes-devtools/gcc/gcc-4.5.1.linaro.inc          |   54 +++++++
 .../change_base_version_to_4.5.1.linaro.patch      |   14 ++
 .../gcc/gcc-4.5.1.linaro/gcc-flags-for-build.patch |  152 ++++++++++++++++++++
 .../gcc-poison-system-directories.patch            |   94 ++++++++++++
 .../gcc/gcc-cross-initial_4.5.1.linaro.bb          |    5 +
 .../gcc/gcc-cross-intermediate_4.5.1.linaro.bb     |    4 +
 recipes-devtools/gcc/gcc-cross_4.5.1.linaro.bb     |   10 ++
 .../gcc/gcc-crosssdk-initial_4.5.1.linaro.bb       |    4 +
 .../gcc/gcc-crosssdk-intermediate_4.5.1.linaro.bb  |    4 +
 recipes-devtools/gcc/gcc-crosssdk_4.5.1.linaro.bb  |    4 +
 recipes-devtools/gcc/gcc-runtime_4.5.1.linaro.bb   |   11 ++
 recipes-devtools/gcc/gcc_4.5.1.linaro.bb           |   10 ++
 12 files changed, 366 insertions(+), 0 deletions(-)
 create mode 100644 recipes-devtools/gcc/gcc-4.5.1.linaro.inc
 create mode 100644 recipes-devtools/gcc/gcc-4.5.1.linaro/change_base_version_to_4.5.1.linaro.patch
 create mode 100644 recipes-devtools/gcc/gcc-4.5.1.linaro/gcc-flags-for-build.patch
 create mode 100644 recipes-devtools/gcc/gcc-4.5.1.linaro/gcc-poison-system-directories.patch
 create mode 100644 recipes-devtools/gcc/gcc-cross-initial_4.5.1.linaro.bb
 create mode 100644 recipes-devtools/gcc/gcc-cross-intermediate_4.5.1.linaro.bb
 create mode 100644 recipes-devtools/gcc/gcc-cross_4.5.1.linaro.bb
 create mode 100644 recipes-devtools/gcc/gcc-crosssdk-initial_4.5.1.linaro.bb
 create mode 100644 recipes-devtools/gcc/gcc-crosssdk-intermediate_4.5.1.linaro.bb
 create mode 100644 recipes-devtools/gcc/gcc-crosssdk_4.5.1.linaro.bb
 create mode 100644 recipes-devtools/gcc/gcc-runtime_4.5.1.linaro.bb
 create mode 100644 recipes-devtools/gcc/gcc_4.5.1.linaro.bb
recipes-devtools/gcc/gcc-4.5.1.linaro.inc new file +54 -0
new file mode 100644
index 0000000..43f5cd2
@@ -0,0 +1,54 @@
+require recipes-devtools/gcc/gcc-4.5.1.inc
+
+FILESPATH = "${FILE_DIRNAME}/gcc-${PV}/:${FILE_DIRNAME}/gcc-4.5.1/"
+FILESDIR = "${WORKDIR}"
+
+SRC_URI = "http://launchpad.net/gcc-linaro/4.5/4.5-2010.11-0/+download/gcc-linaro-4.5-2010.11-1.tar.bz2 \
+	   file://change_base_version_to_4.5.1.linaro.patch \
+	   file://gcc-4.3.1-ARCH_FLAGS_FOR_TARGET.patch \
+	   file://100-uclibc-conf.patch \
+           file://gcc-uclibc-locale-ctype_touplow_t.patch \
+	   file://cache-amnesia.patch \
+	   file://gcc-flags-for-build.patch \
+	   file://libstdc++-emit-__cxa_end_cleanup-in-text.patch \
+	   file://arm-bswapsi2.patch \
+		\
+           file://fedora/gcc43-c++-builtin-redecl.patch;striplevel=0 \
+           file://fedora/gcc43-ia64-libunwind.patch;striplevel=0 \
+           file://fedora/gcc43-java-nomulti.patch;striplevel=0 \
+           file://fedora/gcc43-ppc32-retaddr.patch;striplevel=0 \
+           file://fedora/gcc43-pr32139.patch;striplevel=0 \
+           file://fedora/gcc43-pr33763.patch;striplevel=0 \
+           file://fedora/gcc43-rh330771.patch;striplevel=0 \
+           file://fedora/gcc43-rh341221.patch;striplevel=0 \
+           file://fedora/gcc43-java-debug-iface-type.patch;striplevel=0 \
+           file://fedora/gcc43-i386-libgomp.patch;striplevel=0 \
+           file://103-uclibc-conf-noupstream.patch  \
+           file://200-uclibc-locale.patch  \
+           file://203-uclibc-locale-no__x.patch;striplevel=1 \
+           file://204-uclibc-locale-wchar_fix.patch;striplevel=1 \
+           file://205-uclibc-locale-update.patch;striplevel=1 \
+           file://301-missing-execinfo_h.patch  \
+           file://302-c99-snprintf.patch  \
+           file://303-c99-complex-ugly-hack.patch  \
+           file://304-index_macro.patch  \
+           file://305-libmudflap-susv3-legacy.patch  \
+           file://306-libstdc++-namespace.patch  \
+           file://740-sh-pr24836.patch  \
+           file://800-arm-bigendian.patch  \
+           file://904-flatten-switch-stmt-00.patch  \
+           file://arm-nolibfloat.patch  \
+           file://arm-softfloat.patch \
+           file://zecke-xgcc-cpp.patch \
+           file://gcc-poison-system-directories.patch \
+           file://gcc-poison-dir-extend.patch \
+           file://gcc-4.3.3-SYSROOT_CFLAGS_FOR_TARGET.patch \
+	   file://64bithack.patch \
+	   file://optional_libstdc.patch \
+	   file://disable_relax_pic_calls_flag.patch \
+	   file://gcc-poison-parameters.patch \
+	  "
+
+do_unpack_append() {
+	mv gcc-linaro-4.5-2010.11-1 gcc-${PV}
+}
recipes-devtools/gcc/gcc-4.5.1.linaro/change_base_version_to_4.5.1.linaro.patch new file +14 -0
new file mode 100644
index 0000000..304aa5e
@@ -0,0 +1,14 @@
+The gcc recipes need imatching base version in the code and the ${PV}. 
+Otherwise supporting tools like as, ld, cpp, ar, nm, ranlib, objcopy, 
+objdump, strip, gcc can not be found correctly.
+
+Nitin A Kamble <[email protected]>
+2010/11/24
+
+Index: gcc-linaro-4.5-2010.11-1/gcc/BASE-VER
+===================================================================
+--- gcc-linaro-4.5-2010.11-1.orig/gcc/BASE-VER
++++ gcc-linaro-4.5-2010.11-1/gcc/BASE-VER
+@@ -1 +1 @@
+-4.5.2
++4.5.1.linaro
recipes-devtools/gcc/gcc-4.5.1.linaro/gcc-flags-for-build.patch new file +152 -0

152 lines not on this page · raw message

recipes-devtools/gcc/gcc-4.5.1.linaro/gcc-poison-system-directories.patch new file +94 -0

94 lines not on this page · raw message

recipes-devtools/gcc/gcc-cross-initial_4.5.1.linaro.bb new file +5 -0
new file mode 100644
index 0000000..8a9507e
@@ -0,0 +1,5 @@
+require gcc-cross_${PV}.bb
+require recipes-devtools/gcc/gcc-cross-initial.inc
+
+PR = "r0"
+
recipes-devtools/gcc/gcc-cross-intermediate_4.5.1.linaro.bb new file +4 -0
new file mode 100644
index 0000000..f276d68
@@ -0,0 +1,4 @@
+require gcc-cross_${PV}.bb
+require recipes-devtools/gcc/gcc-cross-intermediate.inc
+PR = "r0"
+
recipes-devtools/gcc/gcc-cross_4.5.1.linaro.bb new file +10 -0
new file mode 100644
index 0000000..fe78e38
@@ -0,0 +1,10 @@
+PR = "r0"
+
+require gcc-${PV}.inc
+require recipes-devtools/gcc/gcc-cross4.inc
+
+EXTRA_OECONF += "--disable-libunwind-exceptions \
+                 --with-mpfr=${STAGING_DIR_NATIVE}${prefix_native} \
+                 --with-system-zlib "
+
+ARCH_FLAGS_FOR_TARGET += "-isystem${STAGING_DIR_TARGET}${target_includedir}"
recipes-devtools/gcc/gcc-crosssdk-initial_4.5.1.linaro.bb new file +4 -0
new file mode 100644
index 0000000..89575b5
@@ -0,0 +1,4 @@
+require gcc-cross-initial_${PV}.bb
+require recipes-devtools/gcc/gcc-crosssdk-initial.inc
+
+PR = "r0"
recipes-devtools/gcc/gcc-crosssdk-intermediate_4.5.1.linaro.bb new file +4 -0
new file mode 100644
index 0000000..5d2c18d
@@ -0,0 +1,4 @@
+require gcc-cross-intermediate_${PV}.bb
+require recipes-devtools/gcc/gcc-crosssdk-intermediate.inc
+
+PR = "r0"
recipes-devtools/gcc/gcc-crosssdk_4.5.1.linaro.bb new file +4 -0
new file mode 100644
index 0000000..14dc253
@@ -0,0 +1,4 @@
+require gcc-cross_${PV}.bb
+require recipes-devtools/gcc/gcc-crosssdk.inc
+
+PR = "r0"
recipes-devtools/gcc/gcc-runtime_4.5.1.linaro.bb new file +11 -0
new file mode 100644
index 0000000..47a5eb4
@@ -0,0 +1,11 @@
+PR = "r0"
+
+require gcc-${PV}.inc
+require recipes-devtools/gcc/gcc-configure-runtime.inc
+require recipes-devtools/gcc/gcc-package-runtime.inc
+
+SRC_URI_append = "file://fortran-cross-compile-hack.patch"
+
+ARCH_FLAGS_FOR_TARGET += "-isystem${STAGING_INCDIR}"
+
+EXTRA_OECONF += "--disable-libunwind-exceptions"
recipes-devtools/gcc/gcc_4.5.1.linaro.bb new file +10 -0
new file mode 100644
index 0000000..6a73b59
@@ -0,0 +1,10 @@
+PR = "r0"
+
+require gcc-${PV}.inc
+require recipes-devtools/gcc/gcc-configure-target.inc
+require recipes-devtools/gcc/gcc-package-target.inc
+
+SRC_URI_append = "file://fortran-cross-compile-hack.patch"
+
+ARCH_FLAGS_FOR_TARGET += "-isystem${STAGING_INCDIR}"
+
Signature · 1 line
1.7.1