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
)-$(KERNEL_RELEASE
))))
16 KERNEL_DIR
:=$(LINUX_DIR
)
19 DIAG_FLAGS
:=$(TARGET_CFLAGS
) -D__KERNEL__
-fno-strict-aliasing
-fno-common
-fomit-frame-pointer
-G
0 \
20 -mno-abicalls
-fno-pic
-finline-limit
=100000 -mabi
=32 -march
=mips32
-Wa
,-32 -Wa
,-march
=mips32 \
21 -Wa
,-mips32
-Wa
,--trap
-Wstrict-prototypes
-Wno-trigraphs
-DMODULE
-mlong-calls
-fno-common
-I.
-I linux-2.4
-nostdinc \
22 -iwithprefix
include -I
$(KERNEL_DIR
)/include -I
$(KERNEL_DIR
)/include/asm
/gcc
-c
-I
$(KERNEL_DIR
)/arch
/mips
/bcm947xx
/include -DBCMDRIVER
24 $(PKG_BUILD_DIR
)/.prepared
:
25 mkdir
-p
$(PKG_BUILD_DIR
)
28 $(PKG_BUILD_DIR
)/.built
:
29 $(TARGET_CC
) $(DIAG_FLAGS
) -o
$(PKG_BUILD_DIR
)/diag.o diag_led.c
33 mkdir
-p
$(IDIR_KMOD_DIAG
)/lib
/modules
/$(LINUX_VERSION
)
34 cp
$(PKG_BUILD_DIR
)/diag.o
$(IDIR_KMOD_DIAG
)/lib
/modules
/$(LINUX_VERSION
)/
35 $(IPKG_BUILD
) $(IDIR_KMOD_DIAG
) $(PACKAGE_DIR
)
This page took 0.047479 seconds and 5 git commands to generate.