<commit_before>inherit kernel
require recipes-kernel/linux/linux-yocto.inc

FILESEXTRAPATHS_prepend := "${THISDIR}/files:"

SRC_URI = "git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git;branch=linux-${PV}.y;bareclone=1"
SRC_URI += " \
    file://defconfig \
    file://squashfs.cfg \
    file://mm.cfg \
    file://nics.cfg \
    file://crypto.cfg \
    file://vm.cfg \
    file://cputemp.cfg \
    file://cong_algos.cfg \
    file://taskstats.cfg \
    file://cifs.cfg \
    file://${MACHINE}.cfg \
    file://tomoyo.cfg \
    file://usbserial.cfg \
    file://linux-${PV}-ath_regd_optional.patch \
    file://storevsc_drv_32bit_tablesize.patch \
    file://0002-e1000e-Intel-Quadport-0x10A0-hack.patch \
    file://09-hyperv \
    file://fanotify.cfg \
"

LINUX_VERSION = "${PV}"
LINUX_VERSION_EXTENSION ?= "-sp"
LINUX_KERNEL_TYPE = "custom"

PV = "4.4.44"
SRCREV = "v${PV}"
PR = "r1"

#exclude the kernel image from rootfs
RDEPENDS_kernel-base = ""

# Override COMPATIBLE_MACHINE to include your machine in a bbappend
# file. Leaving it empty here ensures an early explicit build failure.
COMPATIBLE_MACHINE_${MACHINE} = "${MACHINE}"

PACKAGES_prepend += " hyperv-daemons hyperv-daemons-dbg "
FILES_hyperv-daemons = "/usr/bin/hv_* /etc/runit"
FILES_hyperv-daemons-dbg ="/usr/bin/.debug/hv_* /usr/src/debug/linux-yocto-sp/*/linux/tools/hv"

do_install_append() {
    install -d ${D}${bindir} ${D}/etc/runit/1.d
    install -m 0755 ${WORKDIR}/09-hyperv ${D}/etc/runit/1.d
    cd ${S}
    mkdir -p tools/hv/linux
    cp include/uapi/linux/hyperv.h tools/hv/linux
    ${CC} ${CFLAGS} -Itools/hv tools/hv/hv_vss_daemon.c -o ${D}${bindir}/hv_vss_daemon
    ${CC} ${CFLAGS} -Itools/hv tools/hv/hv_kvp_daemon.c -o ${D}${bindir}/hv_kvp_daemon<commit_msg>linux-yocto-sp: Updated (4.4.44 -> 4.4.52)<commit_after>inherit kernel
require recipes-kernel/linux/linux-yocto.inc

FILESEXTRAPATHS_prepend := "${THISDIR}/files:"

SRC_URI = "git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git;branch=linux-${PV}.y;bareclone=1"
SRC_URI += " \
    file://defconfig \
    file://squashfs.cfg \
    file://mm.cfg \
    file://nics.cfg \
    file://crypto.cfg \
    file://vm.cfg \
    file://cputemp.cfg \
    file://cong_algos.cfg \
    file://taskstats.cfg \
    file://cifs.cfg \
    file://${MACHINE}.cfg \
    file://tomoyo.cfg \
    file://usbserial.cfg \
    file://linux-${PV}-ath_regd_optional.patch \
    file://storevsc_drv_32bit_tablesize.patch \
    file://0002-e1000e-Intel-Quadport-0x10A0-hack.patch \
    file://09-hyperv \
    file://fanotify.cfg \
"

LINUX_VERSION = "${PV}"
LINUX_VERSION_EXTENSION ?= "-sp"
LINUX_KERNEL_TYPE = "custom"

PV = "4.4.52"
SRCREV = "v${PV}"
PR = "r1"

#exclude the kernel image from rootfs
RDEPENDS_kernel-base = ""

# Override COMPATIBLE_MACHINE to include your machine in a bbappend
# file. Leaving it empty here ensures an early explicit build failure.
COMPATIBLE_MACHINE_${MACHINE} = "${MACHINE}"

PACKAGES_prepend += " hyperv-daemons hyperv-daemons-dbg "
FILES_hyperv-daemons = "/usr/bin/hv_* /etc/runit"
FILES_hyperv-daemons-dbg ="/usr/bin/.debug/hv_* /usr/src/debug/linux-yocto-sp/*/linux/tools/hv"

do_install_append() {
    install -d ${D}${bindir} ${D}/etc/runit/1.d
    install -m 0755 ${WORKDIR}/09-hyperv ${D}/etc/runit/1.d
    cd ${S}
    mkdir -p tools/hv/linux
    cp include/uapi/linux/hyperv.h tools/hv/linux
    ${CC} ${CFLAGS} -Itools/hv tools/hv/hv_vss_daemon.c -o ${D}${bindir}/hv_vss_daemon
    ${CC} ${CFLAGS} -Itools/hv tools/hv/hv_kvp_daemon.c -o ${D}${bindir}/hv_kvp_daemon
{'fraction_non_alphanumeric': 0.17990457479651978, 'fraction_numerical': 0.019085040696042662, 'mean_word_length': 3.1733021077283374, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6718238', 'n_tokens_mistral': 1537, 'n_tokens_neox': 1468, 'n_words': 216}