summaryrefslogtreecommitdiffstats
path: root/meta/classes/cross.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes/cross.bbclass')
-rw-r--r--meta/classes/cross.bbclass55
1 files changed, 55 insertions, 0 deletions
diff --git a/meta/classes/cross.bbclass b/meta/classes/cross.bbclass
new file mode 100644
index 0000000000..09357acbe8
--- /dev/null
+++ b/meta/classes/cross.bbclass
@@ -0,0 +1,55 @@
1# Cross packages are built indirectly via dependency,
2# no need for them to be a direct target of 'world'
3EXCLUDE_FROM_WORLD = "1"
4
5PACKAGES = ""
6
7HOST_ARCH = "${BUILD_ARCH}"
8HOST_VENDOR = "${BUILD_VENDOR}"
9HOST_OS = "${BUILD_OS}"
10HOST_PREFIX = "${BUILD_PREFIX}"
11HOST_CC_ARCH = "${BUILD_CC_ARCH}"
12
13CPPFLAGS = "${BUILD_CPPFLAGS}"
14CFLAGS = "${BUILD_CFLAGS}"
15CXXFLAGS = "${BUILD_CFLAGS}"
16LDFLAGS = "${BUILD_LDFLAGS}"
17LDFLAGS_build-darwin = "-L${STAGING_DIR}/${BUILD_SYS}/lib "
18
19# Overrides for paths
20
21# Path prefixes
22base_prefix = "${exec_prefix}"
23prefix = "${CROSS_DIR}"
24exec_prefix = "${prefix}"
25
26# Base paths
27base_bindir = "${base_prefix}/bin"
28base_sbindir = "${base_prefix}/bin"
29base_libdir = "${base_prefix}/lib"
30
31# Architecture independent paths
32datadir = "${prefix}/share"
33sysconfdir = "${prefix}/etc"
34sharedstatedir = "${prefix}/com"
35localstatedir = "${prefix}/var"
36infodir = "${datadir}/info"
37mandir = "${datadir}/man"
38docdir = "${datadir}/doc"
39servicedir = "${prefix}/srv"
40
41# Architecture dependent paths
42bindir = "${exec_prefix}/bin"
43sbindir = "${exec_prefix}/bin"
44libexecdir = "${exec_prefix}/libexec"
45libdir = "${exec_prefix}/lib"
46includedir = "${exec_prefix}/include"
47oldincludedir = "${exec_prefix}/include"
48
49do_stage () {
50 oe_runmake install
51}
52
53do_install () {
54 :
55}