move package/linux into target/linux, use wbx' new kernel code. support building...
[openwrt.git] / openwrt / target / linux / package / wlcompat / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME := kmod-wlcompat
6 PKG_RELEASE := 1
7 PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
8
9 include $(TOPDIR)/package/rules.mk
10
11 ifeq ($(patsubst 2.4%,2.4,$(LINUX_VERSION)),2.4)
12 $(eval $(call PKG_template,KMOD_WLCOMPAT,$(PKG_NAME),$(KERNEL_VERSION)-$(PKG_RELEASE),$(ARCH)))
13 endif
14
15 WLCOMPAT_FLAGS:=$(TARGET_CLFAGS) -D__KERNEL__ -fno-strict-aliasing -fno-common -fomit-frame-pointer -G 0 \
16 -mno-abicalls -fno-pic -finline-limit=100000 -mabi=32 -march=mips32 -Wa,-32 -Wa,-march=mips32 \
17 -Wa,-mips32 -Wa,--trap -DMODULE -mlong-calls -fno-common -I. -I linux-2.4 -funsigned-char -nostdinc \
18 -iwithprefix include -I$(LINUX_DIR)/include -I$(LINUX_DIR)/include/asm/gcc -I./include -c
19
20 $(PKG_BUILD_DIR)/.built: $(PKG_BUILD_DIR)/wlcompat.o $(PKG_BUILD_DIR)/wlcompat-debug.o
21 touch $@
22
23 $(PKG_BUILD_DIR)/wlcompat.o:
24 $(TARGET_CC) $(WLCOMPAT_FLAGS) -o $@ wlcompat.c
25
26 $(PKG_BUILD_DIR)/wlcompat-debug.o:
27 $(TARGET_CC) -DDEBUG $(WLCOMPAT_FLAGS) -o $@ wlcompat.c
28
29 $(IPKG_KMOD_WLCOMPAT): $(PKG_BUILD_DIR)/wlcompat.o $(PKG_BUILD_DIR)/wlcompat-debug.o
30 mkdir -p $(IDIR_WLCOMPAT)/etc/modules.d
31 echo "wlcompat" > $(IDIR_WLCOMPAT)/etc/modules.d/10-wlcompat
32 mkdir -p $(IDIR_WLCOMPAT)/lib/modules/$(LINUX_VERSION)
33 cp $^ $(IDIR_WLCOMPAT)/lib/modules/$(LINUX_VERSION)/
34 $(IPKG_BUILD) $(IDIR_WLCOMPAT) $(PACKAGE_DIR)
This page took 0.058568 seconds and 5 git commands to generate.