blob: 34d7951f3f171b0c6b54a132db33d9261e1d2253 [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}"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050040
41TOOLCHAIN_OPTIONS = ""
42
Brad Bishop6e60e8b2018-02-01 10:27:11 -050043# This class encodes staging paths into its scripts data so can only be
44# reused if we manipulate the paths.
45SSTATE_SCAN_CMD ?= "${SSTATE_SCAN_CMD_NATIVE}"
46
Patrick Williamsc124f4f2015-09-15 14:41:29 -050047# Path mangling needed by the cross packaging
48# Note that we use := here to ensure that libdir and includedir are
49# target paths.
Brad Bishopd7bf8c12018-02-25 22:55:05 -050050target_base_prefix := "${root_prefix}"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050051target_prefix := "${prefix}"
52target_exec_prefix := "${exec_prefix}"
53target_base_libdir = "${target_base_prefix}/${baselib}"
54target_libdir = "${target_exec_prefix}/${baselib}"
55target_includedir := "${includedir}"
56
57# Overrides for paths
58CROSS_TARGET_SYS_DIR = "${TARGET_SYS}"
59prefix = "${STAGING_DIR_NATIVE}${prefix_native}"
60base_prefix = "${STAGING_DIR_NATIVE}"
61exec_prefix = "${STAGING_DIR_NATIVE}${prefix_native}"
62bindir = "${exec_prefix}/bin/${CROSS_TARGET_SYS_DIR}"
63sbindir = "${bindir}"
64base_bindir = "${bindir}"
65base_sbindir = "${bindir}"
66libdir = "${exec_prefix}/lib/${CROSS_TARGET_SYS_DIR}"
67libexecdir = "${exec_prefix}/libexec/${CROSS_TARGET_SYS_DIR}"
68
69do_populate_sysroot[sstate-inputdirs] = "${SYSROOT_DESTDIR}/${STAGING_DIR_NATIVE}/"
70do_populate_sysroot[stamp-extra-info] = ""
71do_packagedata[stamp-extra-info] = ""
72
73do_install () {
74 oe_runmake 'DESTDIR=${D}' install
75}
76
77USE_NLS = "no"
78
Patrick Williamsc0f7c042017-02-23 20:41:17 -060079export CC = "${BUILD_CC}"
80export CXX = "${BUILD_CXX}"
81export FC = "${BUILD_FC}"
82export CPP = "${BUILD_CPP}"
83export LD = "${BUILD_LD}"
84export CCLD = "${BUILD_CCLD}"
85export AR = "${BUILD_AR}"
86export AS = "${BUILD_AS}"
87export RANLIB = "${BUILD_RANLIB}"
88export STRIP = "${BUILD_STRIP}"
89export NM = "${BUILD_NM}"
90
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050091inherit nopackages
Brad Bishop316dfdd2018-06-25 12:45:53 -040092
93python do_addto_recipe_sysroot () {
94 bb.build.exec_func("extend_recipe_sysroot", d)
95}
96addtask addto_recipe_sysroot after do_populate_sysroot