3 include $(TOPDIR
)/rules.mk
6 PKG_VERSION
:= 0.6.1-pre1
8 PKG_MD5SUM
:= 7e192e01b08023c7f3e63bf1c796bc14
10 PKG_SOURCE_URL
:= http
://www.denx.de
/twiki
/pub
/Know
/MiniFOHome
/
11 PKG_SOURCE
:= mini_fo-0-6-1-pre1.
tar.bz2
14 PKG_BUILD_DIR
:= $(BUILD_DIR
)/mini_fo
15 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
18 KERNEL_DIR
:=$(LINUX_DIR
)
20 ifeq ($(LINUX_VERSION
),2.4.30)
26 KERNEL_FLAGS
=-D__KERNEL__
-DMODULE
-DFISTGEN
-I.
-I
$(KERNEL_DIR
)/include \
27 -Wno-unused
-fno-common
-fno-schedule-insns
-fno-schedule-insns2 \
28 -fomit-frame-pointer
-finline-limit
=100000 -mabi
=32 -march
=mips32 \
29 -Wa
,-32 -Wa
,-march
=mips32
-Wa
,-mips32
-Wa
,--trap
-DMODULE
-mlong-calls \
30 -fno-strict-aliasing
-G
0 -mno-abicalls
-fno-pic
32 include $(TOPDIR
)/package
/rules.mk
34 $(eval
$(call PKG_template
,KMOD_MINI_FO
,kmod-mini-fo
,$(LINUX_VERSION
)-$(BOARD
)-$(PKG_RELEASE
),$(ARCH
),kernel
($(LINUX_VERSION
)-$(BOARD
)-$(KERNEL_RELEASE
))))
36 $(PKG_BUILD_DIR
)/.configured
:
39 $(PKG_BUILD_DIR
)/.built
:
40 rm -rf
$(PKG_INSTALL_DIR
)
41 mkdir
-p
$(PKG_INSTALL_DIR
)
42 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
43 CFLAGS
="$(TARGET_CFLAGS) $(KERNEL_FLAGS)" \
45 LD
="$(TARGET_CROSS)ld" \
46 KERNELVERSION
="$(KERNEL_VERSION)" \
47 KERNEL_SRC
="$(KERNEL_DIR)" \
48 ROOT
="$(PKG_INSTALL_DIR)"
52 install -m0755
-d
$(IDIR_KMOD_MINI_FO
)/lib
/modules
/$(LINUX_VERSION
)
53 install -m0755
-d
$(IDIR_KMOD_MINI_FO
)/etc
/modules.d
54 cp
-fpR
$(PKG_BUILD_DIR
)/mini_fo.o \
55 $(IDIR_KMOD_MINI_FO
)/lib
/modules
/$(LINUX_VERSION
)/
56 echo
"mini_fo" > $(IDIR_KMOD_MINI_FO
)/etc
/modules.d
/15-mini-fo
57 $(RSTRIP_KMOD
) $(IDIR_KMOD_MINI_FO
)
58 $(IPKG_BUILD
) $(IDIR_KMOD_MINI_FO
) $(PACKAGE_DIR
)