add missing target/linux/rules.mk include
[openwrt.git] / 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 ARCH="$(LINUX_KARCH)" \
33 KERNELVERSION="$(KERNEL_VERSION)" \
34 KERNEL_SRC="$(KERNEL_DIR)" \
35 all
36 touch $@
37
38 $(IPKG_KMOD_MINI_FO):
39 install -m0755 -d $(IDIR_KMOD_MINI_FO)/lib/modules/$(LINUX_VERSION)
40 install -m0755 -d $(IDIR_KMOD_MINI_FO)/etc/modules.d
41 cp -fpR $(PKG_BUILD_DIR)/mini_fo.o \
42 $(IDIR_KMOD_MINI_FO)/lib/modules/$(LINUX_VERSION)/
43 echo "mini_fo" > $(IDIR_KMOD_MINI_FO)/etc/modules.d/15-mini-fo
44 $(RSTRIP_KMOD) $(IDIR_KMOD_MINI_FO)
45 $(IPKG_BUILD) $(IDIR_KMOD_MINI_FO) $(PACKAGE_DIR)
46
This page took 0.038611 seconds and 5 git commands to generate.