2 # Note this class is deprecated and replaced by nativesdk.bbclass
6 # SDK packages are built either explicitly by the user,
7 # or indirectly via dependency. No need to be in 'world'.
8 EXCLUDE_FROM_WORLD = "1"
11 OLD_MULTIMACH_ARCH := "${MULTIMACH_ARCH}"
13 OLD_PACKAGE_ARCH := ${PACKAGE_ARCH}
14 PACKAGE_ARCH = "${BUILD_ARCH}-${OLD_PACKAGE_ARCH}-sdk"
15 # Also save BASE_PACKAGE_ARCH since HOST_ARCH can influence it
16 OLD_BASE_PACKAGE_ARCH := "${BASE_PACKAGE_ARCH}"
17 BASE_PACKAGE_ARCH = "${OLD_BASE_PACKAGE_ARCH}"
19 STAGING_DIR_HOST = "${STAGING_DIR}/${HOST_SYS}-sdk"
20 STAGING_DIR_TARGET = "${STAGING_DIR}/${OLD_MULTIMACH_ARCH}${TARGET_VENDOR}-${TARGET_OS}"
22 HOST_ARCH = "${BUILD_ARCH}"
23 HOST_VENDOR = "${BUILD_VENDOR}"
24 HOST_OS = "${BUILD_OS}"
25 HOST_PREFIX = "${BUILD_PREFIX}"
26 HOST_CC_ARCH = "${BUILD_CC_ARCH}"
27 #HOST_SYS = "${HOST_ARCH}${TARGET_VENDOR}-${HOST_OS}"
28 HOST_EXEEXT = "${BUILD_EXEEXT}"
30 CPPFLAGS = "${BUILD_CPPFLAGS}"
31 CFLAGS = "${BUILD_CFLAGS}"
32 CXXFLAGS = "${BUILD_CFLAGS}"
33 LDFLAGS = "${BUILD_LDFLAGS}"
36 prefix = "${SDK_PATH}"
37 exec_prefix = "${prefix}"
38 base_prefix = "${prefix}"
41 export base_bindir = "${prefix}/bin"
42 export base_sbindir = "${prefix}/bin"
43 export base_libdir = "${prefix}/lib"
45 # Architecture independent paths
46 export datadir = "${prefix}/share"
47 export sysconfdir = "${prefix}/etc"
48 export sharedstatedir = "${datadir}/com"
49 export localstatedir = "${prefix}/var"
50 export infodir = "${datadir}/info"
51 export mandir = "${datadir}/man"
52 export docdir = "${datadir}/doc"
53 export servicedir = "${prefix}/srv"
55 # Architecture dependent paths
56 export bindir = "${prefix}/bin"
57 export sbindir = "${prefix}/bin"
58 export libexecdir = "${prefix}/libexec"
59 export libdir = "${prefix}/lib"
60 export includedir = "${prefix}/include"
61 export oldincludedir = "${prefix}/include"
63 FILES_${PN} = "${prefix}"
64 FILES_${PN}-dbg += "${prefix}/.debug \
65 ${prefix}/bin/.debug \
68 export PKG_CONFIG_SYSROOT_DIR = "${STAGING_DIR_HOST}"