summaryrefslogtreecommitdiff
path: root/recipes-kernel/linux/linux-toradex-mainline_git.bb
blob: a58cc2718ec39f047df9e66610d1aa96fcd8610c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
SUMMARY = "Toradex mainline Linux kernel"
SECTION = "kernel"
LICENSE = "GPL-2.0-only"
LIC_FILES_CHKSUM ?= "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46"

FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}-git:"

DEPENDS += "coreutils-native"

# yaml and dtschema are required for 5.16+ device tree validation, libyaml is checked
# via pkgconfig, so must always be present, but we can wrap the others to make them
# conditional
DEPENDS += "libyaml-native"

PACKAGECONFIG ??= ""
PACKAGECONFIG[dt-validation] = ",,python3-dtschema-native"
# we need the wrappers if validation isn't in the packageconfig
DEPENDS += "${@bb.utils.contains('PACKAGECONFIG', 'dt-validation', '', 'python3-dtschema-wrapper-native', d)}"

PV = "${LINUX_VERSION}+git${SRCPV}"

LINUX_REPO = "git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
SRC_URI = " \
    ${LINUX_REPO};protocol=https;branch=${KBRANCH};name=machine \
    file://defconfig \
"

SRC_URI:append = " \
    file://0001-thermal-imx-Update-critical-temp-threshold.patch \
    file://0001-Revert-drm-panel-simple-drop-use-of-data-mapping-pro.patch \
    file://0001-arm-dts-colibri-imx6-usb-dual-role-switching.patch \
    file://0002-arm-dts-colibri-imx6-move-vbus-supply-to-module-leve.patch \
    file://0003-arm-dts-colibri-imx6-specify-usbh_pen-gpio-being-act.patch \
    file://0001-arm-dts-colibri-imx6ull-keep-peripherals-disabled.patch \
    file://0002-arm-dts-colibri-imx6ull-enable-default-peripherals.patch \
    file://0001-ARM-dts-colibri-imx6ull-Enable-dual-role-switching.patch \
    file://0002-drivers-chipidea-disable-runtime-pm-for-imx6ul.patch \
    file://0001-ARM-dts-apalis-imx6-Disable-usb-over-current.patch \
    file://0002-ARM-dts-colibri-imx6-Disable-usb-over-current.patch \
    file://0003-ARM-dts-colibri-imx6ull-Disable-usb-over-current.patch \
    file://0004-ARM-dts-colibri-imx7-Disable-usb-over-current.patch \
    file://0001-arm64-dts-imx8mm-verdin-Add-yavia-carrier-board.patch \
    file://0002-arm64-dts-imx8mp-verdin-Add-yavia-carrier-board.patch \
    file://0001-media-v4l2-async-fix-binding-async-subdevs-with-mult.patch \
    file://0002-media-i2c-ov5640-Implement-get_mbus_config.patch \
    file://0001-Revert-media-v4l2-async-Use-endpoints-in-__v4l2_asyn.patch \
    file://0001-power-reset-gpio-poweroff-use-a-struct-to-store-the-.patch \
    file://0002-power-reset-gpio-poweroff-use-sys-off-handler-API.patch \
    file://0003-dt-bindings-power-reset-gpio-poweroff-Add-priority-p.patch \
    file://0004-power-reset-gpio-poweroff-make-sys-handler-priority-.patch \
    file://0003-arm64-dts-freescale-verdin-imx8mp-add-support-to-mal.patch \
    file://0003-arm64-dts-freescale-verdin-imx8mm-add-support-to-mal.patch \
    file://0001-usb-gadget-f_ncm-Apply-workaround-for-packet-cloggin.patch \
    file://0001-dt-bindings-arm-fsl-Add-toradex-apalis_imx6q-eval-v1.patch \
    file://0002-arm-dts-nxp-imx-Add-support-for-Apalis-Evaluation-Bo.patch \
"

LINUX_VERSION ?= "6.1.89"
KBRANCH = "linux-6.1.y"
KERNEL_VERSION_SANITY_SKIP = "1"
SRCREV_machine = "dcbc050cb0d304c3427d6583384eebcaf0e3caee"
SRCREV_machine:use-head-next = "${AUTOREV}"

S = "${WORKDIR}/git"

KCONFIG_MODE="--alldefconfig"

# Load USB functions configurable through configfs (CONFIG_USB_CONFIGFS)
KERNEL_MODULE_AUTOLOAD += "${@bb.utils.contains('COMBINED_FEATURES', 'usbgadget', ' libcomposite', '',d)}"

inherit kernel-yocto kernel pkgconfig toradex-kernel-deploy-config toradex-kernel-localversion

# Additional file deployed by recent mainline kernels
FILES:${KERNEL_PACKAGE_NAME}-base += "${nonarch_base_libdir}/modules/${KERNEL_VERSION}/modules.builtin.modinfo"

export DTC_FLAGS = "-@"

# kconfiglib.KconfigError: init/Kconfig:70: error: couldn't parse 'default $(shell,$(srctree)/scripts/rust-version.sh $(RUSTC))': macro expanded to blank string
do_kernel_configcheck[noexec] = "1"