Developing lightweight computation at the DSG edge

Makefile 2.02 KB
Newer Older
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
#    Copyright (C) 2011 Fundacio Privada per a la Xarxa Oberta, Lliure i Neutral guifi.net
#
#    This program is free software; you can redistribute it and/or modify
#    it under the terms of the GNU General Public License as published by
#    the Free Software Foundation; either version 2 of the License, or
#    (at your option) any later version.
#
#    This program is distributed in the hope that it will be useful,
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#    GNU General Public License for more details.
#
#    You should have received a copy of the GNU General Public License along
#    with this program; if not, write to the Free Software Foundation, Inc.,
#    51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
#    The full GNU General Public License is included in this distribution in
#    the file called "COPYING".
#
# Contributors:
#	Pau Escrich <p4u@dabax.net>
#	Simó Albert i Beltran
#

include $(TOPDIR)/rules.mk
include $(INCLUDE_DIR)/kernel.mk

28
29
QMP_RELEASE?=r20161013-1
QMP_CODENAME?=testing
30

31
PKG_NAME:=qmp-tiny-node
32
33
PKG_VERSION:=$(QMP_RELEASE)
PKG_RELEASE:=$(QMP_CODENAME)
Roger Pueyo Centelles's avatar
Roger Pueyo Centelles committed
34
35
PKG_LICENSE:=GPL-2.0+

36
37
38
39
40
41
42
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)

include $(INCLUDE_DIR)/package.mk

define Package/qmp-tiny-node
  SECTION:=net
  CATEGORY:=qMp
43
  TITLE:=Minimalistic qMp node (4 MB flash devices)
44
  URL:=http://qmp.cat
Roger Pueyo Centelles's avatar
Roger Pueyo Centelles committed
45
  DEPENDS:= +qmp-system \
46
47
	+luci-app-bmx6 +luci-mod-admin-full +luci-theme-bootstrap +uhttpd \
	+uhttpd-mod-ubus
48
49
50
endef

define Package/qmp-tiny-node/description
Roger Pueyo Centelles's avatar
Roger Pueyo Centelles committed
51
52
53
54
55
56
 This metapackage installs the packages required for setting up a minimal qMp node:
  - BMX6 routing protocol
  - Luci web interface
  - qMp system configuration files

 It is intended to be used on devices with 4 MB of flash.
57
58
59
60
61
62
endef

define Build/Prepare
 mkdir -p $(PKG_BUILD_DIR)
endef

63
64
65
66
67
68
define Build/Configure
endef

define Build/Compile
endef

69
70
71
define Package/qmp-tiny-node/install
	$(INSTALL_DIR) $(1)/etc/qmp
endef
72
73

$(eval $(call BuildPackage,qmp-tiny-node))