summaryrefslogtreecommitdiff
path: root/classes/native.bbclass
blob: 04ff7d92d1dba64462ab72569d75d8b68da7c9c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
inherit base

# Native packages are built indirectly via dependency,
# no need for them to be a direct target of 'world'
EXCLUDE_FROM_WORLD = "1"

PACKAGES = ""
PACKAGE_ARCH = "${BUILD_ARCH}"

# When this class has packaging enabled, setting 
# RPROVIDES becomes unnecessary.
RPROVIDES = "${PN}"

# Need to resolve package RDEPENDS as well as DEPENDS
BUILD_ALL_DEPS = "1"

# Break the circular dependency as a result of DEPENDS
# in package.bbclass
PACKAGE_DEPENDS = ""

TARGET_ARCH = "${BUILD_ARCH}"
TARGET_OS = "${BUILD_OS}"
TARGET_VENDOR = "${BUILD_VENDOR}"
TARGET_PREFIX = "${BUILD_PREFIX}"
TARGET_CC_ARCH = "${BUILD_CC_ARCH}"

HOST_ARCH = "${BUILD_ARCH}"
HOST_OS = "${BUILD_OS}"
HOST_VENDOR = "${BUILD_VENDOR}"
HOST_PREFIX = "${BUILD_PREFIX}"
HOST_CC_ARCH = "${BUILD_CC_ARCH}"

CPPFLAGS = "${BUILD_CPPFLAGS}"
CFLAGS = "${BUILD_CFLAGS}"
CXXFLAGS = "${BUILD_CFLAGS}"
LDFLAGS = "${BUILD_LDFLAGS}"
LDFLAGS_build-darwin = "-L${STAGING_DIR}/${BUILD_SYS}/lib "


# set the compiler as well. It could have been set to something else
export CC = "${CCACHE}${HOST_PREFIX}gcc ${HOST_CC_ARCH}"
export CXX = "${CCACHE}${HOST_PREFIX}g++ ${HOST_CC_ARCH}"
export F77 = "${CCACHE}${HOST_PREFIX}g77 ${HOST_CC_ARCH}"
export CPP = "${HOST_PREFIX}gcc -E"
export LD = "${HOST_PREFIX}ld"
export CCLD = "${CC}"
export AR = "${HOST_PREFIX}ar"
export AS = "${HOST_PREFIX}as"
export RANLIB = "${HOST_PREFIX}ranlib"
export STRIP = "${HOST_PREFIX}strip"


# Path prefixes
base_prefix = "${exec_prefix}"
prefix = "${STAGING_DIR}"
exec_prefix = "${STAGING_DIR}/${BUILD_ARCH}-${BUILD_OS}"

# Base paths
base_bindir = "${base_prefix}/bin"
base_sbindir = "${base_prefix}/bin"
base_libdir = "${base_prefix}/lib"

# Architecture independent paths
sysconfdir = "${prefix}/etc"
sharedstatedir = "${prefix}/com"
localstatedir = "${prefix}/var"
infodir = "${datadir}/info"
mandir = "${datadir}/man"
docdir = "${datadir}/doc"
servicedir = "${prefix}/srv"

# Architecture dependent paths
bindir = "${exec_prefix}/bin"
sbindir = "${exec_prefix}/bin"
libexecdir = "${exec_prefix}/libexec"
libdir = "${exec_prefix}/lib"
includedir = "${exec_prefix}/include"
oldincludedir = "${exec_prefix}/include"

# Datadir is made arch dependent here, primarily
# for autoconf macros, and other things that
# may be manipulated to handle crosscompilation
# issues.
datadir = "${exec_prefix}/share"

do_stage () {
	if [ "${INHIBIT_NATIVE_STAGE_INSTALL}" != "1" ]
	then
		oe_runmake install
	fi
}

do_install () {
	true
}
n base-files/c7x0/fstab 2005/03/24 10:41:32-08:00 bkbits.net!nslu2-linux.adm Merge bk://oe-devel.bkbits.net/openembedded into bkbits.net:/repos/n/nslu2-linux/openembedded 2005/03/24 19:07:47+01:00 utwente.nl!koen x11_cvs.bb: add threads.patch 2005/03/24 02:41:28-08:00 bkbits.net!nslu2-linux.adm Merge bk://oe-devel.bkbits.net/openembedded into bkbits.net:/repos/n/nslu2-linux/openembedded 2005/03/24 11:12:07+01:00 uni-frankfurt.de!mickeyl base.bbclass: add function base_conditional that serves as an equivalent of the '?' operator in C. this is very handy to simplify some constructs in our .bb files, i.e. appending things based on if a variable has a certain value or not. Example Use: SRC_URI_append = '{base_conditional(DISTRO_TYPE,debug,file://allow-root-pw.patch,'',d)}' 2005/03/24 11:01:31+01:00 uni-frankfurt.de!mickeyl bump timezones to 1.2.0 2005/03/24 01:41:28-08:00 bkbits.net!nslu2-linux.adm Merge bk://oe-devel.bkbits.net/openembedded into bkbits.net:/repos/n/nslu2-linux/openembedded 2005/03/24 10:17:49+01:00 handhelds.org!CoreDump Just a test, no changes 2005/03/23 17:41:24-08:00 bkbits.net!nslu2-linux.adm Merge bk://oe-devel.bkbits.net/openembedded into bkbits.net:/repos/n/nslu2-linux/openembedded 2005/03/24 01:59:38+01:00 handhelds.org!zecke Libopie2 Visibility changes: -There is no difference between 1.2.0 and cvs in regards to visibility -Quote the string inside the message -Remove include-cvs.pro as it is not needed anymore 2005/03/23 16:41:34-08:00 bkbits.net!nslu2-linux.adm Merge bk://oe-devel.bkbits.net/openembedded into bkbits.net:/repos/n/nslu2-linux/openembedded 2005/03/24 00:45:36+01:00 handhelds.org!zecke Merge bk://oe-devel@oe-devel.bkbits.net/openembedded into handhelds.org:/home/ich/programming/oe/opie_move 2005/03/24 00:44:26+01:00 handhelds.org!zecke Opie 1.1.9 -> 1.2.0: -increment PV on the _cvs.bb files -remove PR from the .bb files 2005/03/23 15:41:25-08:00 bkbits.net!nslu2-linux.adm Merge bk://oe-devel.bkbits.net/openembedded into bkbits.net:/repos/n/nslu2-linux/openembedded 2005/03/24 00:37:00+01:00 handhelds.org!zecke Opie 1.1.9 -> 1.2.0: Update courtsey python and kergoths super cow power über sed skills -mv 1.1.9.bb to 1.2.0.bb -remove PR fromm 1.2.0.bb and _cvs.bb -bump PV in the _cvs.bb 2005/03/24 00:31:44+01:00 zeckescompany.nl!alwin corrected corgikeymap BKrev: 42459626c9gSuz7RwCyChCjKFbynfA 2005-02-02compute TAG line in opie.bbclass instead of in (all) opie filesMichael Lauer1 BKrev: 42014f09KAfHSQPBUOyP1omr2yGkzA 2005-02-02Merge bk://oe-devel@oe-devel.bkbits.net/openembeddedMichael Lauer1 into r2d2.tm.informatik.uni-frankfurt.de:/local/pkg/oe/packages 2005/02/02 22:44:37+01:00 handhelds.org!zecke Merge bk://oe-devel@oe-devel.bkbits.net/openembedded into handhelds.org:/home/ich/programming/oe/opemembedded-i18n 2005/02/02 22:43:34+01:00 handhelds.org!zecke Opie 1.1.9 will be tagged soon, update the .bb files to use 1.1.9 now BKrev: 42014b5fonMJIdtk9cHQS5Dw2tcXUA