blob: 3eab5b907b7ddd1bf17e585b40815c588a9e13a2 [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
71deltask package
72deltask packagedata
73deltask package_qa
74deltask package_write_ipk
75deltask package_write_deb
76deltask package_write_rpm
77deltask package_write