diff options
author | Marcin Juszkiewicz <hrw@openedhand.com> | 2008-10-13 13:02:10 +0000 |
---|---|---|
committer | Marcin Juszkiewicz <hrw@openedhand.com> | 2008-10-13 13:02:10 +0000 |
commit | 2e900b0d6e0692fb4d4160515beee58e69210303 (patch) | |
tree | 6db0e70059da1fddc8377affd0f0ace943283da0 /meta/packages/apmd | |
parent | f0676a33667bde48bcb050eaa177923eb70a3cce (diff) | |
download | poky-2e900b0d6e0692fb4d4160515beee58e69210303.tar.gz |
apmd: drop obsolete zaurus 2.4 kernels hack
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@5481 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/packages/apmd')
-rw-r--r-- | meta/packages/apmd/apmd-3.2.2/zaurus24.patch | 50 | ||||
-rw-r--r-- | meta/packages/apmd/apmd_3.2.2.bb | 3 |
2 files changed, 1 insertions, 52 deletions
diff --git a/meta/packages/apmd/apmd-3.2.2/zaurus24.patch b/meta/packages/apmd/apmd-3.2.2/zaurus24.patch deleted file mode 100644 index 5df016ab77..0000000000 --- a/meta/packages/apmd/apmd-3.2.2/zaurus24.patch +++ /dev/null | |||
@@ -1,50 +0,0 @@ | |||
1 | Index: apmd-3.2.2.orig/apm.c | ||
2 | =================================================================== | ||
3 | --- apmd-3.2.2.orig.orig/apm.c 2006-01-26 15:15:27.000000000 +0100 | ||
4 | +++ apmd-3.2.2.orig/apm.c 2006-01-26 17:50:14.000000000 +0100 | ||
5 | @@ -24,10 +24,12 @@ | ||
6 | #include <unistd.h> | ||
7 | #include <sys/types.h> | ||
8 | #include <sys/stat.h> | ||
9 | +#include <sys/utsname.h> | ||
10 | #include <fcntl.h> | ||
11 | #include <errno.h> | ||
12 | #include <time.h> | ||
13 | #include <getopt.h> | ||
14 | +#include <signal.h> | ||
15 | #include "apm.h" | ||
16 | |||
17 | static int verbose = 0; | ||
18 | @@ -43,6 +45,9 @@ | ||
19 | int fd; | ||
20 | time_t then, now; | ||
21 | int error; | ||
22 | + FILE* pid_file; | ||
23 | + int apmd_pid; | ||
24 | + struct utsname uname_ver; | ||
25 | |||
26 | fd = open(APM_DEVICE, O_WRONLY); | ||
27 | if (fd < 0) | ||
28 | @@ -54,6 +59,22 @@ | ||
29 | switch (mode) | ||
30 | { | ||
31 | case SUSPEND: | ||
32 | + if(0 == system("grep -i hardware /proc/cpuinfo|grep -i SHARP")) | ||
33 | + { | ||
34 | + uname(&uname_ver); | ||
35 | + | ||
36 | + if(0 == strncmp("2.4", uname_ver.release, 3)) | ||
37 | + { | ||
38 | + pid_file = fopen("/var/run/apmd.pid", "r"); | ||
39 | + if(pid_file) | ||
40 | + { | ||
41 | + fscanf(pid_file, "%d", &apmd_pid); | ||
42 | + fclose(pid_file); | ||
43 | + } | ||
44 | + | ||
45 | + kill(apmd_pid, SIGKILL); | ||
46 | + } | ||
47 | + } | ||
48 | error = apm_suspend(fd); | ||
49 | break; | ||
50 | case STANDBY: | ||
diff --git a/meta/packages/apmd/apmd_3.2.2.bb b/meta/packages/apmd/apmd_3.2.2.bb index 136d9293df..1706e9c683 100644 --- a/meta/packages/apmd/apmd_3.2.2.bb +++ b/meta/packages/apmd/apmd_3.2.2.bb | |||
@@ -3,12 +3,11 @@ SECTION = "base" | |||
3 | PRIORITY = "required" | 3 | PRIORITY = "required" |
4 | DEPENDS = "libtool-cross" | 4 | DEPENDS = "libtool-cross" |
5 | LICENSE = "GPL" | 5 | LICENSE = "GPL" |
6 | PR = "r12" | 6 | PR = "r13" |
7 | 7 | ||
8 | SRC_URI = "${DEBIAN_MIRROR}/main/a/apmd/apmd_${PV}.orig.tar.gz \ | 8 | SRC_URI = "${DEBIAN_MIRROR}/main/a/apmd/apmd_${PV}.orig.tar.gz \ |
9 | file://debian.patch;patch=1 \ | 9 | file://debian.patch;patch=1 \ |
10 | file://workaround.patch;patch=1 \ | 10 | file://workaround.patch;patch=1 \ |
11 | file://zaurus24.patch;patch=1 \ | ||
12 | file://unlinux.patch;patch=1 \ | 11 | file://unlinux.patch;patch=1 \ |
13 | file://libtool.patch;patch=1 \ | 12 | file://libtool.patch;patch=1 \ |
14 | file://init \ | 13 | file://init \ |