Makefile 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. #
  2. # Copyright (C) 2016 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. include $(INCLUDE_DIR)/kernel.mk
  9. PKG_NAME:=ct-bugcheck
  10. PKG_RELEASE:=2016-07-21
  11. include $(INCLUDE_DIR)/package.mk
  12. define Package/ct-bugcheck
  13. SECTION:=utils
  14. CATEGORY:=Utilities
  15. TITLE:=Bug checking and reporting utility
  16. VERSION:=$(PKG_RELEASE)
  17. MAINTAINER:=Ben Greear <greearb@candelatech.com>
  18. endef
  19. define Package/ct-bugcheck/description
  20. Scripts to check for bugs (like firmware crashes) and package them for reporting.
  21. Currently this script only checks for ath10k firmware crashes.
  22. Once installed, you can enable this tool by creating a file called
  23. /etc/config/bugcheck with the following contents:
  24. DO_BUGCHECK=1
  25. export DO_BUGCHECK
  26. endef
  27. define Build/Prepare
  28. $(CP) src/bugcheck.sh $(PKG_BUILD_DIR)/
  29. $(CP) src/bugchecker.sh $(PKG_BUILD_DIR)/
  30. $(CP) src/bugcheck.initd $(PKG_BUILD_DIR)/
  31. endef
  32. define Build/Compile
  33. true
  34. endef
  35. define Package/ct-bugcheck/install
  36. $(INSTALL_DIR) $(1)/usr/bin
  37. $(INSTALL_DIR) $(1)/etc/init.d
  38. $(INSTALL_BIN) $(PKG_BUILD_DIR)/bugcheck.sh $(1)/usr/bin/
  39. $(INSTALL_BIN) $(PKG_BUILD_DIR)/bugchecker.sh $(1)/usr/bin/
  40. $(INSTALL_BIN) $(PKG_BUILD_DIR)/bugcheck.initd $(1)/etc/init.d/bugcheck
  41. endef
  42. $(eval $(call BuildPackage,ct-bugcheck))