We are moving the meta-arago-test layer to meta-ti-test.  This commit
imports all of the recipes under recipes-bsp.

Signed-off-by: Ryan Eatmon <[email protected]>
---
v2: No changes.

 ...se-proper-definition-of-boolean-type.patch | 33 +++++++++++++++++++
 .../switch-config/switch-config_git.bb        | 27 +++++++++++++++
 2 files changed, 60 insertions(+)
 create mode 100644 
meta-ti-test/recipes-bsp/switch-config/files/0001-Use-proper-definition-of-boolean-type.patch
 create mode 100644 meta-ti-test/recipes-bsp/switch-config/switch-config_git.bb

diff --git 
a/meta-ti-test/recipes-bsp/switch-config/files/0001-Use-proper-definition-of-boolean-type.patch
 
b/meta-ti-test/recipes-bsp/switch-config/files/0001-Use-proper-definition-of-boolean-type.patch
new file mode 100644
index 00000000..fe18b3b0
--- /dev/null
+++ 
b/meta-ti-test/recipes-bsp/switch-config/files/0001-Use-proper-definition-of-boolean-type.patch
@@ -0,0 +1,33 @@
+From 5190913c7a86cd36b91dc3a6ff4c1eb22ea6375e Mon Sep 17 00:00:00 2001
+From: Denys Dmytriyenko <[email protected]>
+Date: Tue, 6 May 2025 12:52:14 -0400
+Subject: [PATCH] Use proper definition of boolean type
+
+Newer versions of GCC and C standard have bool as a built-in
+keyword - use a standard stdbool.h header to properly handle it.
+
+Upstream-Status: Inactive-Upstream
+
+Signed-off-by: Denys Dmytriyenko <[email protected]>
+---
+ switch-config.c | 5 +----
+ 1 file changed, 1 insertion(+), 4 deletions(-)
+
+diff --git a/switch-config.c b/switch-config.c
+index d31a237..5b5db3a 100644
+--- a/switch-config.c
++++ b/switch-config.c
+@@ -13,10 +13,7 @@
+  * GNU General Public License for more details.
+  */
+
+-#define true 1
+-#define false 0
+-typedef int bool;
+-
++#include <stdbool.h>
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <unistd.h>
+--
+2.25.1
diff --git a/meta-ti-test/recipes-bsp/switch-config/switch-config_git.bb 
b/meta-ti-test/recipes-bsp/switch-config/switch-config_git.bb
new file mode 100644
index 00000000..90834edb
--- /dev/null
+++ b/meta-ti-test/recipes-bsp/switch-config/switch-config_git.bb
@@ -0,0 +1,27 @@
+SUMMARY = "Ethernet Switch configuration management"
+LICENSE = "GPL-2.0-only"
+LIC_FILES_CHKSUM = 
"file://switch-config.c;beginline=1;endline=14;md5=659ff9658cbaba3110b81804af60de75"
+
+PV = "2.0"
+PR = "r5"
+
+BRANCH ?= "v4.1"
+BRANCH:aarch64 ?= "am65x-v1.0"
+
+SRCREV = "412dce4e65cfe5af729be38fd1b4c1d59e9a8828"
+SRCREV:aarch64 = "0f52dcb3c4e3678e96427d546d6c2e1fabc2ad91"
+
+SRC_URI = 
"git://git.ti.com/git/switch-config/switch-config.git;protocol=https;branch=${BRANCH}"
+
+SRC_URI += "file://0001-Use-proper-definition-of-boolean-type.patch"
+
+EXTRA_OEMAKE = "CROSS_COMPILE=${TARGET_PREFIX} CC="${CC}""
+
+do_configure() {
+       sed 's|-I$(KBUILD_OUTPUT)/usr/include|${TOOLCHAIN_OPTIONS} -I.|' -i 
${S}/Makefile
+}
+
+do_install() {
+       install -d ${D}${bindir}/
+       install -c -m 755 ${S}/switch-config ${D}${bindir}/switch-config
+}
-- 
2.43.0

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#19896): 
https://lists.yoctoproject.org/g/meta-ti/message/19896
Mute This Topic: https://lists.yoctoproject.org/mt/119066319/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-ti/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to