diff options
Diffstat (limited to 'openembedded/packages/apmd')
-rw-r--r-- | openembedded/packages/apmd/apmd-3.2.2/apmwrapper | 9 | ||||
-rw-r--r-- | openembedded/packages/apmd/apmd-3.2.2/devfs.patch | 11 | ||||
-rw-r--r-- | openembedded/packages/apmd/apmd-3.2.2/hwclock | 16 | ||||
-rw-r--r-- | openembedded/packages/apmd/apmd-3.2.2/logcheck.ignore.paranoid | 13 | ||||
-rw-r--r-- | openembedded/packages/apmd/apmd_3.2.2.bb | 25 |
5 files changed, 3 insertions, 71 deletions
diff --git a/openembedded/packages/apmd/apmd-3.2.2/apmwrapper b/openembedded/packages/apmd/apmd-3.2.2/apmwrapper deleted file mode 100644 index 3bc9bece3..000000000 --- a/openembedded/packages/apmd/apmd-3.2.2/apmwrapper +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/sh - -if ( cat /proc/cpuinfo|grep -i hardware|grep -i SHARP ) && \ - [ ".$@" = ".-s" -o ".$@" = ".--suspend" ]; then - killall -USR1 apmd || /usr/bin/apm.orig -s -else - /usr/bin/apm.orig "$@" -fi - diff --git a/openembedded/packages/apmd/apmd-3.2.2/devfs.patch b/openembedded/packages/apmd/apmd-3.2.2/devfs.patch deleted file mode 100644 index b11e01929..000000000 --- a/openembedded/packages/apmd/apmd-3.2.2/devfs.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- apmd-3.2.0.orig/apm.h~devfs -+++ apmd-3.2.0.orig/apm.h -@@ -24,7 +24,7 @@ - #include <sys/types.h> - - #define APM_PROC "/proc/apm" --#define APM_DEVICE "/dev/apm_bios" -+#define APM_DEVICE "/dev/misc/apm_bios" - - #define APM_DEV "/proc/devices" - #define APM_NAME "apm_bios" diff --git a/openembedded/packages/apmd/apmd-3.2.2/hwclock b/openembedded/packages/apmd/apmd-3.2.2/hwclock deleted file mode 100644 index a1c1c2294..000000000 --- a/openembedded/packages/apmd/apmd-3.2.2/hwclock +++ /dev/null @@ -1,16 +0,0 @@ -#!/bin/sh -# Preserve the system clock around suspend/resume. - -INIT="/etc/init.d/hwclock.sh" -[ -x "${INIT}" ] || exit 0 - -case "${1},${2}" in -(suspend,*) - "${INIT}" stop - ;; -(resume,suspend) - "${INIT}" start - ;; -esac - -exit 0 diff --git a/openembedded/packages/apmd/apmd-3.2.2/logcheck.ignore.paranoid b/openembedded/packages/apmd/apmd-3.2.2/logcheck.ignore.paranoid deleted file mode 100644 index de37f01a2..000000000 --- a/openembedded/packages/apmd/apmd-3.2.2/logcheck.ignore.paranoid +++ /dev/null @@ -1,13 +0,0 @@ -apmd\[[0-9]+\]: (Normal|Standby|Critical) Resume -apmd\[[0-9]+\]: (Now using|Using) (AC|battery|backup) power -apmd\[[0-9]+\]: (System|User) (Standby|Suspend) -apmd\[[0-9]+\]: (apmd_)?call_proxy: -apmd\[[0-9]+\]: Battery: [0-9]+%, -apmd\[[0-9]+\]: Battery: absent -apmd\[[0-9]+\]: Capability Change -apmd\[[0-9]+\]: Exiting -apmd\[[0-9]+\]: Performing APM status check -apmd\[[0-9]+\]: Suspending now -apmd\[[0-9]+\]: Update Time -apmd\[[0-9]+\]: Version: apmd [0-9.]+, (apm )?driver [0-9.]+, APM BIOS [0-9.]+ -apmd\[[0-9]+\]: apmd [0-9.]+ interfacing with apm driver [0-9.]+ and APM BIOS [0-9.]+ diff --git a/openembedded/packages/apmd/apmd_3.2.2.bb b/openembedded/packages/apmd/apmd_3.2.2.bb index 0e8b36445..4a23f3959 100644 --- a/openembedded/packages/apmd/apmd_3.2.2.bb +++ b/openembedded/packages/apmd/apmd_3.2.2.bb @@ -3,12 +3,12 @@ SECTION = "base" PRIORITY = "required" DEPENDS = "libtool-cross" LICENSE = "GPL" -PR = "r5" +PR = "r7" SRC_URI = "${DEBIAN_MIRROR}/main/a/apmd/apmd_${PV}.orig.tar.gz; \ file://debian.patch;patch=1 \ file://workaround.patch;patch=1 \ - file://apmwrapper \ + file://zaurus24.patch;patch=1 \ file://init \ file://default \ file://apmd_proxy \ @@ -44,25 +44,8 @@ do_install() { install -d ${D}${bindir} install -d ${D}${libdir} install -d ${D}${datadir}/apmd -# -# only Zaurus 2.4-embedix kernels need a breadead apm hack -# -# - case ${MACHINE} in - collie | poodle | tosa | c7x0 | akita | spitz | borzoi) - if [ "${KERNEL_VERSION}" == "2.6" ] - then - install -m 4577 ${S}/.libs/apm ${D}${bindir}/apm - else - install -m 4755 ${S}/.libs/apm ${D}${bindir}/apm.orig - install -m 0755 ${WORKDIR}/apmwrapper ${D}${bindir}/apm - fi - ;; - *) - install -m 4577 ${S}/.libs/apm ${D}${bindir}/apm - ;; - esac + install -m 4755 ${S}/.libs/apm ${D}${bindir}/apm install -m 0755 ${S}/.libs/apmd ${D}${sbindir}/apmd install -m 0755 ${WORKDIR}/apmd_proxy ${D}${sysconfdir}/apm/ install -m 0644 ${WORKDIR}/apmd_proxy.conf ${D}${datadir}/apmd/ @@ -79,5 +62,3 @@ PACKAGES =+ "libapm libapm-dev apm" FILES_libapm = "${libdir}/libapm.so.*" FILES_libapm-dev = "${libdir}/libapm.* ${includedir}" FILES_apm = "${bindir}/apm*" - - |