aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/gcc/gcc-native.inc
blob: 82c6da0e9a70a9c21682f7ee5e9467e8ed30289f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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}${prefix} \
		--with-newlib \
		--disable-shared \
		--disable-threads \
		--disable-multilib \
		--disable-__cxa_atexit \
		--enable-languages=c \
		--enable-target-optspace \
		--program-prefix=${TARGET_PREFIX}"

do_install () {
	cd gcc
	oe_runmake 'DESTDIR=${D}' install-common install-headers install-libgcc
	install -m 0755 xgcc ${D}${STAGING_BINDIR}/gcc-${PV}
}