diff options
| author | Khem Raj <raj.khem@gmail.com> | 2025-08-31 18:04:46 -0700 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2025-09-01 15:52:05 -0700 |
| commit | 803087e186662230133017a792e88c65e98d3d14 (patch) | |
| tree | 5f0365277390f4a4772ab2c9f5ddf7aa5fadf8b1 /meta-initramfs/recipes-devtools/klibc/klcc-cross_2.0.14.bb | |
| parent | 80901560825bb10c42d53eb5555e7f50656b8428 (diff) | |
| download | meta-openembedded-803087e186662230133017a792e88c65e98d3d14.tar.gz | |
klibc: Upgrade to 2.0.14
Backport couple of clang related fixes from upstream
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-initramfs/recipes-devtools/klibc/klcc-cross_2.0.14.bb')
| -rw-r--r-- | meta-initramfs/recipes-devtools/klibc/klcc-cross_2.0.14.bb | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/meta-initramfs/recipes-devtools/klibc/klcc-cross_2.0.14.bb b/meta-initramfs/recipes-devtools/klibc/klcc-cross_2.0.14.bb new file mode 100644 index 0000000000..4011aa231e --- /dev/null +++ b/meta-initramfs/recipes-devtools/klibc/klcc-cross_2.0.14.bb | |||
| @@ -0,0 +1,32 @@ | |||
| 1 | SUMMARY = "The klcc crosscompiler for klibc" | ||
| 2 | |||
| 3 | require klibc.inc | ||
| 4 | DEPENDS = "klibc" | ||
| 5 | |||
| 6 | # no packaging for this crossscript | ||
| 7 | PACKAGES = "" | ||
| 8 | inherit nopackages | ||
| 9 | |||
| 10 | SRC_URI += "file://use-env-for-perl.patch" | ||
| 11 | |||
| 12 | # disable task already run in klibc recipe | ||
| 13 | do_configure[noexec] = "1" | ||
| 14 | |||
| 15 | do_compile() { | ||
| 16 | oe_runmake 'INSTALLDIR=${STAGING_DIR_TARGET}${libdir}/klibc' klcc | ||
| 17 | } | ||
| 18 | |||
| 19 | do_install() { | ||
| 20 | install -d ${D}${bindir_crossscripts}/ | ||
| 21 | install -m 0755 klcc/klcc ${D}${bindir_crossscripts}/${TARGET_PREFIX}klcc | ||
| 22 | # Turn the horribly encoded paths into something which sstate can transform using its ususal | ||
| 23 | # magic by removing all the crazy escaping. | ||
| 24 | sed -i -e "2i \$TARGETSYSROOT = '${STAGING_DIR_TARGET}';" \ | ||
| 25 | -e "2i \$NATIVESYSROOT = '${STAGING_DIR_NATIVE}';" \ | ||
| 26 | -e 's#${@d.getVar("STAGING_DIR_NATIVE").replace("/", "\\\\/").replace("-", "\\\\-").replace(".", "\\\\.")}#${NATIVESYSROOT}#g;' \ | ||
| 27 | -e 's#${@d.getVar("STAGING_DIR_TARGET").replace("/", "\\\\/").replace("-", "\\\\-").replace(".", "\\\\.")}#${TARGETSYSROOT}#g' \ | ||
| 28 | ${D}${bindir_crossscripts}/${TARGET_PREFIX}klcc | ||
| 29 | } | ||
| 30 | |||
| 31 | SYSROOT_DIRS += "${bindir_crossscripts}" | ||
| 32 | SSTATE_SCAN_FILES += "*-klcc" | ||
