blob: 01b09337ae069382022072bc45151e9d86ebab20 [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001inherit relocatable
2
3# Cross packages are built indirectly via dependency,
4# no need for them to be a direct target of 'world'
5EXCLUDE_FROM_WORLD = "1"
6
7CLASSOVERRIDE = "class-cross"
8PACKAGES = ""
9PACKAGES_DYNAMIC = ""
10PACKAGES_DYNAMIC_class-native = ""
11
12HOST_ARCH = "${BUILD_ARCH}"
13HOST_VENDOR = "${BUILD_VENDOR}"
14HOST_OS = "${BUILD_OS}"
15HOST_PREFIX = "${BUILD_PREFIX}"
16HOST_CC_ARCH = "${BUILD_CC_ARCH}"
17HOST_LD_ARCH = "${BUILD_LD_ARCH}"
18HOST_AS_ARCH = "${BUILD_AS_ARCH}"
19
Patrick Williamsc0f7c042017-02-23 20:41:17 -060020export lt_cv_sys_lib_dlsearch_path_spec = "${libdir} ${base_libdir} /lib /lib64 /usr/lib /usr/lib64"
21
Patrick Williamsc124f4f2015-09-15 14:41:29 -050022STAGING_DIR_HOST = "${STAGING_DIR}/${HOST_ARCH}${HOST_VENDOR}-${HOST_OS}"
23
24PACKAGE_ARCH = "${BUILD_ARCH}"
25
26MULTIMACH_TARGET_SYS = "${PACKAGE_ARCH}${BUILD_VENDOR}-${BUILD_OS}"
27
28export PKG_CONFIG_DIR = "${exec_prefix}/lib/pkgconfig"
29export PKG_CONFIG_SYSROOT_DIR = ""
30
31CPPFLAGS = "${BUILD_CPPFLAGS}"
32CFLAGS = "${BUILD_CFLAGS}"
33CXXFLAGS = "${BUILD_CFLAGS}"
34LDFLAGS = "${BUILD_LDFLAGS}"
35LDFLAGS_build-darwin = "-L${STAGING_LIBDIR_NATIVE}"
36
37TOOLCHAIN_OPTIONS = ""
38
39DEPENDS_GETTEXT = "gettext-native"
40
41# Path mangling needed by the cross packaging
42# Note that we use := here to ensure that libdir and includedir are
43# target paths.
44target_base_prefix := "${base_prefix}"
45target_prefix := "${prefix}"
46target_exec_prefix := "${exec_prefix}"
47target_base_libdir = "${target_base_prefix}/${baselib}"
48target_libdir = "${target_exec_prefix}/${baselib}"
49target_includedir := "${includedir}"
50
51# Overrides for paths
52CROSS_TARGET_SYS_DIR = "${TARGET_SYS}"
53prefix = "${STAGING_DIR_NATIVE}${prefix_native}"
54base_prefix = "${STAGING_DIR_NATIVE}"
55exec_prefix = "${STAGING_DIR_NATIVE}${prefix_native}"
56bindir = "${exec_prefix}/bin/${CROSS_TARGET_SYS_DIR}"
57sbindir = "${bindir}"
58base_bindir = "${bindir}"
59base_sbindir = "${bindir}"
60libdir = "${exec_prefix}/lib/${CROSS_TARGET_SYS_DIR}"
61libexecdir = "${exec_prefix}/libexec/${CROSS_TARGET_SYS_DIR}"
62
63do_populate_sysroot[sstate-inputdirs] = "${SYSROOT_DESTDIR}/${STAGING_DIR_NATIVE}/"
64do_populate_sysroot[stamp-extra-info] = ""
65do_packagedata[stamp-extra-info] = ""
66
67do_install () {
68 oe_runmake 'DESTDIR=${D}' install
69}
70
71USE_NLS = "no"
72
Patrick Williamsc0f7c042017-02-23 20:41:17 -060073export CC = "${BUILD_CC}"
74export CXX = "${BUILD_CXX}"
75export FC = "${BUILD_FC}"
76export CPP = "${BUILD_CPP}"
77export LD = "${BUILD_LD}"
78export CCLD = "${BUILD_CCLD}"
79export AR = "${BUILD_AR}"
80export AS = "${BUILD_AS}"
81export RANLIB = "${BUILD_RANLIB}"
82export STRIP = "${BUILD_STRIP}"
83export NM = "${BUILD_NM}"
84
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050085inherit nopackages