blob: 81d1c9d85555e016171060f5b7b2e5689a2c4fe2 [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
20STAGING_DIR_HOST = "${STAGING_DIR}/${HOST_ARCH}${HOST_VENDOR}-${HOST_OS}"
21
22PACKAGE_ARCH = "${BUILD_ARCH}"
23
24MULTIMACH_TARGET_SYS = "${PACKAGE_ARCH}${BUILD_VENDOR}-${BUILD_OS}"
25
26export PKG_CONFIG_DIR = "${exec_prefix}/lib/pkgconfig"
27export PKG_CONFIG_SYSROOT_DIR = ""
28
29CPPFLAGS = "${BUILD_CPPFLAGS}"
30CFLAGS = "${BUILD_CFLAGS}"
31CXXFLAGS = "${BUILD_CFLAGS}"
32LDFLAGS = "${BUILD_LDFLAGS}"
33LDFLAGS_build-darwin = "-L${STAGING_LIBDIR_NATIVE}"
34
35TOOLCHAIN_OPTIONS = ""
36
37DEPENDS_GETTEXT = "gettext-native"
38
39# Path mangling needed by the cross packaging
40# Note that we use := here to ensure that libdir and includedir are
41# target paths.
42target_base_prefix := "${base_prefix}"
43target_prefix := "${prefix}"
44target_exec_prefix := "${exec_prefix}"
45target_base_libdir = "${target_base_prefix}/${baselib}"
46target_libdir = "${target_exec_prefix}/${baselib}"
47target_includedir := "${includedir}"
48
49# Overrides for paths
50CROSS_TARGET_SYS_DIR = "${TARGET_SYS}"
51prefix = "${STAGING_DIR_NATIVE}${prefix_native}"
52base_prefix = "${STAGING_DIR_NATIVE}"
53exec_prefix = "${STAGING_DIR_NATIVE}${prefix_native}"
54bindir = "${exec_prefix}/bin/${CROSS_TARGET_SYS_DIR}"
55sbindir = "${bindir}"
56base_bindir = "${bindir}"
57base_sbindir = "${bindir}"
58libdir = "${exec_prefix}/lib/${CROSS_TARGET_SYS_DIR}"
59libexecdir = "${exec_prefix}/libexec/${CROSS_TARGET_SYS_DIR}"
60
61do_populate_sysroot[sstate-inputdirs] = "${SYSROOT_DESTDIR}/${STAGING_DIR_NATIVE}/"
62do_populate_sysroot[stamp-extra-info] = ""
63do_packagedata[stamp-extra-info] = ""
64
65do_install () {
66 oe_runmake 'DESTDIR=${D}' install
67}
68
69USE_NLS = "no"
70
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050071inherit nopackages