<commit_before>DESCRIPTION = "Linux kernel for Gigablue HD ${MACHINE}"
LICENSE = "GPL"
SRCDATE = "20120526"

MACHINE_KERNEL_PR_append = ".3"

DEPENDS = "mtd-utils"
RDEPENDS_kernel-image = "mtd-utils"

SRC_URI += "http://archiv.openmips.com/gigablue-quattro-linux-${PV}_${SRCDATE}.tgz \
		file://${MACHINE}_defconfig"

S = "${WORKDIR}/linux-${PV}"

inherit kernel

export OS = "Linux"
KERNEL_OBJECT_SUFFIX = "ko"
KERNEL_OUTPUT = "vmlinux"
KERNEL_IMAGETYPE = "vmlinux"
KERNEL_IMAGEDEST = "tmp"

FILES_kernel-image = "/${KERNEL_IMAGEDEST}/${KERNEL_IMAGETYPE}.gz"

do_configure_prepend() {
	oe_machinstall -m 0644 ${WORKDIR}/${MACHINE}_defconfig ${S}/.config
	oe_runmake oldconfig
}

kernel_do_install_append() {
	install -d ${D}/${KERNEL_IMAGEDEST}
	install -m 0755 ${KERNEL_OUTPUT} ${D}/${KERNEL_IMAGEDEST}
	gzip ${D}/${KERNEL_IMAGEDEST}/${KERNEL_IMAGETYPE}
}

pkg_postinst_kernel-image () {<commit_msg>Revert "fix typo in linux-quattro_2.6.37 (test)"<commit_after>DESCRIPTION = "Linux kernel for Gigablue HD ${MACHINE}"
LICENSE = "GPL"
SRCDATE = "20120526"

MACHINE_KERNEL_PR_append = ".3"

DEPENDS = "mtd-utils"
RDEPENDS_kernel-image = "mtd-utils"

SRC_URI = "http://archiv.openmips.com/gigablue-quattro-linux-${PV}_${SRCDATE}.tgz \
		file://${MACHINE}_defconfig"
		
S = "${WORKDIR}/linux-${PV}"

inherit kernel

export OS = "Linux"
KERNEL_OBJECT_SUFFIX = "ko"
KERNEL_OUTPUT = "vmlinux"
KERNEL_IMAGETYPE = "vmlinux"
KERNEL_IMAGEDEST = "tmp"

FILES_kernel-image = "/${KERNEL_IMAGEDEST}/${KERNEL_IMAGETYPE}.gz"

do_configure_prepend() {
	oe_machinstall -m 0644 ${WORKDIR}/${MACHINE}_defconfig ${S}/.config
	oe_runmake oldconfig
}

kernel_do_install_append() {
	install -d ${D}/${KERNEL_IMAGEDEST}
	install -m 0755 ${KERNEL_OUTPUT} ${D}/${KERNEL_IMAGEDEST}
	gzip ${D}/${KERNEL_IMAGEDEST}/${KERNEL_IMAGETYPE}
}

pkg_postinst_kernel-image () {
{'fraction_non_alphanumeric': 0.16539717083786726, 'fraction_numerical': 0.020674646354733407, 'mean_word_length': 5.939622641509434, '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': '351086', 'n_tokens_mistral': 787, 'n_tokens_neox': 753, 'n_words': 119}