use better flash error correction for dm800,dm800se,dm500hd
[openembedded.git] / classes / cross-canadian.bbclass
1 # SDK packages are built either explicitly by the user,
2 # or indirectly via dependency.  No need to be in 'world'.
3 EXCLUDE_FROM_WORLD = "1"
4
5 # Save MULTIMACH_ARCH
6 OLD_MULTIMACH_ARCH := "${MULTIMACH_ARCH}"
7 # Save PACKAGE_ARCH
8 OLD_PACKAGE_ARCH := ${PACKAGE_ARCH}
9 PACKAGE_ARCH = "${SDK_ARCH}-${TARGET_ARCH}-canadian"
10 PACKAGE_ARCHS = "${PACKAGE_ARCH}"
11 # Also save BASE_PACKAGE_ARCH since HOST_ARCH can influence it
12 OLD_BASE_PACKAGE_ARCH := "${BASE_PACKAGE_ARCH}"
13 BASE_PACKAGE_ARCH = "${OLD_BASE_PACKAGE_ARCH}"
14
15 INHIBIT_DEFAULT_DEPS = "1"
16
17 STAGING_DIR_HOST = "${STAGING_DIR}/${HOST_SYS}-nativesdk"
18 STAGING_DIR_TARGET = "${STAGING_DIR}/${BASEPKG_TARGET_SYS}"
19
20 PATH_append = ":${TMPDIR}/cross/${HOST_ARCH}/${bindir_cross}"
21 PKGDATA_DIR = "${TMPDIR}/pkgdata/${HOST_ARCH}-nativesdk${HOST_VENDOR}-${HOST_OS}"
22
23 HOST_ARCH = "${SDK_ARCH}"
24 HOST_VENDOR = "${SDK_VENDOR}"
25 HOST_OS = "${SDK_OS}"
26 HOST_PREFIX = "${SDK_PREFIX}"
27 HOST_CC_ARCH = "${SDK_CC_ARCH}"
28
29 CPPFLAGS = "${BUILDSDK_CPPFLAGS}"
30 CFLAGS = "${BUILDSDK_CFLAGS}"
31 CXXFLAGS = "${BUILDSDK_CFLAGS}"
32 LDFLAGS = "${BUILDSDK_LDFLAGS}"
33
34 # Change to place files in SDKPATH
35 prefix = "${SDKPATH}"
36 exec_prefix = "${SDKPATH}"
37 base_prefix = "${SDKPATH}"
38
39 FILES_${PN} = "${prefix}"
40 FILES_${PN}-dbg += "${prefix}/.debug \
41                     ${prefix}/bin/.debug \
42                    "
43
44 export PKG_CONFIG_DIR = "${STAGING_DIR_HOST}${layout_libdir}/pkgconfig"
45 export PKG_CONFIG_SYSROOT_DIR = "${STAGING_DIR_HOST}"
46