summaryrefslogtreecommitdiff
path: root/ubnt-bs/Makefile
blob: f21fa37bf4fd62be8f56650486ec9da674ef9483 (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
# 
# Copyright (C) 2017 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:=ubnt-bs
PKG_VERSION:=0.01
PKG_RELEASE:=1
PKG_LICENSE:=GPL-2.0
PKG_MAINTAINER:=Bjørn Mork <bjorn@mork.no>

include $(INCLUDE_DIR)/package.mk

define Package/ubnt-bs
  SECTION:=utils
  CATEGORY:=Utilities
  TITLE:=Boot select utility for Ubiquiti UniFi AC etc
endef

define Package/ubnt-bs/description
  Boot select utility for Ubiquiti UniFi AC etc
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)/ubnt-bs $(PKG_BUILD_DIR)/ubnt-bs.c
endef

define Package/ubnt-bs/install
	$(INSTALL_DIR) $(1)/usr/sbin
	$(INSTALL_BIN) $(PKG_BUILD_DIR)/ubnt-bs $(1)/usr/sbin/
endef

$(eval $(call BuildPackage,ubnt-bs))