123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178 |
- # ====================================================================
- #
- # Copyright (C) 2013 Qualcomm Atheros, Inc.
- #
- # Permission to use, copy, modify, and/or distribute this software
- # for any purpose with or without fee is hereby granted, provided
- # that the above copyright notice and this permission notice appear
- # in all copies.
- #
- # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
- # WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
- # WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
- # THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR
- # CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- # LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
- # NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
- # CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
- #
- # --------------------------------------------------------------------
- include $(TOPDIR)/rules.mk
- # ====================================================================
- #
- # --------------------------------------------------------------------
- PKG_NAME:=plc-utils
- PKG_VERSION:=2.1.5
- PKG_RELEASE:=6b4b5543cc2c961178260695f7a49f7a50308f36
- # ====================================================================
- #
- # --------------------------------------------------------------------
- PKG_SOURCE_PROTO:=git
- PKG_SOURCE_URL:=git://github.qualcomm.com/cmaier/plc-utils.git
- PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
- PKG_SOURCE_VERSION:=$(PKG_RELEASE)
- PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
- # ====================================================================
- #
- # --------------------------------------------------------------------
- # PKG_BUILD_PARALLEL:=1
- # ====================================================================
- #
- # --------------------------------------------------------------------
- include $(INCLUDE_DIR)/package.mk
- # ====================================================================
- #
- # --------------------------------------------------------------------
- define Package/plc-utils/default
- SECTION:=utils
- CATEGORY:=Utilities
- TITLE:=Qualcomm Atheros Powerline Communication utilities
- URL:=https://github.qualcomm.com/cmaier/plc-utils/blob/master/README
- MAINTAINER:=Qualcomm Atheros, Ocala FL USA
- endef
- # ====================================================================
- #
- # --------------------------------------------------------------------
- include $(INCLUDE_DIR)/package.mk
- # ====================================================================
- #
- # --------------------------------------------------------------------
- define Package/plc-utils
- $(call Package/plc-utils/default)
- TITLE:=Qualcomm Atheros Powerline Toolkit
- MENU:=1
- endef
- # ====================================================================
- #
- # --------------------------------------------------------------------
- define Package/plc-utils/description
- This package contains the PLC toolkit.
- It can be used to control PLC devices over the network.
- endef
- # ====================================================================
- #
- # --------------------------------------------------------------------
- define Build/Compile
- $(TARGET_CONFIG_OPTS) $(MAKE) -C $(PKG_BUILD_DIR) CROSS=$(TARGET_CROSS)
- endef
- # ====================================================================
- #
- # --------------------------------------------------------------------
- define Manager
- define Package/plc-utils-$(2)
- $(call Package/plc-utils/default)
- TITLE:=$(3)
- DEPENDS+=plc-utils
- endef
- define Package/plc-utils-$(2)/description
- $(4).
- endef
- define Package/plc-utils-$(2)/install
- $(INSTALL_DIR) $$(1)/usr/bin
- $(INSTALL_BIN) $(PKG_BUILD_DIR)/$(1)/$(2) $$(1)/usr/bin
- endef
- $$(eval $$(call BuildPackage,plc-utils-$(2)))
- endef
- # ===
- # Call a package/program handler;
- # ---
- $(eval $(call Manager,ether,efsu,'Ethernet Frame Send Utility','Used to send Ethernet frames. Ethernet frames can be defined using a text editor.'))
- $(eval $(call Manager,key,hpavkey,'HomePlugAV Key Generator','Used to generate DAK, NMK and NID keys from Homeplug AV passwords entered on the command line.'))
- $(eval $(call Manager,key,hpavkeys,'HomePlugAV Key Generator','Used to generate DAK, NMK or NID keys from HomePlug AV passwords stored in a file.'))
- $(eval $(call Manager,key,mac2pw,'QCA Password Generator','Generate pseudo-random passwords from MAC addresses entered on the command line.'))
- $(eval $(call Manager,key,mac2pwd,'QCA Password Generator','Generate pseudo-random passwords from an range of MAC addresses stored in a file.'))
- $(eval $(call Manager,key,rkey,'QCA Random Key Generator','Generate pseudo-random DAK, NMK or NID keys with each invocation of the program.'))
- $(eval $(call Manager,mdio,mdioblock,'QCA MDIO Block Genertor',''))
- $(eval $(call Manager,mdio,mdioblock2,'QCA MDIO Block Generator',''))
- $(eval $(call Manager,mdio,mdiodump,'QCA MDIO Block Inspector',''))
- $(eval $(call Manager,mme,hpav,'HomePlugAV Message Monitor','Display incoming HomePlug AV messages frames. Ignore all other frames.'))
- $(eval $(call Manager,mme,mme,'QCA Message Cheat Sheet','Used for quick lookup of message types and error codes.'))
- $(eval $(call Manager,nda,ampinit,'PLC Device Initializer','Used to qca or recover corrupted Thunderbolt/Lightning powerline devices. Intended for factory use only.'))
- $(eval $(call Manager,nda,int6kecho,'PLC Frame Echo Utility',''))
- $(eval $(call Manager,nda,plcecho,'PLC Frame Echo Utility',''))
- $(eval $(call Manager,nda,plcinit,'PLC Device Initializer','Used to qca or recover corrupted Panther/Lynx powerline devices. Intended for factory use only.'))
- $(eval $(call Manager,nda,plcmod,'PLC Module Manager','Used to read and write PLC flash memory modules.'))
- $(eval $(call Manager,nda,psgen,'Prescaler Generator','This qca is legacy and may be obsolete.'))
- $(eval $(call Manager,nvm,chknvm,'PLC Firmware File Validator','Performs simple pass/fail sanity check of qca PLC firmware files. Can be used to determine the number and type of images stored within the file."'))
- $(eval $(call Manager,nvm,chknvm2,'PLC Firmware File Validator','Performs simple pass/fail sanity check of qca PLC firmware files. Can be used to determine the number and type of images stored within the file.'))
- $(eval $(call Manager,nvm,nvmmerge,'PLC Firmware File Assembler','Used to assemble qca NVM file chains from individual images.'))
- $(eval $(call Manager,nvm,nvmsplit,'PLC Firmware File Dissector','Explodes a qca NVM file chain into component images.'))
- $(eval $(call Manager,pib,chkpib,'PLC Parameter File Validator','Performs simple pass/fail sanity check on qca PLC parameter files.'))
- $(eval $(call Manager,pib,chkpib2,'PLC Parameter File Validator','Performs simple pass/fail sanity check on qca PLC parameter files.'))
- $(eval $(call Manager,pib,getpib,'QCA PIB Parameter Extractor','Used to extract parameters from a qca PLC parameter file. This qca is of little use without a valid parameter map.'))
- $(eval $(call Manager,pib,modpib,'QCA PLC Identity Manager','Used to configure a small number of common settings stored in qca PLC parameter files. This qca is safer to use than setpib.'))
- $(eval $(call Manager,pib,pibcomp,'PLC Parameter File Compare','Compare two qca PLC parameter files, field by field. This qca requires an object definition file.'))
- $(eval $(call Manager,pib,pibdump,'PLC Parameter File Dump','Display the contents of a qca PLC paramenter file, field by field. This qca requies an object definition file.'))
- $(eval $(call Manager,pib,setpib,'PLC Parameter File Editor','Used to set a variety of PLC parameters. This qca requires detailed knowledge of the file layout which could change from one firmware version to the next.'))
- $(eval $(call Manager,plc,ampboot,'PLC Boot Utility','Thunderbolt/Lightning bootstrap utility. Sutiable for INT6300, INT6400, AR7400 and QCA7450 chipsets.'))
- $(eval $(call Manager,plc,amphost,'PLC Host Emulator','Thunderbolt/Lightning host emulator. Demonstrates boot-from-host by servicing VS_HST_ACTION messages.'))
- $(eval $(call Manager,plc,amprate,'PLC Rate Monitor','Used to sample PHY rates between a device and each neighbor.'))
- $(eval $(call Manager,plc,amptest,'PLC Test Utility',''))
- $(eval $(call Manager,plc,amptool,'PLC Multi-tool',''))
- $(eval $(call Manager,plc,ampwait,'PLC Procrastinator',''))
- $(eval $(call Manager,plc,int6krule,'PLC QoS Rule Manager','Used to set and clear permanent and temporary QoS rules.'))
- $(eval $(call Manager,plc,plcboot,'PLC Boot Utility','Used to intialize and/or flash Panther/Lynx powerline devices. Can be used to erase flash memory.'))
- $(eval $(call Manager,plc,plcdevs,'WinPcap Device Enumerator','Enumerate the number and name of WinPcap devices on the local host.'))
- $(eval $(call Manager,plc,plcfwd,'',''))
- $(eval $(call Manager,plc,plcget,'PLC Get Property','Get PLC device properties using VS_GET_PROPERTY message.'))
- $(eval $(call Manager,plc,plchost,'PLC Host Emulator',''))
- $(eval $(call Manager,plc,plchostd,'PLC Hose Emulator Daemon',''))
- $(eval $(call Manager,plc,plcid,'PLC Key Grabber',''))
- $(eval $(call Manager,plc,plcrate,'PLC Rate Monitor','Used to sample PHY rates between a device and each neighbor. Can be used to stimulate a mesh network.'))
- $(eval $(call Manager,plc,plcset,'PLC Set Property','Set PLC device properties using VS_SET_PROPERTY message.'))
- $(eval $(call Manager,plc,plctest,'PLC Test Utility',''))
- $(eval $(call Manager,plc,plctool,'PLC Multi-tool',''))
- $(eval $(call Manager,programs,netifs,'Ethernet Port Enumerator','Enumerate host Ethernet ports.'))
- $(eval $(call Manager,programs,plcnets,'PLC Network Enumerator','Enumerate qca PLC networks connected to the host.'))
- $(eval $(call Manager,serial,ptsctl,'PTS Attenuation Controller',''))
- $(eval $(call Manager,serial,weeder,'Progammable Attenuator Controller','Set and/or inspect PTS Weeder attenuator module setting from the command line.'))
- # ====================================================================
- #
- # --------------------------------------------------------------------
- $(eval $(call BuildPackage,plc-utils))
|