blob: b3a32a34b9baa98b6565bd62ef762420464cfbea (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
#
# Copyright (C) 2015 Bjørn Mork <bjorn@mork.no>
#
# 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 <bjorn@mork.no>
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))
|