blob: 83fbf13b0605bc51fd200ccd723e482d3392a077 [file] [log] [blame]
developer94cddfe2024-06-25 17:37:19 +08001#
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
8include $(TOPDIR)/rules.mk
9include $(INCLUDE_DIR)/kernel.mk
10
11PKG_NAME:=reset-boot-count
12PKG_RELEASE:=1
13PKG_LICENSE:=BSD-3-Clause
14
15include $(INCLUDE_DIR)/package.mk
16
17define 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:=
22endef
23
24define 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
27endef
28
29define Build/Compile
30 $(KERNEL_MAKE) M="$(PKG_BUILD_DIR)" modules
31endef
32
33define 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
36endef
37
38$(eval $(call KernelPackage,reset-boot-count))