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"
9 target_includedir := "${includedir}"
12 OLD_MULTIMACH_ARCH := "${MULTIMACH_ARCH}"
14 OLD_PACKAGE_ARCH := ${PACKAGE_ARCH}
15 PACKAGE_ARCH = "${BUILD_ARCH}-${OLD_PACKAGE_ARCH}-sdk"
16 # Also save BASE_PACKAGE_ARCH since HOST_ARCH can influence it
17 OLD_BASE_PACKAGE_ARCH := "${BASE_PACKAGE_ARCH}"
18 BASE_PACKAGE_ARCH = "${OLD_BASE_PACKAGE_ARCH}"
20 STAGING_DIR_HOST = "${STAGING_DIR}/${HOST_SYS}-sdk"
21 STAGING_DIR_TARGET = "${STAGING_DIR}/${OLD_MULTIMACH_ARCH}${TARGET_VENDOR}-${TARGET_OS}"
23 HOST_ARCH = "${BUILD_ARCH}"
24 HOST_VENDOR = "${BUILD_VENDOR}"
25 HOST_OS = "${BUILD_OS}"
26 HOST_PREFIX = "${BUILD_PREFIX}"
27 HOST_CC_ARCH = "${BUILD_CC_ARCH}"
28 #HOST_SYS = "${HOST_ARCH}${TARGET_VENDOR}-${HOST_OS}"
29 HOST_EXEEXT = "${BUILD_EXEEXT}"
31 CPPFLAGS = "${BUILD_CPPFLAGS}"
32 CFLAGS = "${BUILD_CFLAGS}"
33 CXXFLAGS = "${BUILD_CFLAGS}"
34 LDFLAGS = "${BUILD_LDFLAGS}"
37 prefix = "${SDK_PATH}"
38 exec_prefix = "${prefix}"
39 base_prefix = "${prefix}"
42 export base_bindir = "${prefix}/bin"
43 export base_sbindir = "${prefix}/bin"
44 export base_libdir = "${prefix}/lib"
46 # Architecture independent paths
47 export datadir = "${prefix}/share"
48 export sysconfdir = "${prefix}/etc"
49 export sharedstatedir = "${datadir}/com"
50 export localstatedir = "${prefix}/var"
51 export infodir = "${datadir}/info"
52 export mandir = "${datadir}/man"
53 export docdir = "${datadir}/doc"
54 export servicedir = "${prefix}/srv"
56 # Architecture dependent paths
57 export bindir = "${prefix}/bin"
58 export sbindir = "${prefix}/bin"
59 export libexecdir = "${prefix}/libexec"
60 export libdir = "${prefix}/lib"
61 export includedir = "${prefix}/include"
62 export oldincludedir = "${prefix}/include"
64 FILES_${PN} = "${prefix}"
65 FILES_${PN}-dbg += "${prefix}/.debug \
66 ${prefix}/bin/.debug \
69 export PKG_CONFIG_SYSROOT_DIR = "${STAGING_DIR_HOST}"
71 OVERRIDES =. "virtclass-sdk:"