From 54ba967ecfb16553bb555a373212a93690a52ae5 Mon Sep 17 00:00:00 2001 From: Khang Nguyen Date: Tue, 29 Oct 2019 16:13:15 +0700 Subject: rcar-gen3: linux-renesas: Fix Perf build failure with 4.14 kernel OE-Core started using Python3 for perf module. But older kernel such as 4.14 does not have support for python3. This causes build failure as follows: | Makefile.config:391: DWARF support is off, BPF prologue is disabled | Makefile.config:588: Missing perl devel files. Disabling perl scripting support, please install perl-ExtUtils-Embed/libperl-dev | Makefile.config:626: Python 3 is not yet supported; please set | Makefile.config:627: PYTHON and/or PYTHON_CONFIG appropriately. | Makefile.config:628: If you also have Python 2 installed, then | Makefile.config:629: try something like: Backported python3 support, as a suggestion here: https://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/meta/recipes-kernel/perf?id=92469aad50b623afa423c19d82ed2e3c667c5e6a This fix was backported from: https://lists.yoctoproject.org/pipermail/meta-intel/2019-September/006191.html Signed-off-by: Khang Nguyen Signed-off-by: Takamitsu Honda Change-Id: Ieaad61fb9bd4888e6226c8e00d4807f738cc0b55 --- meta-rcar-gen3/recipes-kernel/linux/linux-renesas_4.14.bb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'meta-rcar-gen3/recipes-kernel/linux/linux-renesas_4.14.bb') diff --git a/meta-rcar-gen3/recipes-kernel/linux/linux-renesas_4.14.bb b/meta-rcar-gen3/recipes-kernel/linux/linux-renesas_4.14.bb index 27705e3..b2a2f66 100644 --- a/meta-rcar-gen3/recipes-kernel/linux/linux-renesas_4.14.bb +++ b/meta-rcar-gen3/recipes-kernel/linux/linux-renesas_4.14.bb @@ -29,6 +29,11 @@ SRC_URI_append = " \ ${@oe.utils.conditional("USE_AVB", "1", " file://usb-video-class.cfg", "", d)} \ " +# Add python3 support to fix Perf build failure +SRC_URI_append = " \ + file://0001-perf-tools-Add-Python-3-support.patch \ +" + # Enable RPMSG_VIRTIO depend on ICCOM SUPPORT_ICCOM = " \ file://0001-rpmsg-Add-message-to-be-able-to-configure-RPMSG_VIRT.patch \ -- cgit 1.2.3-korg