mirror of
https://github.com/MiyooCFW/buildroot.git
synced 2025-09-27 22:24:19 +03:00
Merge from bittboy/buildroot@db180c0
This commit is contained in:
28
package/ubus/0001-Install-server-and-client-examples.patch
Normal file
28
package/ubus/0001-Install-server-and-client-examples.patch
Normal file
@@ -0,0 +1,28 @@
|
||||
From aa4aea68a9d2a38fabb5ae8e5a0d05dfd7bcf907 Mon Sep 17 00:00:00 2001
|
||||
From: Rahul Jain <Rahul.Jain@imgtec.com>
|
||||
Date: Fri, 24 Mar 2017 18:03:24 +0530
|
||||
Subject: [PATCH] Install server and client examples
|
||||
|
||||
Signed-off-by: Sergio Prado <sergio.prado@e-labworks.com>
|
||||
Signed-off-by: Rahul Jain <Rahul.Jain@imgtec.com>
|
||||
[Rahul Jain: rebase the patch on latest version]
|
||||
---
|
||||
examples/CMakeLists.txt | 4 ++++
|
||||
1 file changed, 4 insertions(+)
|
||||
|
||||
diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt
|
||||
index 81f9997..38f153f 100644
|
||||
--- a/examples/CMakeLists.txt
|
||||
+++ b/examples/CMakeLists.txt
|
||||
@@ -9,4 +9,8 @@ IF (BUILD_EXAMPLES)
|
||||
|
||||
ADD_EXECUTABLE(client client.c count.c)
|
||||
TARGET_LINK_LIBRARIES(client ubus ${ubox_library})
|
||||
+
|
||||
+ INSTALL(TARGETS server client
|
||||
+ RUNTIME DESTINATION sbin
|
||||
+ )
|
||||
ENDIF()
|
||||
--
|
||||
2.6.2
|
||||
|
||||
31
package/ubus/Config.in
Normal file
31
package/ubus/Config.in
Normal file
@@ -0,0 +1,31 @@
|
||||
comment "ubus needs a toolchain w/ dynamic library"
|
||||
depends on BR2_TOOLCHAIN_HAS_SYNC_4
|
||||
depends on BR2_STATIC_LIBS
|
||||
|
||||
config BR2_PACKAGE_UBUS
|
||||
bool "ubus"
|
||||
depends on BR2_TOOLCHAIN_HAS_SYNC_4 # json-c
|
||||
depends on !BR2_STATIC_LIBS # libubox
|
||||
select BR2_PACKAGE_LIBUBOX
|
||||
select BR2_PACKAGE_JSON_C
|
||||
help
|
||||
IPC/RPC bus that allows communication between processes.
|
||||
|
||||
It consists of few parts including a daemon (ubusd), a
|
||||
library (libubus) and a command line interface
|
||||
(ubus). Although created for the OpenWRT project, it can be
|
||||
used as a general IPC/RPC mechanism in other projects.
|
||||
|
||||
* Select BR2_PACKAGE_LUA_5_1 if you want to have Lua
|
||||
support.
|
||||
|
||||
https://wiki.openwrt.org/doc/techref/ubus
|
||||
|
||||
if BR2_PACKAGE_UBUS
|
||||
|
||||
config BR2_PACKAGE_UBUS_EXAMPLES
|
||||
bool "build and install ubus examples"
|
||||
help
|
||||
Build and install client and server ubus examples.
|
||||
|
||||
endif
|
||||
2
package/ubus/ubus.hash
Normal file
2
package/ubus/ubus.hash
Normal file
@@ -0,0 +1,2 @@
|
||||
# Locally calculated
|
||||
sha256 93ef2612853641ca8d16d07527115c72ed03f8eaa1c727a01b069a4e814247c0 ubus-34c6e818e431cc53478a0f7c7c1eca07d194d692.tar.gz
|
||||
40
package/ubus/ubus.mk
Normal file
40
package/ubus/ubus.mk
Normal file
@@ -0,0 +1,40 @@
|
||||
################################################################################
|
||||
#
|
||||
# ubus
|
||||
#
|
||||
################################################################################
|
||||
|
||||
UBUS_VERSION = 34c6e818e431cc53478a0f7c7c1eca07d194d692
|
||||
UBUS_SITE = git://git.openwrt.org/project/ubus.git
|
||||
|
||||
UBUS_LICENSE = LGPL-2.1
|
||||
UBUS_LICENSE_FILES = ubusd_acl.h
|
||||
|
||||
UBUS_INSTALL_STAGING = YES
|
||||
|
||||
UBUS_DEPENDENCIES = json-c libubox
|
||||
|
||||
# package only compiles with Lua 5.1
|
||||
ifeq ($(BR2_PACKAGE_LUA_5_1),y)
|
||||
UBUS_DEPENDENCIES += lua
|
||||
UBUS_CONF_OPTS += -DBUILD_LUA=ON \
|
||||
-DLUA_CFLAGS=-I$(STAGING_DIR)/usr/include \
|
||||
-DLUAPATH=/usr/lib/lua/$(LUAINTERPRETER_ABIVER)
|
||||
else
|
||||
UBUS_CONF_OPTS += -DBUILD_LUA=OFF
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_SYSTEMD),y)
|
||||
UBUS_DEPENDENCIES += systemd
|
||||
UBUS_CONF_OPTS += -DENABLE_SYSTEMD=ON
|
||||
else
|
||||
UBUS_CONF_OPTS += -DENABLE_SYSTEMD=OFF
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_UBUS_EXAMPLES),y)
|
||||
UBUS_CONF_OPTS += -DBUILD_EXAMPLES=ON
|
||||
else
|
||||
UBUS_CONF_OPTS += -DBUILD_EXAMPLES=OFF
|
||||
endif
|
||||
|
||||
$(eval $(cmake-package))
|
||||
Reference in New Issue
Block a user