fix a bug that prevents the wgt634u from initializing the filesystem properly
[openwrt.git] / openwrt / target / linux / package / switch / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4 include ../../rules.mk
5
6 PKG_NAME := kmod-switch
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_SWITCH,$(PKG_NAME),$(LINUX_VERSION)-$(BOARD)-$(PKG_RELEASE),$(ARCH),kernel ($(LINUX_VERSION)-$(BOARD)-$(LINUX_RELEASE))))
13
14 $(PKG_BUILD_DIR)/.prepared:
15 mkdir -p $(PKG_BUILD_DIR)
16 $(CP) ./src/* $(PKG_BUILD_DIR)/
17 touch $@
18
19 $(PKG_BUILD_DIR)/.configured:
20 touch $@
21
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 EXTRA_CFLAGS="-DBCMGPIO2" \
29 modules
30 touch $@
31
32 $(IPKG_KMOD_SWITCH):
33 install -m0755 -d $(IDIR_KMOD_SWITCH)/lib/modules/$(LINUX_VERSION)
34 $(CP) $(PKG_BUILD_DIR)/*.$(LINUX_KMOD_SUFFIX) \
35 $(IDIR_KMOD_SWITCH)/lib/modules/$(LINUX_VERSION)
36 $(IPKG_BUILD) $(IDIR_KMOD_SWITCH) $(PACKAGE_DIR)
37
This page took 0.038921 seconds and 5 git commands to generate.