mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2026-03-07 01:41:25 +01:00
-------------------------------------------------------------------------------
* b547594 If stats bugfix on fast
* a5bb606 If stats now always presented, even if device missing
-------------------------------------------------------------------------------
commit b5475949442eedcb2781d3c71ea5aacfcce19f34
Author: Jani Juvan <jani.juvan@iopsys.eu>
Date: 2021-03-05 13:58:46 +0100
If stats bugfix on fast
Base directory -> /
dslmngr.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
-------------------------------------------------------------------------------
commit a5bb6062f5de80422f8c7078d6b90c4643eb147e
Author: Jani Juvan <jani.juvan@iopsys.eu>
Date: 2021-03-05 12:56:00 +0100
If stats now always presented, even if device missing
Base directory -> /
dslmngr.c | 40 ++++++++++++++++++++--------------------
1 file changed, 20 insertions(+), 20 deletions(-)
-------------------------------------------------------------------------------
80 lines
1.8 KiB
Makefile
80 lines
1.8 KiB
Makefile
#
|
|
# Copyright (C) 2018 iopsys Software Solutions AB
|
|
#
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
# See /LICENSE for more information.
|
|
#
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=dslmngr
|
|
PKG_VERSION:=1.1.0
|
|
|
|
LOCAL_DEV=0
|
|
ifneq ($(LOCAL_DEV),1)
|
|
PKG_SOURCE_PROTO:=git
|
|
PKG_SOURCE_VERSION:=b5475949442eedcb2781d3c71ea5aacfcce19f34
|
|
PKG_SOURCE_URL:=https://dev.iopsys.eu/iopsys/dslmngr.git
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
|
|
endif
|
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
|
|
PKG_LICENSE:=GPLv2
|
|
PKG_LICENSE_FILES:=LICENSE
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
ifeq ($(CONFIG_TARGET_iopsys_brcm63xx_arm),y)
|
|
TARGET_PLATFORM=BROADCOM
|
|
else ifeq ($(CONFIG_TARGET_iopsys_ramips),y)
|
|
TARGET_PLATFORM=MEDIATEK
|
|
else ifeq ($(CONFIG_TARGET_iopsys_linksys),y)
|
|
TARGET_PLATFORM=MARVELL
|
|
else ifeq ($(CONFIG_TARGET_intel_mips),y)
|
|
TARGET_PLATFORM=INTEL
|
|
else
|
|
$(info Unexpected CONFIG_TARGET)
|
|
endif
|
|
|
|
export TARGET_PLATFORM
|
|
|
|
define Package/dslmngr
|
|
SECTION:=utils
|
|
CATEGORY:=Utilities
|
|
TITLE:=XDSL status and configration utility
|
|
DEPENDS:=+libdsl +libuci +libubox +ubus +libpthread +libnl-genl +libeasy
|
|
endef
|
|
|
|
define Package/dslmngr/description
|
|
This package can be used to configure and provide status about
|
|
the XDSL subsystem through UBUS.
|
|
endef
|
|
|
|
TARGET_CFLAGS += \
|
|
-I$(STAGING_DIR)/usr/include \
|
|
-I$(STAGING_DIR)/usr/include/libnl3 \
|
|
-I$(STAGING_DIR)/usr/include/xdsl \
|
|
-D_GNU_SOURCE
|
|
|
|
MAKE_FLAGS += \
|
|
CFLAGS="$(TARGET_CFLAGS)" \
|
|
LDFLAGS="$(TARGET_LDFLAGS)" \
|
|
FPIC="$(FPIC)"
|
|
|
|
ifeq ($(LOCAL_DEV),1)
|
|
define Build/Prepare
|
|
rsync -r --exclude=.* ~/git/dslmngr/ $(PKG_BUILD_DIR)/
|
|
endef
|
|
endif
|
|
|
|
define Build/Compile
|
|
+$(MAKE_VARS) $(MAKE) -C $(PKG_BUILD_DIR) $(MAKE_FLAGS)
|
|
endef
|
|
|
|
define Package/dslmngr/install
|
|
$(INSTALL_DIR) $(1)/sbin
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/dslmngr $(1)/sbin/
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,dslmngr))
|