diff options
Diffstat (limited to 'meta/classes/cross.bbclass')
-rw-r--r-- | meta/classes/cross.bbclass | 55 |
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' | ||
3 | EXCLUDE_FROM_WORLD = "1" | ||
4 | |||
5 | PACKAGES = "" | ||
6 | |||
7 | HOST_ARCH = "${BUILD_ARCH}" | ||
8 | HOST_VENDOR = "${BUILD_VENDOR}" | ||
9 | HOST_OS = "${BUILD_OS}" | ||
10 | HOST_PREFIX = "${BUILD_PREFIX}" | ||
11 | HOST_CC_ARCH = "${BUILD_CC_ARCH}" | ||
12 | |||
13 | CPPFLAGS = "${BUILD_CPPFLAGS}" | ||
14 | CFLAGS = "${BUILD_CFLAGS}" | ||
15 | CXXFLAGS = "${BUILD_CFLAGS}" | ||
16 | LDFLAGS = "${BUILD_LDFLAGS}" | ||
17 | LDFLAGS_build-darwin = "-L${STAGING_DIR}/${BUILD_SYS}/lib " | ||
18 | |||
19 | # Overrides for paths | ||
20 | |||
21 | # Path prefixes | ||
22 | base_prefix = "${exec_prefix}" | ||
23 | prefix = "${CROSS_DIR}" | ||
24 | exec_prefix = "${prefix}" | ||
25 | |||
26 | # Base paths | ||
27 | base_bindir = "${base_prefix}/bin" | ||
28 | base_sbindir = "${base_prefix}/bin" | ||
29 | base_libdir = "${base_prefix}/lib" | ||
30 | |||
31 | # Architecture independent paths | ||
32 | datadir = "${prefix}/share" | ||
33 | sysconfdir = "${prefix}/etc" | ||
34 | sharedstatedir = "${prefix}/com" | ||
35 | localstatedir = "${prefix}/var" | ||
36 | infodir = "${datadir}/info" | ||
37 | mandir = "${datadir}/man" | ||
38 | docdir = "${datadir}/doc" | ||
39 | servicedir = "${prefix}/srv" | ||
40 | |||
41 | # Architecture dependent paths | ||
42 | bindir = "${exec_prefix}/bin" | ||
43 | sbindir = "${exec_prefix}/bin" | ||
44 | libexecdir = "${exec_prefix}/libexec" | ||
45 | libdir = "${exec_prefix}/lib" | ||
46 | includedir = "${exec_prefix}/include" | ||
47 | oldincludedir = "${exec_prefix}/include" | ||
48 | |||
49 | do_stage () { | ||
50 | oe_runmake install | ||
51 | } | ||
52 | |||
53 | do_install () { | ||
54 | : | ||
55 | } | ||