iopsys-feed/dslmngr/Makefile
Yalu Zhang 147d00ea48 Update feed [ iopsys ] package [ easy-soc-libs ]
-------------------------------------------------------------------------------
commit 794b958cda049aa0bfb6ea6827e4b489e23600d7
Author: Yalu Zhang <yalu.zhang@iopsys.eu>
Date:   Tue Feb 5 12:23:38 2019 +0100

    Comment out some code temporarily since libdsl for Broadcom is under development

Update feed [ iopsys ] package [ dslmngr ]
-------------------------------------------------------------------------------
commit 266a037a7b8c1f9c61a5fc51f9c31ff7ee6e4d93
Author: Yalu Zhang <yalu.zhang@iopsys.eu>
Date:   Tue Feb 5 12:41:29 2019 +0100

    Disable the compilation temporarily since dslmngr is under development
2019-02-05 13:52:48 +01:00

62 lines
1.4 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.0
LOCAL_DEV=0
ifneq ($(LOCAL_DEV),1)
PKG_SOURCE_PROTO:=git
PKG_SOURCE_VERSION:=266a037a7b8c1f9c61a5fc51f9c31ff7ee6e4d93
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)
include $(INCLUDE_DIR)/package.mk
define Package/dslmngr
SECTION:=utils
CATEGORY:=Utilities
TITLE:=XDSL status and configration utility
DEPENDS:=+libdsl +libuci +libubox +ubus +libpthread +libnl-genl +dsl-cpe-control-vrx
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 \
-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))