blob: d217717e69629a5c0e3578e012fd69658f376e8e [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
Brad Bishop6e60e8b2018-02-01 10:27:11 -050022STAGING_DIR_HOST = "${RECIPE_SYSROOT_NATIVE}"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050023
24PACKAGE_ARCH = "${BUILD_ARCH}"
25
Brad Bishop6e60e8b2018-02-01 10:27:11 -050026MULTIMACH_TARGET_SYS = "${BUILD_ARCH}${BUILD_VENDOR}-${BUILD_OS}"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050027
28export PKG_CONFIG_DIR = "${exec_prefix}/lib/pkgconfig"
29export PKG_CONFIG_SYSROOT_DIR = ""
30
Brad Bishop6e60e8b2018-02-01 10:27:11 -050031TARGET_CPPFLAGS = ""
32TARGET_CFLAGS = ""
33TARGET_CXXFLAGS = ""
34TARGET_LDFLAGS = ""
35
Patrick Williamsc124f4f2015-09-15 14:41:29 -050036CPPFLAGS = "${BUILD_CPPFLAGS}"
37CFLAGS = "${BUILD_CFLAGS}"
38CXXFLAGS = "${BUILD_CFLAGS}"
39LDFLAGS = "${BUILD_LDFLAGS}"
40LDFLAGS_build-darwin = "-L${STAGING_LIBDIR_NATIVE}"
41
42TOOLCHAIN_OPTIONS = ""
43
44DEPENDS_GETTEXT = "gettext-native"
45
Brad Bishop6e60e8b2018-02-01 10:27:11 -050046# This class encodes staging paths into its scripts data so can only be
47# reused if we manipulate the paths.
48SSTATE_SCAN_CMD ?= "${SSTATE_SCAN_CMD_NATIVE}"
49
Patrick Williamsc124f4f2015-09-15 14:41:29 -050050# Path mangling needed by the cross packaging
51# Note that we use := here to ensure that libdir and includedir are
52# target paths.
Brad Bishopd7bf8c12018-02-25 22:55:05 -050053target_base_prefix := "${root_prefix}"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050054target_prefix := "${prefix}"
55target_exec_prefix := "${exec_prefix}"
56target_base_libdir = "${target_base_prefix}/${baselib}"
57target_libdir = "${target_exec_prefix}/${baselib}"
58target_includedir := "${includedir}"
59
60# Overrides for paths
61CROSS_TARGET_SYS_DIR = "${TARGET_SYS}"
62prefix = "${STAGING_DIR_NATIVE}${prefix_native}"
63base_prefix = "${STAGING_DIR_NATIVE}"
64exec_prefix = "${STAGING_DIR_NATIVE}${prefix_native}"
65bindir = "${exec_prefix}/bin/${CROSS_TARGET_SYS_DIR}"
66sbindir = "${bindir}"
67base_bindir = "${bindir}"
68base_sbindir = "${bindir}"
69libdir = "${exec_prefix}/lib/${CROSS_TARGET_SYS_DIR}"
70libexecdir = "${exec_prefix}/libexec/${CROSS_TARGET_SYS_DIR}"
71
72do_populate_sysroot[sstate-inputdirs] = "${SYSROOT_DESTDIR}/${STAGING_DIR_NATIVE}/"
73do_populate_sysroot[stamp-extra-info] = ""
74do_packagedata[stamp-extra-info] = ""
75
76do_install () {
77 oe_runmake 'DESTDIR=${D}' install
78}
79
80USE_NLS = "no"
81
Patrick Williamsc0f7c042017-02-23 20:41:17 -060082export CC = "${BUILD_CC}"
83export CXX = "${BUILD_CXX}"
84export FC = "${BUILD_FC}"
85export CPP = "${BUILD_CPP}"
86export LD = "${BUILD_LD}"
87export CCLD = "${BUILD_CCLD}"
88export AR = "${BUILD_AR}"
89export AS = "${BUILD_AS}"
90export RANLIB = "${BUILD_RANLIB}"
91export STRIP = "${BUILD_STRIP}"
92export NM = "${BUILD_NM}"
93
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050094inherit nopackages