<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
require tipspkernel.inc

S = "${WORKDIR}/git"

MULTI_CONFIG_BASE_SUFFIX = ""

BRANCH = "v3.2-staging"
SRCREV = "720e07b4c1f687b61b147b31c698cb6816d72f01"
MACHINE_KERNEL_PR_append = "h+gitr${SRCREV}"

COMPATIBLE_MACHINE = "(ti33x)"

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

SRC_URI_append_beaglebone = " file://logo_linux_clut224.ppm"

do_compile_prepend() {
	cp ${WORKDIR}/am335x-pm-firmware.bin ${S}/firmware/
}

PATCHES_OVER_PSP = " \
	file://3.2.1/0001-MAINTAINERS-stable-Update-address.patch \
	file://3.2.1/0002-Documentation-Update-stable-address.patch \
	file://3.2.1/0003-firmware-Fix-an-oops-on-reading-fw_priv-fw-in-sysfs-.patch \
	file://3.2.1/0004-rt2800usb-Move-ID-out-of-unknown.patch \
	file://3.2.1/0005-offb-Fix-setting-of-the-pseudo-palette-for-8bpp.patch \
	file://3.2.1/0006-offb-Fix-bug-in-calculating-requested-vram-size.patch \
	file://3.2.1/0007-libertas-clean-up-scan-thread-handling.patch \
	file://3.2.1/0008-bcma-support-for-suspend-and-resume.patch \
	file://3.2.1/0009-wl12xx-Validate-FEM-index-from-ini-file-and-FW.patch \
	file://3.2.1/0010-wl12xx-Check-buffer-bound-when-processing-nvs-data.patch \
	file://3.2.1/0011-wl12xx-Restore-testmode-ABI.patch \
	file://3.2.1/0012-powerpc-time-Handle-wrapping-of-decrementer.patch \<commit_msg>linux-ti33x-psp 3.2: avoid gold linker for Thumb2 kernel<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
require tipspkernel.inc

S = "${WORKDIR}/git"

MULTI_CONFIG_BASE_SUFFIX = ""

BRANCH = "v3.2-staging"
SRCREV = "720e07b4c1f687b61b147b31c698cb6816d72f01"
MACHINE_KERNEL_PR_append = "h+gitr${SRCREV}"

COMPATIBLE_MACHINE = "(ti33x)"

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

SRC_URI_append_beaglebone = " file://logo_linux_clut224.ppm"

KERNEL_LDSUFFIX_beaglebone = "${@base_contains('DISTRO_FEATURES', 'ld-is-gold', '.bfd', '', d)}"

do_compile_prepend() {
	cp ${WORKDIR}/am335x-pm-firmware.bin ${S}/firmware/
}

PATCHES_OVER_PSP = " \
	file://3.2.1/0001-MAINTAINERS-stable-Update-address.patch \
	file://3.2.1/0002-Documentation-Update-stable-address.patch \
	file://3.2.1/0003-firmware-Fix-an-oops-on-reading-fw_priv-fw-in-sysfs-.patch \
	file://3.2.1/0004-rt2800usb-Move-ID-out-of-unknown.patch \
	file://3.2.1/0005-offb-Fix-setting-of-the-pseudo-palette-for-8bpp.patch \
	file://3.2.1/0006-offb-Fix-bug-in-calculating-requested-vram-size.patch \
	file://3.2.1/0007-libertas-clean-up-scan-thread-handling.patch \
	file://3.2.1/0008-bcma-support-for-suspend-and-resume.patch \
	file://3.2.1/0009-wl12xx-Validate-FEM-index-from-ini-file-and-FW.patch \
	file://3.2.1/0010-wl12xx-Check-buffer-bound-when-processing-nvs-data.patch \
	file://3.2.1/0011-wl12xx-Restore-testmode-ABI.patch \
	file://3.2.1/0012-powerpc-time-Handle-wrapping-of-decrementer.patch \
{'fraction_non_alphanumeric': 0.18326693227091634, 'fraction_numerical': 0.08979466748391052, 'mean_word_length': 4.068322981366459, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '5553166', 'n_tokens_mistral': 1588, 'n_tokens_neox': 1426, 'n_words': 122}