developer | fd40db2 | 2021-04-29 10:08:25 +0800 | [diff] [blame] | 1 | # |
| 2 | # MTK-factory read and write |
| 3 | # |
| 4 | |
| 5 | include $(TOPDIR)/rules.mk |
| 6 | |
| 7 | PKG_NAME:=mtk_failsafe |
| 8 | PKG_VERSION:=1 |
| 9 | PKG_RELEASE:=1 |
| 10 | |
| 11 | PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME) |
| 12 | PKG_CONFIG_DEPENDS:= |
| 13 | |
| 14 | include $(INCLUDE_DIR)/package.mk |
| 15 | |
| 16 | define Package/mtk_failsafe |
| 17 | SECTION:=MTK Properties |
| 18 | CATEGORY:=MTK Properties |
| 19 | SUBMENU:=Misc |
| 20 | TITLE:=mtk failsafe script |
| 21 | VERSION:=$(PKG_RELEASE)-$(REVISION) |
| 22 | endef |
| 23 | |
| 24 | define Package/mtk_failsafe/description |
| 25 | mtk init script for failsafe mode |
| 26 | endef |
| 27 | |
| 28 | define Build/Prepare |
| 29 | mkdir -p $(PKG_BUILD_DIR) |
| 30 | endef |
| 31 | |
| 32 | define Build/Compile/Default |
| 33 | endef |
| 34 | |
| 35 | Build/Compile = $(Build/Compile/Default) |
| 36 | |
| 37 | define Package/mtk_failsafe/install |
| 38 | $(INSTALL_DIR) $(1)/sbin |
| 39 | $(INSTALL_BIN) ./files/mtk_failsafe.sh $(1)/sbin/mtk_failsafe.sh |
| 40 | endef |
| 41 | |
| 42 | $(eval $(call BuildPackage,mtk_failsafe)) |
| 43 | |