1 # Makefile for the diag module
5 include $(TOPDIR
)/rules.mk
9 PKG_BUILD_DIR
:= $(BUILD_DIR
)/$(PKG_NAME
)
11 include $(TOPDIR
)/package
/rules.mk
13 $(eval
$(call PKG_template
,KMOD_DIAG
,$(PKG_NAME
),$(LINUX_VERSION
)-$(BOARD
)-$(PKG_RELEASE
),$(ARCH
),kernel
($(LINUX_VERSION
)-$(BOARD
)-$(LINUX_RELEASE
))))
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
20 $(PKG_BUILD_DIR
)/.prepared
:
21 mkdir
-p
$(PKG_BUILD_DIR
)
24 $(PKG_BUILD_DIR
)/.built
:
25 $(TARGET_CC
) $(DIAG_FLAGS
) -o
$(PKG_BUILD_DIR
)/diag.o diag_led.c
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.036564 seconds and 5 git commands to generate.