diff options
| author | Ryan Eatmon <reatmon@ti.com> | 2026-04-28 11:17:55 -0500 |
|---|---|---|
| committer | Ryan Eatmon <reatmon@ti.com> | 2026-04-29 10:37:37 -0500 |
| commit | 731d4b3d02c5518f8df848ec103c0acbdf9a0140 (patch) | |
| tree | f33b76d6e2fb2aed480e7f8a5409d1d49dcbeffa | |
| parent | 7018264d66786eafbe2a185d73e132209d2fc443 (diff) | |
| download | meta-ti-731d4b3d02c5518f8df848ec103c0acbdf9a0140.tar.gz | |
meta-ti-test: Import the recipes-bsp recipes
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 <reatmon@ti.com>
| -rw-r--r-- | meta-ti-test/recipes-bsp/switch-config/files/0001-Use-proper-definition-of-boolean-type.patch | 33 | ||||
| -rw-r--r-- | meta-ti-test/recipes-bsp/switch-config/switch-config_git.bb | 27 |
2 files changed, 60 insertions, 0 deletions
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 @@ | |||
| 1 | From 5190913c7a86cd36b91dc3a6ff4c1eb22ea6375e Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Denys Dmytriyenko <denys@konsulko.com> | ||
| 3 | Date: Tue, 6 May 2025 12:52:14 -0400 | ||
| 4 | Subject: [PATCH] Use proper definition of boolean type | ||
| 5 | |||
| 6 | Newer versions of GCC and C standard have bool as a built-in | ||
| 7 | keyword - use a standard stdbool.h header to properly handle it. | ||
| 8 | |||
| 9 | Upstream-Status: Inactive-Upstream | ||
| 10 | |||
| 11 | Signed-off-by: Denys Dmytriyenko <denys@konsulko.com> | ||
| 12 | --- | ||
| 13 | switch-config.c | 5 +---- | ||
| 14 | 1 file changed, 1 insertion(+), 4 deletions(-) | ||
| 15 | |||
| 16 | diff --git a/switch-config.c b/switch-config.c | ||
| 17 | index d31a237..5b5db3a 100644 | ||
| 18 | --- a/switch-config.c | ||
| 19 | +++ b/switch-config.c | ||
| 20 | @@ -13,10 +13,7 @@ | ||
| 21 | * GNU General Public License for more details. | ||
| 22 | */ | ||
| 23 | |||
| 24 | -#define true 1 | ||
| 25 | -#define false 0 | ||
| 26 | -typedef int bool; | ||
| 27 | - | ||
| 28 | +#include <stdbool.h> | ||
| 29 | #include <stdio.h> | ||
| 30 | #include <stdlib.h> | ||
| 31 | #include <unistd.h> | ||
| 32 | -- | ||
| 33 | 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 @@ | |||
| 1 | SUMMARY = "Ethernet Switch configuration management" | ||
| 2 | LICENSE = "GPL-2.0-only" | ||
| 3 | LIC_FILES_CHKSUM = "file://switch-config.c;beginline=1;endline=14;md5=659ff9658cbaba3110b81804af60de75" | ||
| 4 | |||
| 5 | PV = "2.0" | ||
| 6 | PR = "r5" | ||
| 7 | |||
| 8 | BRANCH ?= "v4.1" | ||
| 9 | BRANCH:aarch64 ?= "am65x-v1.0" | ||
| 10 | |||
| 11 | SRCREV = "412dce4e65cfe5af729be38fd1b4c1d59e9a8828" | ||
| 12 | SRCREV:aarch64 = "0f52dcb3c4e3678e96427d546d6c2e1fabc2ad91" | ||
| 13 | |||
| 14 | SRC_URI = "git://git.ti.com/git/switch-config/switch-config.git;protocol=https;branch=${BRANCH}" | ||
| 15 | |||
| 16 | SRC_URI += "file://0001-Use-proper-definition-of-boolean-type.patch" | ||
| 17 | |||
| 18 | EXTRA_OEMAKE = "CROSS_COMPILE=${TARGET_PREFIX} CC="${CC}"" | ||
| 19 | |||
| 20 | do_configure() { | ||
| 21 | sed 's|-I$(KBUILD_OUTPUT)/usr/include|${TOOLCHAIN_OPTIONS} -I.|' -i ${S}/Makefile | ||
| 22 | } | ||
| 23 | |||
| 24 | do_install() { | ||
| 25 | install -d ${D}${bindir}/ | ||
| 26 | install -c -m 755 ${S}/switch-config ${D}${bindir}/switch-config | ||
| 27 | } | ||
