1 # $Id: Makefile 2767 2005-12-25 02:10:14Z wbx $
3 include $(TOPDIR
)/rules.mk
9 PKG_MD5SUM
:=5da1fceb15168f4c7ad407a3e38ddecb
11 PKG_SOURCE_URL
:=http
://castet.matthieu.free.fr
/eagle
/release
/
12 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
15 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
16 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
19 KERNEL_DIR
:=$(LINUX_DIR
)
21 KERNEL_VERSION
=$(shell echo
"$(LINUX_VERSION)" | cut
-d.
-f1
,2)
23 include $(TOPDIR
)/package
/rules.mk
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
))))
27 $(PKG_BUILD_DIR
)/.configured
:
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)" \
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
)