@@ -132,4 +132,4 @@ Layer maintainers:
Scott Murray <scott.murray@konsulko.com>
Dynamic layer support maintainers:
-TBD
+Soumya Sambu <soumya.sambu@windriver.com>
@@ -26,6 +26,10 @@ BBMASK:append = " meta/recipes-devtools/cargo/ meta/recipes-devtools/rust/ meta/
# the newer BBCLASSEXTEND version that we carry.
BBMASK:append = " meta/recipes-devtools/python/python3-setuptools-rust-native_%"
+BBFILES_DYNAMIC += " \
+ meta-python:${LAYERDIR}/dynamic-layers/meta-python/recipes-*/*/*.bbappend \
+ openembedded-layer:${LAYERDIR}/dynamic-layers/openembedded-layer/recipes-*/*/*.bbappend"
+
# These are in bitbake.conf in langdale and up, adding them here to make
# using the layer more turn-key seems reasonable.
BB_BASEHASH_IGNORE_VARS:append = " RUST_BUILD_SYS RUST_HOST_SYS RUST_TARGET_SYS"
new file mode 100644
@@ -0,0 +1,7 @@
+python do_configure:append() {
+ config.set("rust", "default-linker", e(d.expand("${RUST_BUILD_CCLD}")))
+
+ with open("config.toml", "w") as f:
+ f.write("change-id = 116881\n\n")
+ config.write(f)
+}
new file mode 100644
@@ -0,0 +1,14 @@
+EXTRA_OECONF = " \
+ --target=${RUST_TARGET_SYS} \
+ --host=${BUILD_SYS} \
+ --prefix=${prefix} \
+ --libdir=${libdir} \
+ --x-includes=${STAGING_INCDIR} \
+ --x-libraries=${STAGING_LIBDIR} \
+ --without-system-icu \
+ --disable-tests --disable-strip --disable-optimize \
+ --disable-jemalloc \
+ --with-system-icu \
+ ${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-gold', "--enable-gold", '--disable-gold', d)} \
+ ${JIT} \
+"
new file mode 100644
@@ -0,0 +1,13 @@
+do_configure() {
+ cd ${B}
+ python3 ${S}/configure.py \
+ --enable-project=js \
+ --target=${RUST_HOST_SYS} \
+ --host=${BUILD_SYS} \
+ --prefix=${prefix} \
+ --libdir=${libdir} \
+ --disable-jemalloc \
+ --disable-strip \
+ ${JIT} \
+ ${ICU}
+}