aboutsummaryrefslogtreecommitdiffstats
path: root/meta-initramfs/recipes-devtools/klibc/klibc.inc
AgeCommit message (Collapse)Author
2023-10-13klibc/klibc.inc : Add DEBUG_PREFIX_MAP flag.Fabien Thomas
Following reproducible-builds.org recommendations, using compiler flags like -ffile-prefix-map or -fdebug-prefix-map allows replace build-time paths by install-time ones in the debugging sections of binaries. Variable DEBUG_PREFIX_MAP set these flags correctly in yocto build context to guarantee reproducible builds. Signed-off-by: Fabien Thomas <fabien.thomas@smile.fr> Reviewed-by: Yoann Congal <yoann.congal@smile.fr> Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-10-07klibc: Upgrade to 2.0.13 releaseKhem Raj
Drop backported patch and refresh others as needed Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-08-19klibc: Fix build with kernel 5.19 headersKhem Raj
Backport relevant patch. Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-08-10klibc: Upgrade to 2.0.10Khem Raj
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-03-04recipes: Update LICENSE variable to use SPDX license identifiersKhem Raj
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-08-03Convert to new override syntaxMartin Jansa
This is the result of automated script (0.9.1) conversion: oe-core/scripts/contrib/convert-overrides.py . converting the metadata to use ":" as the override character instead of "_". Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2021-02-07klibc: Fix x86_64 build with binutils 2.36+Khem Raj
this patch is already on klibc mailing list Signed-off-by: Khem Raj <raj.khem@gmail.com> Cc: Andrea Adami <andrea.adami@gmail.com>
2021-02-04klibc: Upgrade to 2.0.8 releaseKhem Raj
Adjust klcc to work with clang Signed-off-by: Khem Raj <raj.khem@gmail.com> Cc: Andrea Adami <andrea.adami@gmail.com>
2020-08-13klibc: Compile with -fcommonKhem Raj
gcc 10 defaults to -fno-common, but klibc does not build with -fno-common, it will need some work to get there, until then use -fcommon explicitly Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-01-19recipes: Make powerpc64le overridesKhem Raj
The existing conditions for ppc64/be are applicable for le as well Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-12-14klibc: Apply -no-integrated-as on mips/clangKhem Raj
Fixes build error | /mnt/b/yoe/build/tmp/work/mips32r2-yoe-linux-musl/klibc/2.0.7-r0/klibc-2.0.7/usr/klibc/syscalls.pl: usr/klib c/syscalls/typesize.bin: magic number not found ... | usr/klibc/sigsuspend.c:8:10: fatal error: 'klibc/havesyscall.h' file not found | #include <klibc/havesyscall.h> | ^~~~~~~~~~~~~~~~~~~~~ | 1 error generated. Signed-off-by: Khem Raj <raj.khem@gmail.com> Cc: Andrea Adami <andrea.adami@gmail.com>
2019-10-28klibc: Upgrade 2.0.6 -> 2.0.7Adrian Bunk
Patches applied upstream removed. Use the release tarball. Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-09-03klibc: Fix build with 5.2+ kernel headersKhem Raj
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-08-17klibc: Disable bcmp builtin for clang on glibc as wellKhem Raj
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-08-08klibc: Pass -fno-builtin-bcmp with musl/clang comboKhem Raj
clang would emit bcmp built-in for musl bases system but here we do not link in musl C library, so its best to disable it Fixes git/usr/klibc/memmem.c:38: undefined reference to `bcmp' Signed-off-by: Khem Raj <raj.khem@gmail.com> Cc: Andrea Adami <andrea.adami@gmail.com>
2019-03-14klibc: Upgrade to 2.0.6 releaseKhem Raj
Drop staging related patches which are not needed anymore Signed-off-by: Khem Raj <raj.khem@gmail.com> Cc: Andrea Adami <andrea.adami@gmail.com>
2018-12-09klibc: Fix build with clangKhem Raj
Newer versions of clang optimize the calls to use unlocked variants of these functions Fixes | capabilities.c:(.text+0xb4): undefined reference to `fread_unlocked' | arm-yoe-linux-gnueabi-ld.bfd: capabilities.c:(.text+0x11a): undefined reference to `fwrite_unlocked' Signed-off-by: Khem Raj <raj.khem@gmail.com> Cc: Andrea Adami <andrea.adami@gmail.com>
2018-12-04klibc: fix build for mipsel and mips64el with security flags enabledAndrea Adami
Fix relocations like: | mipsel-oe-linux-musl-ld.bfd: usr/klibc/libc.a(kill.o): relocation R_MIPS_26 against `__syscall_common' can not be used when making a shared object; recompile with -fPIC Signed-off-by: Andrea Adami <andrea.adami@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-09-25klibc.inc: lazy assign GCCPIE in case security_flags.inc was not includedAndrea Adami
fix build error (GCCPIE is unset): EXTRA_KLIBCAFLAGS=${SECURITY_CFLAGS} -Wa,--noexecstack EXTRA_KLIBCLDFLAGS=${@-z relro -z now -pie if else } -z noexecstack | make: invalid option -- 'z' | make: invalid option -- ' ' Signed-off-by: Andrea Adami <andrea.adami@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-09-15klibc: fix build with GCC and -pie for mips, mips64, aarch64Andrea Adami
The MCONFIG makefiles for mips/mips64 do disable pic so we do not insist linking it with -pie. For aarch64 we have to readd the -Os optimization to avoid | usr/dash/shell.h:103:25: error: '-mgeneral-regs-only' is incompatible with floating-point argument as committed (c296fb707ae3 klibc: Pass Optimization with KLIBCOPTFLAGS) but reverted (76bc58e9329 klibc: Fix build with security flags) trying to fix the i386 build (see ld.bfd: discarded output section: `.got.plt'). This latter issue was fixed for i386 passing -pie to the linker. Signed-off-by: Andrea Adami <andrea.adami@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-09-15klibc: fix build on i386 with GCC and security flags enabledAndrea Adami
ld fails if distro's security-flags are enabled: Inject the SECURITY_XFLAGS if security_flags.inc was included. Fix on i386: ld: discarded output section: `.got.plt' Signed-off-by: Andrea Adami <andrea.adami@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-09-11klibc: Fix build with security flagsKhem Raj
Drop -Os which is also causing the relro Fixes | x86_64-bec-linux-musl-ld.bfd: discarded output section: `.got.plt' Signed-off-by: Khem Raj <raj.khem@gmail.com> Cc: Andrea Adami <andrea.adami@gmail.com>
2018-09-09klcc-cross: Recognise clang optionsKhem Raj
Let klcc understand '-no-integrated-as' which is a clang option used by meta-clang for compiler defaults Signed-off-by: Khem Raj <raj.khem@gmail.com> Cc: Andrea Adami <andrea.adami@gmail.com>
2018-09-05klibc_2.0.4: add kexec_file_load() and getrandom() syscallsAndrea Adami
Needed by kexec-tools afer 2.0.17 Signed-off-by: Andrea Adami <andrea.adami@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
2017-10-04klibc: Pass Optimization with KLIBCOPTFLAGSKhem Raj
Overriding KLIBCOPTFLAGS also meant that -Ox flags were taken off. Which results in errors like | usr/dash/shell.h: In function 'max_int_length': | usr/dash/shell.h:103:25: error: '-mgeneral-regs-only' is incompatible with floating-point code | return (bytes * 8 - 1) * 0.30102999566398119521 + 14; | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ | usr/dash/shell.h:103:25: error: '-mgeneral-regs-only' is incompatible with floating-point argument Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2017-09-18klibc: Edit out gcc hardcoding in do_compileKhem Raj
This is needed when building klcc-cross and klcc-cross does not have do_configure, therefore stick this just before do_compile Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2017-09-13klibc: Fix include_next stdarg.h with clangKhem Raj
Fixes build git/usr/klibc/../include/stdarg.h:9:15: fatal error: 'stdarg.h' file not found | #include_next <stdarg.h> | ^~~~~~~~~~ Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2017-08-13klibc: Fix build with clangKhem Raj
Remove gcc specific options use common one instead Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2017-07-24klibc: Fix build issue when default ISA is not thumbKhem Raj
We were passing empty string '' to make as option when ISA was not thumb this breaks build for machines/distros which do not use ARM_INSTRUCTION_SET = thumb Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2017-07-14klibc: Fix linking by using bfd linker when default linker is goldKhem Raj
Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2017-07-14klibc: Fix build with muslKhem Raj
klibc failed to build with armv7+ when using thumb2 it needed to resepct TUNE_CCARGS Add patches to fix build with musl, to sort out the linux header maze. Signed-off-by: Khem Raj <raj.khem@gmail.com> Cc: Andrea Adami <andrea.adami@gmail.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2017-04-24klibc: disable PARALLEL_MAKEAndrea Adami
On modern buidsystems with many cores there are sporadic build failures. The issue is known and a fix in the sources is awaited (new Kbuild). http://www.zytor.com/pipermail/klibc/2013-May/003420.html For the moment, disable PARALLEL_MAKE. Signed-off-by: Andrea Adami <andrea.adami@gmail.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2016-07-29klibc: fix install destination in 64bit envMichael Walle
klibc installs everything into /usr/lib by default. But the recipe assumes it installs to ${libdir} which is /usr/lib64 in 64bit environment. Package generation fails badly in this case. Set INSTALLDIR to fix this. Signed-off-by: Michael Walle <michael@walle.cc> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2016-02-25klibc: fix sh deps ver (PR is needed after PV)Andrea Adami
Revert commit dd1ca18 removing ${PR}. Bad idea. The shared lib could not be found giving this error: Collected errors: * satisfy_dependencies_for: Cannot satisfy the following dependencies for klibc-utils-XXX: * libklibc (= 2.0.4) * * opkg_install: Cannot install package klibc-utils-XXX. Signed-off-by: Andrea Adami <andrea.adami@gmail.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2016-02-25klibc_2.0.4: Silence Warning about klibc-xxx-so already strippedAndrea Adami
Fixes: WARNING: File 'usr/lib/klibc-HWWIvOaMdZy4N4-6rLLHAB2TjFQ.so' from klibc was already stripped, this will prevent future debugging! WARNING: File 'usr/lib/klibc/lib/klibc-HWWIvOaMdZy4N4-6rLLHAB2TjFQ.so' from klibc was already stripped, this will prevent future debugging! Signed-off-by: Andrea Adami <andrea.adami@gmail.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2016-02-25klibc_2.0.4: Silence QA Error about non-symlink so [dev-elf]Andrea Adami
Following debian packaging-style we have a copy of klibc-xxx.so in libklibc-dev. (Comments can be found in klibc.spec.in) Fixes: ERROR: QA Issue: -dev package contains non-symlink .so: ibklibc-dev path 'work/i586-oe-linux/klibc/2.0.4-r0/packages-split/ libklibc-dev/usr/lib/klibc/lib/klibc-HWWIvOaMdZy4N4-6rLLHAB2TjFQ.so' -dev package contains non-symlink .so: libklibc-dev path 'work/i586-oe-linux/klibc/2.0.4-r0/packages-split/ libklibc-dev/usr/lib/klibc/lib/libc.so' [dev-elf] Signed-off-by: Andrea Adami <andrea.adami@gmail.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2016-02-25klibc_2.0.4: update to 4d1997d - Fix build for qemux86Andrea Adami
Minimally rebase staging.patch and follow upstream commits. Fixes: | usr/klibc/socketcalls/socket.o: In function `socket': | .../usr/klibc/socketcalls/socket.S:8: multiple definition of `socket' Signed-off-by: Andrea Adami <andrea.adami@gmail.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2015-06-08klibc.inc: use x86 over-ride instead of i486/i586/i686/pentiumAndre McCurdy
32bit x86 is covered by the x86 over-ride, so duplicate over-rides for i486/i586/i686/pentium are not required. Signed-off-by: Andre McCurdy <armccurdy@gmail.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2014-11-17klibc: define KLIBCLIBGCCAndrea Adami
Fix build of klibc extending the EXTRA_OEMAKE. | LIST usr/klibc/klib.list | KLIBCAR usr/klibc/libc.a | KLIBCLD usr/klibc/libc.so | arm-oe-linux-gnueabi-ld: cannot find libgcc.a: No such file or directory | make[2]: *** [usr/klibc/libc.so] Error 1 | make[2]: *** Waiting for unfinished jobs.... | make[1]: *** [all] Error 2 | make: *** [klibc] Error 2 | ERROR: oe_runmake failed Signed-off-by: Andrea Adami <andrea.adami@gmail.com>
2014-09-26klibc: klcc: consider --sysroot option and override gcc-cross encoded sysrootAndrea Adami
For the recipes built with klcc-cross it is necessary to pass --sysroot otherwise we default to the one encoded in gcc-cross which actually is the 'first one' built. The issue was revealed when building for armv4 after having built for armv5te: the produced binaries did contain Illegal Instruction (bx lr). Use ${TOOLCHAIN_OPTIONS} variable to specify --sysroot=${STAGING_DIR_TARGET} Signed-off-by: Andrea Adami <andrea.adami@gmail.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2014-07-24klibc: upgrade to released 2.0.4Andrea Adami
Signed-off-by: Andrea Adami <andrea.adami@gmail.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2014-04-06klibc: restylize a bit the recipesAndrea Adami
No runtime changes. Reorder and fix some typos in the comments. Remove unneeded empty do_install from utils. Fix bogus PACKAGES_${PN} = "${PN}". Signed-off-by: Andrea Adami <andrea.adami@gmail.com>
2014-02-17klibc: ensure package strip logic stays the same after oe-core ↵Koen Kooi
package.bbclass changes See http://patches.openembedded.org/patch/65311/ Signed-off-by: Koen Kooi <koen.kooi@linaro.org>
2014-02-16klibc.inc: remove ${PR} leftoverAndrea Adami
Signed-off-by: Andrea Adami <andrea.adami@gmail.com>
2013-12-17klibc: upgrade from 2.0.2 to release 2.0.3Andrea Adami
Klibc now supports aarch64 / arm64 While there, remove PR/INC_PR from the recipes Signed-off-by: Andrea Adami <andrea.adami@gmail.com>
2013-12-17klibc.inc: add mapping for 64-bit ARM buildsKoen Kooi
Klibc is following the kernel naming ('arm64') instead of the toolchain naming ('aarch64'). Signed-off-by: Koen Kooi <koen.kooi@linaro.org>
2013-09-03remove the unnecessary protocol parametersJackie Huang
It's not necessary to specify the protocol parameter when it's the default protocol for the fetcher, e.g. the default protocol for git fetcher it git, "protocol=git" isn't needed. Signed-off-by: Jackie Huang <jackie.huang@windriver.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2013-09-03klibc_2.0.2: refactor recipe to respect exec_prefixAndrea Adami
Signed-off-by: Andrea Adami <andrea.adami@gmail.com>
2013-05-13klibc: fix KLIBCARCH for x86-64, powerpc and powerpc64Andrea Adami
Signed-off-by: Andrea Adami <andrea.adami@gmail.com>
2013-04-15recipes: Unify indentationMartin Jansa
* This change is only aesthetic (unlike indentation in Python tasks). * Some recipes were using tabs. * Some were using 8 spaces. * Some were using mix or different number of spaces. * Make them consistently use 4 spaces everywhere. * Yocto styleguide advises to use tabs (but the only reason to keep tabs is the need to update a lot of recipes). Lately this advice was also merged into the styleguide on the OE wiki. * Using 4 spaces in both types of tasks is better because it's less error prone when someone is not sure if e.g. do_generate_toolchain_file() is Python or shell task and also allows to highlight every tab used in .bb, .inc, .bbappend, .bbclass as potentially bad (shouldn't be used for indenting of multiline variable assignments and cannot be used for Python tasks). * Don't indent closing quote on multiline variables we're quite inconsistent wheater it's first character on line under opening quote or under first non-whitespace character in previous line. Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Acked-by: Koen Kooi <koen@dominion.thruhere.net>