3 include $(TOPDIR
)/rules.mk
5 PKG_NAME
:= kmod-wlcompat
7 PKG_BUILD_DIR
:= $(BUILD_DIR
)/$(PKG_NAME
)
9 include $(TOPDIR
)/package
/rules.mk
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
)))
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
20 $(PKG_BUILD_DIR
)/.built
: $(PKG_BUILD_DIR
)/wlcompat.o
$(PKG_BUILD_DIR
)/wlcompat-debug.o
23 $(PKG_BUILD_DIR
)/wlcompat.o
:
24 $(TARGET_CC
) $(WLCOMPAT_FLAGS
) -o
$@ wlcompat.c
26 $(PKG_BUILD_DIR
)/wlcompat-debug.o
:
27 $(TARGET_CC
) -DDEBUG
$(WLCOMPAT_FLAGS
) -o
$@ wlcompat.c
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.