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 | |
| 20 | STAGING_DIR_HOST = "${STAGING_DIR}/${HOST_ARCH}${HOST_VENDOR}-${HOST_OS}" |
| 21 | |
| 22 | PACKAGE_ARCH = "${BUILD_ARCH}" |
| 23 | |
| 24 | MULTIMACH_TARGET_SYS = "${PACKAGE_ARCH}${BUILD_VENDOR}-${BUILD_OS}" |
| 25 | |
| 26 | export PKG_CONFIG_DIR = "${exec_prefix}/lib/pkgconfig" |
| 27 | export PKG_CONFIG_SYSROOT_DIR = "" |
| 28 | |
| 29 | CPPFLAGS = "${BUILD_CPPFLAGS}" |
| 30 | CFLAGS = "${BUILD_CFLAGS}" |
| 31 | CXXFLAGS = "${BUILD_CFLAGS}" |
| 32 | LDFLAGS = "${BUILD_LDFLAGS}" |
| 33 | LDFLAGS_build-darwin = "-L${STAGING_LIBDIR_NATIVE}" |
| 34 | |
| 35 | TOOLCHAIN_OPTIONS = "" |
| 36 | |
| 37 | DEPENDS_GETTEXT = "gettext-native" |
| 38 | |
| 39 | # Path mangling needed by the cross packaging |
| 40 | # Note that we use := here to ensure that libdir and includedir are |
| 41 | # target paths. |
| 42 | target_base_prefix := "${base_prefix}" |
| 43 | target_prefix := "${prefix}" |
| 44 | target_exec_prefix := "${exec_prefix}" |
| 45 | target_base_libdir = "${target_base_prefix}/${baselib}" |
| 46 | target_libdir = "${target_exec_prefix}/${baselib}" |
| 47 | target_includedir := "${includedir}" |
| 48 | |
| 49 | # Overrides for paths |
| 50 | CROSS_TARGET_SYS_DIR = "${TARGET_SYS}" |
| 51 | prefix = "${STAGING_DIR_NATIVE}${prefix_native}" |
| 52 | base_prefix = "${STAGING_DIR_NATIVE}" |
| 53 | exec_prefix = "${STAGING_DIR_NATIVE}${prefix_native}" |
| 54 | bindir = "${exec_prefix}/bin/${CROSS_TARGET_SYS_DIR}" |
| 55 | sbindir = "${bindir}" |
| 56 | base_bindir = "${bindir}" |
| 57 | base_sbindir = "${bindir}" |
| 58 | libdir = "${exec_prefix}/lib/${CROSS_TARGET_SYS_DIR}" |
| 59 | libexecdir = "${exec_prefix}/libexec/${CROSS_TARGET_SYS_DIR}" |
| 60 | |
| 61 | do_populate_sysroot[sstate-inputdirs] = "${SYSROOT_DESTDIR}/${STAGING_DIR_NATIVE}/" |
| 62 | do_populate_sysroot[stamp-extra-info] = "" |
| 63 | do_packagedata[stamp-extra-info] = "" |
| 64 | |
| 65 | do_install () { |
| 66 | oe_runmake 'DESTDIR=${D}' install |
| 67 | } |
| 68 | |
| 69 | USE_NLS = "no" |
| 70 | |
| 71 | deltask package |
| 72 | deltask packagedata |
| 73 | deltask package_qa |
| 74 | deltask package_write_ipk |
| 75 | deltask package_write_deb |
| 76 | deltask package_write_rpm |
| 77 | deltask package_write |