Commit Graph

350 Commits

Author SHA1 Message Date
Mingli Yu
d477cbb526 minicoredumper: correct the sysvinit service file attribute
Add the execute attribute for sysvinit service file to fix the
below error:
  $ service minicoredumper status
  minicoredumper: unrecognized service

Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-05-15 19:44:46 -07:00
Alexander Amelkin
05acb8d066 ipmitool: Update links
The project has been moved to CodeBerg.org.
Update the links in the recipe and also bump to the
latest revision (1.8.19.13).

Additionally fix the link to the IANA PEN registry as IANA
has changed their URL scheme some time ago and the old link
started pointing to the HTML page instead of the text file.

Signed-off-by: Alexander Amelkin <alexander@amelkin.msk.ru>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-05-15 09:37:58 -07:00
Wang Mingyu
43f33cb308 makedumpfile: upgrade 1.7.2 -> 1.7.3
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-05-08 21:45:53 -07:00
Wang Mingyu
41165d754e libbpf: upgrade 1.1.0 -> 1.2.0
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-05-08 21:37:55 -07:00
Wang Mingyu
d250a0dc02 libtraceevent: upgrade 1.7.1 -> 1.7.2
Changelog:
==========
- Fix big-endian build breakage in unit tests
- Fix double free in process_sizeof() function
- Cleaned up process_sizeof() function as well

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-04-04 13:39:46 -07:00
Wang Mingyu
15b2d49d34 libpfm4: upgrade 4.12.0 -> 4.13.0
Changelog:
==========
  update Intel SKL/SKX/CLX event table
  add ARM Neoverse V2 core PMU support
  move ARM Neoverse N2 to ARMv9 support
  add ARM v9 support basic infrastructure
  add Arm Neoverse V1 core PMU support
  Update Intel SapphireRapid event table
  update Intel Icelake event table
  update AMD Zen4 event table
  add AMD Zen4 core PMU support
  correctly detect all AMD Zen3 processors
  fix CPU_CLK_UNHALTED.REF_DISTRIBUTED on Intel Icelake

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-04-04 13:39:46 -07:00
Mingli Yu
888be5219e crash: Upgrade to 8.0.2
Upgrade crash to 8.0.2 and rebase 4 patches to the new version.

Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-03-09 09:54:04 -08:00
Xiangyu Chen
aa0b25ddb5 libbpf: upgrade 0.8.0 -> 1.1.0
Changelog:
https://github.com/libbpf/libbpf/releases/tag/v1.1.0

Signed-off-by: Xiangyu Chen <xiangyu.chen@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-03-09 09:10:52 -08:00
Martin Jansa
285b7cd79f .patch: fix Upstream-Status formatting issues reported by patchreview tool from oe-core
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-02-24 08:45:44 -08:00
Wang Mingyu
c840260ff4 minicoredumper: upgrade 2.0.2 -> 2.0.3
0001-minicoredumper_demo-Use-optnone-attribute-with-clang.patch
removed since it's included in 2.0.3

Changelog:
==========
* Dump zero-blocks as 4KB blocks instead of single bytes to speed up
   piping to the compressor. (Only relevant if tar is not used.)

 * Drop core data exceeding the ustar 8GB limit. The core file is
   appropriately truncated and the actions are logged. This fixes tar
   file corruption for core files >8GB.

 * Known problems:

     - If tar is active, core files larger than 8GB will be
       truncated. If it is known that the core files will be >8GB and
       the full core file is needed, tar must be disabled.

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-02-18 13:19:36 -08:00
Khem Raj
26fb498ed3 oprofile: Do not use std::bind2nd
std::bind2nd is removed from c++17, therefore re-implement with generic
lambda

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-02-06 20:48:39 -08:00
Khem Raj
5c43f2b9a1 minicoredumper: Upgrade to 2.0.2 release
Drop patches already upstreamed.
Add patch to fix tests with clang compiler

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-02-04 16:59:40 -08:00
Simone Weiss
963f55df9e minicoredumper: Add ptest
Add the demo from minicoredumper - that is intended as a test for it -
as a ptest for minicoredumper.

Result example:

root@qemux86-64:~# ptest-runner minicoredumper
START: ptest-runner
2023-02-02T12:27
BEGIN: /usr/lib/minicoredumper/ptest
minicoredumper_demo
expecting Segmentation fault with core dump ...
[   21.791878] minicoredumper_[330]: segfault at 0 ip 00000000004014f2 sp
00007ffe4271f870 error 4 in minicoredumper_demo[401000+1000] likely on CPU 0
(core 0, socket 0)
[   21.793886] Code: 00 b8 00 00 00 00 e8 7d fb ff ff 83 bd 5c ff ff ff 01 75
2f 48 c7 45 e8 00 00 00 00 bf 58 21 40 00 e8 52 fb ff ff 48 8b 45 e8 <0f> b6
00 0f be c0 89 c6 bf 77 21 40 00 b8 00 00 00 00 e8 47 ff
/usr/lib/minicoredumper/ptest/run-ptest: line 6:   330 Segmentation fault
minicoredumper_demo
minicoredumper
SUCCESS
DURATION: 3
END: /usr/lib/minicoredumper/ptest
2023-02-02T12:28
STOP: ptest-runner
TOTAL: 1 FAIL: 0
root@qemux86-64:~#

Please note the Segmentation fault is intended to provoke a coredump.

Signed-off-by: Simone Weiss <simone.weiss@elektrobit.com>
Signed-off-by: Kai Tomerius <kai.tomerius@elektrobit.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-02-03 07:47:10 -08:00
Martin Jansa
49c1e98885 meta: remove True option to getVar calls (again)
* True is default since 2016 and most layers were already updated
  not to pass this parameter where not necessary, e.g. oe-core was
  updated couple times, first in:
  https://git.openembedded.org/openembedded-core/commit/?id=7c552996597faaee2fbee185b250c0ee30ea3b5f

  Updated with the same regexp as later oe-core update:
  https://git.openembedded.org/openembedded-core/commit/?id=9f551d588693328e4d99d33be94f26684eafcaba

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-02-01 09:28:47 -08:00
Martin Jansa
ea63f13846 .patch: fix Signed-off-by formatting issues reported by patchreview tool from oe-core
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-01-27 17:06:52 -08:00
Martin Jansa
e99f187966 .patch: fix Upstream-Status formatting issues reported by patchreview tool from oe-core
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-01-27 17:06:52 -08:00
Wang Mingyu
bf10ef1aa6 libtracefs: upgrade 1.6.3 -> 1.6.4
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-01-17 01:05:53 -08:00
Wang Mingyu
1585947cb9 libtraceevent: upgrade 1.7.0 -> 1.7.1
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-01-17 01:05:53 -08:00
Khem Raj
cadbdb28af ipmitool: Remove unneeded patch
This has been fixed with [1]

[1] https://github.com/ipmitool/ipmitool/commit/1724b031

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-01-11 10:20:40 -08:00
Lei Maohui
a0b2c27a4b trace-cmd: Fix QA Issue of do_package when enable multilib:
ERROR: trace-cmd-3.1.5-r0 do_package: QA Issue: trace-cmd: Files/directories were installed but not shipped in any package:
  /usr/usr/lib64/libtracecmd.so
  /usr/usr/lib64/libtracecmd.so.1.3.0
  /usr/usr/lib64/libtracecmd.so.1

Signed-off-by: Lei Maohui <leimaohui@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-01-11 08:37:58 -08:00
Khem Raj
98703d0c8b trace-cmd: Update to upstream submitted patches
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-01-11 08:37:57 -08:00
Khem Raj
e2116edf7b trace-cmd: Upgrade to 3.1.5
= Drop uneeded 0001-trace-cmd-make-it-build-with-musl.patch
- Update LFS64 patch with the upstream submitted one
- Add a patch to remove useless rpaths

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-01-06 17:37:58 -08:00
Khem Raj
b713e454c1 libtraceevent: Move plugins into package of its own
From Peter Bergin <peter@berginkonsult.se>
see cf672ba52f

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-01-06 17:37:58 -08:00
Khem Raj
bbc75d46ec trace-cmd: Build libs before building rest
There is a dependency on libs in trace-cmd binaries
so lets build libs first before building trace-cmd

Fixes errors like

trace-cmd/2.9.1-r0/git/tracecmd/trace-record.o: in function `make_instances':
| /usr/src/debug/trace-cmd/2.9.1-r0/tracecmd/trace-record.c:5037: undefined reference to `tracefs_instance_create'

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-01-06 11:38:16 -08:00
Khem Raj
7f15e7975f trace-cmd: Pass ldflags to compiler
Fixes
File /usr/lib/traceevent/libtraceevent.so in package trace-cmd doesn't have GNU_HASH (didn't pass LDFLAGS?)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-12-27 09:55:19 -08:00
Khem Raj
f84fd3a028 trace-cmd: Remove use of off64_t and lseek64
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-12-24 14:30:48 -08:00
Khem Raj
78c9d3bc1d libtracefs: Add recipe
Needed by trace-cmd

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-12-24 14:30:48 -08:00
Khem Raj
191491f5e1 libtraceevent: Add recipe
Its needed by trace-cmd

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-12-24 14:30:48 -08:00
Gianluigi Spagnuolo
a28b7fdbf4 libbpf: add native and nativesdk BBCLASSEXTEND
To build pahole-native we need libbpf-native

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-11-30 09:46:47 -08:00
Xiangyu Chen
6ebff843cc ipmitool: fix typo in .bb file's comments, using = instead of =?
Signed-off-by: Xiangyu Chen <xiangyu.chen@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-11-01 10:13:47 -07:00
Wang Mingyu
9712b6ea41 makedumpfile: upgrade 1.7.1 -> 1.7.2
Changelog:
=========
- LoongArch64 architecture support
- Support kernels up to v6.0 (x86_64)

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-10-24 09:56:33 -07:00
Wang Mingyu
0afaceb22a broadcom-bt-firmware: upgrade
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-10-18 08:23:44 -07:00
Gianluigi Spagnuolo
b53a59f326 bpftool: add aarch64 to COMPATIBLE_HOST 2022-09-29 08:14:17 -07:00
wangmy
eac0f028bd libpfm4: upgrade 4.11.0 -> 4.12.0
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-09-20 18:55:26 -07:00
Khem Raj
b0d2977fb1 ipmitool: Update to 1.8.19
Remove backported patches
Add a patch to fix build with clang
Add a patch to stop downloading IANA registry during configure

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-09-05 22:49:35 -07:00
Khem Raj
d8e4451e47 ipmiutil: Add missing headers for protypes of free/malloc/atoi
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-09-05 22:49:35 -07:00
Khem Raj
c49b8b8778 oprofile: Fix configure check for perf_events support
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-09-05 22:49:35 -07:00
Sakib Sajal
e231c86e28 minicoredumper: retry elf parsing as long as needed
Maximum number of tries, in rare cases, is insufficient for
elf parse. Backport patch that fixes the issue.

Signed-off-by: Sakib Sajal <sakib.sajal@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-06-30 07:01:38 -04:00
Wang Mingyu
e73f940f9c libbpf: upgrade 0.7.0 -> 0.8.0
Changelog:
https://github.com/libbpf/libbpf/releases/tag/v0.8.0

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-05-24 08:39:45 -07:00
Randy MacLeod
66e6353c57 intel-speed-select: Add libnl dependency and extend CFLAGS
Add libnl dependency and extend CFLAGS to include the libnl3 directory.

Signed-off-by: Randy MacLeod <Randy.MacLeod@windriver.com>
Signed-off-by: Aryaman Gupta <aryaman.gupta@windriver.com>
Signed-off-by: Randy MacLeod <Randy.MacLeod@windriver.com>
Signed-off-by: Aryaman Gupta <aryaman.gupta@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-05-09 18:45:07 -07:00
Chase Qi
fd330c4514 kernel-selftest: install kselftest runner
Install kselftest runner and the required kselftest-list.txt.

Signed-off-by: Chase Qi <chase.qi@linaro.org>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-05-07 18:47:16 -07:00
Khem Raj
f994a19220 makedumpfile: Use right TARGET for ppc32
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-05-01 07:59:42 -07:00
Mingli Yu
f2748082e8 makedumpfile: Upgrade to 1.7.1
Remove related man pages gz logic as it's removed in new version [1].

[1] 2169de66ec

Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-04-25 11:46:44 -07:00
Khem Raj
224d8a8cbe crash: Fix build for mips target
The patch to remove these options is removed therefore instrument them
via sed operations

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Cc: Mingli Yu <mingli.yu@windriver.com>
2022-04-22 17:58:09 -07:00
Mingli Yu
c7ce2371c0 crash: Upgrade to 8.0.0
The bundled gdb upgraded to 10.2 [1] and remove related patches
against the previous gdb 7.6.

[1] ec568e2ea5

Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-04-22 17:58:09 -07:00
Khem Raj
bb71d97301 libpfm4: Remove -Werror from compiler flags
Newer versions of compilers get stricter and add new diagnostics which
cause build failures that upstream should address not distros

Fixes
| In function 'perf_table_alloc_umask',
|     inlined from 'gen_tracepoint_table' at pfmlib_perf_event_pmu.c:434:10:
| pfmlib_perf_event_pmu.c:304:47: error: pointer may be used after 'realloc' [-Werror=use-after-free]

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-04-13 19:21:41 -07:00
wangmy
568d2f6dfc libbpf: upgrade 0.5.0 -> 0.7.0
Changelog:
https://github.com/libbpf/libbpf/releases/tag/v0.7.0

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-04-12 09:28:25 -07:00
wangmy
01104d4ef1 broadcom-bt-firmware: upgrade 12.0.1.1105_p2 -> 12.0.1.1105_p3
Changelog:
==========
Fixed #26 (unable to install RPM pacakge), updated documentation.

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-04-11 08:52:55 -07:00
Khem Raj
e3e020c1a3 libbpf: Enable on ppc64
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-03-21 08:25:11 -07:00
Khem Raj
745a79ce54 libbpf: Enable builds for riscv64
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-03-05 23:14:47 -08:00
Khem Raj
14c7d8a0d7 recipes: Update LICENSE variable to use SPDX license identifiers
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-03-04 17:41:45 -08:00
Claus Stovgaard
6a271fd428 Added usbip-tools for kernel USB/IP
Userspace tool from the kernel. Used for control the client/server of
USB/IP. The server expect USB devices and the client import them on the
client machine. Making it look like a device is physical connected to
the client, even though it is physical connected to the server.

Signed-off-by: Claus Stovgaard <clst@ambu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-12-21 18:49:37 -08:00
William A. Kennington III
f5c6c4bf9a ipmitool: Split ipmievd into a separate package
We generally want to use ipmitool without the event daemon. Generally
this utility is less commonly used and takes up space in our images.

Signed-off-by: William A. Kennington III <wak@google.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-12-21 18:49:37 -08:00
Fathi Boudra
2fdb6eb87e makedumpfile: upgrade from 1.6.9 to 1.7.0
* Drop 0002-mem_section-Support-only-46-bit-for-MAX_PHYSMEM_BITS.patch
  This patch has been introduced in January 2017 for makedumpfile 1.6.1.
  It has never reached upstream, hence the pending status is
  inappropriate. Since that time, the upstream code to retrieve
  MAX_PHYSMEM_BITS has been updated to use vmcoreinfo, with a backward
  compatibility for older kernels.
* Remove the deprecated comment about arm/aarch64 would compile but has never
  been tested upstream, introduced in July 2016. Nowadays, it works just fine
  on those architectures.
* Add PACKAGECONFIG option for zstd compression
  Since 1.7.0 release, Zstandard (zstd) compression support has been added.
  With zstd, the vmcore size and time consumption can have a better balance
  than zlib/lzo/snappy.
  http://lists.infradead.org/pipermail/kexec/2021-September/023011.html

Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-11-18 11:07:10 -08:00
Richard Purdie
b402a3076f recipes: Update SRC_URI branch and protocols
This patch updates SRC_URIs using git to include branch=master if no branch is set
and also to use protocol=https for github urls as generated by the conversion script
in OE-Core.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-11-03 06:57:49 -07:00
Oleksandr Kravchuk
ec41b54b29 libbpf: fix PV
Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-10-16 09:50:38 -07:00
Matteo Croce
1664cb6c8f libbpf: bump to 0.5.0
Signed-off-by: Matteo Croce <mcroce@microsoft.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-09-14 19:14:42 -07:00
zangrc
c833f02489 crash: upgrade 7.2.9 -> 7.3.0
Refresh the following patch:
donnot-extract-gdb-during-do-compile.patch
remove-unrecognized-gcc-option-m32-for-mips.patch

0001-printk-add-support-for-lockless-ringbuffer.patch
0002-printk-use-committed-finalized-state-values.patch
Removed since these are included in 7.3.0.

Signed-off-by: Zang Ruochen <zangrc.fnst@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-09-09 09:34:13 -07:00
Peter Morrow
4c21b66338 libbpf: remove kernel configuration dependency
This dependency introduces a cycle with pahole:

```
kernel --> pahole --> libbpf
  ^                      /
   \                    /
    `------------------<
```

pahole is a build time dependency of the kernel which is required to
generate BTF symbols. The dependency on the kernel configuration is nice
to have but makes using pahole during kernel compile time impossible.

Furthermore this dependency doesn't make sense when building libbpf
purely to ship it via a SDK.

Signed-off-by: Peter Morrow <pemorrow@linux.microsoft.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-09-07 10:03:49 -07:00
Peter Morrow
2fcda37554 libbpf: remove stale comment
The license typo (LPGL --> LGPL) was fixed in libbpf 0.4.

Signed-off-by: Peter Morrow <pemorrow@linux.microsoft.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-08-31 09:05:43 -07:00
Matteo Croce
8d62db7265 libbpf: bump to 0.4.0
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-08-26 11:57:26 -07:00
Martin Jansa
c61dc077bb Convert to new override syntax
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-08-03 10:21:25 -07:00
Khem Raj
c5f7cfb8db libhugetlbfs: Disable build with glibc 2.34+
It uses __morecore internal function from glibc which has been removed
in 2.34+ and replacing it is not so simple and upstream needs to fix it
see [1]

[1] https://github.com/libhugetlbfs/libhugetlbfs/issues/52

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-08-03 10:21:25 -07:00
Olivier Georget
d02bd48673 libpfm4 4.10.1 : enable arm64 host platform
libpfm4 is only enabled for powerpc arch as of now.
This enables the lib on Arm 64bit platform as well.

Signed-off-by: Olivier Georget <olivier.georget@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-06-25 08:37:42 -07:00
Daniel Klauer
6892201821 spidev-test: Update common-licenses reference
The license files were renamed in oe-core to match the SPDX names.

Most recipes here were already updated in commit ed54f12e19
("recipes: Update common-licenses references to match new names"),
but spidev-test was still missing.

Signed-off-by: Daniel Klauer <daniel.klauer@gin.de>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-06-18 08:39:32 -07:00
Khem Raj
b649d4cde4 libpfm4: Upgrade to 4.11.0
Add a patch to fix compiler error with latest clang compiler

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-06-18 08:33:07 -07:00
LiweiSong
8edab5f09d pm-graph: parse separated cpu exec line
if cpu exec line was split into different line, there will be an error
when parse it:

  File "/usr/bin/sleepgraph", line 3165, in parseTraceLog
    proclist[name] = int(val[1])
IndexError: list index out of range

check this case and append to parse the unfinished line.

Signed-off-by: Liwei Song <liwei.song@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-05-28 06:55:33 -07:00
zangrc
2c4ee27216 makedumpfile: upgrade 1.6.8 -> 1.6.9
Signed-off-by: Zang Ruochen <zangrc.fnst@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-05-19 18:39:35 -07:00
wangmy
d8402fdd6f trace-cmd: Conflict resolution
perf(oe-core) also uses the doc included in plugins/, so package it in own subdirs of trace-cmd.

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-05-19 18:39:35 -07:00
Khem Raj
af43242a22 minicoredumper: Replace pthread_mutexattr_setrobust_np with pthread_mutexattr_setrobust
Remove unused patch 0001-minicoredumper-Initialize-pointer-to-config-struct-t.patch

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-05-11 08:27:27 -07:00
Bruce Mitchell
5f3f162145 makedumpfile: Bump srcrev
supports for kernel 5.10, prior to 1.6.9 release

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-05-06 20:56:59 -07:00
INC@Cisco)
120de5e02a bpftool: improve reproducibility
Pass -f(debug|macro)-prefix-map through CC because libbpf
build system overrides CFLAGS. Also remap STAGING_KERNEL_DIR
because it is also stored in resulting executable

Signed-off-by: Denys Zagorui <dzagorui@cisco.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-03-30 09:15:52 -07:00
INC@Cisco)
2179569945 bpftool: remove recipe from blacklist
Have not seen build issues for 5.4 and 5.10
x86-64 kernels so allow to build it

Signed-off-by: Denys Zagorui <dzagorui@cisco.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-03-28 12:12:58 -07:00
Khem Raj
04e2f6b543 oprofile: Upgrade to 1.4.0 release
Drop upstreamed patches
Backport musl fix and deterministic build patches from master

Release notes - https://oprofile.sourceforge.io/release-notes/oprofile-1.4.0

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-03-18 11:26:33 -07:00
Khem Raj
0587a7c65a oprofile: Fix build on musl
MAX_INPUT is defined in linux/limits.h, therefore include it

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-03-13 00:56:14 -08:00
Khem Raj
9480e9681b libbpf: Depend on virtual/kernel:do_shared_workdir
its checking for .config values which means we need to stage kernel
sources before executing do_compile

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Cc: Matteo Croce <mcroce@microsoft.com>
2021-03-11 15:00:07 -08:00
Matteo Croce
ac05388b62 libbpf: use pkg-config
The libbpf makefile uses pkg-config to get the libelf build flags and
file paths.
Inherit pkgconfig so the install target can copy the binaries in the
sysroot, which are needed by other packages, like bcc.

Signed-off-by: Matteo Croce <mcroce@microsoft.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-03-11 00:12:55 -08:00
Matteo Croce
e80d14dc55 recipes-kernel: add libbpf
Add a recipe to build libbpf from https://github.com/libbpf/libbpf
The only patch fixes a build issue, and it's already merged upstream.

Signed-off-by: Matteo Croce <mcroce@microsoft.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-02-27 07:21:29 -08:00
Mingli Yu
1f1f01cf09 crash: add support for lockless ringbuffer
Backport 2 patches to add support for lockless ringbuffer to fix
below issue:
crash: cannot determine length of symbol: log_end

Reference: https://github.com/crash-utility/crash/issues/74

Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-02-20 10:40:53 -08:00
Khem Raj
9ed4bea30b kernel-selftest: Disable building bpf
with 5.10 it builds bpf-bootstrap tool and then tries to run it as well
which wont work in cross builds. Disable it until it can be make cross
compile friendly.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-02-08 22:48:21 -08:00
zhengruoqin
89eb9a1dde crash: upgrade 7.2.8 -> 7.2.9
crash/0001-Fix-for-an-ARM64-gcc-10-compilation-error.-Without-t.patch
Removed since this is included in 7.2.9

Signed-off-by: Zheng Ruoqin <zhengrq.fnst@cn.fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-11-30 22:42:20 -08:00
Beniamin Sandu
45b9864e13 trace-cmd: create recipe for version 2.9.1
Signed-off-by: Beniamin Sandu <beniaminsandu@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-11-30 11:40:31 -08:00
Alexander Kamensky
1a505b094d makedumpfile: upgrade 1.6.7 -> 1.6.8
* Starting with 1.6.8 makedumpfile project migrated from sourceforge to github;
properly updated SRC_URI, HOMEPAGE, UPSTREAM_CHECK_XX

* Refreshed patch 0001-makedumpfile-replace-hardcode-CFLAGS.patch

* Refreshed patch 0002-mem_section-Support-only-46-bit-for-MAX_PHYSMEM_BITS.patch;
had conflict in patch removed function, is this patch still required?

* Removed 0001-PATCH-Remove-duplicated-variable-definitions.patch backported
patch

* Added dependency to xz required by new version

Signed-off-by: Alexander Kamensky <alexander.kamensky42@gmail.com>
2020-11-23 07:09:33 -08:00
Alexander Kamensky
b1cae56126 makedumpfile: add PACKAGECONFIG options for lzo and snappy compression
makedumpfile can be compiled with lzo and/or snappy dump file compression
support. Lzo and snappy offer faster compression time but slightly bigger
compressed files. When reload time is important it might be beneficial to use
lzo or snappy compression.

But it brings additional dependencies and can make crash image bigger.

Add makedumpfile PACKAGECONFIG that would allow to add lzo and/or snappy if so
desired.

Signed-off-by: Alexander Kamensky <alexander.kamensky42@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-11-12 16:13:45 -08:00
Khem Raj
e051b0f08b kernel-selftest: Disable vm packageconfig for riscv
it now needs libhugetlbfs which is not ported to riscv yet

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-11-04 09:57:18 -08:00
Khem Raj
9949d2714d kernel-selftest: Disable vm tests for mips/arm
Include lib and kernel subdirs as vm tests need headers from it in 5.8+
(test_hmm_uapi.h) see [1]

It now uses tests which are not compatible on arm starting with 5.8+

[1] https://lkml.org/lkml/2020/4/22/1654

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-08-24 13:04:03 -07:00
Khem Raj
3422ffac1d kernel-selftest: Tests in 5.8 depend on libhugetlbfs.h
Fixes
| hmm-tests.c:24:10: fatal error: hugetlbfs.h: No such file or directory
|    24 | #include <hugetlbfs.h>
|       |          ^~~~~~~~~~~~~

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-08-21 10:16:29 -07:00
Khem Raj
c699d2088e crash: Fix arm64 build with -fno-common
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-08-17 12:26:41 -07:00
Khem Raj
8e53fff2e9 makedumpfile: Fix build with -fno-common
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-08-13 22:37:48 -07:00
Khem Raj
f826560497 ipmitool: Fix build with -fno-common
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-08-13 22:37:48 -07:00
Oleksandr Kravchuk
2cd74e9983 broadcom-bt-firmware: add PE back
It was mistakenly removed in @77469168db5062.

Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-07-31 13:22:53 -07:00
Oleksandr Kravchuk
77469168db broadcom-bt-firmware: update to 12.0.1.1105_p2
Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-07-28 12:52:14 -07:00
Pierre-Jean Texier
110fa8902d minicoredumper: update SRC_URI to use github instead
Change SRC_URI:

 - all minicoredumper related sources moved to https://github.com/diamon/minicoredumper

>From the NEWS:

The Linux Foundation will be shutting down their git service for workgroups.
The minicoredumper repository and bug tracking has been moved to the DiaMon
Workgroup account on github.com. We thank the Linux Foundation for providing
us the git service over the last 5 years.

Signed-off-by: Pierre-Jean Texier <pjtexier@koncepto.io>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-07-02 08:55:20 -07:00
Liwei Song
2719a80949 pm-graph: add flags support for RT kernel
with PREEMPT_RT enabled in kernel, ftrace have a different
falgs compare with standard kernel. Add supported for
RT kernel ftrace flags format.

Signed-off-by: Liwei Song <liwei.song@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-06-22 23:23:57 -07:00
Yongxin Liu
668d0152c7 intel-speed-select: Add new recipe for the tool to validate Intel SST
Signed-off-by: Yongxin Liu <yongxin.liu@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-06-10 20:55:08 -07:00
Robert P. J. Day
d7f5367b53 use weak assignments for PNBLACKLIST in recipe files
Make sure PNBLACKLIST assignments in recipe files use weak assignment,
so they can be overridden in, for example, local.conf files.

Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-05-26 10:28:39 -07:00
Yanfei Xu
90bcc2bd49 turbostat: fix the build failure for new v5.7-rc6 kernel
Due to the new v5.7-rc6 kernel has some modify in header
files, turbostat build failed. Now match the files.

Signed-off-by: Yanfei Xu <yanfei.xu@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-05-22 09:03:04 -07:00
Khem Raj
f33a094ddb oprofile: Disable build on riscv
Not supported arch yet

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-04-25 08:32:41 -07:00
Khem Raj
29076c7492 crash: Do not build on riscv
Keep mips64 exclusion as well

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-04-25 08:32:41 -07:00
Khem Raj
2bb2736bf1 kernel-selftest: Specify the target with -target instead of -arch
This ensures that generated code is properly cross compiled

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-04-13 11:42:55 -07:00
Scott Branden
31da4a2cb1 kernel-selftest: only emit warning on clang if bpf is built
Only emit warning on clang if bpf is actually in PACKAGECONFIG.

Signed-off-by: Scott Branden <scott.branden@broadcom.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-03-31 23:56:41 -07:00
Scott Branden
a3df40b1ba kernel-selftest: add firmware tests
Add firmware tests to kernel-selftest.

Signed-off-by: Scott Branden <scott.branden@broadcom.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-03-31 21:32:50 -07:00
Wang Mingyu
a94b7befef kpatch: upgrade 0.9.0 -> 0.9.1
Signed-off-by: Wang Mingyu <wangmy@cn.fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-03-31 18:57:40 -07:00
He Zhe
989e57d108 turbostat: Fix build failure for missing kernel internal heaers and clean up
To fix the following build failures
turbostat.c:(.text+0xc28a): undefined reference to `UL'
turbostat.c:33:10: fatal error: sys/capability.h: No such file or directory (for kernel v5.6-rc7)

- Add dependency on libcap for kernel v5.6-rc7 and later versions
- Copy internal linux/const.h used by previously added internal linux/bits.h
- Tweak linux/const.h to allow it to refer to uapi const.h, as
  linux-libc-headers purposely removes _UAPI from the locker macros of the
  headers
- Remove -I for kernel-source in EXTRA_OEMAKE, as linux-kernel-headers has
  provided enough and necessary headers
- Make do_configure depend on kernel's do_shared_workdir

Signed-off-by: He Zhe <zhe.he@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-03-27 01:47:53 -07:00
Goran Cengic
fa91738a94 crash: fix crash-cross build on x86_64
Remove -m32 from CFLAGS even for -cross recipe. Also remove
${GDB_CONF_FLAGS} from GDB_TARGET variable (that is passed to the gdb
configuration) since the use of GDB_CONF_FLAGS is removed by
0001-cross_add_configure_option.patch.

Signed-off-by: Goran Cengic <cengic@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-03-20 07:44:29 -07:00
Wenlin Kang
464c317c85 ipmitool: fixes for CVE-2020-5208
This patch is the other part of the fixes for CVE-2020-5208.

Signed-off-by: Wenlin Kang <wenlin.kang@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-03-17 19:46:35 -07:00
Jeremy Puhlman
6820d9ecea ipmiutil: gzip man pages with out timestamp
A timestamp was getting encoded into the gzip header. This
causes multilib conflicts when installed together, and would
likely fail reproducablity tests.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-02-23 22:31:35 -08:00
Khem Raj
d280be7d5d oprofile: Fix build with bfd 2.34+
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-02-23 07:49:16 -08:00
Wang Mingyu
247b9dff37 kpatch: upgrade 0.8.0 -> 0.9.0
refresh the following patch:
0002-kpatch-build-allow-overriding-of-distro-name.patch

Signed-off-by: Wang Mingyu <wangmy@cn.fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-02-21 14:21:52 -08:00
Wang Mingyu
e10d2bdede crash: upgrade 7.2.7 -> 7.2.8
Signed-off-by: Wang Mingyu <wangmy@cn.fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-02-21 14:21:52 -08:00
Wang Mingyu
0daeae19f6 makedumpfile: upgrade 1.6.6 -> 1.6.7
refresh the following patch:
0001-makedumpfile-replace-hardcode-CFLAGS.patch

0003-build-Delete-libebl-from-required-libraries-during-l.patch
removed since it is included in 1.6.7

Signed-off-by: Wang Mingyu <wangmy@cn.fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-02-20 08:22:38 -08:00
Khem Raj
696408ce36 pm-graph: Provide analyze-suspend as well
Remove stale analyze-suspend recipe

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-02-18 20:52:00 -08:00
Arun Parameswaran
82eafcc41c spidev-test: Add initial version of recipe
Allows for testing SPI interface using spidev driver and is part of the
kernel tools.

Signed-off-by: Arun Parameswaran <arun.parameswaran@broadcom.com>
Reviewed-by: Jonathan Richardson <jonathan.richardson@broadcom.com>
Tested-by: Jonathan Richardson <jonathan.richardson@broadcom.com>
Signed-off-by: Jonathan Richardson <jonathan.richardson@broadcom.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-02-15 08:05:07 -08:00
Wenlin Kang
f3f8add488 ipmitool: fix CVE-2020-5208
Fix CVE-2020-5208

Signed-off-by: Wenlin Kang <wenlin.kang@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-02-14 17:11:40 -08:00
Khem Raj
6e936c45d4 kernel-selftest: Disable bpf tests on mips
5.4 kernel exposes a problem, where its using host includes to compile
BPF tests and it fails for mips because ptrace.h is quite different so
it can not find the needed pt_struct definitions during cross compile

% clang -fno-stack-protector -I. -I./include/uapi -I../../../include/uapi -I/mnt/b/yoe/build/tmp/work/qemumips-yoe-linux/kernel-selft
est/1.0-r0/kernel-selftest-1.0/tools/testing/selftests/bpf/../usr/include -D__TARGET_ARCH_mips -g -idirafter /mnt/b/yoe/build/tmp/wor
k/qemumips-yoe-linux/kernel-selftest/1.0-r0/recipe-sysroot-native/usr/lib/clang/10.0.0/include -Wno-compare-distinct-pointer-types -O2 -target bpf -emit-llvm \
-c progs/loop1.c
progs/loop1.c:21:9: error: no member named 'regs' in 'struct pt_regs'
m = PT_REGS_RC(ctx);
^~~~~~~~~~~~~~~
./bpf_helpers.h:466:29: note: expanded from macro 'PT_REGS_RC'

~~  ^                                                                                                        1 error generated.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-02-02 08:07:59 -08:00
Khem Raj
bd2ad24d7b recipes: Make powerpc64le overrides
The existing conditions for ppc64/be are applicable for le as well

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-01-19 02:20:59 -08:00
Wang Mingyu
7d9f681b60 ipmiutil: upgrade 3.0.5 -> 3.1.5
Signed-off-by: Wang Mingyu <wangmy@cn.fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-01-12 19:22:45 -08:00
Khem Raj
0d937f7e5c makedumpfile: Drop linking with libebl
This seems to be not needed as link succeeds without this library,
moreover this is static-only library in latest elfutils

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Cc: Alexander Kanavin <alex.kanavin@gmail.com>
2020-01-10 00:43:27 -08:00
Andrei Gherzan
ef23e883f2 kernel-selftest: Include rtc tests
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-01-06 19:22:26 -08:00
Khem Raj
773bd4cec5 libpfm4: Moved here from oe-core
Upgrade to 4.10.1 while here
oprofile/ppc64 still depends on it

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-12-15 21:08:54 -08:00
Randy MacLeod
c636bc25db crash: update from 7.2.6 to 7.2.7
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>
2019-09-25 09:48:19 -07:00
Khem Raj
a62ed77703 kernel-selftest: Exclude from world builds
Avoid need for installing clang on host, or depending on meta-clang

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-09-18 18:51:03 -07:00
Oleksandr Kravchuk
9b2a48016a agent-proxy: update to 1.97
Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-09-16 18:24:48 -07:00
Naveen Saini
255b755381 pm-graph: upgrade 5.3 -> 5.5
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>
2019-09-11 00:04:29 -07:00
Khem Raj
6de4264bde kernel-selftest: Needs error.h which is missing in musl
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>
2019-09-09 09:59:54 -07:00
Khem Raj
649d491b21 vboxguestdrivers,can-isotp,bpftool: Add to Blacklist
They need forward porting to kernel 5.2+

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-09-07 12:35:59 -07:00
Adrian Bunk
c6351749d6 meta-oe: Replace EXCLUDE_FROM_WORLD_libc-musl = "1" with 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>
2019-08-30 09:27:56 -07:00
Khem Raj
44c020f87a kernel-selftest: Explicitly disable stack protector
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>
2019-08-29 09:06:54 -07:00
Khem Raj
d46e1e767f bpftool.bb: Disable SECURITY_CFLAGS
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>
2019-08-29 09:06:54 -07:00
Khem Raj
e1acbf33f7 kernel-selftest: Warn conditionally about clang-native dependency
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>
2019-08-29 09:06:54 -07:00
Yuan Chao
0c63afaf35 kpatch: upgrade 0.7.1 -> 0.8.0
Signed-off-by: Yuan Chao <yuanc.fnst@cn.fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-08-24 05:20:43 -07:00
Martin Jansa
1ed7486a87 kernel-selftest: skip -Werror=format-security and fortify
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-08-12 09:11:01 -07:00
Zang Ruochen
ff074c9bfd kpatch: upgrade 0.61 -> 0.71
-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>
2019-08-11 08:58:05 -07:00
Khem Raj
2e35a61e2a kpatch: Pass ARCH from environment
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>
2019-08-08 14:54:41 -07:00
Ruslan Bilovol
99723349a4 kpatch: fix QA build errors for nativesdk
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>
2019-08-08 10:04:23 -07:00
Liwei Song
68f1fdf237 pm-graph: fix time format parse error
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>
2019-08-02 18:04:41 -07:00
Adrian Bunk
dab0e88e22 meta-oe: Use GNU_MIRROR in more recipes
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-08-02 18:04:41 -07:00
Martin Jansa
ae65eb496b oprofile: drop kernel-vmlinux from RRECOMMENDS
* 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>
2019-07-30 19:15:24 -07:00
Mingli Yu
3a23691a2c makedumpfile: Upgrade to 1.6.6
Rebase two patches.

Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-07-21 09:31:09 -07:00
Mingli Yu
96ec1963c4 crash: Upgrade to 7.2.6
Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-07-21 09:31:09 -07:00
Qi.Chen@windriver.com
802e234274 turbostat: set PACKAGE_ARCH as MACHINE_ARCH
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>
2019-07-10 09:24:32 -07:00
Naveen Saini
86407337b9 pm-graph: fix multilib build failure
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>
2019-06-18 06:32:38 -07:00
Martin Jansa
cee875d229 oprofile: drop virtual/kernel dependency and switch back to TUNE_PKGARCH
* 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>
2019-06-15 16:45:33 -07:00
Hongxu Jia
95f94c0154 crash: do not use unstable github archive tarballs
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>
2019-05-27 00:49:29 -07:00
Liwei Song
12f4b040e3 turbostat: copy bits.h from kernel to turbostat
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>
2019-05-24 10:12:12 -07:00
Naveen Saini
c45eb9fe21 pm-graph: add recipe
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>
2019-05-23 08:26:14 -07:00
Martin Jansa
a87e1afbb0 oprofile: make MACHINE_ARCH
* 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>
2019-05-18 12:42:47 -07:00
Nicolas Dechesne
53d74cea0e bpftool: remove LIC_FILES_CHKSUM
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>
2019-05-10 09:19:21 -07:00
Nicolas Dechesne
7142f09407 cpupower: remove LIC_FILES_CHKSUM
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>
2019-05-09 20:35:00 -07:00
Khem Raj
a0d6f5c779 cpupower: Inherit bash completion class
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>
2019-05-02 14:13:57 -07:00