<commit_before>SECTION = "kernel"
DESCRIPTION = "Linux kernel for TI33x EVM from PSP, based on am335x-kernel"
LICENSE = "GPLv2"
KERNEL_IMAGETYPE = "uImage"

require multi-kernel.inc

S = "${WORKDIR}/git"

MULTI_CONFIG_BASE_SUFFIX = ""

BRANCH = "v3.1-staging"
SRCREV = "1d84d8853fa30cf3db2571a5aec572accca4e29d"
MACHINE_KERNEL_PR_append = "s+gitr${SRCREV}"

COMPATIBLE_MACHINE = "(ti33x)"

THISDIR := "${@os.path.dirname(bb.data.getVar('FILE', d, True))}"
CONFIGS_PSP = "${@base_set_filespath(["${THISDIR}/${PN}-${PV}/tipspkernel"], d)}:\
${@base_set_filespath(["${THISDIR}/${PN}/tipspkernel"], d)}:\
${@base_set_filespath(["${THISDIR}/files/tipspkernel"], d)}:"
FILESPATH =. "${@base_contains('DISTRO_FEATURES', 'tipspkernel', "${CONFIGS_PSP}", "", d)}"

SRC_URI += "git://arago-project.org/git/projects/linux-am33x.git;protocol=git;branch=${BRANCH} \
	file://defconfig"

PATCHES_OVER_PSP = " \
	file://0001-f_rndis-HACK-around-undefined-variables.patch \
	file://0001-ARM-omap-am335x-BeagleBone-version-detection-and-sup.patch \
	file://0002-ARM-OMAP2-beaglebone-add-LED-support.patch \
	file://0003-ARM-OMAP2-beaglebone-add-DVI-support-needs-cleanup.patch \
	file://0004-da8xx-fb-add-DVI-support-for-beaglebone.patch \
	file://0001-usb-musb_core-kill-all-global-and-static-variables.patch \
	file://0002-arm-omap-am335x-correct-32KHz-clk-rate.patch \
	file://0003-arm-omap-mcspi-correct-memory-range-when-requesting-.patch \
	file://0004-arm-omap-mcspi-follow-proper-pm_runtime-enable-disab.patch \
	file://0005-arm-omap-mcspi-follow-proper-probe-remove-steps.patch \
	file://0006-usb-musb-cppi41_dma-Check-if-scheduling-is-required-.patch \
	file://can/0001-can-d_can-Added-support-for-Bosch-D_CAN-controller.patch \
	file://can/0002-can-d_can-Added-platform-data-for-am33xx-device.patch \
	file://can/0003-can-d_can-DCAN-config-added-to-am335x_evm_defconfig.patch \
	file://can/0004-can-d_can-fix-for-cansend-loop-issue.patch \
	file://can/0005-can-d_can-fixes-the-rmmod-crash.patch \
	file://can/0007-can-d_can-am335x-profile-modification-for-dcan0.patch \
	"

SRC_URI += "${@base_contains('DISTRO_FEATURES', 'tipspkernel', "", "${PATCHES_OVER_PSP}", d)}"
SRC_URI_append_beaglebone = " file://logo_linux_clut224.ppm"
<commit_msg>linux-ti33x-psp 3.1: remove CAN patch that hardcodes evm as machine instead of falling back to bone<commit_after>SECTION = "kernel"
DESCRIPTION = "Linux kernel for TI33x EVM from PSP, based on am335x-kernel"
LICENSE = "GPLv2"
KERNEL_IMAGETYPE = "uImage"

require multi-kernel.inc

S = "${WORKDIR}/git"

MULTI_CONFIG_BASE_SUFFIX = ""

BRANCH = "v3.1-staging"
SRCREV = "1d84d8853fa30cf3db2571a5aec572accca4e29d"
MACHINE_KERNEL_PR_append = "t+gitr${SRCREV}"

COMPATIBLE_MACHINE = "(ti33x)"

THISDIR := "${@<EMAIL>.dirname(bb.data.getVar('FILE', d, True))}"
CONFIGS_PSP = "${@base_set_filespath(["${THISDIR}/${PN}-${PV}/tipspkernel"], d)}:\
${@base_set_filespath(["${THISDIR}/${PN}/tipspkernel"], d)}:\
${@base_set_filespath(["${THISDIR}/files/tipspkernel"], d)}:"
FILESPATH =. "${@base_contains('DISTRO_FEATURES', 'tipspkernel', "${CONFIGS_PSP}", "", d)}"

SRC_URI += "git://arago-project.org/git/projects/linux-am33x.git;protocol=git;branch=${BRANCH} \
	file://defconfig"

PATCHES_OVER_PSP = " \
	file://0001-f_rndis-HACK-around-undefined-variables.patch \
	file://0001-ARM-omap-am335x-BeagleBone-version-detection-and-sup.patch \
	file://0002-ARM-OMAP2-beaglebone-add-LED-support.patch \
	file://0003-ARM-OMAP2-beaglebone-add-DVI-support-needs-cleanup.patch \
	file://0004-da8xx-fb-add-DVI-support-for-beaglebone.patch \
	file://0001-usb-musb_core-kill-all-global-and-static-variables.patch \
	file://0002-arm-omap-am335x-correct-32KHz-clk-rate.patch \
	file://0003-arm-omap-mcspi-correct-memory-range-when-requesting-.patch \
	file://0004-arm-omap-mcspi-follow-proper-pm_runtime-enable-disab.patch \
	file://0005-arm-omap-mcspi-follow-proper-probe-remove-steps.patch \
	file://0006-usb-musb-cppi41_dma-Check-if-scheduling-is-required-.patch \
	file://can/0001-can-d_can-Added-support-for-Bosch-D_CAN-controller.patch \
	file://can/0002-can-d_can-Added-platform-data-for-am33xx-device.patch \
	file://can/0003-can-d_can-DCAN-config-added-to-am335x_evm_defconfig.patch \
	file://can/0004-can-d_can-fix-for-cansend-loop-issue.patch \
	file://can/0005-can-d_can-fixes-the-rmmod-crash.patch \
	"

SRC_URI += "${@base_contains('DISTRO_FEATURES', 'tipspkernel', "", "${PATCHES_OVER_PSP}", d)}"
SRC_URI_append_beaglebone = " file://logo_linux_clut224.ppm"

{'fraction_non_alphanumeric': 0.19362034351996432, 'fraction_numerical': 0.05532009814856123, 'mean_word_length': 4.876802096985584, 'pattern_counts': {'":': 0, '<': 4, '<?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': '814058', 'n_tokens_mistral': 2040, 'n_tokens_neox': 1842, 'n_words': 162}