summaryrefslogtreecommitdiff
path: root/meta/packages/gcc/gcc-cross-kernel.inc
diff options
context:
space:
mode:
Diffstat (limited to 'meta/packages/gcc/gcc-cross-kernel.inc')
-rw-r--r--meta/packages/gcc/gcc-cross-kernel.inc16
1 files changed, 16 insertions, 0 deletions
diff --git a/meta/packages/gcc/gcc-cross-kernel.inc b/meta/packages/gcc/gcc-cross-kernel.inc
new file mode 100644
index 0000000000..42da6fef81
--- /dev/null
+++ b/meta/packages/gcc/gcc-cross-kernel.inc
@@ -0,0 +1,16 @@
+SECTION = "devel"
+# cut-down gcc for kernel builds
+# only installs ${TARGET_PREFIX}gcc-${PV}, not ${TARGET_PREFIX}gcc.
+
+PROVIDES = "virtual/${TARGET_PREFIX}gcc-${PV}"
+
+do_install () {
+ :
+}
+
+do_stage () {
+ cd gcc
+ oe_runmake install-common install-headers install-libgcc
+ install -m 0755 xgcc ${CROSS_DIR}/bin/${TARGET_PREFIX}gcc-${PV}
+}
+