added my Recipes

This commit is contained in:
2024-07-11 14:16:35 +02:00
parent 38bc4f53ac
commit 09b621d929
7118 changed files with 525762 additions and 3 deletions

View File

@@ -0,0 +1,41 @@
From ff98a326d5faa585f0e15e51a558cc2c49aa8099 Mon Sep 17 00:00:00 2001
From: Primoz Fiser <primoz.fiser@norik.com>
Date: Fri, 23 Nov 2018 08:31:29 +0100
Subject: [PATCH] Fix build on big endian architectures
Signed-off-by: Primoz Fiser <primoz.fiser@norik.com>
---
Common/DtaEndianFixup.h | 13 +++++++------
1 file changed, 7 insertions(+), 6 deletions(-)
diff --git a/Common/DtaEndianFixup.h b/Common/DtaEndianFixup.h
index 58eb3ff..184fce0 100644
--- a/Common/DtaEndianFixup.h
+++ b/Common/DtaEndianFixup.h
@@ -31,12 +31,11 @@ along with sedutil. If not, see <http://www.gnu.org/licenses/>.
//TODO: add a test on the endianess of the system and define
// empty macros if the system is big endian
#pragma once
-#ifdef __gnu_linux__
-#include <endian.h>
-#if __BYTE_ORDER != __LITTLE_ENDIAN
-#error This code does not support big endian architectures
-#endif
-#endif
+#if defined(__BYTE_ORDER__)&&(__BYTE_ORDER__ == __ORDER_BIG_ENDIAN__)
+#define SWAP16(x) x
+#define SWAP32(x) x
+#define SWAP64(x) x
+#else
/** change the "endianess" of a 16bit field */
#define SWAP16(x) ((uint16_t) ((x & 0x00ff) << 8) | ((x & 0xff00) >> 8))
/** change the "endianess" of a 32bit field */
@@ -47,3 +46,5 @@ along with sedutil. If not, see <http://www.gnu.org/licenses/>.
((uint64_t) (SWAP32((x & 0x00000000ffffffff)) << 32) | \
((uint64_t) (SWAP32((x >> 32))) ) \
)
+
+#endif
--
2.7.4

View File

@@ -0,0 +1,32 @@
From 927cd88cad7bea94c2eebecc18f7881f0defaccb Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Thu, 26 Jan 2023 23:36:29 -0800
Subject: [PATCH] include missing <cstdint>
gcc 13 moved some includes around and as a result <cstdint>
is no longer transitively included [1]. Explicitly include
it for uint{32,64}_t.
[1] https://gcc.gnu.org/gcc-13/porting_to.html#header-dep-changes
Upstream-Status: Submitted [https://github.com/Drive-Trust-Alliance/sedutil/pull/425]
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
Common/DtaOptions.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/Common/DtaOptions.h b/Common/DtaOptions.h
index c012af1..7530a0b 100644
--- a/Common/DtaOptions.h
+++ b/Common/DtaOptions.h
@@ -21,6 +21,7 @@ along with sedutil. If not, see <http://www.gnu.org/licenses/>.
#ifndef _DTAOPTIONS_H
#define _DTAOPTIONS_H
+#include <cstdint>
/** Output modes */
typedef enum _sedutiloutput {
sedutilNormal,
--
2.39.1

View File

@@ -0,0 +1,19 @@
DESCRIPTION = "A utility to manage self encrypting drives that conform \
to the Trusted Computing Group OPAL 2.0 SSC specification."
SUMMARY = "The Drive Trust Alliance Self Encrypting Drive Utility"
HOMEPAGE = "https://github.com/Drive-Trust-Alliance/sedutil"
SECTION = "console/utils"
LICENSE = "GPL-3.0-only"
LIC_FILES_CHKSUM = "file://Common/LICENSE.txt;md5=d32239bcb673463ab874e80d47fae504"
PV = "1.20.0"
SRCREV = "d3de8e45e06a21d31cca0046ceb16ced1ef3563a"
SRC_URI = "git://github.com/Drive-Trust-Alliance/sedutil.git;branch=master;protocol=https \
file://0001-Fix-build-on-big-endian-architectures.patch \
file://0001-include-missing-cstdint.patch \
"
S = "${WORKDIR}/git"
inherit autotools-brokensep