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 = "" |
| 10 | PACKAGES_DYNAMIC_class-native = "" |
| 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 | |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 20 | export lt_cv_sys_lib_dlsearch_path_spec = "${libdir} ${base_libdir} /lib /lib64 /usr/lib /usr/lib64" |
| 21 | |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 22 | STAGING_DIR_HOST = "${RECIPE_SYSROOT_NATIVE}" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 23 | |
| 24 | PACKAGE_ARCH = "${BUILD_ARCH}" |
| 25 | |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 26 | MULTIMACH_TARGET_SYS = "${BUILD_ARCH}${BUILD_VENDOR}-${BUILD_OS}" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 27 | |
| 28 | export PKG_CONFIG_DIR = "${exec_prefix}/lib/pkgconfig" |
| 29 | export PKG_CONFIG_SYSROOT_DIR = "" |
| 30 | |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 31 | TARGET_CPPFLAGS = "" |
| 32 | TARGET_CFLAGS = "" |
| 33 | TARGET_CXXFLAGS = "" |
| 34 | TARGET_LDFLAGS = "" |
| 35 | |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 36 | CPPFLAGS = "${BUILD_CPPFLAGS}" |
| 37 | CFLAGS = "${BUILD_CFLAGS}" |
| 38 | CXXFLAGS = "${BUILD_CFLAGS}" |
| 39 | LDFLAGS = "${BUILD_LDFLAGS}" |
| 40 | LDFLAGS_build-darwin = "-L${STAGING_LIBDIR_NATIVE}" |
| 41 | |
| 42 | TOOLCHAIN_OPTIONS = "" |
| 43 | |
| 44 | DEPENDS_GETTEXT = "gettext-native" |
| 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}/" |
| 73 | do_populate_sysroot[stamp-extra-info] = "" |
| 74 | do_packagedata[stamp-extra-info] = "" |
| 75 | |
| 76 | do_install () { |
| 77 | oe_runmake 'DESTDIR=${D}' install |
| 78 | } |
| 79 | |
| 80 | USE_NLS = "no" |
| 81 | |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 82 | export CC = "${BUILD_CC}" |
| 83 | export CXX = "${BUILD_CXX}" |
| 84 | export FC = "${BUILD_FC}" |
| 85 | export CPP = "${BUILD_CPP}" |
| 86 | export LD = "${BUILD_LD}" |
| 87 | export CCLD = "${BUILD_CCLD}" |
| 88 | export AR = "${BUILD_AR}" |
| 89 | export AS = "${BUILD_AS}" |
| 90 | export RANLIB = "${BUILD_RANLIB}" |
| 91 | export STRIP = "${BUILD_STRIP}" |
| 92 | export NM = "${BUILD_NM}" |
| 93 | |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 94 | inherit nopackages |