do not build lib and util here,
[openwrt.git] / openwrt / target / linux / package / mini_fo / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME := mini_fo
6 PKG_VERSION := 0.6.1-pre1
7 PKG_RELEASE := 1
8 PKG_MD5SUM := 7e192e01b08023c7f3e63bf1c796bc14
9
10 PKG_SOURCE_URL := http://www.denx.de/twiki/pub/Know/MiniFOHome/
11 PKG_SOURCE := mini_fo-0-6-1-pre1.tar.bz2
12 PKG_CAT := bzcat
13
14 PKG_BUILD_DIR := $(BUILD_DIR)/mini_fo
15 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
16
17 ifeq ($(KERNEL_DIR),)
18 KERNEL_DIR:=$(LINUX_DIR)
19 endif
20 ifeq ($(LINUX_VERSION),2.4.30)
21 KERNEL_VERSION=2.4
22 else
23 KERNEL_VERSION=2.6
24 endif
25
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
31
32 include $(TOPDIR)/package/rules.mk
33
34 $(eval $(call PKG_template,KMOD_MINI_FO,kmod-mini-fo,$(LINUX_VERSION)-$(BOARD)-$(PKG_RELEASE),$(ARCH),kernel ($(LINUX_VERSION)-$(BOARD)-$(KERNEL_RELEASE))))
35
36 $(PKG_BUILD_DIR)/.configured:
37 touch $@
38
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)" \
44 CC="$(TARGET_CC)" \
45 LD="$(TARGET_CROSS)ld" \
46 KERNELVERSION="$(KERNEL_VERSION)" \
47 KERNEL_SRC="$(KERNEL_DIR)" \
48 ROOT="$(PKG_INSTALL_DIR)"
49 touch $@
50
51 $(IPKG_KMOD_MINI_FO):
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)
59
This page took 0.046934 seconds and 5 git commands to generate.