summaryrefslogtreecommitdiff
path: root/recipes-kernel/linux/linux-toradex-mainline.inc
blob: ffee627a9407ca3033e65f4c348188a35c201952 (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
SUMMARY = "Toradex mainline Linux kernel"
SUMMARY_preempt-rt = "Toradex mainline real-Time Linux kernel"
SECTION = "kernel"
LICENSE = "GPLv2"

LIC_FILES_CHKSUM ?= "file://COPYING;md5=bbea815ee2795b2f4230826c0c6b8814"

inherit kernel-yocto kernel toradex-kernel-localversion

SRC_URI = " \
    git://git.toradex.com/linux-toradex.git;protocol=https;branch=${KBRANCH};name=machine \
"

S = "${WORKDIR}/git"

DEPENDS += "coreutils-native lzop-native"

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

KERNEL_CONFIG_NAME ?= "${KERNEL_PACKAGE_NAME}-config-${KERNEL_ARTIFACT_NAME}"
KERNEL_CONFIG_LINK_NAME ?= "${KERNEL_PACKAGE_NAME}-config"

do_deploy_append() {
    cp -a ${B}/.config ${DEPLOYDIR}/${KERNEL_CONFIG_NAME}
    ln -sf ${KERNEL_CONFIG_NAME} ${DEPLOYDIR}/${KERNEL_CONFIG_LINK_NAME}
}