summaryrefslogtreecommitdiffstats
path: root/meta/classes/native.bbclass
diff options
context:
space:
mode:
authorRichard Purdie <richard@openedhand.com>2006-07-21 10:10:31 +0000
committerRichard Purdie <richard@openedhand.com>2006-07-21 10:10:31 +0000
commitb2f192faabe412adce79534e22efe9fb69ee40e2 (patch)
tree7076c49d4286f8a1733650bd8fbc7161af200d57 /meta/classes/native.bbclass
parent2cf0eadf9f730027833af802d7e6c90b44248f80 (diff)
downloadpoky-b2f192faabe412adce79534e22efe9fb69ee40e2.tar.gz
Rename /openembedded/ -> /meta/
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@530 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/classes/native.bbclass')
-rw-r--r--meta/classes/native.bbclass95
1 files changed, 95 insertions, 0 deletions
diff --git a/meta/classes/native.bbclass b/meta/classes/native.bbclass
new file mode 100644
index 0000000000..04ff7d92d1
--- /dev/null
+++ b/meta/classes/native.bbclass
@@ -0,0 +1,95 @@
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 = ""
8PACKAGE_ARCH = "${BUILD_ARCH}"
9
10# When this class has packaging enabled, setting
11# RPROVIDES becomes unnecessary.
12RPROVIDES = "${PN}"
13
14# Need to resolve package RDEPENDS as well as DEPENDS
15BUILD_ALL_DEPS = "1"
16
17# Break the circular dependency as a result of DEPENDS
18# in package.bbclass
19PACKAGE_DEPENDS = ""
20
21TARGET_ARCH = "${BUILD_ARCH}"
22TARGET_OS = "${BUILD_OS}"
23TARGET_VENDOR = "${BUILD_VENDOR}"
24TARGET_PREFIX = "${BUILD_PREFIX}"
25TARGET_CC_ARCH = "${BUILD_CC_ARCH}"
26
27HOST_ARCH = "${BUILD_ARCH}"
28HOST_OS = "${BUILD_OS}"
29HOST_VENDOR = "${BUILD_VENDOR}"
30HOST_PREFIX = "${BUILD_PREFIX}"
31HOST_CC_ARCH = "${BUILD_CC_ARCH}"
32
33CPPFLAGS = "${BUILD_CPPFLAGS}"
34CFLAGS = "${BUILD_CFLAGS}"
35CXXFLAGS = "${BUILD_CFLAGS}"
36LDFLAGS = "${BUILD_LDFLAGS}"
37LDFLAGS_build-darwin = "-L${STAGING_DIR}/${BUILD_SYS}/lib "
38
39
40# set the compiler as well. It could have been set to something else
41export CC = "${CCACHE}${HOST_PREFIX}gcc ${HOST_CC_ARCH}"
42export CXX = "${CCACHE}${HOST_PREFIX}g++ ${HOST_CC_ARCH}"
43export F77 = "${CCACHE}${HOST_PREFIX}g77 ${HOST_CC_ARCH}"
44export CPP = "${HOST_PREFIX}gcc -E"
45export LD = "${HOST_PREFIX}ld"
46export CCLD = "${CC}"
47export AR = "${HOST_PREFIX}ar"
48export AS = "${HOST_PREFIX}as"
49export RANLIB = "${HOST_PREFIX}ranlib"
50export STRIP = "${HOST_PREFIX}strip"
51
52
53# Path prefixes
54base_prefix = "${exec_prefix}"
55prefix = "${STAGING_DIR}"
56exec_prefix = "${STAGING_DIR}/${BUILD_ARCH}-${BUILD_OS}"
57
58# Base paths
59base_bindir = "${base_prefix}/bin"
60base_sbindir = "${base_prefix}/bin"
61base_libdir = "${base_prefix}/lib"
62
63# Architecture independent paths
64sysconfdir = "${prefix}/etc"
65sharedstatedir = "${prefix}/com"
66localstatedir = "${prefix}/var"
67infodir = "${datadir}/info"
68mandir = "${datadir}/man"
69docdir = "${datadir}/doc"
70servicedir = "${prefix}/srv"
71
72# Architecture dependent paths
73bindir = "${exec_prefix}/bin"
74sbindir = "${exec_prefix}/bin"
75libexecdir = "${exec_prefix}/libexec"
76libdir = "${exec_prefix}/lib"
77includedir = "${exec_prefix}/include"
78oldincludedir = "${exec_prefix}/include"
79
80# Datadir is made arch dependent here, primarily
81# for autoconf macros, and other things that
82# may be manipulated to handle crosscompilation
83# issues.
84datadir = "${exec_prefix}/share"
85
86do_stage () {
87 if [ "${INHIBIT_NATIVE_STAGE_INSTALL}" != "1" ]
88 then
89 oe_runmake install
90 fi
91}
92
93do_install () {
94 true
95}