4ea3be8380eb20ebff5ab890e8c36231de97c721
[openwrt.git] / openwrt / target / linux / package / mini_fo / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4 include ../../rules.mk
5
6 PKG_NAME := mini_fo
7 PKG_VERSION := 0.6.1-pre1
8 PKG_RELEASE := 1
9 PKG_MD5SUM := 7e192e01b08023c7f3e63bf1c796bc14
10
11 PKG_SOURCE_URL := http://www.denx.de/twiki/pub/Know/MiniFOHome/
12 PKG_SOURCE := mini_fo-0-6-1-pre1.tar.bz2
13 PKG_CAT := bzcat
14
15 PKG_BUILD_DIR := $(BUILD_DIR)/mini_fo
16 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
17
18 ifeq ($(KERNEL_DIR),)
19 KERNEL_DIR:=$(LINUX_DIR)
20 endif
21 KERNEL_VERSION=$(shell echo "$(LINUX_VERSION)" | cut -d. -f1,2)
22
23 include $(TOPDIR)/package/rules.mk
24
25 $(eval $(call PKG_template,KMOD_MINI_FO,kmod-mini-fo,$(LINUX_VERSION)-$(BOARD)-$(PKG_RELEASE),$(ARCH),kernel ($(LINUX_VERSION)-$(BOARD)-$(KERNEL_RELEASE))))
26
27 $(PKG_BUILD_DIR)/.configured:
28 touch $@
29
30 $(PKG_BUILD_DIR)/.built:
31 $(MAKE) -C $(PKG_BUILD_DIR) \
32 PATH="$(TARGET_PATH)" \
33 ARCH="$(LINUX_KARCH)" \
34 KERNELVERSION="$(KERNEL_VERSION)" \
35 KERNEL_SRC="$(KERNEL_DIR)" \
36 all
37 touch $@
38
39 $(IPKG_KMOD_MINI_FO):
40 install -m0755 -d $(IDIR_KMOD_MINI_FO)/lib/modules/$(LINUX_VERSION)
41 install -m0755 -d $(IDIR_KMOD_MINI_FO)/etc/modules.d
42 cp -fpR $(PKG_BUILD_DIR)/mini_fo.$(LINUX_KMOD_SUFFIX) \
43 $(IDIR_KMOD_MINI_FO)/lib/modules/$(LINUX_VERSION)/
44 echo "mini_fo" > $(IDIR_KMOD_MINI_FO)/etc/modules.d/15-mini-fo
45 $(RSTRIP_KMOD) $(IDIR_KMOD_MINI_FO)
46 $(IPKG_BUILD) $(IDIR_KMOD_MINI_FO) $(PACKAGE_DIR)
47
This page took 0.048281 seconds and 3 git commands to generate.