initial buildroot for linux 5.15

This commit is contained in:
Huan.Feng
2021-12-06 14:12:13 +08:00
parent d7767d594e
commit 7b6fc358fa
12736 changed files with 508822 additions and 0 deletions
@@ -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
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
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
View File
@@ -0,0 +1,3 @@
# Locally calculated
sha256 275d184006f2f60c9b0172d8fd0ccc8952f182960c0d3d0945be640873c1bef6 ubus-a72457b61df045d3c499a6211362b751710590d7-br1.tar.gz
sha256 a3caa6c0e90c87b7c97c2ac3d0c0d416082ef777215faec2e9b24ea6e68f6988 ubusd_acl.h
+41
View File
@@ -0,0 +1,41 @@
################################################################################
#
# ubus
#
################################################################################
UBUS_VERSION = a72457b61df045d3c499a6211362b751710590d7
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_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))