forked from buildroot/buildroot
-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
With Cobalt 22 integration new metadata is needed. Therefore setting COBALT_PLATFORM_NAME through Cobalt plugin is added.
- Loading branch information
Showing
4 changed files
with
66 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
58 changes: 58 additions & 0 deletions
58
package/wpe/wpeframework-plugins/0039-Cobalt-Allow-setting-COBALT_PLATFORM_NAME.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
From 90ced6aadfaf76db153b0c123f04cbb10f8863df Mon Sep 17 00:00:00 2001 | ||
From: Artur Gebicz <[email protected]> | ||
Date: Mon, 27 Nov 2023 10:27:39 +0000 | ||
Subject: [PATCH] Cobalt: Allow setting COBALT_PLATFORM_NAME | ||
|
||
--- | ||
Cobalt/Cobalt.config | 3 +++ | ||
Cobalt/CobaltImplementation.cpp | 6 ++++++ | ||
2 files changed, 9 insertions(+) | ||
|
||
diff --git a/Cobalt/Cobalt.config b/Cobalt/Cobalt.config | ||
index 276cc149..72e25df1 100644 | ||
--- a/Cobalt/Cobalt.config | ||
+++ b/Cobalt/Cobalt.config | ||
@@ -40,6 +40,9 @@ map() | ||
if(PLUGIN_COBALT_OPERATOR_NAME) | ||
kv(operatorname ${PLUGIN_COBALT_OPERATOR_NAME}) | ||
endif() | ||
+ if(PLUGIN_COBALT_PLATFORM_NAME) | ||
+ kv(platformname ${PLUGIN_COBALT_PLATFORM_NAME}) | ||
+ endif() | ||
if(PLUGIN_COBALT_FRIENDLY_NAME) | ||
kv(friendlyname ${PLUGIN_COBALT_FRIENDLY_NAME}) | ||
endif() | ||
diff --git a/Cobalt/CobaltImplementation.cpp b/Cobalt/CobaltImplementation.cpp | ||
index 30246b17..7f06d334 100644 | ||
--- a/Cobalt/CobaltImplementation.cpp | ||
+++ b/Cobalt/CobaltImplementation.cpp | ||
@@ -81,6 +81,7 @@ private: | ||
Add(_T("modelname"), &ModelName); | ||
Add(_T("modelyear"), &ModelYear); | ||
Add(_T("operatorname"), &OperatorName); | ||
+ Add(_T("platformname"), &PlatformName); | ||
Add(_T("friendlyname"), &FriendlyName); | ||
Add(_T("scope"), &CertificationScope); | ||
Add(_T("secret"), &CertificationSecret); | ||
@@ -105,6 +106,7 @@ private: | ||
Core::JSON::String ModelName; | ||
Core::JSON::String ModelYear; | ||
Core::JSON::String OperatorName; | ||
+ Core::JSON::String PlatformName; | ||
Core::JSON::String FriendlyName; | ||
Core::JSON::String CertificationScope; | ||
Core::JSON::String CertificationSecret; | ||
@@ -247,6 +249,10 @@ private: | ||
Core::SystemInfo::SetEnvironment(_T("COBALT_OPERATOR_NAME"), config.OperatorName.Value()); | ||
} | ||
|
||
+ if (config.PlatformName.IsSet() == true) { | ||
+ Core::SystemInfo::SetEnvironment(_T("COBALT_PLATFORM_NAME"), config.PlatformName.Value()); | ||
+ } | ||
+ | ||
if (config.FriendlyName.IsSet() == true) { | ||
Core::SystemInfo::SetEnvironment(_T("COBALT_FRIENDLY_NAME"), config.FriendlyName.Value()); | ||
} | ||
-- | ||
2.17.1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters