summaryrefslogtreecommitdiffstats
path: root/openembedded/classes/native.bbclass
diff options
context:
space:
mode:
authorRichard Purdie <richard@openedhand.com>2005-08-31 10:45:47 +0000
committerRichard Purdie <richard@openedhand.com>2005-08-31 10:45:47 +0000
commit4b46c1f6e891b1ddd5968536440b888661fade3e (patch)
treee0ba2c1f56f61b868bf746da5c4feabb25b800b2 /openembedded/classes/native.bbclass
downloadpoky-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.bbclass68
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 @@
1inherit base
2
3# Native packages are built indirectly via dependency,
4# no need for them to be a direct target of 'world'
5EXCLUDE_FROM_WORLD = "1"
6
7PACKAGES = ""
8
9TARGET_ARCH = "${BUILD_ARCH}"
10TARGET_OS = "${BUILD_OS}"
11TARGET_VENDOR = "${BUILD_VENDOR}"
12TARGET_PREFIX = "${BUILD_PREFIX}"
13TARGET_CC_ARCH = "${BUILD_CC_ARCH}"
14
15HOST_ARCH = "${BUILD_ARCH}"
16HOST_OS = "${BUILD_OS}"
17HOST_VENDOR = "${BUILD_VENDOR}"
18HOST_PREFIX = "${BUILD_PREFIX}"
19HOST_CC_ARCH = "${BUILD_CC_ARCH}"
20
21CPPFLAGS = "${BUILD_CPPFLAGS}"
22CFLAGS = "${BUILD_CFLAGS}"
23CXXFLAGS = "${BUILD_CFLAGS}"
24LDFLAGS = "${BUILD_LDFLAGS}"
25
26# Path prefixes
27base_prefix = "${exec_prefix}"
28prefix = "${STAGING_DIR}"
29exec_prefix = "${STAGING_DIR}/${BUILD_ARCH}-${BUILD_OS}"
30
31# Base paths
32base_bindir = "${base_prefix}/bin"
33base_sbindir = "${base_prefix}/bin"
34base_libdir = "${base_prefix}/lib"
35
36# Architecture independent paths
37sysconfdir = "${prefix}/etc"
38sharedstatedir = "${prefix}/com"
39localstatedir = "${prefix}/var"
40infodir = "${datadir}/info"
41mandir = "${datadir}/man"
42docdir = "${datadir}/doc"
43servicedir = "${prefix}/srv"
44
45# Architecture dependent paths
46bindir = "${exec_prefix}/bin"
47sbindir = "${exec_prefix}/bin"
48libexecdir = "${exec_prefix}/libexec"
49libdir = "${exec_prefix}/lib"
50includedir = "${exec_prefix}/include"
51oldincludedir = "${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.
57datadir = "${exec_prefix}/share"
58
59do_stage () {
60 if [ "${INHIBIT_NATIVE_STAGE_INSTALL}" != "1" ]
61 then
62 oe_runmake install
63 fi
64}
65
66do_install () {
67 true
68}