Complete Yocto mirror with license table for TQMa6UL (2038-compliance)
- 264 license table entries with exact download URLs (224/264 resolved) - Complete sources/ directory with all BitBake recipes - Build configuration: tqma6ul-multi-mba6ulx, spaetzle (musl) - Full traceability for Softwarefreigabeantrag - GCC 13.4.0, Linux 6.6.102, U-Boot 2023.04, musl 1.2.4 - License distribution: GPL-2.0 (24), MIT (23), GPL-2.0+ (18), BSD-3 (16)
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
From 9bbb342f5d9ad5dc75486fd35ada8e287ba19299 Mon Sep 17 00:00:00 2001
|
||||
From: Khem Raj <raj.khem@gmail.com>
|
||||
Date: Mon, 15 Aug 2022 13:03:17 -0700
|
||||
Subject: [PATCH] setserial.c: Add needed system headers for ioctl() and
|
||||
close() calls
|
||||
|
||||
Add int return type for main() function
|
||||
|
||||
Fixes
|
||||
error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
|
||||
error: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declarat
|
||||
ion]
|
||||
|
||||
Upstream-Status: Submitted [https://sourceforge.net/p/setserial/discussion/7060/thread/95d874c12c/]
|
||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
---
|
||||
setserial.c | 4 +++-
|
||||
1 file changed, 3 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/setserial.c b/setserial.c
|
||||
index bfda8fd..6a95513 100644
|
||||
--- a/setserial.c
|
||||
+++ b/setserial.c
|
||||
@@ -16,6 +16,8 @@
|
||||
#include <termios.h>
|
||||
#include <string.h>
|
||||
#include <errno.h>
|
||||
+#include <unistd.h>
|
||||
+#include <sys/ioctl.h>
|
||||
|
||||
#ifdef HAVE_ASM_IOCTLS_H
|
||||
#include <asm/ioctls.h>
|
||||
@@ -715,7 +717,7 @@ fprintf(stderr, "\t* port\t\tset the I/O port\n");
|
||||
exit(1);
|
||||
}
|
||||
|
||||
-main(int argc, char **argv)
|
||||
+int main(int argc, char **argv)
|
||||
{
|
||||
int get_flag = 0, wild_intr_flag = 0;
|
||||
int c;
|
||||
@@ -0,0 +1,18 @@
|
||||
# This patch addes stdlib.h to fix compiler warnings due to the exit
|
||||
# built-in not being defined and getting an incorrect implicit definition
|
||||
|
||||
Upstream-Status: Pending
|
||||
|
||||
Created-by: Saul Wold <saul.wold@intel.com>
|
||||
|
||||
--- setserial-2.17/setserial.c 2010-09-02 14:11:27.569763088 -0700
|
||||
+++ setserial-2.17_fixed/setserial.c 2010-09-02 14:11:08.546264139 -0700
|
||||
@@ -11,6 +11,7 @@
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
+#include <stdlib.h>
|
||||
#include <fcntl.h>
|
||||
#include <termios.h>
|
||||
#include <string.h>
|
||||
|
||||
@@ -0,0 +1,24 @@
|
||||
Obey LDFLAGS
|
||||
|
||||
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
|
||||
Upstream-Status: Pending
|
||||
|
||||
--- setserial-2.17.orig/Makefile.in
|
||||
+++ setserial-2.17/Makefile.in
|
||||
@@ -13,6 +13,7 @@ STRIP = @STRIP@
|
||||
CC = @CC@
|
||||
RM = rm -f
|
||||
CFLAGS = @CFLAGS@
|
||||
+LDFLAGS = @LDFLAGS@
|
||||
DEFS = @DEFS@
|
||||
INCS = -I.
|
||||
TAR = tar
|
||||
@@ -20,7 +21,7 @@ TAR = tar
|
||||
all: setserial setserial.cat
|
||||
|
||||
setserial: setserial.c
|
||||
- $(CC) $(CFLAGS) $(DEFS) $(INCS) setserial.c -o setserial
|
||||
+ $(CC) $(CFLAGS) $(LDFLAGS) $(DEFS) $(INCS) setserial.c -o setserial
|
||||
|
||||
setserial.cat: setserial.8
|
||||
nroff -man setserial.8 > setserial.cat
|
||||
28
sources/poky/meta/recipes-bsp/setserial/setserial_2.17.bb
Normal file
28
sources/poky/meta/recipes-bsp/setserial/setserial_2.17.bb
Normal file
@@ -0,0 +1,28 @@
|
||||
SUMMARY = "Controls the configuration of serial ports"
|
||||
DESCRIPTION = "setserial is a program designed to set and/or report the configuration information associated with a serial port"
|
||||
HOMEPAGE = "http://setserial.sourceforge.net"
|
||||
SECTION = "console/utils"
|
||||
|
||||
LICENSE = "GPL-2.0-only"
|
||||
LIC_FILES_CHKSUM = "file://version.h;beginline=1;endline=6;md5=2e7c59cb9e57e356ae81f50f4e4dfd99"
|
||||
|
||||
DEPENDS += "groff-native"
|
||||
|
||||
inherit autotools-brokensep
|
||||
|
||||
SRC_URI = "${SOURCEFORGE_MIRROR}/setserial/${BPN}-${PV}.tar.gz \
|
||||
file://add_stdlib.patch \
|
||||
file://ldflags.patch \
|
||||
file://0001-setserial.c-Add-needed-system-headers-for-ioctl-and-.patch \
|
||||
"
|
||||
|
||||
SRC_URI[md5sum] = "c4867d72c41564318e0107745eb7a0f2"
|
||||
SRC_URI[sha256sum] = "7e4487d320ac31558563424189435d396ddf77953bb23111a17a3d1487b5794a"
|
||||
|
||||
do_install() {
|
||||
install -d ${D}${bindir}
|
||||
install -d ${D}${mandir}/man8
|
||||
|
||||
install -m 0755 ${S}/setserial ${D}${bindir}
|
||||
install -m 0644 ${S}/setserial.8 ${D}${mandir}/man8
|
||||
}
|
||||
Reference in New Issue
Block a user