diff options
author | Richard Purdie <richard@openedhand.com> | 2005-08-31 10:45:47 +0000 |
---|---|---|
committer | Richard Purdie <richard@openedhand.com> | 2005-08-31 10:45:47 +0000 |
commit | 4b46c1f6e891b1ddd5968536440b888661fade3e (patch) | |
tree | e0ba2c1f56f61b868bf746da5c4feabb25b800b2 /openembedded/classes/native.bbclass | |
download | poky-4b46c1f6e891b1ddd5968536440b888661fade3e.tar.gz |
Initial population
git-svn-id: https://svn.o-hand.com/repos/poky@1 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'openembedded/classes/native.bbclass')
-rw-r--r-- | openembedded/classes/native.bbclass | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/openembedded/classes/native.bbclass b/openembedded/classes/native.bbclass new file mode 100644 index 0000000000..955a8ae646 --- /dev/null +++ b/openembedded/classes/native.bbclass | |||
@@ -0,0 +1,68 @@ | |||
1 | inherit base | ||
2 | |||
3 | # Native packages are built indirectly via dependency, | ||
4 | # no need for them to be a direct target of 'world' | ||
5 | EXCLUDE_FROM_WORLD = "1" | ||
6 | |||
7 | PACKAGES = "" | ||
8 | |||
9 | TARGET_ARCH = "${BUILD_ARCH}" | ||
10 | TARGET_OS = "${BUILD_OS}" | ||
11 | TARGET_VENDOR = "${BUILD_VENDOR}" | ||
12 | TARGET_PREFIX = "${BUILD_PREFIX}" | ||
13 | TARGET_CC_ARCH = "${BUILD_CC_ARCH}" | ||
14 | |||
15 | HOST_ARCH = "${BUILD_ARCH}" | ||
16 | HOST_OS = "${BUILD_OS}" | ||
17 | HOST_VENDOR = "${BUILD_VENDOR}" | ||
18 | HOST_PREFIX = "${BUILD_PREFIX}" | ||
19 | HOST_CC_ARCH = "${BUILD_CC_ARCH}" | ||
20 | |||
21 | CPPFLAGS = "${BUILD_CPPFLAGS}" | ||
22 | CFLAGS = "${BUILD_CFLAGS}" | ||
23 | CXXFLAGS = "${BUILD_CFLAGS}" | ||
24 | LDFLAGS = "${BUILD_LDFLAGS}" | ||
25 | |||
26 | # Path prefixes | ||
27 | base_prefix = "${exec_prefix}" | ||
28 | prefix = "${STAGING_DIR}" | ||
29 | exec_prefix = "${STAGING_DIR}/${BUILD_ARCH}-${BUILD_OS}" | ||
30 | |||
31 | # Base paths | ||
32 | base_bindir = "${base_prefix}/bin" | ||
33 | base_sbindir = "${base_prefix}/bin" | ||
34 | base_libdir = "${base_prefix}/lib" | ||
35 | |||
36 | # Architecture independent paths | ||
37 | sysconfdir = "${prefix}/etc" | ||
38 | sharedstatedir = "${prefix}/com" | ||
39 | localstatedir = "${prefix}/var" | ||
40 | infodir = "${datadir}/info" | ||
41 | mandir = "${datadir}/man" | ||
42 | docdir = "${datadir}/doc" | ||
43 | servicedir = "${prefix}/srv" | ||
44 | |||
45 | # Architecture dependent paths | ||
46 | bindir = "${exec_prefix}/bin" | ||
47 | sbindir = "${exec_prefix}/bin" | ||
48 | libexecdir = "${exec_prefix}/libexec" | ||
49 | libdir = "${exec_prefix}/lib" | ||
50 | includedir = "${exec_prefix}/include" | ||
51 | oldincludedir = "${exec_prefix}/include" | ||
52 | |||
53 | # Datadir is made arch dependent here, primarily | ||
54 | # for autoconf macros, and other things that | ||
55 | # may be manipulated to handle crosscompilation | ||
56 | # issues. | ||
57 | datadir = "${exec_prefix}/share" | ||
58 | |||
59 | do_stage () { | ||
60 | if [ "${INHIBIT_NATIVE_STAGE_INSTALL}" != "1" ] | ||
61 | then | ||
62 | oe_runmake install | ||
63 | fi | ||
64 | } | ||
65 | |||
66 | do_install () { | ||
67 | true | ||
68 | } | ||