diff options
Diffstat (limited to 'recipes/gcc/gcc-cross-kernel.inc')
-rw-r--r-- | recipes/gcc/gcc-cross-kernel.inc | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/recipes/gcc/gcc-cross-kernel.inc b/recipes/gcc/gcc-cross-kernel.inc new file mode 100644 index 0000000000..c0a8de77cc --- /dev/null +++ b/recipes/gcc/gcc-cross-kernel.inc @@ -0,0 +1,23 @@ +# 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_install () { + : +} + +do_compile () { + # This compiler is only for the kernel. Don't bother running fixincludes. + mkdir -p gcc + touch gcc/stmp-fixinc + oe_runmake +} + +do_stage () { + cd gcc + oe_runmake installdirs install-common install-headers install-libgcc + install -m 0755 xgcc ${CROSS_DIR}/bin/${TARGET_PREFIX}gcc-${PV} +} |