You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
1017 B
25 lines
1017 B
|
8 years ago
|
PACKET_FORWARDER_VERSION = legacy
|
||
|
|
PACKET_FORWARDER_SITE = https://github.com/TheThingsNetwork/packet_forwarder.git
|
||
|
|
PACKET_FORWARDER_SITE_METHOD = git
|
||
|
|
PACKET_FORWARDER_DEPENDENCIES = lora-gateway
|
||
|
|
|
||
|
|
define PACKET_FORWARDER_CONFIGURE_CMDS
|
||
|
|
endef
|
||
|
|
|
||
|
|
define PACKET_FORWARDER_BUILD_CMDS
|
||
|
|
LGW_PATH=$(STAGING_DIR)/opt/ttn/libloragw CROSS_COMPILE=$(TARGET_CROSS) LD=$(TARGET_LD) $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) all
|
||
|
|
endef
|
||
|
|
|
||
|
|
define PACKET_FORWARDER_INSTALL_TARGET_CMDS
|
||
|
|
$(INSTALL) -D -m 0755 $(@D)/poly_pkt_fwd/poly_pkt_fwd $(TARGET_DIR)/usr/bin/poly_pkt_fwd
|
||
|
|
$(INSTALL) -D -m 0644 $(@D)/poly_pkt_fwd/global_conf.json $(TARGET_DIR)/etc/ttn/global_conf.json
|
||
|
|
$(INSTALL) -D -m 0644 package/thethingsnetwork/packet-forwarder/packet-forwarder $(TARGET_DIR)/etc/default/packet-forwarder
|
||
|
|
endef
|
||
|
|
|
||
|
|
define PACKET_FORWARDER_INSTALL_INIT_SYSV
|
||
|
|
$(INSTALL) -D -m 755 package/thethingsnetwork/packet-forwarder/S52packetforwarder \
|
||
|
|
$(TARGET_DIR)/etc/init.d/S52packetforwarder
|
||
|
|
endef
|
||
|
|
|
||
|
|
$(eval $(generic-package))
|