Initial commit
This commit is contained in:
+24
@@ -0,0 +1,24 @@
|
||||
From 36194f5e0e2ba0b7839b84b47a1622ca5c0a0653 Mon Sep 17 00:00:00 2001
|
||||
From: hliangs90 <hliangs90@gmail.com>
|
||||
Date: Wed, 14 Aug 2024 22:36:47 +0800
|
||||
Subject: [PATCH] Add VersionPurpose CPLD To Support CPLD Component.
|
||||
|
||||
Signed-off-by: hliangs90 <hliangs90@gmail.com>
|
||||
---
|
||||
yaml/xyz/openbmc_project/Software/Version.interface.yaml | 3 +++
|
||||
1 file changed, 3 insertions(+)
|
||||
|
||||
diff --git a/yaml/xyz/openbmc_project/Software/Version.interface.yaml b/yaml/xyz/openbmc_project/Software/Version.interface.yaml
|
||||
index ee4d5ac..3826af0 100644
|
||||
--- a/yaml/xyz/openbmc_project/Software/Version.interface.yaml
|
||||
+++ b/yaml/xyz/openbmc_project/Software/Version.interface.yaml
|
||||
@@ -42,3 +42,6 @@ enumerations:
|
||||
- name: PSU
|
||||
description: >
|
||||
The version is a version for a PSU.
|
||||
+ - name: CPLD
|
||||
+ description: >
|
||||
+ The version is a version for a CPLD.
|
||||
--
|
||||
2.25.1
|
||||
|
||||
Executable
+117
@@ -0,0 +1,117 @@
|
||||
From f3b3366fbbba20f0b713bcc87ef3dfe47d53909f Mon Sep 17 00:00:00 2001
|
||||
From: roly <Rolyli.Li@luxshare-ict.com>
|
||||
Date: Fri, 17 Jan 2025 10:00:40 +0800
|
||||
Subject: [PATCH] Add rsyslog dbus interface
|
||||
|
||||
---
|
||||
.../Logging/Rsyslog/meson.build | 15 ++++++
|
||||
gen/xyz/openbmc_project/Logging/meson.build | 15 ++++++
|
||||
.../Logging/Rsyslog.interface.yaml | 48 +++++++++++++++++++
|
||||
3 files changed, 78 insertions(+)
|
||||
create mode 100755 gen/xyz/openbmc_project/Logging/Rsyslog/meson.build
|
||||
create mode 100755 yaml/xyz/openbmc_project/Logging/Rsyslog.interface.yaml
|
||||
|
||||
diff --git a/gen/xyz/openbmc_project/Logging/Rsyslog/meson.build b/gen/xyz/openbmc_project/Logging/Rsyslog/meson.build
|
||||
new file mode 100755
|
||||
index 0000000..429f7e2
|
||||
--- /dev/null
|
||||
+++ b/gen/xyz/openbmc_project/Logging/Rsyslog/meson.build
|
||||
@@ -0,0 +1,15 @@
|
||||
+# Generated file; do not modify.
|
||||
+generated_sources += custom_target(
|
||||
+ 'xyz/openbmc_project/Logging/Rsyslog__cpp'.underscorify(),
|
||||
+ input: [ '../../../../../yaml/xyz/openbmc_project/Logging/Rsyslog.interface.yaml', ],
|
||||
+ output: [ 'common.hpp', 'server.cpp', 'server.hpp', 'client.hpp', ],
|
||||
+ depend_files: sdbusplusplus_depfiles,
|
||||
+ command: [
|
||||
+ sdbuspp_gen_meson_prog, '--command', 'cpp',
|
||||
+ '--output', meson.current_build_dir(),
|
||||
+ '--tool', sdbusplusplus_prog,
|
||||
+ '--directory', meson.current_source_dir() / '../../../../../yaml',
|
||||
+ 'xyz/openbmc_project/Logging/Rsyslog',
|
||||
+ ],
|
||||
+)
|
||||
+
|
||||
diff --git a/gen/xyz/openbmc_project/Logging/meson.build b/gen/xyz/openbmc_project/Logging/meson.build
|
||||
index 3fbbcbb..197c3ec 100644
|
||||
--- a/gen/xyz/openbmc_project/Logging/meson.build
|
||||
+++ b/gen/xyz/openbmc_project/Logging/meson.build
|
||||
@@ -74,6 +74,21 @@ generated_others += custom_target(
|
||||
],
|
||||
)
|
||||
|
||||
+subdir('Rsyslog')
|
||||
+generated_others += custom_target(
|
||||
+ 'xyz/openbmc_project/Logging/Rsyslog__markdown'.underscorify(),
|
||||
+ input: [ '../../../../yaml/xyz/openbmc_project/Logging/Rsyslog.interface.yaml', ],
|
||||
+ output: [ 'Rsyslog.md' ],
|
||||
+ depend_files: sdbusplusplus_depfiles,
|
||||
+ command: [
|
||||
+ sdbuspp_gen_meson_prog, '--command', 'markdown',
|
||||
+ '--output', meson.current_build_dir(),
|
||||
+ '--tool', sdbusplusplus_prog,
|
||||
+ '--directory', meson.current_source_dir() / '../../../../yaml',
|
||||
+ 'xyz/openbmc_project/Logging/Rsyslog',
|
||||
+ ],
|
||||
+)
|
||||
+
|
||||
subdir('SEL')
|
||||
generated_others += custom_target(
|
||||
'xyz/openbmc_project/Logging/SEL__markdown'.underscorify(),
|
||||
diff --git a/yaml/xyz/openbmc_project/Logging/Rsyslog.interface.yaml b/yaml/xyz/openbmc_project/Logging/Rsyslog.interface.yaml
|
||||
new file mode 100755
|
||||
index 0000000..6696426
|
||||
--- /dev/null
|
||||
+++ b/yaml/xyz/openbmc_project/Logging/Rsyslog.interface.yaml
|
||||
@@ -0,0 +1,48 @@
|
||||
+description: >
|
||||
+ This defines the rsyslog server configuration.
|
||||
+
|
||||
+properties:
|
||||
+ - name: Status
|
||||
+ type: boolean
|
||||
+ description: >
|
||||
+ Status of the rsyslog server.
|
||||
+ - name: AddressType
|
||||
+ type: enum[self.Type]
|
||||
+ description: >
|
||||
+ server adrress type which can be IPv4 or IPv6 etc.
|
||||
+ errors:
|
||||
+ - xyz.openbmc_project.Common.Error.NotAllowed
|
||||
+ - name: Address
|
||||
+ type: string
|
||||
+ description: >
|
||||
+ The value of this property can be IP of the rsyslog.
|
||||
+ errors:
|
||||
+ - xyz.openbmc_project.Common.Error.InvalidArgument
|
||||
+ - xyz.openbmc_project.Common.Error.InternalFailure
|
||||
+ - name: Port
|
||||
+ type: uint16
|
||||
+ description: >
|
||||
+ The value of this property is the network port number.
|
||||
+ errors:
|
||||
+ - xyz.openbmc_project.Common.Error.InternalFailure
|
||||
+ - name: ProtocolType
|
||||
+ type: enum[self.Protocol]
|
||||
+ description: >
|
||||
+ IP protocol type which can be TCP or UDP etc.
|
||||
+ errors:
|
||||
+ - xyz.openbmc_project.Common.Error.NotAllowed
|
||||
+
|
||||
+enumerations:
|
||||
+ - name: Type
|
||||
+ description: >
|
||||
+ Possible IP adress types.
|
||||
+ values:
|
||||
+ - name: IPv4
|
||||
+ - name: IPv6
|
||||
+
|
||||
+ - name: Protocol
|
||||
+ description: >
|
||||
+ Possible IP protocol types..
|
||||
+ values:
|
||||
+ - name: UDP
|
||||
+ - name: TCP
|
||||
--
|
||||
2.25.1
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"
|
||||
|
||||
SRC_URI += " \
|
||||
file://0001-Add-VersionPurpose-CPLD-To-Support-CPLD-Component.patch \
|
||||
file://0001-Add-rsyslog-dbus-interface.patch \
|
||||
"
|
||||
Reference in New Issue
Block a user