Makefile 943 B

12345678910111213141516171819202122232425262728293031323334353637383940
  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. include $(TOPDIR)/rules.mk
  6. PKG_NAME:=ltq-vdsl-fw
  7. PKG_VERSION:=1
  8. PKG_RELEASE:=1
  9. PKG_MAINTAINER:=John Crispin <blogic@openwrt.org>
  10. include $(INCLUDE_DIR)/package.mk
  11. define Package/ltq-vdsl-vr9-fw-installer
  12. TITLE:=Firmware installer
  13. SECTION:=net
  14. CATEGORY:=Network
  15. DEPENDS:=@TARGET_lantiq_xrx200 +kmod-ltq-vdsl-vr9
  16. endef
  17. define Build/Prepare
  18. $(INSTALL_DIR) $(PKG_BUILD_DIR)
  19. $(CP) ./src/* $(PKG_BUILD_DIR)
  20. endef
  21. define Build/Compile
  22. $(TARGET_CONFIGURE_OPTS) \
  23. CFLAGS="$(TARGET_CFLAGS)" \
  24. LDFLAGS="$(TARGET_LDFLAGS)" \
  25. $(MAKE) -C $(PKG_BUILD_DIR)
  26. endef
  27. define Package/ltq-vdsl-vr9-fw-installer/install
  28. $(INSTALL_DIR) $(1)/sbin
  29. $(CP) $(PKG_BUILD_DIR)/w921v_fw_cutter $(PKG_BUILD_DIR)/vdsl_fw_install.sh $(1)/sbin/
  30. endef
  31. $(eval $(call BuildPackage,ltq-vdsl-vr9-fw-installer))