2 DESCRIPTION = "Linux kernel for MNCI device"
4 DEPENDS = "modutils-cross virtual/${TARGET_PREFIX}gcc${KERNEL_CCSUFFIX}"
5 COMPATIBLE_MACHINE = "mnci"
11 SRC_URI = "${KERNELORG_MIRROR}/pub/linux/kernel/v2.4/linux-${KV}.tar.bz2 \
12 http://lorien.handhelds.org/ftp.arm.linux.org.uk/kernel/v2.4/patch-${KV}-rmk${RMKV}.bz2;patch=1 \
13 file://diff-${KV}-rmk${RMKV}-pxa${PXAV}.gz;patch=1 \
14 file://mnci-combined.patch;patch=1"
16 S = "${WORKDIR}/linux-${KV}"
20 KERNEL_CCSUFFIX = "-3.3.4"
22 # Put the zImage into kernel-image
23 ALLOW_EMPTY_kernel = "1"
25 FILES_kernel-image += "/tmp/zImage"
27 do_configure_prepend() {
28 install -m 0644 ${S}/arch/arm/def-configs/${MACHINE} ${S}/.config || die "No default configuration for ${MACHINE} available."
32 unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS
33 if (grep -q -i -e '^CONFIG_MODULES=y$' .config); then
34 oe_runmake DEPMOD=echo INSTALL_MOD_PATH="${D}" modules_install
36 oenote "no modules to install"
39 install -m 0644 ${KERNEL_OUTPUT} ${D}/tmp
41 install -m 0644 .config ${D}/boot/config-${PV}
43 install -d ${D}${sysconfdir}/modutils
47 pkg_postinst_kernel-image () {
48 test -f /tmp/zImage || exit 0
49 cp /tmp/zImage /dev/mtdblock/1
52 cat /dev/mtdblock/1 >/dev/null
55 pkg_postinst_kernel () {
58 pkg_postinst_modules () {
60 ${HOST_PREFIX}depmod-${KERNEL_MAJOR_VERSION} -A -b $D -F $D/boot/System.map-${PV} ${KERNEL_VERSION}
66 pkg_postrm_modules () {
69 pkg_postrm_kernel () {