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 | |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 22 | STAGING_DIR_HOST = "${STAGING_DIR}/${HOST_ARCH}${HOST_VENDOR}-${HOST_OS}" |
| 23 | |
| 24 | PACKAGE_ARCH = "${BUILD_ARCH}" |
| 25 | |
| 26 | MULTIMACH_TARGET_SYS = "${PACKAGE_ARCH}${BUILD_VENDOR}-${BUILD_OS}" |
| 27 | |
| 28 | export PKG_CONFIG_DIR = "${exec_prefix}/lib/pkgconfig" |
| 29 | export PKG_CONFIG_SYSROOT_DIR = "" |
| 30 | |
| 31 | CPPFLAGS = "${BUILD_CPPFLAGS}" |
| 32 | CFLAGS = "${BUILD_CFLAGS}" |
| 33 | CXXFLAGS = "${BUILD_CFLAGS}" |
| 34 | LDFLAGS = "${BUILD_LDFLAGS}" |
| 35 | LDFLAGS_build-darwin = "-L${STAGING_LIBDIR_NATIVE}" |
| 36 | |
| 37 | TOOLCHAIN_OPTIONS = "" |
| 38 | |
| 39 | DEPENDS_GETTEXT = "gettext-native" |
| 40 | |
| 41 | # Path mangling needed by the cross packaging |
| 42 | # Note that we use := here to ensure that libdir and includedir are |
| 43 | # target paths. |
| 44 | target_base_prefix := "${base_prefix}" |
| 45 | target_prefix := "${prefix}" |
| 46 | target_exec_prefix := "${exec_prefix}" |
| 47 | target_base_libdir = "${target_base_prefix}/${baselib}" |
| 48 | target_libdir = "${target_exec_prefix}/${baselib}" |
| 49 | target_includedir := "${includedir}" |
| 50 | |
| 51 | # Overrides for paths |
| 52 | CROSS_TARGET_SYS_DIR = "${TARGET_SYS}" |
| 53 | prefix = "${STAGING_DIR_NATIVE}${prefix_native}" |
| 54 | base_prefix = "${STAGING_DIR_NATIVE}" |
| 55 | exec_prefix = "${STAGING_DIR_NATIVE}${prefix_native}" |
| 56 | bindir = "${exec_prefix}/bin/${CROSS_TARGET_SYS_DIR}" |
| 57 | sbindir = "${bindir}" |
| 58 | base_bindir = "${bindir}" |
| 59 | base_sbindir = "${bindir}" |
| 60 | libdir = "${exec_prefix}/lib/${CROSS_TARGET_SYS_DIR}" |
| 61 | libexecdir = "${exec_prefix}/libexec/${CROSS_TARGET_SYS_DIR}" |
| 62 | |
| 63 | do_populate_sysroot[sstate-inputdirs] = "${SYSROOT_DESTDIR}/${STAGING_DIR_NATIVE}/" |
| 64 | do_populate_sysroot[stamp-extra-info] = "" |
| 65 | do_packagedata[stamp-extra-info] = "" |
| 66 | |
| 67 | do_install () { |
| 68 | oe_runmake 'DESTDIR=${D}' install |
| 69 | } |
| 70 | |
| 71 | USE_NLS = "no" |
| 72 | |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 73 | export CC = "${BUILD_CC}" |
| 74 | export CXX = "${BUILD_CXX}" |
| 75 | export FC = "${BUILD_FC}" |
| 76 | export CPP = "${BUILD_CPP}" |
| 77 | export LD = "${BUILD_LD}" |
| 78 | export CCLD = "${BUILD_CCLD}" |
| 79 | export AR = "${BUILD_AR}" |
| 80 | export AS = "${BUILD_AS}" |
| 81 | export RANLIB = "${BUILD_RANLIB}" |
| 82 | export STRIP = "${BUILD_STRIP}" |
| 83 | export NM = "${BUILD_NM}" |
| 84 | |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 85 | inherit nopackages |