2 # Copyright (C) 2016 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
9 include $(INCLUDE_DIR
)/kernel.mk
12 PKG_RELEASE
:=2016-07-21
14 include $(INCLUDE_DIR
)/package.mk
16 define Package
/ct-bugcheck
19 TITLE
:=Bug checking and reporting utility
20 VERSION
:=$(PKG_RELEASE
)
21 MAINTAINER
:=Ben Greear
<greearb@candelatech.com
>
24 define Package
/ct-bugcheck
/description
25 Scripts to
check for bugs
(like firmware crashes
) and package them for reporting.
26 Currently this script only checks for ath10k firmware crashes.
27 Once installed
, you can enable this tool by creating a file called
28 /etc
/config
/bugcheck with the following contents
:
35 $(CP
) src
/bugcheck.sh
$(PKG_BUILD_DIR
)/
36 $(CP
) src
/bugchecker.sh
$(PKG_BUILD_DIR
)/
37 $(CP
) src
/bugcheck.initd
$(PKG_BUILD_DIR
)/
44 define Package
/ct-bugcheck
/install
45 $(INSTALL_DIR
) $(1)/usr
/bin
46 $(INSTALL_DIR
) $(1)/etc
/init.d
47 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/bugcheck.sh
$(1)/usr
/bin
/
48 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/bugchecker.sh
$(1)/usr
/bin
/
49 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/bugcheck.initd
$(1)/etc
/init.d
/bugcheck
52 $(eval
$(call BuildPackage
,ct-bugcheck
))