summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/rust/rust-cross-canadian.inc
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/rust/rust-cross-canadian.inc')
-rw-r--r--meta/recipes-devtools/rust/rust-cross-canadian.inc5
1 files changed, 3 insertions, 2 deletions
diff --git a/meta/recipes-devtools/rust/rust-cross-canadian.inc b/meta/recipes-devtools/rust/rust-cross-canadian.inc
index 7bfef6d175..f962437d6b 100644
--- a/meta/recipes-devtools/rust/rust-cross-canadian.inc
+++ b/meta/recipes-devtools/rust/rust-cross-canadian.inc
@@ -12,7 +12,8 @@ DEPENDS += "virtual/${SDK_PREFIX}gcc virtual/nativesdk-libc virtual/nativesdk-${
12 12
13SRC_URI += "file://target-rust-ccld.c" 13SRC_URI += "file://target-rust-ccld.c"
14LIC_FILES_CHKSUM = "file://target-rust-ccld.c;md5=af4e0e29f81a34cffe05aa07c89e93e9;endline=7" 14LIC_FILES_CHKSUM = "file://target-rust-ccld.c;md5=af4e0e29f81a34cffe05aa07c89e93e9;endline=7"
15S = "${WORKDIR}" 15S = "${WORKDIR}/sources"
16UNPACKDIR = "${S}"
16 17
17# Need to use our SDK's sh here, see #14878 18# Need to use our SDK's sh here, see #14878
18create_sdk_wrapper () { 19create_sdk_wrapper () {
@@ -46,7 +47,7 @@ do_install () {
46 # where the context is easier to do the env maniupations needed 47 # where the context is easier to do the env maniupations needed
47 install -d ${SYS_BINDIR} 48 install -d ${SYS_BINDIR}
48 outfile="${SYS_BINDIR}/target-rust-ccld" 49 outfile="${SYS_BINDIR}/target-rust-ccld"
49 ${CC} ${WORKDIR}/target-rust-ccld.c -o $outfile 50 ${CC} ${S}/target-rust-ccld.c -o $outfile
50 chmod +x "$outfile" 51 chmod +x "$outfile"
51 create_sdk_wrapper "${SYS_BINDIR}/target-rust-ccld-wrapper" "CC" 52 create_sdk_wrapper "${SYS_BINDIR}/target-rust-ccld-wrapper" "CC"
52 53