developer | 94cddfe | 2024-06-25 17:37:19 +0800 | [diff] [blame] | 1 | # |
| 2 | # Copyright (C) 2008-2012 OpenWrt.org |
| 3 | # |
| 4 | # This is free software, licensed under the GNU General Public License v2. |
| 5 | # See /LICENSE for more information. |
| 6 | # |
| 7 | |
| 8 | include $(TOPDIR)/rules.mk |
| 9 | include $(INCLUDE_DIR)/kernel.mk |
| 10 | |
| 11 | PKG_NAME:=reset-boot-count |
| 12 | PKG_RELEASE:=1 |
| 13 | PKG_LICENSE:=BSD-3-Clause |
| 14 | |
| 15 | include $(INCLUDE_DIR)/package.mk |
| 16 | |
| 17 | define KernelPackage/reset-boot-count |
| 18 | SUBMENU:=Other modules |
| 19 | TITLE:=Reset dual-boot boot counter for MediaTek platform |
| 20 | FILES:=$(PKG_BUILD_DIR)/reset-boot-count.ko |
| 21 | KCONFIG:= |
| 22 | endef |
| 23 | |
| 24 | define KernelPackage/reset-boot-count/description |
| 25 | This is used to reset dual-boot boot retry counter to indicate that the |
| 26 | system has booted up successfully |
| 27 | endef |
| 28 | |
| 29 | define Build/Compile |
| 30 | $(KERNEL_MAKE) M="$(PKG_BUILD_DIR)" modules |
| 31 | endef |
| 32 | |
| 33 | define KernelPackage/reset-boot-count/install |
| 34 | $(INSTALL_DIR) $(1)/etc/init.d |
| 35 | $(INSTALL_BIN) ./files/reset-boot-count.init $(1)/etc/init.d/reset-boot-count |
| 36 | endef |
| 37 | |
| 38 | $(eval $(call KernelPackage,reset-boot-count)) |