Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | inherit relocatable |
| 2 | |
| 3 | # Cross packages are built indirectly via dependency, |
| 4 | # no need for them to be a direct target of 'world' |
| 5 | EXCLUDE_FROM_WORLD = "1" |
| 6 | |
| 7 | CLASSOVERRIDE = "class-cross" |
| 8 | PACKAGES = "" |
| 9 | PACKAGES_DYNAMIC = "" |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 10 | PACKAGES_DYNAMIC:class-native = "" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 11 | |
| 12 | HOST_ARCH = "${BUILD_ARCH}" |
| 13 | HOST_VENDOR = "${BUILD_VENDOR}" |
| 14 | HOST_OS = "${BUILD_OS}" |
| 15 | HOST_PREFIX = "${BUILD_PREFIX}" |
| 16 | HOST_CC_ARCH = "${BUILD_CC_ARCH}" |
| 17 | HOST_LD_ARCH = "${BUILD_LD_ARCH}" |
| 18 | HOST_AS_ARCH = "${BUILD_AS_ARCH}" |
| 19 | |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 20 | # No strip sysroot when DEBUG_BUILD is enabled |
| 21 | INHIBIT_SYSROOT_STRIP ?= "${@oe.utils.vartrue('DEBUG_BUILD', '1', '', d)}" |
| 22 | |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 23 | export lt_cv_sys_lib_dlsearch_path_spec = "${libdir} ${base_libdir} /lib /lib64 /usr/lib /usr/lib64" |
| 24 | |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 25 | STAGING_DIR_HOST = "${RECIPE_SYSROOT_NATIVE}" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 26 | |
| 27 | PACKAGE_ARCH = "${BUILD_ARCH}" |
| 28 | |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 29 | MULTIMACH_TARGET_SYS = "${BUILD_ARCH}${BUILD_VENDOR}-${BUILD_OS}" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 30 | |
| 31 | export PKG_CONFIG_DIR = "${exec_prefix}/lib/pkgconfig" |
| 32 | export PKG_CONFIG_SYSROOT_DIR = "" |
| 33 | |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 34 | TARGET_CPPFLAGS = "" |
| 35 | TARGET_CFLAGS = "" |
| 36 | TARGET_CXXFLAGS = "" |
| 37 | TARGET_LDFLAGS = "" |
| 38 | |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 39 | CPPFLAGS = "${BUILD_CPPFLAGS}" |
| 40 | CFLAGS = "${BUILD_CFLAGS}" |
| 41 | CXXFLAGS = "${BUILD_CFLAGS}" |
| 42 | LDFLAGS = "${BUILD_LDFLAGS}" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 43 | |
| 44 | TOOLCHAIN_OPTIONS = "" |
| 45 | |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 46 | # This class encodes staging paths into its scripts data so can only be |
| 47 | # reused if we manipulate the paths. |
| 48 | SSTATE_SCAN_CMD ?= "${SSTATE_SCAN_CMD_NATIVE}" |
| 49 | |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 50 | # Path mangling needed by the cross packaging |
| 51 | # Note that we use := here to ensure that libdir and includedir are |
| 52 | # target paths. |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 53 | target_base_prefix := "${root_prefix}" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 54 | target_prefix := "${prefix}" |
| 55 | target_exec_prefix := "${exec_prefix}" |
| 56 | target_base_libdir = "${target_base_prefix}/${baselib}" |
| 57 | target_libdir = "${target_exec_prefix}/${baselib}" |
| 58 | target_includedir := "${includedir}" |
| 59 | |
| 60 | # Overrides for paths |
| 61 | CROSS_TARGET_SYS_DIR = "${TARGET_SYS}" |
| 62 | prefix = "${STAGING_DIR_NATIVE}${prefix_native}" |
| 63 | base_prefix = "${STAGING_DIR_NATIVE}" |
| 64 | exec_prefix = "${STAGING_DIR_NATIVE}${prefix_native}" |
| 65 | bindir = "${exec_prefix}/bin/${CROSS_TARGET_SYS_DIR}" |
| 66 | sbindir = "${bindir}" |
| 67 | base_bindir = "${bindir}" |
| 68 | base_sbindir = "${bindir}" |
| 69 | libdir = "${exec_prefix}/lib/${CROSS_TARGET_SYS_DIR}" |
| 70 | libexecdir = "${exec_prefix}/libexec/${CROSS_TARGET_SYS_DIR}" |
| 71 | |
| 72 | do_populate_sysroot[sstate-inputdirs] = "${SYSROOT_DESTDIR}/${STAGING_DIR_NATIVE}/" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 73 | do_packagedata[stamp-extra-info] = "" |
| 74 | |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 75 | USE_NLS = "no" |
| 76 | |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 77 | export CC = "${BUILD_CC}" |
| 78 | export CXX = "${BUILD_CXX}" |
| 79 | export FC = "${BUILD_FC}" |
| 80 | export CPP = "${BUILD_CPP}" |
| 81 | export LD = "${BUILD_LD}" |
| 82 | export CCLD = "${BUILD_CCLD}" |
| 83 | export AR = "${BUILD_AR}" |
| 84 | export AS = "${BUILD_AS}" |
| 85 | export RANLIB = "${BUILD_RANLIB}" |
| 86 | export STRIP = "${BUILD_STRIP}" |
| 87 | export NM = "${BUILD_NM}" |
| 88 | |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 89 | inherit nopackages |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 90 | |
| 91 | python do_addto_recipe_sysroot () { |
| 92 | bb.build.exec_func("extend_recipe_sysroot", d) |
| 93 | } |
| 94 | addtask addto_recipe_sysroot after do_populate_sysroot |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 95 | do_addto_recipe_sysroot[deptask] = "do_populate_sysroot" |
Andrew Geissler | 595f630 | 2022-01-24 19:11:47 +0000 | [diff] [blame^] | 96 | |
| 97 | PATH:prepend = "${COREBASE}/scripts/cross-intercept:" |