aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/gcc/gcc-cross-kernel.inc
blob: 6453f923da15ef318bc24e1ed6a271807d74eef8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# Cut-down gcc for kernel builds
# Only installs ${TARGET_PREFIX}gcc-${PV}, not ${TARGET_PREFIX}gcc.

DEPENDS += "gcc-cross"

PROVIDES = "virtual/${TARGET_PREFIX}gcc-${PV}"

do_compile () {
	# This compiler is only for the kernel.  Don't bother running fixincludes.
	mkdir -p gcc
	touch gcc/stmp-fixinc
	oe_runmake
}

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