source: freewrt/package/wlcompat/Makefile@ 758ff45

freewrt_1_0 freewrt_2_0
Last change on this file since 758ff45 was 758ff45, checked in by Lothar Gesslein <ulmen@…>, 19 years ago

wlcompat build fix, already fixed in trunk with [1059]

git-svn-id: svn://www.freewrt.org/branches/freewrt_1_0@1062 afb5a338-a214-0410-bd46-81f09a774fd1

  • Property mode set to 100644
File size: 1.6 KB
Line 
1# $FreeWRT$
2#-
3# This file is part of the FreeWRT project. FreeWRT is copyrighted
4# material, please see the LICENCE file in the top-level directory
5# or at http://www.freewrt.org/licence for details.
6
7include $(TOPDIR)/rules.mk
8include $(TOPDIR)/mk/targets.mk
9
10PKG_NAME:= kmod-wlcompat
11PKG_VERSION:= 1.0
12PKG_RELEASE:= 3
13PKG_MODULE:= 30
14
15DISTFILES:=
16
17include $(TOPDIR)/mk/package.mk
18
19$(eval $(call PKG_template,KMOD_WLCOMPAT,$(PKG_NAME),$(KERNEL_VERSION)-$(BOARD)-$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH),kernel ($(KERNEL_VERSION)-$(BOARD)-$(KERNEL_RELEASE))))
20
21WLCOMPAT_FLAGS:=$(TARGET_CFLAGS) -D__KERNEL__ -fno-strict-aliasing -fno-common -fomit-frame-pointer -G 0 \
22 -mno-abicalls -fno-pic -finline-limit=100000 -mabi=32 -march=mips32 -Wa,-32 -Wa,-march=mips32 \
23 -Wa,-mips32 -Wa,--trap -DMODULE -mlong-calls -fno-common -I. -I linux-2.4 -funsigned-char -nostdinc \
24 -iwithprefix include -I$(LINUX_DIR)/include -I$(LINUX_DIR)/include/asm/gcc -I$(STAGING_DIR)/usr/include -c
25
26$(WRKBUILD)/.prepared:
27 mkdir -p $(WRKBUILD)
28 touch $@
29
30$(WRKBUILD)/.built: $(WRKBUILD)/wlcompat.o
31 touch $@
32
33$(WRKBUILD)/wlcompat.o: $(WRKBUILD)/.prepared
34 $(TARGET_CC) $(WLCOMPAT_FLAGS) -o $@ wlcompat.c
35
36$(IPKG_KMOD_WLCOMPAT): $(WRKBUILD)/wlcompat.o
37 $(INSTALL_DIR) $(IDIR_KMOD_WLCOMPAT)/etc/modules.d
38 $(INSTALL_DIR) $(IDIR_KMOD_WLCOMPAT)/lib/modules/$(KERNEL_VERSION)
39 $(INSTALL_DATA) ./files/wlcompat.modules \
40 $(IDIR_KMOD_WLCOMPAT)/etc/modules.d/$(PKG_MODULE)-wlcompat
41 $(INSTALL_DATA) $(WRKBUILD)/wlcompat.o \
42 $(IDIR_KMOD_WLCOMPAT)/lib/modules/$(KERNEL_VERSION)/
43 $(IPKG_BUILD) $(IDIR_KMOD_WLCOMPAT) $(PACKAGE_DIR)
Note: See TracBrowser for help on using the repository browser.