lantiq: Tune the XWAY subtarget cflags
[openwrt/openwrt.git] / package / platform / lantiq / ltq-adsl-mei / 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-adsl-mei
10 PKG_RELEASE:=1
11 PKG_BUILD_DIR:=$(KERNEL_BUILD_DIR)/ltq-adsl-mei-$(BUILD_VARIANT)/
12
13 PKG_MAINTAINER:=John Crispin <blogic@openwrt.org>
14
15 include $(INCLUDE_DIR)/package.mk
16
17 define KernelPackage/ltq-adsl-mei-template
18 SECTION:=sys
19 CATEGORY:=Kernel modules
20 SUBMENU:=Network Devices
21 TITLE:=mei driver for $(1)
22 URL:=http://www.lantiq.com/
23 VARIANT:=$(1)
24 DEPENDS:=@TARGET_lantiq_$(2)
25 FILES:=$(PKG_BUILD_DIR)/ltq_mei_$(1).ko
26 AUTOLOAD:=$(call AutoLoad,50,ltq_mei_$(1))
27 endef
28
29 KernelPackage/ltq-adsl-danube-mei=$(call KernelPackage/ltq-adsl-mei-template,danube,xway)
30 KernelPackage/ltq-adsl-ar9-mei=$(call KernelPackage/ltq-adsl-mei-template,ar9,xway)
31 KernelPackage/ltq-adsl-ase-mei=$(call KernelPackage/ltq-adsl-mei-template,ase,ase)
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-adsl-danube-mei))
48 $(eval $(call KernelPackage,ltq-adsl-ase-mei))
49 $(eval $(call KernelPackage,ltq-adsl-ar9-mei))