small fix for Makefile
[openwrt.git] / openwrt / target / linux / package / ieee80211-dscape / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4 include ../../rules.mk
5
6 PKG_NAME := kmod-ieee80211-dscape
7 PKG_RELEASE := 1
8 PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
9
10 include $(TOPDIR)/package/rules.mk
11
12 $(eval $(call PKG_template,KMOD_IEEE80211_DSCAPE,$(PKG_NAME),$(LINUX_VERSION)-$(BOARD)-$(PKG_RELEASE),$(ARCH),kernel ($(LINUX_VERSION)-$(BOARD)-$(KERNEL_RELEASE))))
13
14 ifeq ($(KERNEL_DIR),)
15 KERNEL_DIR:=$(LINUX_DIR)
16 endif
17 KERNEL_VERSION=$(shell echo "$(LINUX_VERSION)" | cut -d. -f1,2)
18
19 $(PKG_BUILD_DIR)/.prepared:
20 mkdir -p $(PKG_BUILD_DIR)
21 cp -fpR ./src/* $(PKG_BUILD_DIR)/
22 touch $@
23
24 $(PKG_BUILD_DIR)/.configured:
25 touch $@
26
27 $(PKG_BUILD_DIR)/.built:
28 $(MAKE) -C "$(KERNEL_DIR)" \
29 CROSS_COMPILE="$(TARGET_CROSS)" \
30 ARCH="$(LINUX_KARCH)" \
31 PATH="$(TARGET_PATH)" \
32 SUBDIRS="$(PKG_BUILD_DIR)" \
33 LINUXINCLUDE="-I$(shell pwd)/src/include -I$(KERNEL_DIR)/include" \
34 modules
35 touch $@
36
37 $(IPKG_KMOD_IEEE80211_DSCAPE):
38 install -m0755 -d $(IDIR_KMOD_IEEE80211_DSCAPE)/lib/modules/$(LINUX_VERSION)
39 #install -m0755 -d $(IDIR_KMOD_IEEE80211_DSCAPE)/etc/modules.d
40 cp -fpR $(PKG_BUILD_DIR)/*.ko $(IDIR_KMOD_IEEE80211_DSCAPE)/lib/modules/$(LINUX_VERSION)
41 $(IPKG_BUILD) $(IDIR_KMOD_IEEE80211_DSCAPE) $(PACKAGE_DIR)
42
43 install-dev:
44 mkdir -p $(STAGING_DIR)/usr/include/ieee80211-dscape
45 cp -fpR src/include/* $(STAGING_DIR)/usr/include/ieee80211-dscape/
46
47 uninstall-dev:
48 rm -rf $(STAGING_DIR)/usr/include/ieee80211-dscape
49
50 compile-targets: install-dev
51 clean-targets: uninstall-dev
This page took 0.055192 seconds and 5 git commands to generate.