enable kmod build when target arch != mipsel
[openwrt.git] / 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 KERNEL_VERSION=$(shell echo "$(LINUX_VERSION)" | cut -d. -f1,2)
21
22 include $(TOPDIR)/package/rules.mk
23
24 $(eval $(call PKG_template,KMOD_MINI_FO,kmod-mini-fo,$(LINUX_VERSION)-$(BOARD)-$(PKG_RELEASE),$(ARCH),kernel ($(LINUX_VERSION)-$(BOARD)-$(KERNEL_RELEASE))))
25
26 $(PKG_BUILD_DIR)/.configured:
27 touch $@
28
29 $(PKG_BUILD_DIR)/.built:
30 $(MAKE) -C $(PKG_BUILD_DIR) \
31 ARCH="$(LINUX_KARCH)" \
32 KERNELVERSION="$(KERNEL_VERSION)" \
33 KERNEL_SRC="$(KERNEL_DIR)" \
34 all
35 touch $@
36
37 $(IPKG_KMOD_MINI_FO):
38 install -m0755 -d $(IDIR_KMOD_MINI_FO)/lib/modules/$(LINUX_VERSION)
39 install -m0755 -d $(IDIR_KMOD_MINI_FO)/etc/modules.d
40 cp -fpR $(PKG_BUILD_DIR)/mini_fo.o \
41 $(IDIR_KMOD_MINI_FO)/lib/modules/$(LINUX_VERSION)/
42 echo "mini_fo" > $(IDIR_KMOD_MINI_FO)/etc/modules.d/15-mini-fo
43 $(RSTRIP_KMOD) $(IDIR_KMOD_MINI_FO)
44 $(IPKG_BUILD) $(IDIR_KMOD_MINI_FO) $(PACKAGE_DIR)
45
This page took 0.049098 seconds and 5 git commands to generate.