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,30 @@
Subject: [PATCH] Don't build with -Werror to fix compile error.
| 550 | _dump_sgpio_amd(&amd_reg->amd);
| | ^~~~~~~~~~~~~
| amd_sgpio.c: In function '_write_amd_register':
| amd_sgpio.c:558:18: error: taking address of packed member of 'struct amd_register' may result in an unaligned pointer value [-Werror=address-of-packed-member]
Upstream-Status: Submitted
https://github.com/intel/ledmon/pull/48/commits
Signed-off-by: Zheng Ruoqin <zhengrq.fnst@cn.fujitsu.com>
---
configure.ac | 1 -
1 file changed, 1 deletion(-)
diff --git a/configure.ac b/configure.ac
index 7bc20f8..7e01bd5 100644
--- a/configure.ac
+++ b/configure.ac
@@ -22,7 +22,6 @@ AX_AM_CFLAGS_ADD([-Werror=format-truncation=1])
AX_AM_CFLAGS_ADD([-Werror=shift-negative-value])
AX_AM_CFLAGS_ADD([-Werror=alloca])
AX_AM_CFLAGS_ADD([-Werror=missing-field-initializers])
-AX_AM_CFLAGS_ADD([-Werror])
AX_AM_CFLAGS_ADD([-Werror=format-signedness])
AC_SUBST([AM_CFLAGS])
--
2.7.4

View File

@@ -0,0 +1,43 @@
From 2ee8796db5019341b774bcb4f7d0944d89e1845b Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Tue, 9 Apr 2019 21:26:55 -0700
Subject: [PATCH 2/2] include sys/select.h and sys/types.h
sys/select.h is needed to provide fd_set definition
sys/types.h is needed for ssize_t
Upstream-Status: Pending
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
src/dellssd.c | 1 +
src/utils.h | 1 +
2 files changed, 2 insertions(+)
diff --git a/src/dellssd.c b/src/dellssd.c
index 7b8d431..e97fe45 100644
--- a/src/dellssd.c
+++ b/src/dellssd.c
@@ -27,6 +27,7 @@
#include <unistd.h>
#include <sys/ioctl.h>
+#include <sys/select.h>
#include <linux/ipmi.h>
#if _HAVE_DMALLOC_H
diff --git a/src/utils.h b/src/utils.h
index 720447a..c106529 100644
--- a/src/utils.h
+++ b/src/utils.h
@@ -21,6 +21,7 @@
#define _UTILS_H_INCLUDED_
#include <getopt.h>
+#include <sys/types.h>
#include "config_file.h"
#include "stdlib.h"
#include "stdint.h"
--
2.21.0

View File

@@ -0,0 +1,41 @@
SUMMARY = "Intel(R) Enclosure LED Utilities"
DESCRIPTION = "The utilities are designed primarily to be used on storage servers \
utilizing MD devices (aka Linux Software RAID) for RAID arrays.\
"
HOMEPAGE = "https://github.com/intel/ledmon"
LICENSE = "GPL-2.0-only"
LIC_FILES_CHKSUM = "file://COPYING;md5=0636e73ff0215e8d672dc4c32c317bb3 \
"
DEPENDS = "sg3-utils udev"
inherit autotools systemd
SYSTEMD_SERVICE:${PN} = "ledmon.service"
# 0.93
SRC_URI = "git://github.com/intel/ledmon;branch=master;protocol=https \
file://0002-include-sys-select.h-and-sys-types.h.patch \
file://0001-Don-t-build-with-Werror-to-fix-compile-error.patch \
"
SRCREV = "1d72f9cb5c9163b2ecdf19709935720e65f5b90e"
COMPATIBLE_HOST = "(i.86|x86_64).*-linux"
COMPATIBLE_HOST:libc-musl = "null"
S = "${WORKDIR}/git"
EXTRA_OEMAKE = "CC='${CC}' LDFLAGS='${LDFLAGS}' CFLAGS='${CFLAGS}'"
# The ledmon sources include headers in ${S}/config to build but not in CFLAGS.
# We need to add this include path in CFLAGS.
CFLAGS += "-I${S}/config"
do_install:append() {
if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then
install -d ${D}${systemd_unitdir}/system
install -m 0755 ${S}/systemd/ledmon.service ${D}${systemd_unitdir}/system
fi
}