DESCRIPTION = "Linux Kernel"
SECTION = "kernel"
LICENSE = "GPL"
PR = "r3"

SRC_URI = "${KERNELORG_MIRROR}/pub/linux/kernel/v2.6/linux-${PV}.tar.bz2 \
           file://defconfig"

SRC_URI_append_progear = " \
           file://progear_bl-r6.patch;patch=1 \
	   "
SRC_URI_append_simpad = "\
           file://linux-2.6.20.SIMpad.mq200.patch;patch=1 \
           file://linux-2.6.20.SIMpad.ucb1x00-switches.patch;patch=1 \
	   "
SRC_URI_append_n2100 = "\
	   file://n2100-r8169-parity.patch;patch=1 \
	   file://rtc-rs5c372-n2100.patch;patch=1 \
	   "

inherit kernel

KERNEL_IMAGETYPE = "bzImage"
KERNEL_IMAGETYPE_simpad = "zImage"
KERNEL_IMAGETYPE_n2100 = "zImage"

do_configure_prepend() {
	install -m 0644 ${WORKDIR}/defconfig ${S}/.config
}

DESCRIPTION = "Linux Kernel"
SECTION = "kernel"
LICENSE = "GPL"
PR = "r3"

SRC_URI = "${KERNELORG_MIRROR}/pub/linux/kernel/v2.6/linux-${PV}.tar.bz2 \
           file://defconfig"

SRC_URI_append_progear = " \
           file://progear_bl-r6.patch;patch=1 \
	   "
SRC_URI_append_simpad = "\
           file://linux-2.6.20.SIMpad.mq200.patch;patch=1 \
           file://linux-2.6.20.SIMpad.ucb1x00-switches.patch;patch=1 \
	   "
SRC_URI_append_n2100 = "\
	   file://n2100-r8169-parity.patch;patch=1 \
	   file://rtc-rs5c372-n2100.patch;patch=1 \
	   "

inherit kernel

KERNEL_IMAGETYPE = "bzImage"
KERNEL_IMAGETYPE_simpad = "zImage"
KERNEL_IMAGETYPE_n2100 = "zImage"

do_configure_prepend() {
	install -m 0644 ${WORKDIR}/defconfig ${S}/.config
}

do_install_append_n2100() {
	install -m 0644 ${S}/arch/${ARCH}/boot/${KERNEL_IMAGETYPE} ${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGETYPE}-${PV}-${MACHINE}-${DATETIME}
}
Make sure to copy the finished kernel to deploy
linux: Make sure to copy the finished kernel to deploy
