fix lirc compile and move its build dir to the right place
authorFelix Fietkau <nbd@openwrt.org>
Tue, 5 Aug 2008 20:49:28 +0000 (20:49 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Tue, 5 Aug 2008 20:49:28 +0000 (20:49 +0000)
SVN-Revision: 12158

utils/lirc/Makefile
utils/lirc/patches/100-kcompat.patch [new file with mode: 0644]

index d9b011b..8fd3689 100644 (file)
@@ -18,7 +18,7 @@ PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
 PKG_SOURCE_URL:=@SF/${PKG_NAME}
 PKG_MD5SUM:=8e78eeded7b31e5ad02e328970437c0f
 
-PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
+PKG_BUILD_DIR:=$(KERNEL_BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
 
 include $(INCLUDE_DIR)/package.mk
diff --git a/utils/lirc/patches/100-kcompat.patch b/utils/lirc/patches/100-kcompat.patch
new file mode 100644 (file)
index 0000000..59073ee
--- /dev/null
@@ -0,0 +1,16 @@
+--- a/drivers/kcompat.h
++++ b/drivers/kcompat.h
+@@ -53,7 +53,13 @@
+ #else /* >= 2.6.15 */
++#if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,25)
++#define lirc_class_device_create device_create_drvdata
++#define class_device_destroy device_destroy
++#else
+ #define lirc_class_device_create class_device_create
++#endif
++
+ #define LIRC_DEVFS_PREFIX
+ #endif