# # Copyright (C) 2015 Bjørn Mork # # This is free software, licensed under the GNU General Public License v2. # See /LICENSE for more information. # include $(TOPDIR)/rules.mk PKG_NAME:=covery PKG_VERSION:=0.02 PKG_RELEASE:=1 PKG_LICENSE:=GPL-2.0 include $(INCLUDE_DIR)/package.mk define Package/covery SECTION:=utils CATEGORY:=Utilities TITLE:=U-Boot auto-recovery tool for Marvell env MAINTAINER:=Bjørn Mork endef define Package/covery/description Re-implementation of the bootcount reset tool from Marvell endef define Build/Prepare $(INSTALL_DIR) $(PKG_BUILD_DIR) $(CP) ./src/* $(PKG_BUILD_DIR)/ endef define Build/Configure endef define Build/Compile $(TARGET_CC) $(TARGET_CFLAGS) -o $(PKG_BUILD_DIR)/covery $(PKG_BUILD_DIR)/covery.c endef define Package/covery/install $(INSTALL_DIR) $(1)/usr/sbin $(INSTALL_BIN) $(PKG_BUILD_DIR)/covery $(1)/usr/sbin/ $(INSTALL_DIR) $(1)/etc/init.d $(INSTALL_BIN) ./files/etc/init.d/bootcount $(1)/etc/init.d/bootcount endef $(eval $(call BuildPackage,covery))