3 include $(TOPDIR
)/rules.mk
6 PKG_NAME
:= kmod-ieee80211-dscape
8 PKG_BUILD_DIR
:= $(BUILD_DIR
)/$(PKG_NAME
)
10 include $(TOPDIR
)/package
/rules.mk
12 $(eval
$(call PKG_template
,KMOD_IEEE80211_DSCAPE
,$(PKG_NAME
),$(LINUX_VERSION
)-$(BOARD
)-$(PKG_RELEASE
),$(ARCH
),kernel
($(LINUX_VERSION
)-$(BOARD
)-$(LINUX_RELEASE
))))
14 $(PKG_BUILD_DIR
)/.prepared
:
15 mkdir
-p
$(PKG_BUILD_DIR
)
16 $(CP
) .
/src
/* $(PKG_BUILD_DIR
)/
19 $(PKG_BUILD_DIR
)/.configured
:
22 $(PKG_BUILD_DIR
)/.built
:
23 $(MAKE
) -C
"$(LINUX_DIR)" \
24 CROSS_COMPILE
="$(TARGET_CROSS)" \
25 ARCH
="$(LINUX_KARCH)" \
26 PATH
="$(TARGET_PATH)" \
27 SUBDIRS
="$(PKG_BUILD_DIR)" \
28 LINUXINCLUDE
="-I$(shell pwd)/src/include -I$(LINUX_DIR)/include" \
32 $(IPKG_KMOD_IEEE80211_DSCAPE
):
33 install -m0755
-d
$(IDIR_KMOD_IEEE80211_DSCAPE
)/lib
/modules
/$(LINUX_VERSION
)
34 #install -m0755 -d $(IDIR_KMOD_IEEE80211_DSCAPE)/etc/modules.d
35 $(CP
) $(PKG_BUILD_DIR
)/*.ko
$(IDIR_KMOD_IEEE80211_DSCAPE
)/lib
/modules
/$(LINUX_VERSION
)
36 $(IPKG_BUILD
) $(IDIR_KMOD_IEEE80211_DSCAPE
) $(PACKAGE_DIR
)
39 mkdir
-p
$(STAGING_DIR
)/usr
/include/ieee80211-dscape
40 $(CP
) src
/include/* $(STAGING_DIR
)/usr
/include/ieee80211-dscape
/
43 rm -rf
$(STAGING_DIR
)/usr
/include/ieee80211-dscape
45 compile-targets
: install-dev
46 clean-targets
: uninstall-dev