Merge http://openembedded@openembedded.bkbits.net/packages
authorHolger Schurig <schurig@mn-solutions.de>
Fri, 24 Sep 2004 08:48:06 +0000 (08:48 +0000)
committerHolger Schurig <schurig@mn-solutions.de>
Fri, 24 Sep 2004 08:48:06 +0000 (08:48 +0000)
into mnz66.mn-logistik.de:/usr/src/ramses/oe/p

2004/09/24 10:47:49+02:00 mn-logistik.de!schurig
Kernel fixes for MNCI "Ramses"

BKrev: 4153df4628uYuY1G1uG8xhuD8Lk7fg

conf/ramses.conf
linux/mnci-ramses_2.4.21-rmk2-pxa1.oe

index fecbc37..81cfc8d 100644 (file)
@@ -9,7 +9,7 @@ TARGET_ARCH = "arm"
 TARGET_OS = "linux"
 IPKG_ARCHS = "all arm ${MACHINE}"
 PREFERRED_PROVIDER_xserver = "xserver-kdrive"
-PREFERRED_PROVIDER_virtual/kernel = "linux-ramses"
+PREFERRED_PROVIDER_virtual/kernel = "mnci-ramses"
 
 EXTRA_IMAGECMD_jffs2 = "--pad=0x1ec0000 --eraseblock=0x40000"
 
index e69de29..37463e4 100644 (file)
@@ -0,0 +1,63 @@
+DESCRIPTION = "Linux kernel for MNCI device"
+MAINTAINER = "M&N Solutions"
+LICENSE = "GPL"
+KV = "2.4.21"
+RMKV = "2"
+PXAV = "1"
+#PR = "r0"
+
+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 () {
+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
+}