mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2025-12-10 07:44:50 +01:00
-------------------------------------------------------------------------------
* 2da1a3f clean-up json-files api-testing
* 21b0119 fixed invalid json
* 549a924 Fix a compilation error in testing
* c06c317 moved dependencies to shell-script instead of having them in docker file
-------------------------------------------------------------------------------
commit 2da1a3fc3d7ba2babfd88032af05c0e226e89008
Author: Suru Dissanaike <suru.dissanaike@iopsys.eu>
Date: 2020-08-12 17:14:11 +0200
clean-up json-files api-testing
Base directory -> /
test/api/json/atm.link.validation.json | 12 ------------
test/api/json/dsl.channel.validation.json | 2 +-
test/api/json/dsl.line.validation.json | 13 -------------
3 files changed, 1 insertion(+), 26 deletions(-)
-------------------------------------------------------------------------------
commit 21b0119c090832da9f8a3e4882876649f747ed22
Author: Suru Dissanaike <suru.dissanaike@iopsys.eu>
Date: 2020-08-12 08:45:15 +0200
fixed invalid json
Base directory -> /
test/api/json/atm.link.validation.json | 3 ---
1 file changed, 3 deletions(-)
-------------------------------------------------------------------------------
commit 549a924c5f3d48db43f02b469e7261feec10c47e
Author: Yalu Zhang <yalu.zhang@iopsys.eu>
Date: 2020-08-10 12:39:18 +0200
Fix a compilation error in testing
Base directory -> /
Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
-------------------------------------------------------------------------------
commit c06c31728555a091f2807e64ddf7849829c57fef
Author: Suru Dissanaike <suru.dissanaike@iopsys.eu>
Date: 2020-08-05 15:15:41 +0200
moved dependencies to shell-script instead of having them in docker file
Base directory -> /
.gitlab-ci.yml | 9 ++++++---
gitlab-ci/install-dependencies.sh | 22 ++++++++++++++++++++++
2 files changed, 28 insertions(+), 3 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.0.1
|
|
|
|
LOCAL_DEV=0
|
|
ifneq ($(LOCAL_DEV),1)
|
|
PKG_SOURCE_PROTO:=git
|
|
PKG_SOURCE_VERSION:=2da1a3fc3d7ba2babfd88032af05c0e226e89008
|
|
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
|
|
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))
|