update alsa, fix compile
[openwrt.git] / openwrt / target / linux / package / diag / Makefile
1 # Makefile for the diag module
2 #
3 # $Id$
4
5 include $(TOPDIR)/rules.mk
6
7 PKG_NAME := kmod-diag
8 PKG_RELEASE := 1
9 PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
10
11 include $(TOPDIR)/package/rules.mk
12
13 $(eval $(call PKG_template,KMOD_DIAG,$(PKG_NAME),$(LINUX_VERSION)-$(BOARD)-$(PKG_RELEASE),$(ARCH),kernel ($(LINUX_VERSION)-$(BOARD)-$(LINUX_RELEASE))))
14
15 DIAG_FLAGS:=$(TARGET_CFLAGS) -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 -Wstrict-prototypes -Wno-trigraphs -DMODULE -mlong-calls -fno-common -I. -I linux-2.4 -nostdinc \
18 -iwithprefix include -I$(LINUX_DIR)/include -I$(LINUX_DIR)/include/asm/gcc -c -I$(LINUX_DIR)/arch/mips/bcm947xx/include -DBCMDRIVER
19
20 $(PKG_BUILD_DIR)/.prepared:
21 mkdir -p $(PKG_BUILD_DIR)
22 touch $@
23
24 $(PKG_BUILD_DIR)/.built:
25 $(TARGET_CC) $(DIAG_FLAGS) -o $(PKG_BUILD_DIR)/diag.o diag_led.c
26 touch $@
27
28 $(IPKG_KMOD_DIAG):
29 mkdir -p $(IDIR_KMOD_DIAG)/lib/modules/$(LINUX_VERSION)
30 $(CP) $(PKG_BUILD_DIR)/diag.o $(IDIR_KMOD_DIAG)/lib/modules/$(LINUX_VERSION)/
31 $(IPKG_BUILD) $(IDIR_KMOD_DIAG) $(PACKAGE_DIR)
This page took 0.052845 seconds and 5 git commands to generate.