summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--meta/packages/gcc/gcc-cross-kernel-3.4.4+csl-arm-2005q3/gcc-3.4.4-makefile-fix.patch29
-rw-r--r--meta/packages/gcc/gcc-cross-kernel.inc16
-rw-r--r--meta/packages/gcc/gcc-cross-kernel_csl-arm-2005q3.bb5
3 files changed, 50 insertions, 0 deletions
diff --git a/meta/packages/gcc/gcc-cross-kernel-3.4.4+csl-arm-2005q3/gcc-3.4.4-makefile-fix.patch b/meta/packages/gcc/gcc-cross-kernel-3.4.4+csl-arm-2005q3/gcc-3.4.4-makefile-fix.patch
new file mode 100644
index 000000000..74c1f2683
--- /dev/null
+++ b/meta/packages/gcc/gcc-cross-kernel-3.4.4+csl-arm-2005q3/gcc-3.4.4-makefile-fix.patch
@@ -0,0 +1,29 @@
+--- gcc-3.4.4/gcc/Makefile.in.orig 2005-07-25 21:00:37 +0200
++++ gcc-3.4.4/gcc/Makefile.in 2005-07-25 21:01:19 +0200
+@@ -304,7 +304,7 @@
+ if [ "$(host)" = "$(target)" ] ; then \
+ echo ar; \
+ else \
+- t='$(program_transform_name)'; echo ar | sed -e $$t ; \
++ t='$(program_transform_name)'; echo ar | sed -e "$$t" ; \
+ fi; \
+ fi`
+ AR_FLAGS_FOR_TARGET =
+@@ -317,7 +317,7 @@
+ if [ "$(host)" = "$(target)" ] ; then \
+ echo $(RANLIB); \
+ else \
+- t='$(program_transform_name)'; echo ranlib | sed -e $$t ; \
++ t='$(program_transform_name)'; echo ranlib | sed -e "$$t" ; \
+ fi; \
+ fi`
+ NM_FOR_TARGET = ` \
+@@ -329,7 +329,7 @@
+ if [ "$(host)" = "$(target)" ] ; then \
+ echo nm; \
+ else \
+- t='$(program_transform_name)'; echo nm | sed -e $$t ; \
++ t='$(program_transform_name)'; echo nm | sed -e "$$t" ; \
+ fi; \
+ fi`
+
diff --git a/meta/packages/gcc/gcc-cross-kernel.inc b/meta/packages/gcc/gcc-cross-kernel.inc
new file mode 100644
index 000000000..42da6fef8
--- /dev/null
+++ b/meta/packages/gcc/gcc-cross-kernel.inc
@@ -0,0 +1,16 @@
+SECTION = "devel"
+# cut-down gcc for kernel builds
+# only installs ${TARGET_PREFIX}gcc-${PV}, not ${TARGET_PREFIX}gcc.
+
+PROVIDES = "virtual/${TARGET_PREFIX}gcc-${PV}"
+
+do_install () {
+ :
+}
+
+do_stage () {
+ cd gcc
+ oe_runmake install-common install-headers install-libgcc
+ install -m 0755 xgcc ${CROSS_DIR}/bin/${TARGET_PREFIX}gcc-${PV}
+}
+
diff --git a/meta/packages/gcc/gcc-cross-kernel_csl-arm-2005q3.bb b/meta/packages/gcc/gcc-cross-kernel_csl-arm-2005q3.bb
new file mode 100644
index 000000000..cf1542d1e
--- /dev/null
+++ b/meta/packages/gcc/gcc-cross-kernel_csl-arm-2005q3.bb
@@ -0,0 +1,5 @@
+require gcc-cross-initial_${PV}.bb
+require gcc-cross-kernel.inc
+
+SRC_URI += "file://gcc-3.4.4-makefile-fix.patch;patch=1"
+