nm-applet: fix some buildproblems
[openembedded.git] / classes / cross.bbclass
blob68e3803f3e8ccd05218bb01ed7070186df6b092a
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"
5 # Save PACKAGE_ARCH before changing HOST_ARCH
6 OLD_PACKAGE_ARCH := "${PACKAGE_ARCH}"
7 PACKAGE_ARCH = "${OLD_PACKAGE_ARCH}"
8 # Also save BASE_PACKAGE_ARCH since HOST_ARCH can influence it
9 OLD_BASE_PACKAGE_ARCH := "${BASE_PACKAGE_ARCH}"
10 BASE_PACKAGE_ARCH = "${OLD_BASE_PACKAGE_ARCH}"
12 PACKAGES = ""
14 HOST_ARCH = "${BUILD_ARCH}"
15 HOST_VENDOR = "${BUILD_VENDOR}"
16 HOST_OS = "${BUILD_OS}"
17 HOST_PREFIX = "${BUILD_PREFIX}"
18 HOST_CC_ARCH = "${BUILD_CC_ARCH}"
19 HOST_EXEEXT = "${BUILD_EXEEXT}"
20 BASEPKG_HOST_SYS = "${HOST_ARCH}${HOST_VENDOR}-${HOST_OS}"
22 CPPFLAGS = "${BUILD_CPPFLAGS}"
23 CFLAGS = "${BUILD_CFLAGS}"
24 CXXFLAGS = "${BUILD_CFLAGS}"
25 LDFLAGS = "${BUILD_LDFLAGS}"
26 LDFLAGS_build-darwin = "-L${STAGING_LIBDIR_NATIVE}"
28 TOOLCHAIN_OPTIONS = ""
30 # Overrides for paths
32 # Path prefixes
33 base_prefix = "${exec_prefix}"
34 prefix = "${CROSS_DIR}"
35 exec_prefix = "${prefix}"
37 # Base paths
38 base_bindir = "${base_prefix}/bin"
39 base_sbindir = "${base_prefix}/bin"
40 base_libdir = "${base_prefix}/lib"
42 # Architecture independent paths
43 datadir = "${prefix}/share"
44 sysconfdir = "${prefix}/etc"
45 sharedstatedir = "${prefix}/com"
46 localstatedir = "${prefix}/var"
47 infodir = "${datadir}/info"
48 mandir = "${datadir}/man"
49 docdir = "${datadir}/doc"
50 servicedir = "${prefix}/srv"
52 # Architecture dependent paths
53 bindir = "${exec_prefix}/bin"
54 sbindir = "${exec_prefix}/bin"
55 libexecdir = "${exec_prefix}/libexec"
56 libdir = "${exec_prefix}/lib"
57 includedir = "${exec_prefix}/include"
58 oldincludedir = "${exec_prefix}/include"
60 do_stage () {
61         oe_runmake install
64 do_install () {
65         :