fixes, catch some bugs earlier, reindent python
This commit is contained in:
@@ -1,3 +1,18 @@
|
||||
inherit cross
|
||||
DEPENDS += "virtual/${TARGET_PREFIX}gcc"
|
||||
PN = "rust-cross"
|
||||
|
||||
# Otherwise we'll depend on what we provide
|
||||
INHIBIT_DEFAULT_DEPS = "1"
|
||||
|
||||
|
||||
DEPENDS += "virtual/${TARGET_PREFIX}gcc rust-native"
|
||||
PROVIDES = "virtual/${TARGET_PREFIX}rust"
|
||||
PN = "rust-cross-${TARGET_ARCH}"
|
||||
|
||||
## gcc-cross settings
|
||||
# INHIBIT_DEFAULT_DEPS = "1"
|
||||
# INHIBIT_PACKAGE_STRIP = "1"
|
||||
# ARCH_FLAGS_FOR_TARGET += "-isystem${STAGING_DIR_NATIVE}${target_includedir}"
|
||||
|
||||
|
||||
# TODO: use rust-native instead of a snapshot
|
||||
EXTRA_OECONF += ""
|
||||
|
||||
@@ -1,6 +1,18 @@
|
||||
RUSTC = "rustc"
|
||||
RUSTC_ARCHFLAGS += "--target=${TARGET_SYS} -C rpath"
|
||||
|
||||
def rust_base_dep(d):
|
||||
# Taken from meta/classes/base.bbclass `base_dep_prepend` and modified to
|
||||
# use rust instead of gcc
|
||||
|
||||
deps = ""
|
||||
if not d.getVar('INHIBIT_DEFAULT_DEPS'):
|
||||
if (d.getVar('HOST_SYS', True) != d.getVar('BUILD_SYS', True)):
|
||||
deps += " virtual/${TARGET_PREFIX}rust"
|
||||
return deps
|
||||
|
||||
BASEDEPENDS_append = " ${@rust_base_dep(d)}"
|
||||
|
||||
# BUILD_LDFLAGS
|
||||
# ${STAGING_LIBDIR_NATIVE}
|
||||
# ${STAGING_BASE_LIBDIR_NATIVE}
|
||||
|
||||
Reference in New Issue
Block a user