apmd: prevent build from interferring with host kernel headers. Closes #1257
authorMichael Krelin <hacker@klever.net>
Tue, 29 May 2007 12:27:45 +0000 (12:27 +0000)
committerMichael Krelin <hacker@klever.net>
Tue, 29 May 2007 12:27:45 +0000 (12:27 +0000)
packages/apmd/apmd-3.2.2/unlinux.patch [new file with mode: 0644]
packages/apmd/apmd_3.2.2.bb

diff --git a/packages/apmd/apmd-3.2.2/unlinux.patch b/packages/apmd/apmd-3.2.2/unlinux.patch
new file mode 100644 (file)
index 0000000..f7eec6e
--- /dev/null
@@ -0,0 +1,12 @@
+--- apmd-3.2.2.orig/Makefile
++++ apmd-3.2.2/Makefile
+@@ -43,8 +43,7 @@
+ CC=gcc
+ CFLAGS=-O -g
+-XTRACFLAGS=-Wall -pipe -I. -I/usr/src/linux/include \
+-              -I/usr/src/linux-2.2/include -I /usr/src/linux-2.0/include \
++XTRACFLAGS=-Wall -pipe -I. \
+               -DVERSION=\"$(VERSION)\" \
+               -DDEFAULT_PROXY_NAME=\"$(PROXY_DIR)/apmd_proxy\"
+ LDFLAGS=
index 4313115..5402e67 100644 (file)
@@ -9,6 +9,7 @@ SRC_URI = "${DEBIAN_MIRROR}/main/a/apmd/apmd_${PV}.orig.tar.gz; \
            file://debian.patch;patch=1 \
            file://workaround.patch;patch=1 \
            file://zaurus24.patch;patch=1 \
+          file://unlinux.patch;patch=1 \
            file://init \
            file://default \
            file://apmd_proxy \