packages: clean up the package folder
[openwrt/staging/yousong.git] / package / kernel / lantiq / ltq-deu / Makefile
1 # Copyright (C) 2012 OpenWrt.org
2 #
3 # This is free software, licensed under the GNU General Public License v2.
4 # See /LICENSE for more information.
5
6 include $(TOPDIR)/rules.mk
7 include $(INCLUDE_DIR)/kernel.mk
8
9 PKG_NAME:=ltq-deu
10 PKG_RELEASE:=1
11 PKG_BUILD_DIR:=$(KERNEL_BUILD_DIR)/ltq-deu-$(BUILD_VARIANT)
12
13 PKG_MAINTAINER:=John Crispin <blogic@openwrt.org>
14
15 include $(INCLUDE_DIR)/package.mk
16
17 define KernelPackage/ltq-deu-template
18 SECTION:=sys
19 CATEGORY:=Kernel modules
20 SUBMENU:=Cryptographic API modules
21 TITLE:=deu driver for $(1)
22 URL:=http://www.lantiq.com/
23 VARIANT:=$(1)
24 DEPENDS:=@TARGET_lantiq_xway
25 FILES:=$(PKG_BUILD_DIR)/ltq_deu_$(1).ko $(PKG_BUILD_DIR)/ltq_deu_testmgr.ko
26 AUTOLOAD:=$(call AutoLoad,52,ltq_deu_$(1))
27 endef
28
29 KernelPackage/ltq-deu-danube=$(call KernelPackage/ltq-deu-template,danube)
30 KernelPackage/ltq-deu-ar9=$(call KernelPackage/ltq-deu-template,ar9)
31 KernelPackage/ltq-deu-vr9=$(call KernelPackage/ltq-deu-template,vr9)
32
33 define Build/Prepare
34 $(INSTALL_DIR) $(PKG_BUILD_DIR)
35 $(CP) ./src/* $(PKG_BUILD_DIR)
36 endef
37
38 define Build/Configure
39 endef
40
41 define Build/Compile
42 cd $(LINUX_DIR); \
43 ARCH=mips CROSS_COMPILE="$(KERNEL_CROSS)" \
44 $(MAKE) BUILD_VARIANT=$(BUILD_VARIANT) M=$(PKG_BUILD_DIR) V=1 modules
45 endef
46
47 $(eval $(call KernelPackage,ltq-deu-danube))
48 $(eval $(call KernelPackage,ltq-deu-ar9))
49 $(eval $(call KernelPackage,ltq-deu-vr9))