diff options
Diffstat (limited to 'packages')
-rwxr-xr-x | packages/irda-utils/files/init | 30 | ||||
-rw-r--r-- | packages/irda-utils/irda-utils_0.9.16.bb | 35 | ||||
-rw-r--r-- | packages/linux/ep93xx-kernel_2.6.15.bb | 12 |
3 files changed, 41 insertions, 36 deletions
diff --git a/packages/irda-utils/files/init b/packages/irda-utils/files/init index f1594aae87..e7163d3ad3 100755 --- a/packages/irda-utils/files/init +++ b/packages/irda-utils/files/init @@ -1,6 +1,34 @@ #! /bin/sh -# Source IrDA networking configuration. +module_id() { + awk 'BEGIN { FS=": " } /Hardware/ { print $2 } ' </proc/cpuinfo +} + +if [ ! -f /etc/sysconfig/irda ]; then + + case `module_id` in + "HP iPAQ H2200" | "HP iPAQ HX4700") + IRDA=yes + DEVICE=/dev/tts/2 + DONGLE= + DISCOVERY= + ;; + *) + IRDA=yes + DEVICE=/dev/ttyS1 + DONGLE= + DISCOVERY= + ;; + esac + + echo "IRDA=$IRDA" > /etc/sysconfig/irda + if [ $IRDA = "yes" ]; then + echo "DEVICE=$DEVICE" >> /etc/sysconfig/irda + echo "DONGLE=$DONGLE" >> /etc/sysconfig/irda + echo "DISCOVERY=$DISCOVERY" >> /etc/sysconfig/irda + fi +fi + . /etc/sysconfig/irda # Check that irda is up. diff --git a/packages/irda-utils/irda-utils_0.9.16.bb b/packages/irda-utils/irda-utils_0.9.16.bb index 4acfeff04d..1753edca88 100644 --- a/packages/irda-utils/irda-utils_0.9.16.bb +++ b/packages/irda-utils/irda-utils_0.9.16.bb @@ -3,7 +3,7 @@ IrDA allows communication over Infrared with other devices \ such as phones and laptops." SECTION = "base" LICENSE = "GPL" -PR = "r3" +PR = "r4" SRC_URI = "${SOURCEFORGE_MIRROR}/irda/irda-utils-${PV}.tar.gz \ file://configure.patch;patch=1 \ @@ -30,36 +30,3 @@ do_install () { install -d ${D}${sysconfdir}/init.d install -m 0755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/irattach } - -pkg_postinst () { -#!/bin/sh - -module_id() { - awk 'BEGIN { FS=": " } /Hardware/ { print $2 } ' </proc/cpuinfo - } - -if [ ! -f /etc/sysconfig/irda ]; then - - case `module_id` in - "HP iPAQ H2200" | "HP iPAQ HX4700") - IRDA=yes - DEVICE=/dev/tts/2 - DONGLE= - DISCOVERY= - ;; - *) - IRDA=yes - DEVICE=/dev/ttyS1 - DONGLE= - DISCOVERY= - ;; - esac - - echo "IRDA=$IRDA" > /etc/sysconfig/irda - if [ $IRDA = "yes" ]; then - echo "DEVICE=$DEVICE" >> /etc/sysconfig/irda - echo "DONGLE=$DONGLE" >> /etc/sysconfig/irda - echo "DISCOVERY=$DISCOVERY" >> /etc/sysconfig/irda - fi -fi -} diff --git a/packages/linux/ep93xx-kernel_2.6.15.bb b/packages/linux/ep93xx-kernel_2.6.15.bb index 4af3c65927..7c9f81a924 100644 --- a/packages/linux/ep93xx-kernel_2.6.15.bb +++ b/packages/linux/ep93xx-kernel_2.6.15.bb @@ -1,4 +1,4 @@ -DESCRIPTION = "Linux Kernel for Cirrus Logic ep39xxcompatible machines" +DESCRIPTION = "Linux Kernel for Cirrus Logic ep39xx compatible machines" SECTION = "kernel" LICENSE = "GPL" PR = "r0" @@ -17,3 +17,13 @@ do_configure_prepend() { install -m 0644 ${WORKDIR}/defconfig ${S}/.config } +do_deploy() { + install -d ${DEPLOY_DIR}/images + install -m 0644 arch/${ARCH}/boot/${KERNEL_IMAGETYPE} ${DEPLOY_DIR}/images/${KERNEL_IMAGETYPE}-${PV}-${MACHINE}-${DATETIME}.bin +} + +do_deploy[dirs] = "${S}" + +addtask deploy before do_build after do_compile + + |