aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/gcc/gcc-native.inc
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/gcc/gcc-native.inc')
-rw-r--r--recipes/gcc/gcc-native.inc26
1 files changed, 26 insertions, 0 deletions
diff --git a/recipes/gcc/gcc-native.inc b/recipes/gcc/gcc-native.inc
new file mode 100644
index 0000000000..6fa615ffc7
--- /dev/null
+++ b/recipes/gcc/gcc-native.inc
@@ -0,0 +1,26 @@
+DEPENDS = ""
+PACKAGES = ""
+PROVIDES = "gcc-native-${PV}"
+
+inherit native
+
+# 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}
+}