summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-kernel
Commit message (Collapse)AuthorAgeFilesLines
* pm-graph: upgrade 5.3 -> 5.5Naveen Saini2019-09-113-35/+42
| | | | | | | | | | This release has python3 support so updating python3 to RDEPENDS. python subprocess comes with python3-core, so removing from RDEPENDS. Removed patch, which is already merged in this release. Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* kernel-selftest: Needs error.h which is missing in muslKhem Raj2019-09-091-0/+2
| | | | | | | | prog_tests/flow_dissector.c:3:10: fatal error: error.h: No such file or directory | #include <error.h> | ^~~~~~~~~ Signed-off-by: Khem Raj <raj.khem@gmail.com>
* vboxguestdrivers,can-isotp,bpftool: Add to BlacklistKhem Raj2019-09-071-0/+1
| | | | | | They need forward porting to kernel 5.2+ Signed-off-by: Khem Raj <raj.khem@gmail.com>
* meta-oe: Replace EXCLUDE_FROM_WORLD_libc-musl = "1" with ↵Adrian Bunk2019-08-302-2/+2
| | | | | | | | | | COMPATIBLE_HOST_libc-musl = 'null' This gives users a proper error message when trying to build a known non-building package. Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* kernel-selftest: Explicitly disable stack protectorKhem Raj2019-08-291-20/+2
| | | | | | | | | | selftests do not support it and clang from meta-clang builds with this turned on by default Disable security flags completely, drop all workarounds used to get around the hoop Signed-off-by: Khem Raj <raj.khem@gmail.com>
* bpftool.bb: Disable SECURITY_CFLAGSKhem Raj2019-08-291-1/+3
| | | | | | | | | | | | | We do not pass CFLAGS to build and fortify sources needs some optimization to be enabled, its better to reset the additional flags and let the build system add them as it needs Fixes build failures like tools/include/tools/libc_compat.h:11:21: error: static declaration of 'reallocarray' follows non-static declaration | 11 | static inline void *reallocarray(void *ptr, size_t nmemb, size_t size) | | ^~~~~~~~~~~~ Signed-off-by: Khem Raj <raj.khem@gmail.com>
* kernel-selftest: Warn conditionally about clang-native dependencyKhem Raj2019-08-291-3/+4
| | | | | | | When meta-clang is in mix then it does the right thing already so no need to warn in that case Signed-off-by: Khem Raj <raj.khem@gmail.com>
* kpatch: upgrade 0.7.1 -> 0.8.0Yuan Chao2019-08-241-2/+2
| | | | | Signed-off-by: Yuan Chao <yuanc.fnst@cn.fujitsu.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* kernel-selftest: skip -Werror=format-security and fortifyMartin Jansa2019-08-121-0/+11
| | | | | Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* kpatch: upgrade 0.61 -> 0.71Zang Ruochen2019-08-113-37/+43
| | | | | | | | | -Refresh the following patch: kpatch/0001-kpatch-build-add-cross-compilation-support.patch kpatch/0002-kpatch-build-allow-overriding-of-distro-name.patch Signed-off-by: Zang Ruochen <zangrc.fnst@cn.fujitsu.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* kpatch: Pass ARCH from environmentKhem Raj2019-08-081-0/+1
| | | | | | | If not passed then it computes arch from `uname` and uname will be wrong on cross compiles when target != host Signed-off-by: Khem Raj <raj.khem@gmail.com>
* kpatch: fix QA build errors for nativesdkRuslan Bilovol2019-08-081-0/+1
| | | | | | | | | | | This patch fixes next QA Issue: nativesdk-kpatch: Files/directories were installed but not shipped in any package: /etc /etc/init /etc/init/kpatch.conf Signed-off-by: Ruslan Bilovol <rbilovol@cisco.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* pm-graph: fix time format parse errorLiwei Song2019-08-022-1/+35
| | | | | | | | Time format in dmesg has been changed from "%Y-%m-%d %H:%M:%S" to "%Y-%m-%dT%H:%M:%S", backport an upstream patch to fix this error. Signed-off-by: Liwei Song <liwei.song@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* meta-oe: Use GNU_MIRROR in more recipesAdrian Bunk2019-08-021-1/+1
| | | | | Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* oprofile: drop kernel-vmlinux from RRECOMMENDSMartin Jansa2019-07-301-1/+0
| | | | | | | | | | | | | | | | | | | | | * now with virtual/kernel dependency dropped we don't want to depend on kernel signature just for this RRECOMMENDS * fixes: === Comparing signatures for task do_package_write_ipk.sigdata between hammerhead and mako === ERROR: oprofile different signature for task do_package_write_ipk.sigdata between hammerhead and mako NOTE: Starting bitbake server... runtaskdeps changed: ['binutils/binutils_2.32.bb.do_packagedata', -linux/linux-lg-hammerhead_git.bb.do_packagedata, +linux/linux-lg-mako_git.bb.do_packagedata, 'opkg-utils/opkg-utils_0.4.1.bb.do_populate_sysroot:virtual:native oprofile/oprofile_1.3.0.bb.do_package oprofile/oprofile_1.3.0.bb.do_packagedata pseudo/pseudo_git.bb.do_populate_sysroot:virtual:native xz/xz_5.2.4.bb.do_populate_sysroot:virtual:native'] linux/linux-lg-hammerhead_git.bb.do_packagedata with hash 0c5215deb4737611ad413f57cf5fbdef8a9b2cc6d04035f754a4e93fb38f61d1 changed to linux/linux-lg-mako_git.bb.do_packagedata with hash 0f3b34773ca3e590739754c25959feb7cdcd67cf7904ac7fe6cc535e8d6519a8 Dependency on task linux/linux-lg-mako_git.bb.do_packagedata was added with hash 0f3b34773ca3e590739754c25959feb7cdcd67cf7904ac7fe6cc535e8d6519a8 Dependency on task linux/linux-lg-hammerhead_git.bb.do_packagedata was removed with hash 0c5215deb4737611ad413f57cf5fbdef8a9b2cc6d04035f754a4e93fb38f61d1 ERROR: 1 errors found in /home/jenkins/workspace/luneos-unstable/webos-ports/tmp-glibc/sstate-diff/1563368432/signatures.mako.do_package_write_ipk.sigdata.log Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* makedumpfile: Upgrade to 1.6.6Mingli Yu2019-07-213-30/+38
| | | | | | | Rebase two patches. Signed-off-by: Mingli Yu <mingli.yu@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* crash: Upgrade to 7.2.6Mingli Yu2019-07-211-1/+1
| | | | | Signed-off-by: Mingli Yu <mingli.yu@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* turbostat: set PACKAGE_ARCH as MACHINE_ARCHQi.Chen@windriver.com2019-07-101-0/+1
| | | | | | | | This recipe depends on 'virtual/kernel', so it should be MACHINE_ARCH. Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* pm-graph: fix multilib build failureNaveen Saini2019-06-182-2/+92
| | | | | | | | Added the generic library path used by multilib code Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com> Tested-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* oprofile: drop virtual/kernel dependency and switch back to TUNE_PKGARCHMartin Jansa2019-06-151-4/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * the kernel dependency was added couple years ago with: https://git.openembedded.org/openembedded-core/commit/?id=16bc366877a2e02d96adb91b90e30710777e6f09 the reasons for it no longer seem valid as it build ok without the dependency * there as some differences in the resulting binaries (built with and without kernel dependency): docker-shr qemux86-64@ ~/build/oe-core $ diff -rq tmp-glibc/work/*/oprofile/*/image Files tmp-glibc/work/core2-64-oe-linux/oprofile/1.3.0-r0-without-kernel-dep/image/usr/bin/ocount and tmp-glibc/work/qemux86_64-oe-linux/oprofile/1.3.0-r0-with-kernel-dep/image/usr/bin/ocount differ Files tmp-glibc/work/core2-64-oe-linux/oprofile/1.3.0-r0-without-kernel-dep/image/usr/bin/opannotate and tmp-glibc/work/qemux86_64-oe-linux/oprofile/1.3.0-r0-with-kernel-dep/image/usr/bin/opannotate differ Files tmp-glibc/work/core2-64-oe-linux/oprofile/1.3.0-r0-without-kernel-dep/image/usr/bin/oparchive and tmp-glibc/work/qemux86_64-oe-linux/oprofile/1.3.0-r0-with-kernel-dep/image/usr/bin/oparchive differ Files tmp-glibc/work/core2-64-oe-linux/oprofile/1.3.0-r0-without-kernel-dep/image/usr/bin/operf and tmp-glibc/work/qemux86_64-oe-linux/oprofile/1.3.0-r0-with-kernel-dep/image/usr/bin/operf differ Files tmp-glibc/work/core2-64-oe-linux/oprofile/1.3.0-r0-without-kernel-dep/image/usr/bin/opgprof and tmp-glibc/work/qemux86_64-oe-linux/oprofile/1.3.0-r0-with-kernel-dep/image/usr/bin/opgprof differ Files tmp-glibc/work/core2-64-oe-linux/oprofile/1.3.0-r0-without-kernel-dep/image/usr/bin/ophelp and tmp-glibc/work/qemux86_64-oe-linux/oprofile/1.3.0-r0-with-kernel-dep/image/usr/bin/ophelp differ Files tmp-glibc/work/core2-64-oe-linux/oprofile/1.3.0-r0-without-kernel-dep/image/usr/bin/opimport and tmp-glibc/work/qemux86_64-oe-linux/oprofile/1.3.0-r0-with-kernel-dep/image/usr/bin/opimport differ Files tmp-glibc/work/core2-64-oe-linux/oprofile/1.3.0-r0-without-kernel-dep/image/usr/bin/opreport and tmp-glibc/work/qemux86_64-oe-linux/oprofile/1.3.0-r0-with-kernel-dep/image/usr/bin/opreport differ * comparing the first one with diffoscope shows only 2 insignificant changes: - GNU 0x00000014 NT_GNU_BUILD_ID (unique build ID bitstring) Build ID: 71d68718f2b1393cce55605691453ca0615a985d + GNU 0x00000014 NT_GNU_BUILD_ID (unique build ID bitstring) Build ID: 3b6d2e8b3ce02b99a41e594fafb756e5648edd3c - 0x0041ab00 31203230 31390032 323a3334 3a333100 1 2019.22:34:31. + 0x0041ab00 31203230 31390032 323a3239 3a303600 1 2019.22:29:06. * similarly for other binaries Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* crash: do not use unstable github archive tarballsHongxu Jia2019-05-271-4/+4
| | | | | | | | Since commit [21f84fc insane: add sanity checks to SRC_URI] applied in oe-core, do not use unstable github archive tarballs Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* turbostat: copy bits.h from kernel to turbostatLiwei Song2019-05-241-0/+2
| | | | | | | | because bits.h was included in msr-index.h, so we also need copy bits.h from kernel to tubostat to aviod compile error. Signed-off-by: Liwei Song <liwei.song@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* pm-graph: add recipeNaveen Saini2019-05-231-0/+19
| | | | | | | | | | | This tool suite is designed to assist kernel and OS developers in optimizing their linux stack's suspend/resume & boot time. For more details and usage, please check: https://01.org/pm-graph Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* oprofile: make MACHINE_ARCHMartin Jansa2019-05-181-0/+3
| | | | | | | | | | | | | | | | | | | | | | * fixes: ERROR: oprofile different signature for task do_configure.sigdata between hammerhead and mako Hash for dependent task oprofile/oprofile_1.3.0.bb.do_prepare_recipe_sysroot changed from deecd34bc94f47935ce3dc7f83f9a8407269959e446518bd9700a2ebae4324bb to d4d6301a72fcd061c167a6715372a6e35f57bf08152a6223b1571957834428f0 Unable to find matching sigdata for /OE/build/luneos-master/webos-ports/meta-openembedded/meta-oe/recipes-kernel/oprofile/oprofile_1.3.0.bb.do_prepare_recipe_sysroot with hashes deecd34bc94f47935ce3dc7f83f9a8407269959e446518bd9700a2ebae4324bb or d4d6301a72fcd061c167a6715372a6e35f57bf08152a6223b1571957834428f0 $ bitbake-diffsigs /OE/build/luneos-master/webos-ports/tmp-glibc/sstate-diff/1557963509/[hm]*/*/oprofile/*do_prepare*.sigdata* runtaskdeps changed: ['autoconf/autoconf_2.69.bb.do_populate_sysroot:virtual:native automake/automake_1.16.1.bb.do_populate_sysroot:virtual:native binutils/binutils_2.32.bb.do_populate_sysroot gcc/gcc-cross_7.3.bb.do_populate_sysroot gcc/gcc-runtime_7.3.bb.do_populate_sysroot glibc/glibc_2.29.bb.do_populate_sysroot gnu-config/gnu-config_git.bb.do_populate_sysroot:virtual:native libtool/libtool-cross_2.4.6.bb.do_populate_sysroot libtool/libtool-native_2.4.6.bb.do_populate_sysroot', -linux/linux-lg-hammerhead_git.bb.do_populate_sysroot, +linux/linux-lg-mako_git.bb.do_populate_sysroot, 'oprofile/oprofile_1.3.0.bb.do_fetch pkgconfig/pkgconfig_git.bb.do_populate_sysroot:virtual:native popt/popt_1.16.bb.do_populate_sysroot'] linux/linux-lg-hammerhead_git.bb.do_populate_sysroot with hash e58e94601af73831ea51ca6cc18578c26b9b491bcadb82a2c590b22498447438 changed to linux/linux-lg-mako_git.bb.do_populate_sysroot with hash 4c7372d0063be9d5c96bfad20a2052ded3a7121a06027c21a75e79a4f6a678e3 Dependency on task linux/linux-lg-mako_git.bb.do_populate_sysroot was added with hash 4c7372d0063be9d5c96bfad20a2052ded3a7121a06027c21a75e79a4f6a678e3 Dependency on task linux/linux-lg-hammerhead_git.bb.do_populate_sysroot was removed with hash e58e94601af73831ea51ca6cc18578c26b9b491bcadb82a2c590b22498447438 * as detected with: openembedded-core/scripts/sstate-diff-machines.sh --targets=world --tmpdir=tmp-glibc/ --analyze --machines="hammerhead mako qemux86" Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* bpftool: remove LIC_FILES_CHKSUMNicolas Dechesne2019-05-101-1/+0
| | | | | | | | | | | | | | | bpftool is a 'special' recipe since it does "inherit kernelsrc", like perf in oe-core or cpupower in meta-oe. they don't have their own sources, but reuse the kernel source tree, from virtual/kernel recipe. As such, checking the license file does not seem relevant, since the fetching (and license check) is deferred to the virtual/kernel recipe. Remove LIC_FILES_CHKSUM like it is done in perf and cpupower. Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* cpupower: remove LIC_FILES_CHKSUMNicolas Dechesne2019-05-091-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | cpupower is a 'special' recipe since it does "inherit kernelsrc" , which essentially means that it doesn't have its own sources, but reuse the kernel source tree, from virtual/kernel recipe. As such, checking the license file in cpupower recipe does not seem relevant, since it does not fetch anything (kernelsrc has "deltask do_fetch") and the fetching is deferred to the virtual/kernel recipe. so we are basically checking the COPYING file twice. If there was any license issue, it would have been caught by virtual/kernel recipe already. Hence we remove LIC_FILES_CHKSUM like it is done for perf recipe in OE-core in meta/recipes-kernel/perf/perf.bb. It has the nice side effect that BSP layers can use different kernel versions without worrying about any LICENSE checksum changes in between kernel versions. Reported-by: Daniel Díaz <daniel.diaz@linaro.org> Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* cpupower: Inherit bash completion classKhem Raj2019-05-021-1/+1
| | | | | | | | | | Fixes ERROR: QA Issue: cpupower: Files/directories were installed but not shipped in any package: /usr/share/bash-completion /usr/share/bash-completion/completions /usr/share/bash-completion/completions/cpupower Signed-off-by: Khem Raj <raj.khem@gmail.com>
* crash: Upgrade to 7.2.5Mingli Yu2019-03-141-2/+2
| | | | | Signed-off-by: Mingli Yu <mingli.yu@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* makedumpfile: Upgrade to 1.6.5 to support kernel 4.18 and 4.19Haiqing Bai2019-03-072-10/+19
| | | | | | | | | | This upgrade fixed the below issue: When run '$makedumpfile -E -d 1 /proc/vmcore /root/vmcore_dumpfile' shows 'The kernel version is not supported.' Signed-off-by: Haiqing Bai <Haiqing.Bai@windriver.com> Signed-off-by: Yi Zhao <yi.zhao@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* oprofile: Fix build with clangKhem Raj2019-02-132-0/+132
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* meta-oe: remove True option to getVar calls (again)André Draszik2019-01-132-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>
* minicoredumper: Update to 2.0.1Pierre-Jean Texier2019-01-101-3/+2
| | | | | | | | | - Drop upstreamed patch - Update COPYING file checksum: the copyright date changes and there is a convertion to SPDX Format. Signed-off-by: Pierre-Jean Texier <pjtexier@koncepto.io> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* bpftool: don't build under muslKhem Raj2018-12-041-0/+2
| | | | | | | uses FTW_SKIP_SUBTREE which is GNU extentions, available in glibc but not in musl Signed-off-by: Khem Raj <raj.khem@gmail.com>
* makedumpfile: Add aarch64 into COMPATIBLE_HOST.leimaohui2018-12-021-2/+2
| | | | | Signed-off-by: Lei Maohui <leimaohui@cn.fujitsu.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* kernel-selftest: temporary disable bpf for arm - fix build for qemuarmAndrea Adami2018-10-271-0/+1
| | | | | | | | | | | | | | | Even running on 32bit the bpf objects are 64bit: this triggers the QA about bitsize mismatch 32 vs. 64. Besides, objdump does not recognize the arch 0xf7. Trying the workaround to use the llvm-objdump and setting TOOLCHAIN = "clang" the build for arm fails on libcxx |include/c++/8.2.0/atomic:250: undefined reference to `__atomic_load_4' Temporary disable bpf as done for x86/32bit as it seems still unstable. Signed-off-by: Andrea Adami <andrea.adami@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* cpupower: Update LIC_FILES_CHKSUMMingli Yu2018-10-161-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | Update LIC_FILES_CHKSUM for cpupower as the COPYING file which is used for LIC_FILES_CHKSUM has been changed in below commit: commit bf02d491237eea10290bd379bf7fc8c37ac6c3b4 Author: Mauro Carvalho Chehab <mchehab@s-opensource.com> Date: Fri Mar 23 06:51:06 2018 -0300 COPYING: use the new text with points to the license files Now that we have a new COPYING file with points to the Linux license files, replace it with the old content. This patch does: 1 file changed, 0 insertions(+), 0 deletions(-) rename COPYING.new => COPYING (100%) Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com> Signed-off-by: Jonathan Corbet <corbet@lwn.net> Signed-off-by: Mingli Yu <Mingli.Yu@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* crash: Update from 7.2.3 to to 7.2.4Randy MacLeod2018-10-101-2/+2
| | | | | | | Change log: http://people.redhat.com/anderson/crash.changelog.html Signed-off-by: Randy MacLeod <Randy.MacLeod@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* kernel-selftest: Remove bpf on x86/32bitKhem Raj2018-09-261-0/+1
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* kernel-selftest: Newer kernels 4.18+ need llc from llvmKhem Raj2018-09-241-1/+1
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* kernel-selftest: Fix build on muslKhem Raj2018-09-143-54/+5
| | | | | | | | | | | * (Depends upon a linux-libc-headers patch proposed to oe-core) * Delete unused patch * Mark Clang 6.0 as minimum required version * Do not hardcode python3 interpreter path Signed-off-by: Khem Raj <raj.khem@gmail.com> Cc: Hongzhi.Song <hongzhi.song@windriver.com> Cc: Martin Jansa <Martin.Jansa@gmail.com>
* ipmitool: Fix build with OpenSSL 1.1.xKhem Raj2018-09-082-1/+155
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* turbostat: Provide a persistent COPYING fileKhem Raj2018-08-292-7/+24
| | | | | | | | | we were having static md5 sum but the COPYING file was very much tied to certain versions of kernel this makes it fail for several different kernel versions so lets keep the upstream version of copying file Signed-off-by: Khem Raj <raj.khem@gmail.com>
* kernel-selftest: Fix the COPYING checksum variablityKhem Raj2018-08-282-358/+26
| | | | | | | | | | | | COPYING coming from kernel sources but the md5 is static value saved in recipe does not scale to all kind of machines which may have different kernel providers filling in, therefore keep a static copy of COPYING file as well, additionally copy LICENSES directory ( if it exists) into sources where all the real license texts are living Document need for clang Signed-off-by: Khem Raj <raj.khem@gmail.com>
* recipes: Exclude non-buildable recipes from world for musl buildKhem Raj2018-08-202-0/+6
| | | | | | | These recipes need to be fixed for musl, until they are needed on musl lets remove them from world builds Signed-off-by: Khem Raj <raj.khem@gmail.com>
* kernel-selftest: add dependency on libcapMartin Jansa2018-08-191-1/+1
| | | | | | | | | | | | * vm selftest uses it as well: i586-webos-linux-gcc -m32 -march=i586 -fstack-protector-strong -Wformat -Wformat-security -Werror=format-security --sysroot=kernel-selftest/1.0-r0/recipe-sysroot -Wall -I ../../../../usr/include -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fstack-protector-strong -Wl,-z,relro,-z,now mlock-random-test.c -lrt -lcap -o kernel-selftest/1.0-r0/kernel-selftest-1.0/tools/testing/selftests/vm/mlock-random-test mlock-random-test.c:8:10: fatal error: sys/capability.h: No such file or directory #include <sys/capability.h> ^~~~~~~~~~~~~~~~~~ compilation terminated. Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* kernel-selftest: add ptest supportDengke Du2018-08-192-1/+14
| | | | | | | Group the kernel-selftest testcases in run-ptest. Signed-off-by: Dengke Du <dengke.du@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* kernel-selftest: fix various issuesMartin Jansa2018-08-191-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * respect PACKAGECONFIG when setting TEST_LIST * call the sed in remove_clang_related only when bpf PACKAGECONFIG is enabled and if ${S}/tools/testing/selftests/bpf/Makefile doesn't exist then show more useful error message than: sed: can't read kernel-selftest/1.0-r0/kernel-selftest-1.0/tools/testing/selftests/bpf/Makefile: No such file or directory because kernels older than 4.10 don't have bpf selftest which was added in: https://github.com/torvalds/linux/commit/5aa5bd14c5f8660c64ceedf14a549781be47e53d * disable ldflags QA errors, the selftests Makefile explicitly overrides LDFLAGS to empty: https://github.com/torvalds/linux/blob/5aa5bd14c5f8660c64ceedf14a549781be47e53d/tools/testing/selftests/Makefile#L46 and the vm/Makefile doesn't respect LDFLAGS anyway: https://github.com/torvalds/linux/blob/5aa5bd14c5f8660c64ceedf14a549781be47e53d/tools/testing/selftests/vm/Makefile#L17 so it was causing a lot of errors: ERROR: kernel-selftest-1.0-r0 do_package_qa: QA Issue: No GNU_HASH in the elf binary: 'kernel-selftest/1.0-r0/packages-split/kernel-selftest/usr/kernel-selftest/vm/thuge-gen' No GNU_HASH in the elf binary: 'kernel-selftest/1.0-r0/packages-split/kernel-selftest/usr/kernel-selftest/vm/thuge-gen' No GNU_HASH in the elf binary: 'kernel-selftest/1.0-r0/packages-split/kernel-selftest/usr/kernel-selftest/vm/transhuge-stress' No GNU_HASH in the elf binary: 'kernel-selftest/1.0-r0/packages-split/kernel-selftest/usr/kernel-selftest/vm/transhuge-stress' No GNU_HASH in the elf binary: 'kernel-selftest/1.0-r0/packages-split/kernel-selftest/usr/kernel-selftest/vm/userfaultfd' No GNU_HASH in the elf binary: 'kernel-selftest/1.0-r0/packages-split/kernel-selftest/usr/kernel-selftest/vm/userfaultfd' No GNU_HASH in the elf binary: 'kernel-selftest/1.0-r0/packages-split/kernel-selftest/usr/kernel-selftest/vm/hugepage-shm' No GNU_HASH in the elf binary: 'kernel-selftest/1.0-r0/packages-split/kernel-selftest/usr/kernel-selftest/vm/hugepage-shm' No GNU_HASH in the elf binary: 'kernel-selftest/1.0-r0/packages-split/kernel-selftest/usr/kernel-selftest/vm/on-fault-limit' No GNU_HASH in the elf binary: 'kernel-selftest/1.0-r0/packages-split/kernel-selftest/usr/kernel-selftest/vm/on-fault-limit' No GNU_HASH in the elf binary: 'kernel-selftest/1.0-r0/packages-split/kernel-selftest/usr/kernel-selftest/vm/hugepage-mmap' No GNU_HASH in the elf binary: 'kernel-selftest/1.0-r0/packages-split/kernel-selftest/usr/kernel-selftest/vm/hugepage-mmap' No GNU_HASH in the elf binary: 'kernel-selftest/1.0-r0/packages-split/kernel-selftest/usr/kernel-selftest/vm/compaction_test' No GNU_HASH in the elf binary: 'kernel-selftest/1.0-r0/packages-split/kernel-selftest/usr/kernel-selftest/vm/compaction_test' No GNU_HASH in the elf binary: 'kernel-selftest/1.0-r0/packages-split/kernel-selftest/usr/kernel-selftest/vm/mlock2-tests' No GNU_HASH in the elf binary: 'kernel-selftest/1.0-r0/packages-split/kernel-selftest/usr/kernel-selftest/vm/mlock2-tests' No GNU_HASH in the elf binary: 'kernel-selftest/1.0-r0/packages-split/kernel-selftest/usr/kernel-selftest/vm/map_hugetlb' No GNU_HASH in the elf binary: 'kernel-selftest/1.0-r0/packages-split/kernel-selftest/usr/kernel-selftest/vm/map_hugetlb' [ldflags] * fix the formatting and useless append * add dependency on rsync-native as it's used during do_install: | make: Entering directory 'kernel-selftest/1.0-r0/kernel-selftest-1.0/tools/testing/selftests/vm' | rsync -a run_vmtests compaction_test hugepage-mmap hugepage-shm map_hugetlb mlock2-tests on-fault-limit thuge-gen transhuge-stress userfaultfd kernel-selftest/1.0-r0/image/usr/kernel-selftest/vm/ | /bin/sh: 1: rsync: not found | ../lib.mk:24: recipe for target 'install' failed Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* kernel-selftest: compatible with latest kernelHongzhi.Song2018-08-191-3/+3
| | | | | | | | There are some new program added for bpf. So we make corresponding modifications. Signed-off-by: Hongzhi.Song <hongzhi.song@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* kernel-selftest: fix various issuesMartin Jansa2018-08-161-11/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * respect PACKAGECONFIG when setting TEST_LIST * call the sed in remove_clang_related only when bpf PACKAGECONFIG is enabled and if ${S}/tools/testing/selftests/bpf/Makefile doesn't exist then show more useful error message than: sed: can't read kernel-selftest/1.0-r0/kernel-selftest-1.0/tools/testing/selftests/bpf/Makefile: No such file or directory because kernels older than 4.10 don't have bpf selftest which was added in: https://github.com/torvalds/linux/commit/5aa5bd14c5f8660c64ceedf14a549781be47e53d * disable ldflags QA errors, the selftests Makefile explicitly overrides LDFLAGS to empty: https://github.com/torvalds/linux/blob/5aa5bd14c5f8660c64ceedf14a549781be47e53d/tools/testing/selftests/Makefile#L46 and the vm/Makefile doesn't respect LDFLAGS anyway: https://github.com/torvalds/linux/blob/5aa5bd14c5f8660c64ceedf14a549781be47e53d/tools/testing/selftests/vm/Makefile#L17 so it was causing a lot of errors: ERROR: kernel-selftest-1.0-r0 do_package_qa: QA Issue: No GNU_HASH in the elf binary: 'kernel-selftest/1.0-r0/packages-split/kernel-selftest/usr/kernel-selftest/vm/thuge-gen' No GNU_HASH in the elf binary: 'kernel-selftest/1.0-r0/packages-split/kernel-selftest/usr/kernel-selftest/vm/thuge-gen' No GNU_HASH in the elf binary: 'kernel-selftest/1.0-r0/packages-split/kernel-selftest/usr/kernel-selftest/vm/transhuge-stress' No GNU_HASH in the elf binary: 'kernel-selftest/1.0-r0/packages-split/kernel-selftest/usr/kernel-selftest/vm/transhuge-stress' No GNU_HASH in the elf binary: 'kernel-selftest/1.0-r0/packages-split/kernel-selftest/usr/kernel-selftest/vm/userfaultfd' No GNU_HASH in the elf binary: 'kernel-selftest/1.0-r0/packages-split/kernel-selftest/usr/kernel-selftest/vm/userfaultfd' No GNU_HASH in the elf binary: 'kernel-selftest/1.0-r0/packages-split/kernel-selftest/usr/kernel-selftest/vm/hugepage-shm' No GNU_HASH in the elf binary: 'kernel-selftest/1.0-r0/packages-split/kernel-selftest/usr/kernel-selftest/vm/hugepage-shm' No GNU_HASH in the elf binary: 'kernel-selftest/1.0-r0/packages-split/kernel-selftest/usr/kernel-selftest/vm/on-fault-limit' No GNU_HASH in the elf binary: 'kernel-selftest/1.0-r0/packages-split/kernel-selftest/usr/kernel-selftest/vm/on-fault-limit' No GNU_HASH in the elf binary: 'kernel-selftest/1.0-r0/packages-split/kernel-selftest/usr/kernel-selftest/vm/hugepage-mmap' No GNU_HASH in the elf binary: 'kernel-selftest/1.0-r0/packages-split/kernel-selftest/usr/kernel-selftest/vm/hugepage-mmap' No GNU_HASH in the elf binary: 'kernel-selftest/1.0-r0/packages-split/kernel-selftest/usr/kernel-selftest/vm/compaction_test' No GNU_HASH in the elf binary: 'kernel-selftest/1.0-r0/packages-split/kernel-selftest/usr/kernel-selftest/vm/compaction_test' No GNU_HASH in the elf binary: 'kernel-selftest/1.0-r0/packages-split/kernel-selftest/usr/kernel-selftest/vm/mlock2-tests' No GNU_HASH in the elf binary: 'kernel-selftest/1.0-r0/packages-split/kernel-selftest/usr/kernel-selftest/vm/mlock2-tests' No GNU_HASH in the elf binary: 'kernel-selftest/1.0-r0/packages-split/kernel-selftest/usr/kernel-selftest/vm/map_hugetlb' No GNU_HASH in the elf binary: 'kernel-selftest/1.0-r0/packages-split/kernel-selftest/usr/kernel-selftest/vm/map_hugetlb' [ldflags] * fix the formatting and useless append * add dependency on rsync-native as it's used during do_install: | make: Entering directory 'kernel-selftest/1.0-r0/kernel-selftest-1.0/tools/testing/selftests/vm' | rsync -a run_vmtests compaction_test hugepage-mmap hugepage-shm map_hugetlb mlock2-tests on-fault-limit thuge-gen transhuge-stress userfaultfd kernel-selftest/1.0-r0/image/usr/kernel-selftest/vm/ | /bin/sh: 1: rsync: not found | ../lib.mk:24: recipe for target 'install' failed Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
* oprofile: upgrade 1.2.0 -> 1.3.0Changqing Li2018-08-114-41/+10
| | | | | Signed-off-by: Changqing Li <changqing.li@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>