Initial Commit

- initial default booting image
This commit is contained in:
2026-11-06 20:45:42 +01:00
commit b8783708ae
15201 changed files with 602532 additions and 0 deletions

View 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
View 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, libubox -> 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://openwrt.org/docs/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

3
package/ubus/ubus.hash Normal file
View File

@@ -0,0 +1,3 @@
# Locally calculated
sha256 f625bda868133e28749b9eed64f9c3a838c75594e46a6a536e7e3582fe4da8e3 ubus-3cc98db1a422dcf560f2d6347fd410f17565a89d-git4.tar.gz
sha256 a3caa6c0e90c87b7c97c2ac3d0c0d416082ef777215faec2e9b24ea6e68f6988 ubusd_acl.h

34
package/ubus/ubus.mk Normal file
View File

@@ -0,0 +1,34 @@
################################################################################
#
# ubus
#
################################################################################
UBUS_VERSION = 3cc98db1a422dcf560f2d6347fd410f17565a89d
UBUS_SITE = https://git.openwrt.org/project/ubus.git
UBUS_SITE_METHOD = 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_UBUS_EXAMPLES),y)
UBUS_CONF_OPTS += -DBUILD_EXAMPLES=ON
else
UBUS_CONF_OPTS += -DBUILD_EXAMPLES=OFF
endif
$(eval $(cmake-package))