f021aa3dcfef45f528cd87b0b8adf6f4dc9297bd
[openwrt/openwrt.git] / package / kernel / lantiq / ltq-vdsl-fw / 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
8 PKG_NAME:=ltq-vdsl-fw
9 PKG_VERSION:=1
10 PKG_RELEASE:=1
11
12 PKG_MAINTAINER:=Daniel Golle <daniel@makrotopia.org>
13
14 include $(INCLUDE_DIR)/package.mk
15
16 define Package/ltq-vdsl-vr9-vectoring-fw-installer
17 TITLE:=VDSL2 Vectoring Firmware installer
18 SECTION:=net
19 CATEGORY:=Network
20 DEPENDS:=@TARGET_lantiq_xrx200 +kmod-ltq-vdsl-vr9
21 endef
22
23 define Build/Prepare
24 $(INSTALL_DIR) $(PKG_BUILD_DIR)
25 $(CP) ./src/* $(PKG_BUILD_DIR)
26 endef
27
28 define Build/Compile
29 $(TARGET_CONFIGURE_OPTS) \
30 CFLAGS="$(TARGET_CFLAGS)" \
31 LDFLAGS="$(TARGET_LDFLAGS)" \
32 $(MAKE) -C $(PKG_BUILD_DIR)
33 endef
34
35 define Package/ltq-vdsl-vr9-fw-installer/install
36 $(INSTALL_DIR) $(1)/sbin
37 $(CP) $(PKG_BUILD_DIR)/w921v_fw_cutter $(PKG_BUILD_DIR)/vdsl_fw_install.sh $(1)/sbin/
38 endef
39
40 $(eval $(call BuildPackage,ltq-vdsl-vr9-vectoring-fw-installer))