summaryrefslogtreecommitdiff
path: root/meta/packages/gcc
diff options
context:
space:
mode:
authorRichard Purdie <richard@openedhand.com>2008-01-15 09:52:24 +0000
committerRichard Purdie <richard@openedhand.com>2008-01-15 09:52:24 +0000
commit875c1786751b90bca8749a8aaa6fdbcb26701637 (patch)
tree4477537ea2fa5710424cd3c420cca239ba865cf6 /meta/packages/gcc
parent90d3853872298e0b2a997e9a4fc8fb7b549f90d5 (diff)
downloadopenembedded-core-875c1786751b90bca8749a8aaa6fdbcb26701637.tar.gz
openembedded-core-875c1786751b90bca8749a8aaa6fdbcb26701637.tar.bz2
openembedded-core-875c1786751b90bca8749a8aaa6fdbcb26701637.tar.xz
openembedded-core-875c1786751b90bca8749a8aaa6fdbcb26701637.zip
Add gcc-native
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@3487 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/packages/gcc')
-rw-r--r--meta/packages/gcc/gcc-native.inc28
-rw-r--r--meta/packages/gcc/gcc-native_3.4.4.bb2
2 files changed, 30 insertions, 0 deletions
diff --git a/meta/packages/gcc/gcc-native.inc b/meta/packages/gcc/gcc-native.inc
new file mode 100644
index 000000000..3cf20a458
--- /dev/null
+++ b/meta/packages/gcc/gcc-native.inc
@@ -0,0 +1,28 @@
+DEPENDS = ""
+PACKAGES = ""
+PROVIDES = "gcc-native-${PV}"
+
+inherit native
+
+FILESDIR = "${@os.path.dirname(bb.data.getVar('FILE',d,1))}/gcc-${PV}"
+
+# This is intended to be a -very- basic config
+EXTRA_OECONF = "--with-local-prefix=${STAGING_DIR_TARGET}${layout_prefix} \
+ --with-newlib \
+ --disable-shared \
+ --disable-threads \
+ --disable-multilib \
+ --disable-__cxa_atexit \
+ --enable-languages=c \
+ --enable-target-optspace \
+ --program-prefix=${TARGET_PREFIX}"
+
+do_install () {
+ :
+}
+
+do_stage () {
+ cd gcc
+ oe_runmake install-common install-headers install-libgcc
+ install -m 0755 xgcc ${STAGING_BINDIR}/gcc-${PV}
+}
diff --git a/meta/packages/gcc/gcc-native_3.4.4.bb b/meta/packages/gcc/gcc-native_3.4.4.bb
new file mode 100644
index 000000000..2e5d3ac26
--- /dev/null
+++ b/meta/packages/gcc/gcc-native_3.4.4.bb
@@ -0,0 +1,2 @@
+require gcc_${PV}.bb
+require gcc-native.inc