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 $(eval
$(call PKG_template
,KMOD_WLCOMPAT
,$(PKG_NAME
),$(LINUX_VERSION
)-$(BOARD
)-$(PKG_RELEASE
),$(ARCH
),kernel
($(LINUX_VERSION
)-$(BOARD
)-$(LINUX_RELEASE
))))
12 $(eval
$(call PKG_template
,KMOD_WLCOMPAT_DEBUG
,$(PKG_NAME
)-debug
,$(LINUX_VERSION
)-$(BOARD
)-$(PKG_RELEASE
),$(ARCH
),kernel
($(LINUX_VERSION
)-$(BOARD
)-$(LINUX_RELEASE
))))
14 WLCOMPAT_FLAGS
:=$(TARGET_CFLAGS
) -D__KERNEL__
-fno-strict-aliasing
-fno-common
-fomit-frame-pointer
-G
0 \
15 -mno-abicalls
-fno-pic
-finline-limit
=100000 -mabi
=32 -march
=mips32
-Wa
,-32 -Wa
,-march
=mips32 \
16 -Wa
,-mips32
-Wa
,--trap
-DMODULE
-mlong-calls
-fno-common
-I.
-I linux-2.4
-funsigned-char
-nostdinc \
17 -iwithprefix
include -I
$(LINUX_DIR
)/include -I
$(LINUX_DIR
)/include/asm
/gcc
-I
$(STAGING_DIR
)/usr
/include -c
19 $(PKG_BUILD_DIR
)/.prepared
:
20 mkdir
-p
$(PKG_BUILD_DIR
)
23 $(PKG_BUILD_DIR
)/.built
: $(PKG_BUILD_DIR
)/wlcompat.o
$(PKG_BUILD_DIR
)/wlcompat-debug.o
26 $(PKG_BUILD_DIR
)/wlcompat.o
: $(PKG_BUILD_DIR
)/.prepared
27 $(TARGET_CC
) $(WLCOMPAT_FLAGS
) -o
$@ wlcompat.c
29 $(PKG_BUILD_DIR
)/wlcompat-debug.o
: $(PKG_BUILD_DIR
)/.prepared
30 $(TARGET_CC
) -DDEBUG
$(WLCOMPAT_FLAGS
) -o
$@ wlcompat.c
32 $(IPKG_KMOD_WLCOMPAT
): $(PKG_BUILD_DIR
)/wlcompat.o
33 mkdir
-p
$(IDIR_KMOD_WLCOMPAT
)/etc
/modules.d
34 echo
"wlcompat" > $(IDIR_KMOD_WLCOMPAT
)/etc
/modules.d
/30-wlcompat
35 mkdir
-p
$(IDIR_KMOD_WLCOMPAT
)/lib
/modules
/$(LINUX_VERSION
)
36 $(CP
) $(PKG_BUILD_DIR
)/wlcompat.o
$(IDIR_KMOD_WLCOMPAT
)/lib
/modules
/$(LINUX_VERSION
)/
37 $(IPKG_BUILD
) $(IDIR_KMOD_WLCOMPAT
) $(PACKAGE_DIR
)
39 $(IPKG_KMOD_WLCOMPAT_DEBUG
): $(PKG_BUILD_DIR
)/wlcompat-debug.o
40 mkdir
-p
$(IDIR_KMOD_WLCOMPAT_DEBUG
)/lib
/modules
/$(LINUX_VERSION
)
41 $(CP
) $(PKG_BUILD_DIR
)/wlcompat-debug.o
$(IDIR_KMOD_WLCOMPAT_DEBUG
)/lib
/modules
/$(LINUX_VERSION
)/
42 $(IPKG_BUILD
) $(IDIR_KMOD_WLCOMPAT_DEBUG
) $(PACKAGE_DIR
)
This page took 0.046166 seconds and 5 git commands to generate.