<commit_before>DESCRIPTION = "SerDes firmware for Keystone PCIe and 1/10GigE"

LICENSE = "TI-TFL"
LIC_FILES_CHKSUM = "file://LICENCE.ti-keystone;md5=3a86335d32864b0bef996bee26cc0f2c"

PV = "1.0.0"
PR = "r0"

CLEANBROKEN = "1"

COMPATIBLE_MACHINE = "keystone"

PACKAGE_ARCH = "${MACHINE_ARCH}"

SRCREV = "8756d98081e1011a1334b0769f13ffb31d3b41bd"
BRANCH ?= "ti-linux-firmware-4.1.y"

SRC_URI = "git://git.ti.com/processor-firmware/ti-linux-firmware.git;protocol=git;branch=${BRANCH}"

S = "${WORKDIR}/git"
ORIGINPCIE = "ks2_pcie_serdes_1.0.0.bin"
ORIGINGBE = "ks2_gbe_serdes_1.0.0.bin"
ORIGINXGBE = "ks2_xgbe_serdes_1.0.0.bin"

TARGETPCIE = "ks2_pcie_serdes.bin"
TARGETGBE = "ks2_gbe_serdes.bin"
TARGETXGBE = "ks2_xgbe_serdes.bin"

do_install() {
	install -d ${D}${base_libdir}/firmware
	install -m 0644 ${S}/ti-keystone/${ORIGINPCIE} ${D}${base_libdir}/firmware/${TARGETPCIE}
	install -m 0644 ${S}/ti-keystone/${ORIGINGBE} ${D}${base_libdir}/firmware/${TARGETGBE}
	install -m 0644 ${S}/ti-keystone/${ORIGINXGBE} ${D}${base_libdir}/firmware/${TARGETXGBE}
}

FILES_${PN} = "${base_libdir}/firmware"<commit_msg>serdes-fw: update to 3.3.0.2c version<commit_after>DESCRIPTION = "SerDes firmware for Keystone PCIe and 1/10GigE"

LICENSE = "TI-TFL"
LIC_FILES_CHKSUM = "file://LICENCE.ti-keystone;md5=3a86335d32864b0bef996bee26cc0f2c"

PV = "3.3.0.2c"

CLEANBROKEN = "1"

COMPATIBLE_MACHINE = "keystone"

PACKAGE_ARCH = "${MACHINE_ARCH}"

SRCREV = "8d861bd8f8f792df60b6873989ff208766fbebae"
BRANCH ?= "ti-linux-firmware-4.1.y"

SRC_URI = "git://git.ti.com/processor-firmware/ti-linux-firmware.git;protocol=git;branch=${BRANCH}"

S = "${WORKDIR}/git"
TARGET = "ks2_pcie_serdes.bin ks2_gbe_serdes.bin ks2_xgbe_serdes.bin"

do_install() {
	install -d ${D}${base_libdir}/firmware
	for f in ${TARGET}; do
		install -m 0644 ${S}/ti-keystone/$f ${D}${base_libdir}/firmware/$f
	done
}

FILES_${PN} = "${base_libdir}/firmware"
{'fraction_non_alphanumeric': 0.17234154007333682, 'fraction_numerical': 0.0785751702462022, 'mean_word_length': 5.845878136200717, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '7543042', 'n_tokens_mistral': 990, 'n_tokens_neox': 903, 'n_words': 115}