summaryrefslogtreecommitdiffstats
path: root/meta-initramfs/recipes-devtools/klibc
Commit message (Collapse)AuthorAgeFilesLines
* meta-openembedded/all: adapt to UNPACKDIR changesAlexander Kanavin6 days1-1/+1
| | | | | | | | | | | | | Please see https://git.yoctoproject.org/poky/commit/?id=4dd321f8b83afecd962393101b2a6861275b5265 for what changes are needed, and sed commands that can be used to make them en masse. I've verified that bitbake -c patch world works with these, but did not run a world build; the majority of recipes shouldn't need further fixups, but if there are some that still fall out, they can be fixed in followups. Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* klibc/klibc.inc : Add DEBUG_PREFIX_MAP flag.Fabien Thomas2023-10-131-0/+1
| | | | | | | | | | | | | 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>
* klibc: Upgrade to 2.0.13 releaseKhem Raj2023-10-078-41/+6
| | | | | | Drop backported patch and refresh others as needed Signed-off-by: Khem Raj <raj.khem@gmail.com>
* *.patch: add Upstream-Status to all patchesMartin Jansa2023-06-2111-0/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | There is new patch-status QA check in oe-core: https://git.openembedded.org/openembedded-core/commit/?id=76a685bfcf927593eac67157762a53259089ea8a This is temporary work around just to hide _many_ warnings from optional patch-status (if you add it to WARN_QA). This just added Upstream-Status: Pending everywhere without actually investigating what's the proper status. This is just to hide current QA warnings and to catch new .patch files being added without Upstream-Status, but the number of Pending patches is now terrible: 5 (26%) meta-xfce 6 (50%) meta-perl 15 (42%) meta-webserver 21 (36%) meta-gnome 25 (57%) meta-filesystems 26 (43%) meta-initramfs 45 (45%) meta-python 47 (55%) meta-multimedia 312 (63%) meta-networking 756 (61%) meta-oe Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* klibc: Fix build with kernel 5.19 headersKhem Raj2022-08-192-0/+35
| | | | | | Backport relevant patch. Signed-off-by: Khem Raj <raj.khem@gmail.com>
* klibc: Upgrade to 2.0.10Khem Raj2022-08-1011-50/+9
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* klibc: Recognise --dyld-prefix clang optionKhem Raj2022-04-251-1/+4
| | | | | | This is added when usrmerge is enabled in distro Signed-off-by: Khem Raj <raj.khem@gmail.com>
* recipes: Update LICENSE variable to use SPDX license identifiersKhem Raj2022-03-041-1/+1
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* Convert to new override syntaxMartin Jansa2021-08-035-21/+21
| | | | | | | | | | 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>
* klibc: Add clang's -rtlib to known optionsKhem Raj2021-06-101-1/+4
| | | | | | | | | This helps in ensuring that we always link klibc apps with libgcc as compiler-rt does not work for klibc due to missing libssp functions e.g. __stack_chk_guard and __stack_chk_guard which it expects in libc Signed-off-by: Khem Raj <raj.khem@gmail.com> Cc: Andrea Adami <andrea.adami@gmail.com>
* klibc: Fix x86_64 build with binutils 2.36+Khem Raj2021-02-072-0/+53
| | | | | | | this patch is already on klibc mailing list Signed-off-by: Khem Raj <raj.khem@gmail.com> Cc: Andrea Adami <andrea.adami@gmail.com>
* klibc: Upgrade to 2.0.8 releaseKhem Raj2021-02-0415-132/+43
| | | | | | | Adjust klcc to work with clang Signed-off-by: Khem Raj <raj.khem@gmail.com> Cc: Andrea Adami <andrea.adami@gmail.com>
* klibc: Compile with -fcommonKhem Raj2020-08-131-1/+1
| | | | | | | | 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>
* recipes: Make powerpc64le overridesKhem Raj2020-01-191-0/+1
| | | | | | The existing conditions for ppc64/be are applicable for le as well Signed-off-by: Khem Raj <raj.khem@gmail.com>
* klibc: Apply -no-integrated-as on mips/clangKhem Raj2019-12-141-0/+1
| | | | | | | | | | | | | | | | | 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>
* klibc: Upgrade 2.0.6 -> 2.0.7Adrian Bunk2019-10-287-64/+6
| | | | | | | | | 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>
* klibc: Fix build with 5.2+ kernel headersKhem Raj2019-09-032-0/+37
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* klibc: Disable bcmp builtin for clang on glibc as wellKhem Raj2019-08-171-1/+1
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* klibc: Pass -fno-builtin-bcmp with musl/clang comboKhem Raj2019-08-081-1/+4
| | | | | | | | | | | | 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>
* klcc-cross: Recognise --unwindlib clang optionKhem Raj2019-08-031-5/+6
| | | | | Signed-off-by: Khem Raj <raj.khem@gmail.com> Cc: Andrea Adami <andrea.adami@gmail.com>
* klibc: Upgrade to 2.0.6 releaseKhem Raj2019-03-1426-423/+10
| | | | | | | 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>
* meta-initramfs: remove True option to getVar calls (again)André Draszik2019-01-131-2/+2
| | | | | | | | | | | | | | A couple have still been missed in the past despite multiple attempts at doing so (or simply have re-appeared?). Search & replace made using the following command: sed -e 's|\(d\.getVar \?\)( \?\([^,()]*\), \?True)|\1(\2)|g' \ -i $(git grep -E 'getVar ?\( ?([^,()]*), ?True\)' \ | cut -d':' -f1 \ | sort -u) Signed-off-by: André Draszik <andre.draszik@jci.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* klibc: Fix build with clangKhem Raj2018-12-092-0/+50
| | | | | | | | | | | | | 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>
* klibc: fix build for mipsel and mips64el with security flags enabledAndrea Adami2018-12-041-0/+3
| | | | | | | | | 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>
* klibc-static-utils: really fix build for x86 with security flags enabledAndrea Adami2018-10-102-0/+215
| | | | | | | | | | | | There were some shared binaries built together with the static ones and this was leading to the infamous: i586-oe-linux-musl-ld.bfd: discarded output section: `.got.plt' Fix this by purging the Kbuild files. Signed-off-by: Andrea Adami <andrea.adami@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* klibc.inc: lazy assign GCCPIE in case security_flags.inc was not includedAndrea Adami2018-09-251-0/+1
| | | | | | | | | | | | 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>
* klibc-utils: remove the two static binaries (kinit and gzip)Andrea Adami2018-09-171-5/+3
| | | | | | | | | | | | | | The shared utils can be built with security flags enabled. This breaks however build of kinit and gzipm both static. Remove them from this recipe. Fix QA Issue: 'klibc-utils-gzip/bin/gzip' has relocations in .text [textrel] 'klibc-utils-kinit/bin/kinit' has relocations in .text [textrel] Signed-off-by: Andrea Adami <andrea.adami@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* klibc-static-utils: fix textrel, disable security flags for the static utilsAndrea Adami2018-09-171-0/+4
| | | | | | | | | Fix WARNING: klibc-static-utils-2.0.4-r0 do_package_qa: QA Issue: ELF binary 'X' has relocations in .text [textrel] Signed-off-by: Andrea Adami <andrea.adami@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* klibc: fix build with GCC and -pie for mips, mips64, aarch64Andrea Adami2018-09-151-1/+3
| | | | | | | | | | | | | | | | | | 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>
* klibc: fix build on i386 with GCC and security flags enabledAndrea Adami2018-09-151-3/+3
| | | | | | | | | | 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>
* klibc: Fix build with security flagsKhem Raj2018-09-112-4/+33
| | | | | | | | | 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>
* klcc-cross: Recognise clang optionsKhem Raj2018-09-092-0/+20
| | | | | | | | 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>
* klibc_2.0.4: add kexec_file_load() and getrandom() syscallsAndrea Adami2018-09-053-0/+56
| | | | | | | 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>
* klibc-2.0.4: refresh patches (using devtool)Andrea Adami2018-05-0113-156/+185
| | | | | | Silence warnings about ingnored context. Signed-off-by: Andrea Adami <andrea.adami@gmail.com>
* recipes: use oe.utils.conditional instead of deprecated base_conditionalMartin Jansa2018-02-011-1/+1
| | | | Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
* klibc: Pass Optimization with KLIBCOPTFLAGSKhem Raj2017-10-042-1/+36
| | | | | | | | | | | | | | 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>
* klibc: Edit out gcc hardcoding in do_compileKhem Raj2017-09-181-1/+1
| | | | | | | | | 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>
* klibc: Fix include_next stdarg.h with clangKhem Raj2017-09-132-0/+31
| | | | | | | | | | | 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>
* klibc: Fix build with clangKhem Raj2017-08-132-0/+35
| | | | | | | 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>
* klibc: Fix build issue when default ISA is not thumbKhem Raj2017-07-241-1/+1
| | | | | | | | | 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>
* klibc: Fix linking by using bfd linker when default linker is goldKhem Raj2017-07-142-0/+31
| | | | | Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
* klibc: Fix build with muslKhem Raj2017-07-145-11/+200
| | | | | | | | | | | | 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>
* klibc: disable PARALLEL_MAKEAndrea Adami2017-04-241-0/+1
| | | | | | | | | | | | 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>
* klibc-utils_2.0.4: remove blacklistingAndrea Adami2017-02-161-2/+0
| | | | | | | Recipe does build with the pending changes for meta-initramfs. Signed-off-by: Andrea Adami <andrea.adami@gmail.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
* klcc-cross: Use SYSROOT_DIRS to add dirs to stage in sysrootAndrea Adami2017-02-161-6/+1
| | | | | | | As done for libtool-cross in oe-core. Signed-off-by: Andrea Adami <andrea.adami@gmail.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
* klcc-cross: restrict scope of SSTATE_SCAN_FILESAndrea Adami2017-02-161-1/+1
| | | | | | | | As done in libtool-cross from oe-core we prefer to be specific even when there is just one file. Signed-off-by: Andrea Adami <andrea.adami@gmail.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
* klcc-cross: disable packaging using appropriateAndrea Adami2017-02-161-7/+4
| | | | | | | | | Instead of deleting the packaging tasks we simply inherit nopackages.bbclass. Done that we do set PACKAGES to empty. Signed-off-by: Andrea Adami <andrea.adami@gmail.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
* klcc-cross: fixes for recipe specific sysrootAndrea Adami2017-02-161-5/+7
| | | | | | | | | | The klcc script encodes the paths with custom escaping. As stated in the patch "Turn the horribly encoded paths into something which sstate can transform using its ususal magic by removing all the crazy escaping". Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Andrea Adami <andrea.adami@gmail.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
* python-edbus exquisite elementary libeweather unionfs-fuse xfsprogs gmtk ↵Martin Jansa2017-02-131-0/+2
| | | | | | | | | devilspie2 gnome-backgrounds gnome-desktop gnome-mime-data gtk-engines gtksourceview2 libgnomekbd libidl-native onboard libgpewidget ubi-utils-klibc kexec-tools-klibc gupnp-igd gupnp-tools dvb-apps gstreamer mpd crda netcat-openbsd wireshark gnokii libmbim mosh networkmanager-openvpn libtelepathy dbus-daemon-proxy libdbus-c++ php vala-dbus-binding-tool collectd libgxim pywbem gtkhtml2 fbida fontforge libsexy wayland-fits xstdcmap xf86-video-glamo font-adobe-100dpi font-adobe-utopia-100dpi font-bh-100dpi font-bh-lucidatypewriter-100dpi font-misc-misc crash a2jmidid libsdl2-mixer libsdl-mixer minidlna sylpheed libsdl2-ttf libsdl-ttf ode pidgin postgresql syslog-ng usb-modeswitch xdg-user-dirs gateone python3-cryptography-vectors python3-ndg-httpsclient python-cryptography-vectors python-pbr bundler netdata menulibre openzone xfce4-verve-plugin iperf terminus-font xf86-video-nouveau ipmiutil klibc-utils pmbw multipath-tools gparted, gnome-system-monitor, php, vala-dbus-binding-tool, gtkmathview, lmsensors, postgresql: Blacklist * fails repeatedly as reported in: http://lists.openembedded.org/pipermail/openembedded-devel/2017-February/111112.html Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
* remove True option to getVar callsJoshua Lock2016-12-021-2/+2
| | | | | | | | | getVar() now defaults to expanding by default, thus remove the True option from getVar() calls with a regex search and replace. Search made with the following regex: getVar ?\(( ?[^,()]*), True\) Signed-off-by: Joshua Lock <joshua.g.lock@intel.com>