Skip to content
Snippets Groups Projects
Commit 06fbaefc authored by Daniel Danzberger's avatar Daniel Danzberger Committed by Vivek Dutta
Browse files

Add openwrt makefile


With this in source openwrt/ directory you can now build this repo
directly from the current local git HEAD, without updating any external feed.

Example feeds.conf entry:
---
src-link uspd /home/daniel/prpl/uspd
---

Signed-off-by: default avatarDaniel Danzberger <daniel@dd-wrt.com>
parent 6ce0cadc
Branches
No related tags found
1 merge request!10Devel prpl
Pipeline #1335 passed
include $(TOPDIR)/rules.mk
PKG_NAME:=uspd
PKG_VERSION:=1.0.5
PKG_RELEASE:=$(PKG_SOURCE_VERSION)
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://dev.iopsys.eu/iopsys/uspd.git
PKG_SOURCE_VERSION=x
PKG_SOURCE:=$(PKG_NAME)-$(PKG_SOURCE_VERSION).tar.gz
PKG_MAINTAINER:=IOPSYS Dev <dev@iopsys.eu>
CONFIG_SRC_TREE_OVERRIDE:=y
include $(INCLUDE_DIR)/package.mk
define Package/uspd
SECTION:=iopsys
CATEGORY:=IOPSYS
TITLE:=USP ubus backend
DEPENDS:=+libubox +ubus +libbbfdm
endef
define Package/uspd/description
Ubus based backend for TR-369/USP which can be used by other USP agents
running on top of it.
endef
TARGET_CFLAGS += \
-I$(STAGING_DIR)/usr/include \
-D_GNU_SOURCE
define Package/uspd/install
$(INSTALL_DIR) $(1)/etc/init.d
$(INSTALL_DIR) $(1)/etc/config
$(INSTALL_BIN) ./files/uspd.init $(1)/etc/init.d/uspd
$(INSTALL_CONF) ./files/uspd.config $(1)/etc/config/uspd
$(INSTALL_DIR) $(1)/usr/sbin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/uspd $(1)/usr/sbin/
endef
$(eval $(call BuildPackage,uspd))
config uspd 'usp'
option granularitylevel '0'
#!/bin/sh /etc/rc.common
START=94
STOP=10
USE_PROCD=1
PROG=/usr/sbin/uspd
start_service() {
procd_open_instance
procd_set_param command ${PROG}
procd_set_param respawn
procd_close_instance
}
reload_service() {
stop
start
}
service_triggers()
{
procd_add_reload_trigger "cwmp"
procd_add_config_trigger "config.change" "uspd" /etc/init.d/uspd restart
}
../../.git/
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment