DESCRIPTION = "Linux kernel for vuplus" SECTION = "kernel" LICENSE = "GPL" LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7" KV = "3.9.6" PR = "r4" SRCREV = "" MODULE = "linux-3.9.6" SRC_URI += "http://archive.vuplus.com/download/kernel/stblinux-${KV}.tar.bz2 \ file://fix_fuse_for_linux_mips_3-9.patch \ file://rt2800usb_fix_warn_tx_status_timeout_to_dbg.patch \ file://${MACHINE}_defconfig \ " inherit kernel S = "${WORKDIR}/linux" export OS = "Linux" KERNEL_IMAGETYPE = "vmlinux" KERNEL_OUTPUT = "vmlinux" KERNEL_OBJECT_SUFFIX = "ko" KERNEL_IMAGEDEST = "tmp" FILES_kernel-image = "/${KERNEL_IMAGEDEST}/vmlinux.gz /${KERNEL_IMAGEDEST}/autoexec.bat" do_configure_prepend() { oe_machinstall -m 0644 ${WORKDIR}/${MACHINE}_defconfig ${WORKDIR}/defconfig } kernel_do_install_append() { install -d ${D}/${KERNEL_IMAGEDEST} install -m 0755 ${KERNEL_OUTPUT} ${D}/${KERNEL_IMAGEDEST} gzip ${D}/${KERNEL_IMAGEDEST}/${KERNEL_IMAGETYPE} } kernel_do_compile() { unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS MACHINE oe_runmake ${KERNEL_IMAGETYPE_FOR_MAKE} ${KERNEL_ALT_IMAGETYPE} CC="${KERNEL_CC}" LD="${KERNEL_LD}" if test "${KERNEL_IMAGETYPE_FOR_MAKE}.gz" = "${KERNEL_IMAGETYPE}"; then gzip -9c < "${KERNEL_IMAGETYPE_FOR_MAKE}" > "${KERNEL_OUTPUT}" fi } pkg_postinst_kernel-image () { if [ -d /proc/stb ] ; then flash_erase /dev/mtd1 0 0 nandwrite -p /dev/mtd1 /${KERNEL_IMAGEDEST}/${KERNEL_IMAGETYPE}.gz fi rm -f /${KERNEL_IMAGEDEST}/${KERNEL_IMAGETYPE}.gz true } SRC_URI[md5sum] = "33142378c8387a87190156be1cb1a254" SRC_URI[sha256sum] = "47799db9e2658906e532981ec8111a915426b8453762561029733f2406c3e297"