Developing lightweight computation at the DSG edge

Makefile 2.87 KB
Newer Older
1
#    Copyright (C) 2011 Fundacio Privada per a la Xarxa Oberta, Lliure i Neutral guifi.net
2
#
3
4
5
6
#    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.
7
#
8
9
10
11
12
13
14
15
16
17
18
#    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".
19
20
#
# Contributors:
21
#	Pau Escrich <p4u@dabax.net>
22
23
#	Simó Albert i Beltran
#
24
25
26
27

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

28
29
30
31
32
33
QMP_FEED_DIR?=$(CURDIR)

QMP_GIT_BRANCH?=$(shell git -C $(QMP_FEED_DIR) rev-parse --abbrev-ref HEAD)
QMP_GIT_REV?=$(shell git -C $(QMP_FEED_DIR) rev-parse --short HEAD)
QMP_GIT_DATE?=$(shell git -C $(QMP_FEED_DIR) log -1 --format=%cd --date=format:%Y%m%d)
QMP_GIT_TIME?=$(shell git -C $(QMP_FEED_DIR) log -1 --format=%cd --date=format:%H%M)
34

35
QMP_RELEASE?=trunk
36
QMP_PKGRELEASE=r$(QMP_GIT_DATE)_$(QMP_GIT_TIME)
37
QMP_CODENAME?=Kalimotxo
38
QMP_BUILDDATE:=$(shell date +%Y%m%d-%H%M)
39

40
PKG_NAME:=qmp-small-node
Roger Pueyo Centelles's avatar
Typo    
Roger Pueyo Centelles committed
41
PKG_VERSION:=$(QMP_RELEASE)-$(QMP_PKGRELEASE)
42
PKG_RELEASE:=$(QMP_CODENAME)
43
PKG_LICENSE:=GPL-3.0+
Roger Pueyo Centelles's avatar
Roger Pueyo Centelles committed
44

45
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
46
47
48
49

include $(INCLUDE_DIR)/package.mk

define Package/qmp-small-node
50
  TITLE:=Quick Mesh Project (qMp) standard node (8 MB flash)
51
  SECTION:=net
52
  CATEGORY:=qMp
53
  URL:=https://qmp.cat
Roger Pueyo Centelles's avatar
Roger Pueyo Centelles committed
54
55
  DEPENDS:= +qmp-tiny-node \
	+iputils-arping +iputils-clockdiff +tcpdump-mini +b6m +b6m-spread \
56
	+iputils-ping6 +mtr +netperf +luci-mod-admin-full \
57
	+munin-mesh +mini_snmpd +cgi-bin-zero +ipip +kmod-ipip +kmod-gre \
Roger Pueyo Centelles's avatar
Roger Pueyo Centelles committed
58
	+libremap-agent +luci-lib-libremap-contact +luci-lib-libremap-wireless \
59
60
	+luci +luci-lib-libremap-system +luci-lib-libremap-location \
	+luci-lib-libremap-bmx6 +luci-lib-libremap-qmp +bmx6-mdns
61
62
63
endef

define Package/qmp-small-node/description
64
65
 This metapackage provides a standard qMp node with the following features:
  - qMp system configuration files and scripts
Roger Pueyo Centelles's avatar
Roger Pueyo Centelles committed
66
  - BMX6 routing protocol
67
  - Full LuCI web interface
Roger Pueyo Centelles's avatar
Roger Pueyo Centelles committed
68
  - IP/TCP utils
69
  - LibreMap and b6m tools
Roger Pueyo Centelles's avatar
Roger Pueyo Centelles committed
70
  - SNMP and Munin
71
  - IP over IP tunneling support
Roger Pueyo Centelles's avatar
Roger Pueyo Centelles committed
72
73

 It is intended to be used on devices with 8 MB of flash or more.
74
75
endef

Roger Pueyo Centelles's avatar
Roger Pueyo Centelles committed
76

hitz's avatar
hitz committed
77
78
79
80
81
82
define Build/Configure
endef

define Build/Compile
endef

83
define Build/Prepare
84
	mkdir -p $(PKG_BUILD_DIR)
85
86
endef

hitz's avatar
hitz committed
87
define Package/qmp-small-node/install
88
	$(INSTALL_DIR) $(1)/etc/qmp
hitz's avatar
hitz committed
89
endef
90
91

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