lantiq: Tune the XWAY subtarget cflags
[openwrt/staging/yousong.git] / package / platform / lantiq / ltq-atm / 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-atm
10 PKG_RELEASE:=1
11 PKG_BUILD_DIR:=$(KERNEL_BUILD_DIR)/ltq-atm-$(BUILD_VARIANT)
12
13 PKG_MAINTAINER:=John Crispin <blogic@openwrt.org>
14
15 include $(INCLUDE_DIR)/package.mk
16
17 define KernelPackage/ltq-atm-template
18 SECTION:=sys
19 CATEGORY:=Kernel modules
20 SUBMENU:=Network Devices
21 TITLE:=atm driver for $(1)
22 URL:=http://www.lantiq.com/
23 VARIANT:=$(1)
24 DEPENDS:=@TARGET_lantiq_$(2) +kmod-atm +br2684ctl
25 FILES:=$(PKG_BUILD_DIR)/ltq_atm_$(1).ko
26 AUTOLOAD:=$(call AutoLoad,52,ltq_atm_$(1))
27 endef
28
29 KernelPackage/ltq-atm-danube=$(call KernelPackage/ltq-atm-template,danube,xway)
30 KernelPackage/ltq-atm-ar9=$(call KernelPackage/ltq-atm-template,ar9,xway)
31 KernelPackage/ltq-atm-ase=$(call KernelPackage/ltq-atm-template,ase,ase)
32 KernelPackage/ltq-atm-vr9=$(call KernelPackage/ltq-atm-template,vr9,xway)
33
34 define Build/Prepare
35 $(INSTALL_DIR) $(PKG_BUILD_DIR)
36 $(CP) ./src/* $(PKG_BUILD_DIR)
37 endef
38
39 define Build/Configure
40 endef
41
42 define Build/Compile
43 cd $(LINUX_DIR); \
44 ARCH=mips CROSS_COMPILE="$(KERNEL_CROSS)" \
45 $(MAKE) BUILD_VARIANT=$(BUILD_VARIANT) M=$(PKG_BUILD_DIR) V=1 modules
46 endef
47
48 $(eval $(call KernelPackage,ltq-atm-danube))
49 $(eval $(call KernelPackage,ltq-atm-ase))
50 $(eval $(call KernelPackage,ltq-atm-ar9))
51 $(eval $(call KernelPackage,ltq-atm-vr9))