don't strip kernel modules
[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 PATH="$(TARGET_PATH)" \
33 ARCH="$(LINUX_KARCH)" \
34 CROSS_COMPILE="$(TARGET_CROSS)" \
35 KERNELVERSION="$(KERNEL_VERSION)" \
36 KERNEL_SRC="$(KERNEL_DIR)" \
37 all
38 touch $@
39
40 $(IPKG_KMOD_MINI_FO):
41 install -m0755 -d $(IDIR_KMOD_MINI_FO)/lib/modules/$(LINUX_VERSION)
42 install -m0755 -d $(IDIR_KMOD_MINI_FO)/etc/modules.d
43 cp -fpR $(PKG_BUILD_DIR)/mini_fo.$(LINUX_KMOD_SUFFIX) \
44 $(IDIR_KMOD_MINI_FO)/lib/modules/$(LINUX_VERSION)/
45 echo "mini_fo" > $(IDIR_KMOD_MINI_FO)/etc/modules.d/15-mini-fo
46 $(IPKG_BUILD) $(IDIR_KMOD_MINI_FO) $(PACKAGE_DIR)
47
This page took 0.041743 seconds and 5 git commands to generate.