upgrade kernel to 2.6.15 final
[openwrt.git] / openwrt / target / linux / package / ueagle-atm / Makefile
1 # $Id: Makefile 2767 2005-12-25 02:10:14Z wbx $
2
3 include $(TOPDIR)/rules.mk
4 include ../../rules.mk
5
6 PKG_NAME:=ueagle-atm
7 PKG_VERSION:=1.0d1
8 PKG_RELEASE:=1
9 PKG_MD5SUM:=5da1fceb15168f4c7ad407a3e38ddecb
10
11 PKG_SOURCE_URL:=http://castet.matthieu.free.fr/eagle/release/
12 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
13 PKG_CAT:=zcat
14
15 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
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_UEAGLE_ATM,kmod-ueagle-atm,$(LINUX_VERSION)+$(PKG_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 CROSS_COMPILE="$(TARGET_CROSS)" \
34 TARGET="$(HAL_TARGET)" \
35 KERNELDIR="$(KERNEL_DIR)" \
36 all
37 touch $@
38
39 $(IPKG_KMOD_UEAGLE_ATM):
40 install -m0755 -d $(IDIR_KMOD_UEAGLE_ATM)/lib/modules/$(LINUX_VERSION) $(IDIR_KMOD_UEAGLE_ATM)/etc/modules.d
41 install -m0644 ./files/$(PKG_NAME).modules $(IDIR_KMOD_UEAGLE_ATM)/etc/modules.d/10-$(PKG_NAME)
42 cp -fpR $(PKG_BUILD_DIR)/driver/ueagle-atm.$(LINUX_KMOD_SUFFIX) \
43 $(PKG_BUILD_DIR)/usbatm_iso/usbatm.$(LINUX_KMOD_SUFFIX) \
44 $(IDIR_KMOD_UEAGLE_ATM)/lib/modules/$(LINUX_VERSION)/
45 $(RSTRIP_KMOD) $(IDIR_KMOD_UEAGLE_ATM)
46 $(IPKG_BUILD) $(IDIR_KMOD_UEAGLE_ATM) $(PACKAGE_DIR)
47
This page took 0.053726 seconds and 5 git commands to generate.