2 # Note this class is deprecated and replaced by nativesdk.bbclass
5 # Canadian native packages are built indirectly via dependency,
6 # no need for them to be a direct target of 'world'
7 EXCLUDE_FROM_WORLD = "1"
13 BASE_PACKAGE_ARCH = "${SDK_ARCH}"
14 BASEPKG_HOST_SYS = "${SDK_ARCH}${SDK_VENDOR}-${SDK_OS}"
15 BASEPKG_TARGET_SYS = "${SDK_ARCH}${SDK_VENDOR}-${SDK_OS}"
17 HOST_ARCH = "${SDK_ARCH}"
18 HOST_VENDOR = "${SDK_VENDOR}"
20 HOST_PREFIX = "${SDK_PREFIX}"
21 HOST_CC_ARCH = "${SDK_CC_ARCH}"
22 HOST_EXEEXT = "${SDK_EXEEXT}"
24 TARGET_ARCH = "${SDK_ARCH}"
25 TARGET_VENDOR = "${SDK_VENDOR}"
26 TARGET_OS = "${SDK_OS}"
27 TARGET_PREFIX = "${SDK_PREFIX}"
28 TARGET_CC_ARCH = "${SDK_CC_ARCH}"
29 TARGET_EXEEXT = "${SDK_EXEEXT}"
31 CPPFLAGS = "${SDK_CPPFLAGS}"
32 CFLAGS = "${SDK_CFLAGS}"
33 CXXFLAGS = "${SDK_CFLAGS}"
34 LDFLAGS = "${SDK_LDFLAGS}"
36 # set the compiler as well. It could have been set to something else
37 export CC = "${CCACHE}${SDK_PREFIX}gcc ${HOST_CC_ARCH}"
38 export CXX = "${CCACHE}${SDK_PREFIX}g++ ${HOST_CC_ARCH}"
39 export F77 = "${CCACHE}${SDK_PREFIX}g77 ${HOST_CC_ARCH}"
40 export CPP = "${SDK_PREFIX}gcc -E"
41 export LD = "${SDK_PREFIX}ld"
42 #export CCLD = "${CC}"
43 export AR = "${SDK_PREFIX}ar"
44 export AS = "${SDK_PREFIX}as"
45 export RANLIB = "${SDK_PREFIX}ranlib"
46 export STRIP = "${SDK_PREFIX}strip"
49 # Change to place files in SDKPATH
51 exec_prefix = "${SDKPATH}"
52 base_prefix = "${SDKPATH}"
54 export PKG_CONFIG_DIR = "${STAGING_DIR_HOST}${libdir}/pkgconfig"
55 export PKG_CONFIG_SYSROOT_DIR = "${STAGING_DIR_HOST}"
58 if [ "${INHIBIT_NATIVE_STAGE_INSTALL}" != "1" ]
60 if [ "${AUTOTOOLS_NATIVE_STAGE_INSTALL}" != "1" ]