aboutsummaryrefslogtreecommitdiff
path: root/utils/auc/Makefile
blob: bec42a1ddf02686ccb8c6b9ce89fea9ae07a18d6 (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
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#

include $(TOPDIR)/rules.mk

PKG_NAME:=auc
PKG_VERSION:=0.3.2
PKG_RELEASE:=1
PKG_LICENSE:=GPL-3.0

include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/cmake.mk

define Package/auc
  SECTION:=base
  CATEGORY:=Base system
  TITLE:=Attended sysUpgrade CLI (EXPERIMENTAL)
  DEPENDS:=+attendedsysupgrade-common +libblobmsg-json +libubox +libubus \
           +libuci +libuclient +rpcd-mod-rpcsys
endef

define Package/auc/description
   CLI client for attended-sysupgrade
endef

EXTRA_CFLAGS += \
	-D'AUC_VERSION=\"$(PKG_VERSION)-$(PKG_RELEASE)\"' \
	$(if $(CONFIG_DEBUG),-DAUC_DEBUG=ON)

define Package/auc/install
	$(INSTALL_DIR) $(1)/usr/sbin
	$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/auc $(1)/usr/sbin/
endef

$(eval $(call BuildPackage,auc))