From 1b5c7599c7d4a7911e282a5b57c5a49d9424e65a Mon Sep 17 00:00:00 2001 From: nbd Date: Thu, 7 Jan 2010 22:22:10 +0000 Subject: carl9170: fix debugfs support git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19067 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- package/carl9170/Makefile | 8 ++++++-- package/carl9170/patches/120-fix_missing_include.patch | 10 ++++++++++ 2 files changed, 16 insertions(+), 2 deletions(-) create mode 100644 package/carl9170/patches/120-fix_missing_include.patch (limited to 'package/carl9170') diff --git a/package/carl9170/Makefile b/package/carl9170/Makefile index 17f3376d2..10c83a476 100644 --- a/package/carl9170/Makefile +++ b/package/carl9170/Makefile @@ -43,7 +43,10 @@ define Build/Prepare $(Build/Patch) endef -BUILDFLAGS= \ +BUILDFLAGS = \ + CONFIG_MAC80211_DEBUGFS=$(CONFIG_PACKAGE_MAC80211_DEBUGFS) + +EXTRA_CFLAGS = \ $(if $(CONFIG_ATH_USER_REGD),-DATH_USER_REGD) define Build/Compile @@ -51,7 +54,8 @@ define Build/Compile SUBDIRS="$(DRV_PATH)" \ ARCH="$(LINUX_KARCH)" \ CROSS_COMPILE="$(KERNEL_CROSS)" \ - CC="$(TARGET_CC) -I$(STAGING_DIR)/usr/include/mac80211 $(BUILDFLAGS)" + CC="$(TARGET_CC) -I$(STAGING_DIR)/usr/include/mac80211 $(EXTRA_CFLAGS)" \ + $(BUILDFLAGS) endef define KernelPackage/carl9170/install diff --git a/package/carl9170/patches/120-fix_missing_include.patch b/package/carl9170/patches/120-fix_missing_include.patch new file mode 100644 index 000000000..02a7a87cc --- /dev/null +++ b/package/carl9170/patches/120-fix_missing_include.patch @@ -0,0 +1,10 @@ +--- a/drivers/net/wireless/ath/carl9170/debug.c ++++ b/drivers/net/wireless/ath/carl9170/debug.c +@@ -38,6 +38,7 @@ + */ + + #include ++#include + #include "carl9170.h" + #include "usb.h" + #include "cmd.h" -- cgit v1.2.3