am-benchmarks: Add support for am387x-evm machine
[openembedded.git] / classes / sdk.bbclass
blob8d5b3dc330cf20b4186407f39a53729c08f6b6ff
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}"
10 target_libdir := "${libdir}"
12 # Save MULTIMACH_ARCH
13 OLD_MULTIMACH_ARCH := "${MULTIMACH_ARCH}"
14 # Save PACKAGE_ARCH
15 OLD_PACKAGE_ARCH := ${PACKAGE_ARCH}
16 PACKAGE_ARCH = "${BUILD_ARCH}-${OLD_PACKAGE_ARCH}-sdk"
17 # Also save BASE_PACKAGE_ARCH since HOST_ARCH can influence it
18 OLD_BASE_PACKAGE_ARCH := "${BASE_PACKAGE_ARCH}"
19 BASE_PACKAGE_ARCH = "${OLD_BASE_PACKAGE_ARCH}"
21 STAGING_DIR_HOST = "${STAGING_DIR}/${HOST_SYS}-sdk"
22 STAGING_DIR_TARGET = "${STAGING_DIR}/${OLD_MULTIMACH_ARCH}${TARGET_VENDOR}-${TARGET_OS}"
24 HOST_ARCH = "${BUILD_ARCH}"
25 HOST_VENDOR = "${BUILD_VENDOR}"
26 HOST_OS = "${BUILD_OS}"
27 HOST_PREFIX = "${BUILD_PREFIX}"
28 HOST_CC_ARCH = "${BUILD_CC_ARCH}"
29 #HOST_SYS = "${HOST_ARCH}${TARGET_VENDOR}-${HOST_OS}"
30 HOST_EXEEXT = "${BUILD_EXEEXT}"
32 CPPFLAGS = "${BUILD_CPPFLAGS}"
33 CFLAGS = "${BUILD_CFLAGS}"
34 CXXFLAGS = "${BUILD_CFLAGS}"
35 LDFLAGS = "${BUILD_LDFLAGS}"
37 TOOLCHAIN_OPTIONS = ""
39 # Path prefixes
40 prefix = "${SDK_PATH}"
41 exec_prefix = "${prefix}"
42 base_prefix = "${prefix}"
44 # Base paths
45 export base_bindir = "${prefix}/bin"
46 export base_sbindir = "${prefix}/bin"
47 export base_libdir = "${prefix}/lib"
49 # Architecture independent paths
50 export datadir = "${prefix}/share"
51 export sysconfdir = "${prefix}/etc"
52 export sharedstatedir = "${datadir}/com"
53 export localstatedir = "${prefix}/var"
54 export infodir = "${datadir}/info"
55 export mandir = "${datadir}/man"
56 export docdir = "${datadir}/doc"
57 export servicedir = "${prefix}/srv"
59 # Architecture dependent paths
60 export bindir = "${prefix}/bin"
61 export sbindir = "${prefix}/bin"
62 export libexecdir = "${prefix}/libexec"
63 export libdir = "${prefix}/lib"
64 export includedir = "${prefix}/include"
65 export oldincludedir = "${prefix}/include"
67 FILES_${PN} = "${prefix}"
68 FILES_${PN}-dbg += "${prefix}/.debug \
69                     ${prefix}/bin/.debug \
70                    "
72 export PKG_CONFIG_SYSROOT_DIR = "${STAGING_DIR_HOST}"
74 OVERRIDES =. "virtclass-sdk:"