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,34 @@
|
||||
From 1de509497826faa0ad84b82f5e2c3d21ee613459 Mon Sep 17 00:00:00 2001
|
||||
From: Moody Liu <mooodyhunter@outlook.com>
|
||||
Date: Sat, 13 May 2023 17:39:16 +0100
|
||||
Subject: [PATCH] riscv64: adjust type definitions
|
||||
|
||||
CHAR8 needs to be defined while BOOLEAN should be removed
|
||||
here to prevent typedef conflicts
|
||||
|
||||
Upstream-Status: Backport [https://sourceforge.net/p/gnu-efi/code/ci/1de509497826faa0ad84b82f5e2c3d21ee613459/]
|
||||
Signed-off-by: Moody Liu <mooodyhunter@outlook.com>
|
||||
---
|
||||
inc/riscv64/efibind.h | 4 +---
|
||||
1 file changed, 1 insertion(+), 3 deletions(-)
|
||||
|
||||
diff --git a/inc/riscv64/efibind.h b/inc/riscv64/efibind.h
|
||||
index 4fdf81d..d8b4f39 100644
|
||||
--- a/inc/riscv64/efibind.h
|
||||
+++ b/inc/riscv64/efibind.h
|
||||
@@ -32,11 +32,9 @@ typedef uint16_t UINT16;
|
||||
typedef int16_t INT16;
|
||||
typedef uint8_t UINT8;
|
||||
typedef int8_t INT8;
|
||||
+typedef char CHAR8;
|
||||
typedef wchar_t CHAR16;
|
||||
#define WCHAR CHAR16
|
||||
-#ifndef BOOLEAN
|
||||
-typedef uint8_t BOOLEAN;
|
||||
-#endif
|
||||
#undef VOID
|
||||
typedef void VOID;
|
||||
typedef int64_t INTN;
|
||||
--
|
||||
2.41.0
|
||||
|
||||
@@ -0,0 +1,32 @@
|
||||
From 708f66acfec9a86f237726d45095cbd380fd83ca Mon Sep 17 00:00:00 2001
|
||||
From: Callum Farmer <gmbr3@opensuse.org>
|
||||
Date: Wed, 21 Jun 2023 11:32:28 +0100
|
||||
Subject: [PATCH] riscv64: ignore unknown relocs
|
||||
|
||||
Sometimes ld emits relocs such as R_RISCV_64 for unwind symbols
|
||||
these don't need to be handled yet so just can be skipped otherwise
|
||||
the binary will never load
|
||||
|
||||
Upstream-Status: Backport [https://sourceforge.net/p/gnu-efi/code/ci/708f66acfec9a86f237726d45095cbd380fd83ca/]
|
||||
Signed-off-by: Callum Farmer <gmbr3@opensuse.org>
|
||||
---
|
||||
gnuefi/reloc_riscv64.c | 3 +--
|
||||
1 file changed, 1 insertion(+), 2 deletions(-)
|
||||
|
||||
diff --git a/gnuefi/reloc_riscv64.c b/gnuefi/reloc_riscv64.c
|
||||
index 0b02d83..e429602 100644
|
||||
--- a/gnuefi/reloc_riscv64.c
|
||||
+++ b/gnuefi/reloc_riscv64.c
|
||||
@@ -81,8 +81,7 @@ EFI_STATUS EFIAPI _relocate(long ldbase, Elf_Dyn *dyn)
|
||||
*addr = ldbase + rel->r_addend;
|
||||
break;
|
||||
default:
|
||||
- /* Panic */
|
||||
- while (1) ;
|
||||
+ break;
|
||||
}
|
||||
rel = (Elf_Rela *)((char *)rel + relent);
|
||||
relsz -= relent;
|
||||
--
|
||||
2.41.0
|
||||
|
||||
@@ -0,0 +1,24 @@
|
||||
Fix building with CLANG-9.0.0
|
||||
|
||||
Fixes
|
||||
clang-9: error: unknown argument: '-maccumulate-outgoing-args'
|
||||
|
||||
Upstream-Status: Submitted [https://sourceforge.net/p/gnu-efi/patches/70/]
|
||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
|
||||
--- a/Make.defaults
|
||||
+++ b/Make.defaults
|
||||
@@ -110,10 +110,10 @@
|
||||
|| ( [ $(GCCVERSION) -eq "4" ] \
|
||||
&& [ $(GCCMINOR) -ge "7" ] ) ) \
|
||||
&& echo 1)
|
||||
- ifeq ($(GCCNEWENOUGH),1)
|
||||
- CPPFLAGS += -DGNU_EFI_USE_MS_ABI -maccumulate-outgoing-args --std=c11
|
||||
- else ifeq ($(USING_CLANG),clang)
|
||||
+ ifeq ($(USING_CLANG),clang)
|
||||
CPPFLAGS += -DGNU_EFI_USE_MS_ABI --std=c11
|
||||
+ else ifeq ($(GCCNEWENOUGH),1)
|
||||
+ CPPFLAGS += -DGNU_EFI_USE_MS_ABI -maccumulate-outgoing-args --std=c11
|
||||
endif
|
||||
|
||||
CFLAGS += -mno-red-zone
|
||||
@@ -0,0 +1,19 @@
|
||||
Do not treat warnings as errors
|
||||
|
||||
There are additional warnings found with musl which are
|
||||
treated as errors and fails the build, we have more combinations
|
||||
then upstream supports to handle
|
||||
|
||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
Upstream-Status: Inappropriate [OE specific]
|
||||
--- a/Make.defaults
|
||||
+++ b/Make.defaults
|
||||
@@ -187,7 +187,7 @@ CFLAGS += $(ARCH3264) -g -O2 -Wall -Wex
|
||||
-funsigned-char -fshort-wchar -fno-strict-aliasing \
|
||||
-ffreestanding -fno-stack-protector
|
||||
else
|
||||
-CFLAGS += $(ARCH3264) -g -O2 -Wall -Wextra -Wno-pointer-sign -Werror \
|
||||
+CFLAGS += $(ARCH3264) -g -O2 -Wall -Wextra -Wno-pointer-sign \
|
||||
-funsigned-char -fshort-wchar -fno-strict-aliasing \
|
||||
-ffreestanding -fno-stack-protector -fno-stack-check \
|
||||
-fno-stack-check \
|
||||
@@ -0,0 +1,39 @@
|
||||
From f56ddb00a656af2e84f839738fad19909ac65047 Mon Sep 17 00:00:00 2001
|
||||
From: Saul Wold <sgw@linux.intel.com>
|
||||
Date: Sun, 9 Mar 2014 15:22:15 +0200
|
||||
Subject: [PATCH] Fix parallel make failure for archives
|
||||
|
||||
Upstream-Status: Pending
|
||||
|
||||
The lib and gnuefi makefiles were using the lib.a() form which compiles
|
||||
and ar's as a pair instead of compiling all and then ar'ing which can
|
||||
parallelize better. This was resulting in build failures on larger values
|
||||
of -j.
|
||||
|
||||
See http://www.chemie.fu-berlin.de/chemnet/use/info/make/make_toc.html#TOC105
|
||||
for details.
|
||||
|
||||
Signed-off-by: Saul Wold <sgw@linux.intel.com>
|
||||
Signed-off-by: Darren Hart <dvhart@linux.intel.com>
|
||||
[Rebased for 3.0.6]
|
||||
Signed-off-by: California Sullivan <california.l.sullivan@intel.com>
|
||||
[Rebased for 3.0.8]
|
||||
Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
|
||||
|
||||
---
|
||||
lib/Makefile | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/lib/Makefile b/lib/Makefile
|
||||
index 1fc6a47..54b0ca7 100644
|
||||
--- a/lib/Makefile
|
||||
+++ b/lib/Makefile
|
||||
@@ -77,7 +77,7 @@ libsubdirs:
|
||||
$(OBJS): libsubdirs
|
||||
|
||||
libefi.a: $(OBJS)
|
||||
- $(AR) $(ARFLAGS) $@ $^
|
||||
+ $(AR) $(ARFLAGS) $@ $(OBJS)
|
||||
|
||||
clean:
|
||||
rm -f libefi.a *~ $(OBJS) */*.o
|
||||
75
sources/poky/meta/recipes-bsp/gnu-efi/gnu-efi_3.0.17.bb
Normal file
75
sources/poky/meta/recipes-bsp/gnu-efi/gnu-efi_3.0.17.bb
Normal file
@@ -0,0 +1,75 @@
|
||||
SUMMARY = "Libraries for producing EFI binaries"
|
||||
HOMEPAGE = "http://sourceforge.net/projects/gnu-efi/"
|
||||
DESCRIPTION = "GNU-EFI aims to Develop EFI applications for ARM-64, ARM-32, x86_64, IA-64 (IPF), IA-32 (x86), and MIPS platforms using the GNU toolchain and the EFI development environment."
|
||||
SECTION = "devel"
|
||||
LICENSE = "GPL-2.0-or-later | BSD-2-Clause"
|
||||
LIC_FILES_CHKSUM = "file://gnuefi/crt0-efi-arm.S;beginline=4;endline=16;md5=e582764a4776e60c95bf9ab617343d36 \
|
||||
file://gnuefi/crt0-efi-aarch64.S;beginline=4;endline=16;md5=e582764a4776e60c95bf9ab617343d36 \
|
||||
file://inc/efishellintf.h;beginline=13;endline=20;md5=202766b79d708eff3cc70fce15fb80c7 \
|
||||
file://lib/arm/math.c;beginline=2;endline=15;md5=8ed772501da77b2b3345aa6df8744c9e \
|
||||
file://lib/arm/initplat.c;beginline=2;endline=15;md5=8ed772501da77b2b3345aa6df8744c9e \
|
||||
file://lib/aarch64/math.c;beginline=2;endline=15;md5=8ed772501da77b2b3345aa6df8744c9e \
|
||||
file://lib/aarch64/initplat.c;beginline=2;endline=15;md5=8ed772501da77b2b3345aa6df8744c9e \
|
||||
"
|
||||
|
||||
SRC_URI = "${SOURCEFORGE_MIRROR}/${BPN}/files/${BP}.tar.bz2 \
|
||||
file://parallel-make-archives.patch \
|
||||
file://gnu-efi-3.0.9-fix-clang-build.patch \
|
||||
file://0001-riscv64-adjust-type-definitions.patch \
|
||||
file://0001-riscv64-ignore-unknown-relocs.patch \
|
||||
file://no-werror.patch \
|
||||
"
|
||||
SRC_URI[sha256sum] = "7807e903349343a7a142ebb934703a2872235e89688cf586c032b0a1087bcaf4"
|
||||
|
||||
COMPATIBLE_HOST = "(x86_64.*|i.86.*|aarch64.*|arm.*|riscv64.*)-linux"
|
||||
COMPATIBLE_HOST:armv4 = 'null'
|
||||
|
||||
do_configure:linux-gnux32:prepend() {
|
||||
cp ${STAGING_INCDIR}/gnu/stubs-x32.h ${STAGING_INCDIR}/gnu/stubs-64.h
|
||||
cp ${STAGING_INCDIR}/bits/long-double-32.h ${STAGING_INCDIR}/bits/long-double-64.h
|
||||
}
|
||||
|
||||
def gnu_efi_arch(d):
|
||||
import re
|
||||
tarch = d.getVar("TARGET_ARCH")
|
||||
if re.match("i[3456789]86", tarch):
|
||||
return "ia32"
|
||||
return tarch
|
||||
|
||||
do_compile:prepend() {
|
||||
unset LDFLAGS
|
||||
}
|
||||
|
||||
EXTRA_OEMAKE = "'ARCH=${@gnu_efi_arch(d)}' 'CC=${CC}' 'AS=${AS}' 'LD=${LD}' 'AR=${AR}' \
|
||||
'RANLIB=${RANLIB}' 'OBJCOPY=${OBJCOPY}' 'PREFIX=${prefix}' 'LIBDIR=${libdir}' \
|
||||
"
|
||||
|
||||
# gnu-efi's Makefile treats prefix as toolchain prefix, so don't
|
||||
# export it.
|
||||
prefix[unexport] = "1"
|
||||
|
||||
do_install() {
|
||||
oe_runmake install INSTALLROOT="${D}"
|
||||
}
|
||||
|
||||
FILES:${PN} += "${libdir}/*.lds ${libdir}/gnuefi/apps"
|
||||
|
||||
# 64-bit binaries are expected for EFI when targeting X32
|
||||
INSANE_SKIP:${PN}-dev:append:linux-gnux32 = " arch"
|
||||
INSANE_SKIP:${PN}-dev:append:linux-muslx32 = " arch"
|
||||
|
||||
BBCLASSEXTEND = "native"
|
||||
|
||||
# It doesn't support sse, its make.defaults sets:
|
||||
# CFLAGS += -mno-mmx -mno-sse
|
||||
# So also remove -mfpmath=sse from TUNE_CCARGS
|
||||
TUNE_CCARGS:remove = "-mfpmath=sse"
|
||||
|
||||
python () {
|
||||
ccargs = d.getVar('TUNE_CCARGS').split()
|
||||
if '-mx32' in ccargs:
|
||||
# use x86_64 EFI ABI
|
||||
ccargs.remove('-mx32')
|
||||
ccargs.append('-m64')
|
||||
d.setVar('TUNE_CCARGS', ' '.join(ccargs))
|
||||
}
|
||||
Reference in New Issue
Block a user