Auto generate /etc/default/packet-forwarder
This commit is contained in:
@@ -1,2 +0,0 @@
|
|||||||
# GPIO connected to SW1301 reset pin
|
|
||||||
SX1301_RESET_BCM_PIN=17
|
|
||||||
@@ -8,12 +8,13 @@ endef
|
|||||||
|
|
||||||
define PACKET_FORWARDER_BUILD_CMDS
|
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
|
LGW_PATH=$(STAGING_DIR)/opt/ttn/libloragw CROSS_COMPILE=$(TARGET_CROSS) LD=$(TARGET_LD) $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) all
|
||||||
|
echo "SX1301_RESET_BCM_PIN=$(BR2_PACKAGE_PACKET_FORWARDER_RST_GPIO)" > $(@D)/packet-forwarder
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define PACKET_FORWARDER_INSTALL_TARGET_CMDS
|
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 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 $(@D)/poly_pkt_fwd/global_conf.json $(TARGET_DIR)/etc/ttn/global_conf.json
|
||||||
$(INSTALL) -D -m 0644 $(PACKET_FORWARDER_PKGDIR)/packet-forwarder $(TARGET_DIR)/etc/default/packet-forwarder
|
$(INSTALL) -D -m 0644 $(@D)/packet-forwarder $(TARGET_DIR)/etc/default/packet-forwarder
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define PACKET_FORWARDER_INSTALL_INIT_SYSV
|
define PACKET_FORWARDER_INSTALL_INIT_SYSV
|
||||||
|
|||||||
Reference in New Issue
Block a user