aboutsummaryrefslogtreecommitdiffstats
path: root/package/wlc/Makefile
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2006-06-18 18:04:42 +0000
committerFelix Fietkau <nbd@openwrt.org>2006-06-18 18:04:42 +0000
commitd83d96b78165007f58a2e8c50a55bd5de046011c (patch)
tree62e732d4d19a6f86491eb5545dc1f404dd030318 /package/wlc/Makefile
parent576b3463d3a5782484f2949f782e4214cdbb5a9b (diff)
downloadupstream-d83d96b78165007f58a2e8c50a55bd5de046011c.tar.gz
upstream-d83d96b78165007f58a2e8c50a55bd5de046011c.tar.bz2
upstream-d83d96b78165007f58a2e8c50a55bd5de046011c.zip
add wlc utility
git-svn-id: svn://svn.openwrt.org/openwrt/branches/buildroot-ng/openwrt@3992 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/wlc/Makefile')
-rw-r--r--package/wlc/Makefile40
1 files changed, 40 insertions, 0 deletions
diff --git a/package/wlc/Makefile b/package/wlc/Makefile
new file mode 100644
index 0000000000..e40fcd8d15
--- /dev/null
+++ b/package/wlc/Makefile
@@ -0,0 +1,40 @@
+# $Id: Makefile 2480 2005-11-14 02:07:33Z nbd $
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=wlc
+PKG_RELEASE:=1
+
+PKG_BUILD_DIR:=$(BUILD_DIR)/wlc
+
+include $(TOPDIR)/package/rules.mk
+
+define Package/wlc
+SECTION:=base
+CATEGORY:=Base system
+DEPENDS:=@PACKAGE_KMOD_BRCM_WL
+DEFAULT:=y
+TITLE:=Utility for configuring the Broadcom wl driver
+DESCRIPTION:=Utility for configuring the Broadcom wl driver
+endef
+
+
+define Build/Prepare
+ mkdir -p $(PKG_BUILD_DIR)
+ $(CP) src/* $(PKG_BUILD_DIR)/
+endef
+
+define Build/Compile
+ $(MAKE) -C $(PKG_BUILD_DIR)\
+ $(TARGET_CONFIGURE_OPTS) \
+ CC="$(TARGET_CC)" \
+ CFLAGS="-I$(PKG_BUILD_DIR)/include $(TARGET_CFLAGS)" \
+ all
+endef
+
+define Package/wlc/install
+ install -d -m0755 $(1)/sbin
+ install -m0755 $(PKG_BUILD_DIR)/wlc $(1)/sbin/
+endef
+
+$(eval $(call BuildPackage,wlc))