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_factory_rw |
| 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_factory_rw |
| 17 | SECTION:=MTK Properties |
| 18 | CATEGORY:=MTK Properties |
| 19 | SUBMENU:=Misc |
| 20 | TITLE:=mtk factory read and write |
| 21 | VERSION:=$(PKG_RELEASE)-$(REVISION) |
| 22 | endef |
| 23 | |
| 24 | define Package/mtk_factory_rw/description |
| 25 | mtk factory's data read and write |
| 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_factory_rw/install |
| 38 | $(INSTALL_DIR) $(1)/sbin |
| 39 | $(INSTALL_BIN) ./files/mtk_factory_rw.sh $(1)/sbin/mtk_factory_rw.sh |
| 40 | endef |
| 41 | |
| 42 | $(eval $(call BuildPackage,mtk_factory_rw)) |
| 43 | |