From c4e0c6b0f27b45bba1a724c00eb6e92ba39d0e46 Mon Sep 17 00:00:00 2001 From: Holger Schurig Date: Wed, 22 Dec 2004 16:39:37 +0000 Subject: Merge http://oe-devel@openembedded.bkbits.net/openembedded into mnz66.mn-solutions.de:/usr/src/oe/p 2004/12/22 11:48:44+01:00 mn-solutions.de!schurig Merge http://oe-devel@openembedded.bkbits.net/openembedded into mnz66.mn-solutions.de:/usr/src/oe/p 2004/12/20 16:06:31+01:00 mn-solutions.de!schurig Merge 2004/12/20 15:09:56+01:00 mn-solutions.de!schurig revert to original do_staging 2004/12/20 15:06:53+01:00 mn-solutions.de!schurig some updates for MNCI "Ramses" 2004/12/06 09:54:33+01:00 mn-solutions.de!schurig Merge http://oe-devel@openembedded.bkbits.net/packages into mnz66.mn-solutions.de:/usr/src/oe/p 2004/11/30 16:43:48+01:00 mn-solutions.de!schurig Merge http://oe-devel@openembedded.bkbits.net/packages into mnz66.mn-solutions.de:/usr/src/oe/p 2004/11/25 15:09:39+01:00 mn-logistik.de!schurig make it usable with kernel 2.6 as well BKrev: 41c9a34909Z1s0fb3cLZ8H2bBiPK1w --- packages/linux/mnci-ramses_2.4.21-rmk2-pxa1.bb | 77 ++++++++++++++++++++++++++ 1 file changed, 77 insertions(+) (limited to 'packages/linux') diff --git a/packages/linux/mnci-ramses_2.4.21-rmk2-pxa1.bb b/packages/linux/mnci-ramses_2.4.21-rmk2-pxa1.bb index e69de29bb2..b52e65b360 100644 --- a/packages/linux/mnci-ramses_2.4.21-rmk2-pxa1.bb +++ b/packages/linux/mnci-ramses_2.4.21-rmk2-pxa1.bb @@ -0,0 +1,77 @@ +SECTION = "kernel" +DESCRIPTION = "Linux kernel for MNCI device" +MAINTAINER = "M&N Solutions " +LICENSE = "GPL" +KV = "2.4.21" +RMKV = "2" +PXAV = "1" +PR = "r1" + +SRC_URI = "ftp://ftp.kernel.org/pub/linux/kernel/v2.4/linux-${KV}.tar.bz2 \ + ftp://ftp.arm.linux.org.uk/pub/armlinux/source/kernel-patches/v2.4/patch-${KV}-rmk${RMKV}.gz;patch=1 \ + file://diff-${KV}-rmk${RMKV}-pxa${PXAV}.gz;patch=1 \ + file://mnci-combined.patch;patch=1" + +S = "${WORKDIR}/linux-${KV}" + +inherit kernel + +KERNEL_CCSUFFIX = "-3.3.4" +COMPATIBLE_HOST = "arm.*-linux" +FILES_kernel = "/boot /tmp" +DEPENDS = "modutils-cross virtual/${TARGET_PREFIX}gcc${KERNEL_CCSUFFIX}" + +do_configure_prepend() { + install -m 0644 ${S}/arch/arm/def-configs/${MACHINE} ${S}/.config || die "No default configuration for ${MACHINE} available." +} + +pkg_postinst_kernel () { +test -f /tmp/zImage || exit 0 +cp /tmp/zImage /dev/mtdblock/1 +rm /tmp/zImage +sync +cat /dev/mtdblock/1 >/dev/null +} + +pkg_postinst_modules () { +if [ -n "$D" ]; then + ${HOST_PREFIX}depmod -A -b $D -F $D/boot/System.map-${PV} ${KERNEL_VERSION} +else + depmod -A +fi +} + +pkg_postrm_modules () { +} + +pkg_postrm_kernel () { +} + +kernel_do_install() { + echo Files: ${FILES} + echo Files Kernel: ${FILES_kernel} + unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS + if (grep -q -i -e '^CONFIG_MODULES=y$' .config); then + oe_runmake DEPMOD=echo INSTALL_MOD_PATH="${D}" modules_install + else + oenote "no modules to install" + fi + install -d ${D}/tmp + install -m 0644 ${KERNEL_OUTPUT} ${D}/tmp + install -d ${D}/boot + install -m 0644 .config ${D}/boot/config-${PV} + bzip2 -9 ${D}/boot/* + install -d ${D}/etc/modutils +} + +#do_stage () { +# rm -rf ${STAGING_INCDIR}/linux ${STAGING_INCDIR}/asm +# mkdir -p ${STAGING_INCDIR}/linux ${STAGING_INCDIR}/asm +# cp -a include/linux/* ${STAGING_INCDIR}/linux/ +# cp -a include/asm/* ${STAGING_INCDIR}/asm/ +# find ${STAGING_INCDIR}/linux -name "*~*" | xargs rm +# find ${STAGING_INCDIR}/asm -name "*~*" | xargs rm +# +# ln -sf ${STAGING_KERNEL_DIR}/include/linux/wireless.h ${STAGING_INCDIR}/linux/wireless.h +# ln -sf ${STAGING_KERNEL_DIR}/include/linux/wireless.h ${CROSS_DIR}/${TARGET_SYS}/include/linux/wireless.h +#} -- cgit v1.2.3