mirror of
https://git.yoctoproject.org/meta-arm
synced 2026-07-17 16:17:09 +00:00
Compare commits
16 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| b75b8ce1ac | |||
| b1fe8443a7 | |||
| d13be36099 | |||
| a07dec8ad8 | |||
| 58dbad789d | |||
| 79b9225e24 | |||
| 655124426a | |||
| 08c44df351 | |||
| 2d86376931 | |||
| 6954705272 | |||
| 5c09684863 | |||
| d21ded082c | |||
| 4158478279 | |||
| ce07298783 | |||
| 75e7f371f5 | |||
| 3a2b7d55c7 |
+15
-2
@@ -1,6 +1,13 @@
|
||||
image: ghcr.io/siemens/kas/kas
|
||||
image: ghcr.io/siemens/kas/kas:3.2
|
||||
|
||||
variables:
|
||||
CPU_REQUEST: ""
|
||||
DEFAULT_TAG: ""
|
||||
# These are needed as the k8s executor doesn't respect the container entrypoint
|
||||
# by default
|
||||
FF_USE_LEGACY_KUBERNETES_EXECUTION_STRATEGY: 0
|
||||
FF_KUBERNETES_HONOR_ENTRYPOINT: 1
|
||||
|
||||
# First do a common bootstrap, and then build all the targets
|
||||
stages:
|
||||
- prep
|
||||
- bootstrap
|
||||
@@ -8,6 +15,8 @@ stages:
|
||||
|
||||
# Common job fragment to get a worker ready
|
||||
.setup:
|
||||
tags:
|
||||
- $DEFAULT_TAG
|
||||
stage: build
|
||||
variables:
|
||||
KAS_WORK_DIR: $CI_PROJECT_DIR/work
|
||||
@@ -26,6 +35,8 @@ stages:
|
||||
# Generalised fragment to do a Kas build
|
||||
.build:
|
||||
extends: .setup
|
||||
variables:
|
||||
KUBERNETES_CPU_REQUEST: $CPU_REQUEST
|
||||
interruptible: true
|
||||
script:
|
||||
- KASFILES=$(./ci/jobs-to-kas $CI_JOB_NAME)
|
||||
@@ -56,6 +67,8 @@ n1sdp/bootstrap:
|
||||
# What percentage of machines in the layer do we build
|
||||
machine-coverage:
|
||||
stage: bootstrap
|
||||
tags:
|
||||
- $DEFAULT_TAG
|
||||
script:
|
||||
- ./ci/check-machine-coverage
|
||||
coverage: '/Coverage: \d+/'
|
||||
|
||||
@@ -1,14 +1,10 @@
|
||||
# N1SDP specific SCP configurations and build instructions
|
||||
|
||||
SRCREV_scp = "fd7c83561a7d76c7681d5d017fb23aa3664c028c"
|
||||
SRCREV_cmsis = "refs/tags/5.2.0"
|
||||
SCP_PLATFORM = "n1sdp"
|
||||
SCP_LOG_LEVEL = "INFO"
|
||||
|
||||
COMPATIBLE_MACHINE_n1sdp = "n1sdp"
|
||||
|
||||
PV = "2.6+git${SRCPV}"
|
||||
|
||||
DEPENDS += "fiptool-native"
|
||||
DEPENDS += "virtual/trusted-firmware-a"
|
||||
|
||||
|
||||
@@ -1,13 +1,6 @@
|
||||
# TC0 specicif SCP configuration
|
||||
|
||||
# Intermediate SHA with 2.6 baseline version
|
||||
SRCREV_scp = "ba1db5fb0ee4a520836722f7a694177d461ab716"
|
||||
# 5.2.0 tag commit
|
||||
SRCREV_cmsis = "80cc44bba16cb4c8f495b7aa9709d41ac50e9529"
|
||||
|
||||
COMPATIBLE_MACHINE = "tc0"
|
||||
|
||||
SCP_PLATFORM = "tc0"
|
||||
FW_TARGETS = "scp"
|
||||
|
||||
PV = "2.6+git${SRCPV}"
|
||||
|
||||
@@ -21,7 +21,7 @@ require gem5-aarch64-native.inc
|
||||
require gem5-native.inc
|
||||
|
||||
# Get rid of compiler errors when building protobuf
|
||||
GEM5_SCONS_ARGS_append = " CCFLAGS_EXTRA='-Wno-error=unused-variable' --verbose"
|
||||
GEM5_SCONS_ARGS_append = " CCFLAGS_EXTRA='-Wno-error=unused-variable -Wno-error=array-bounds -Wno-error=parentheses -Wno-type-limits' --verbose"
|
||||
|
||||
# Get rid of linker errors and have a faster link process
|
||||
GEM5_SCONS_ARGS_append = " LDFLAGS_EXTRA='${BUILD_LDFLAGS}' \
|
||||
|
||||
+54
@@ -0,0 +1,54 @@
|
||||
Upstream-Status: Backport
|
||||
Signed-off-by: Jon Mason <jon.mason@arm.com>
|
||||
|
||||
From e33a814e772cdc36436c8c188d8c42d019fda639 Mon Sep 17 00:00:00 2001
|
||||
From: Dirk Mueller <dmueller@suse.com>
|
||||
Date: Tue, 14 Jan 2020 18:53:41 +0100
|
||||
Subject: [PATCH] scripts/dtc: Remove redundant YYLOC global declaration
|
||||
|
||||
gcc 10 will default to -fno-common, which causes this error at link
|
||||
time:
|
||||
|
||||
(.text+0x0): multiple definition of `yylloc'; dtc-lexer.lex.o (symbol from plugin):(.text+0x0): first defined here
|
||||
|
||||
This is because both dtc-lexer as well as dtc-parser define the same
|
||||
global symbol yyloc. Before with -fcommon those were merged into one
|
||||
defintion. The proper solution would be to to mark this as "extern",
|
||||
however that leads to:
|
||||
|
||||
dtc-lexer.l:26:16: error: redundant redeclaration of 'yylloc' [-Werror=redundant-decls]
|
||||
26 | extern YYLTYPE yylloc;
|
||||
| ^~~~~~
|
||||
In file included from dtc-lexer.l:24:
|
||||
dtc-parser.tab.h:127:16: note: previous declaration of 'yylloc' was here
|
||||
127 | extern YYLTYPE yylloc;
|
||||
| ^~~~~~
|
||||
cc1: all warnings being treated as errors
|
||||
|
||||
which means the declaration is completely redundant and can just be
|
||||
dropped.
|
||||
|
||||
Signed-off-by: Dirk Mueller <dmueller@suse.com>
|
||||
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
|
||||
[robh: cherry-pick from upstream]
|
||||
Cc: stable@vger.kernel.org
|
||||
Signed-off-by: Rob Herring <robh@kernel.org>
|
||||
---
|
||||
scripts/dtc/dtc-lexer.l | 1 -
|
||||
1 file changed, 1 deletion(-)
|
||||
|
||||
diff --git a/scripts/dtc/dtc-lexer.l b/scripts/dtc/dtc-lexer.l
|
||||
index 5c6c3fd557d7..b3b7270300de 100644
|
||||
--- a/scripts/dtc/dtc-lexer.l
|
||||
+++ b/scripts/dtc/dtc-lexer.l
|
||||
@@ -23,7 +23,6 @@ LINECOMMENT "//".*\n
|
||||
#include "srcpos.h"
|
||||
#include "dtc-parser.tab.h"
|
||||
|
||||
-YYLTYPE yylloc;
|
||||
extern bool treesource_error;
|
||||
|
||||
/* CAUTION: this will stop working if we ever use yyless() or yyunput() */
|
||||
--
|
||||
2.30.2
|
||||
|
||||
@@ -8,6 +8,7 @@ SRC_URI_append = " \
|
||||
file://defconfig \
|
||||
file://0001-drm-Add-component-aware-simple-encoder.patch \
|
||||
file://0002-swap-red-and-blue-colors-in-HDLCD-driver.patch \
|
||||
file://0001-scripts-dtc-Remove-redundant-YYLOC-global-declaratio.patch \
|
||||
"
|
||||
|
||||
KCONFIG_MODE = "--alldefconfig"
|
||||
|
||||
@@ -4,14 +4,13 @@ KBRANCH ?= "latest-4.19-armlt-19.01"
|
||||
|
||||
require recipes-kernel/linux/linux-yocto.inc
|
||||
|
||||
|
||||
SRCREV_machine ?= "e97e8d868aba53467039dbef3b7436c857433ae3"
|
||||
|
||||
SRCREV_meta ?= "ad6f8b357720ca8167a090713b7746230cf4b314"
|
||||
|
||||
SRC_URI = "git://git.linaro.org/landing-teams/working/arm/kernel-release.git;name=machine;branch=${KBRANCH}; \
|
||||
git://git.yoctoproject.org/yocto-kernel-cache;type=kmeta;name=meta;branch=yocto-4.19;destsuffix=${KMETA} \
|
||||
file://0001-menuconfig-mconf-cfg-Allow-specification-of-ncurses-location.patch \
|
||||
file://0001-scripts-dtc-Remove-redundant-YYLOC-global-declaratio.patch \
|
||||
"
|
||||
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=bbea815ee2795b2f4230826c0c6b8814"
|
||||
|
||||
@@ -13,6 +13,7 @@ KBRANCH = "n1sdp"
|
||||
|
||||
SRC_URI = "git://git.linaro.org/landing-teams/working/arm/kernel-release.git;nobranch=1 \
|
||||
file://0001-menuconfig-mconf-cfg-Allow-specification-of-ncurses-location.patch \
|
||||
file://0001-scripts-dtc-Remove-redundant-YYLOC-global-declaratio.patch \
|
||||
"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=bbea815ee2795b2f4230826c0c6b8814"
|
||||
|
||||
|
||||
@@ -6,7 +6,9 @@ SRCREV_machine = "d4f3318ed8fab6316cb7a269b8f42306632a3876"
|
||||
SRCREV_meta = "8d0ed83a864cc91eef4d2abbc90f13d4ecd1c213"
|
||||
|
||||
SRC_URI = "git://git.yoctoproject.org/linux-yocto.git;name=machine;branch=${KBRANCH}; \
|
||||
git://git.yoctoproject.org/yocto-kernel-cache;type=kmeta;name=meta;branch=yocto-5.4;destsuffix=${KMETA}"
|
||||
git://git.yoctoproject.org/yocto-kernel-cache;type=kmeta;name=meta;branch=yocto-5.4;destsuffix=${KMETA} \
|
||||
file://0001-scripts-dtc-Remove-redundant-YYLOC-global-declaratio.patch \
|
||||
"
|
||||
|
||||
LINUX_VERSION = "5.3.18"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=bbea815ee2795b2f4230826c0c6b8814"
|
||||
|
||||
@@ -14,8 +14,5 @@ LICENSE_PATH += "${LAYERDIR}/custom-licenses"
|
||||
LAYERDEPENDS_arm-toolchain = "core"
|
||||
LAYERSERIES_COMPAT_arm-toolchain = "zeus dunfell"
|
||||
|
||||
# do not error out on bbappends for missing recipes
|
||||
BB_DANGLINGAPPENDS_WARNONLY = "true"
|
||||
|
||||
# These variables are used for armcompiler license
|
||||
BB_HASHBASE_WHITELIST_append = " ARM_TOOL_VARIANT ARMLMD_LICENSE_FILE LM_LICENSE_FILE"
|
||||
|
||||
@@ -4,6 +4,12 @@ BASEPV = "8.2"
|
||||
PV = "arm-${BASEPV}"
|
||||
CVE_VERSION = "${BASEPV}"
|
||||
|
||||
# CVE-2019-15847 is only relevant to POWER9 architecture
|
||||
CVE_CHECK_WHITELIST += "CVE-2019-15847"
|
||||
|
||||
# CVE-2021-37322 is in binutils < 2.32, not in gcc
|
||||
CVE_CHECK_WHITELIST += "CVE-2021-37322"
|
||||
|
||||
MMYY = "19.01"
|
||||
RELEASE = "20${MMYY}"
|
||||
PR = "r${RELEASE}"
|
||||
|
||||
@@ -9,6 +9,12 @@ RELEASE = "20${MMYY}"
|
||||
PR = "r${RELEASE}"
|
||||
BINV = "${BASEPV}.0"
|
||||
|
||||
# CVE-2019-15847 is only relevant to POWER9 architecture
|
||||
CVE_CHECK_WHITELIST += "CVE-2019-15847"
|
||||
|
||||
# CVE-2021-37322 is in binutils < 2.32, not in gcc
|
||||
CVE_CHECK_WHITELIST += "CVE-2021-37322"
|
||||
|
||||
FILESEXTRAPATHS =. "${FILE_DIRNAME}/gcc-${BASEPV}:${FILE_DIRNAME}/gcc-${BASEPV}/backport:"
|
||||
|
||||
DEPENDS =+ "mpfr gmp libmpc zlib flex-native"
|
||||
|
||||
@@ -5,6 +5,12 @@ require recipes-devtools/gcc/gcc-common.inc
|
||||
PV = "arm-9.2"
|
||||
CVE_VERSION = "9.2"
|
||||
|
||||
# CVE-2019-15847 is only relevant to POWER9 architecture
|
||||
CVE_CHECK_WHITELIST += "CVE-2019-15847"
|
||||
|
||||
# CVE-2021-37322 is in binutils < 2.32, not in gcc
|
||||
CVE_CHECK_WHITELIST += "CVE-2021-37322"
|
||||
|
||||
# BINV should be incremented to a revision after a minor gcc release
|
||||
|
||||
BINV = "9.2.1"
|
||||
|
||||
+10
-6
@@ -1,7 +1,7 @@
|
||||
From 2cb227cd8069c73242286f64183fb203f8d2618a Mon Sep 17 00:00:00 2001
|
||||
From faa0f712a67005ef0260f95eebe7c7c57a6f8360 Mon Sep 17 00:00:00 2001
|
||||
From: Khem Raj <raj.khem@gmail.com>
|
||||
Date: Fri, 29 Mar 2013 09:26:37 +0400
|
||||
Subject: [PATCH 12/36] gcc: Fix argument list too long error.
|
||||
Subject: [PATCH 12/39] gcc: Fix argument list too long error.
|
||||
|
||||
There would be an "Argument list too long" error when the
|
||||
build directory is longer than 200, this is caused by:
|
||||
@@ -17,24 +17,28 @@ $(sort list) doesn't need this.
|
||||
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
|
||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
|
||||
RP: gcc then added *.h and *.def additions to this list, breaking the original
|
||||
fix. Add the sort to the original gcc code, leaving the tr+sort to fix the original
|
||||
issue but include the new files too as reported by Zhuang <qiuguang.zqg@alibaba-inc.com>
|
||||
|
||||
Upstream-Status: Pending
|
||||
---
|
||||
gcc/Makefile.in | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/gcc/Makefile.in b/gcc/Makefile.in
|
||||
index 41f0f592ff4..0064a282488 100644
|
||||
index fef6c4c61e3..57cf7804f0a 100644
|
||||
--- a/gcc/Makefile.in
|
||||
+++ b/gcc/Makefile.in
|
||||
@@ -3537,7 +3537,7 @@ install-plugin: installdirs lang.install-plugin s-header-vars install-gengtype
|
||||
@@ -3538,7 +3538,7 @@ install-plugin: installdirs lang.install-plugin s-header-vars install-gengtype
|
||||
# We keep the directory structure for files in config or c-family and .def
|
||||
# files. All other files are flattened to a single directory.
|
||||
$(mkinstalldirs) $(DESTDIR)$(plugin_includedir)
|
||||
- headers=`echo $(PLUGIN_HEADERS) $$(cd $(srcdir); echo *.h *.def) | tr ' ' '\012' | sort -u`; \
|
||||
+ headers="$(sort $(PLUGIN_HEADERS) $$(cd $(srcdir); echo *.h *.def))"; \
|
||||
+ headers=`echo $(sort $(PLUGIN_HEADERS)) $$(cd $(srcdir); echo *.h *.def) | tr ' ' '\012' | sort -u`; \
|
||||
srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`; \
|
||||
for file in $$headers; do \
|
||||
if [ -f $$file ] ; then \
|
||||
--
|
||||
2.22.1
|
||||
2.25.1
|
||||
|
||||
|
||||
+69
@@ -0,0 +1,69 @@
|
||||
Upstream-Status: Backport
|
||||
Signed-off-by: Ross Burton <ross.burton@arm.com>
|
||||
|
||||
From 8aba6e5159273e2ed82d55780f35356262cb79c8 Mon Sep 17 00:00:00 2001
|
||||
From: Ross Burton <ross.burton@arm.com>
|
||||
Date: Tue, 8 Sep 2020 11:49:08 +0100
|
||||
Subject: [PATCH] tools/gen_module_code: atomically rewrite the generated files
|
||||
|
||||
The gen_module rule in rules.mk is marked as .PHONY, so make will
|
||||
execute it whenever it is mentioned. This results in gen_module_code
|
||||
being executed 64 times for a Juno build.
|
||||
|
||||
However in heavily parallel builds there's a good chance that
|
||||
gen_module_code is writing a file whilst the compiler is reading it
|
||||
because make also doesn't know what files are generated by
|
||||
gen_module_code.
|
||||
|
||||
The correct fix is to adjust the Makefiles so that the dependencies are
|
||||
correct but this isn't trivial, so band-aid the problem by atomically
|
||||
writing the generated files.
|
||||
|
||||
Change-Id: I82d44f9ea6537a91002e1f80de8861d208571630
|
||||
Signed-off-by: Ross Burton <ross.burton@arm.com>
|
||||
---
|
||||
tools/gen_module_code.py | 19 ++++++++++++++-----
|
||||
1 file changed, 14 insertions(+), 5 deletions(-)
|
||||
|
||||
diff --git a/tools/gen_module_code.py b/tools/gen_module_code.py
|
||||
index 7b3953845..ee099b713 100755
|
||||
--- a/tools/gen_module_code.py
|
||||
+++ b/tools/gen_module_code.py
|
||||
@@ -17,6 +17,7 @@
|
||||
import argparse
|
||||
import os
|
||||
import sys
|
||||
+import tempfile
|
||||
|
||||
DEFAULT_PATH = 'build/'
|
||||
|
||||
@@ -53,13 +54,21 @@ TEMPLATE_C = "/* This file was auto generated using {} */\n" \
|
||||
|
||||
def generate_file(path, filename, content):
|
||||
full_filename = os.path.join(path, filename)
|
||||
- with open(full_filename, 'a+') as f:
|
||||
- f.seek(0)
|
||||
- if f.read() != content:
|
||||
+
|
||||
+ try:
|
||||
+ with open(full_filename) as f:
|
||||
+ rewrite = f.read() != content
|
||||
+ except FileNotFoundError:
|
||||
+ rewrite = True
|
||||
+
|
||||
+ if rewrite:
|
||||
+ with tempfile.NamedTemporaryFile(prefix="gen-module-code",
|
||||
+ dir=path,
|
||||
+ delete=False,
|
||||
+ mode="wt") as f:
|
||||
print("[GEN] {}...".format(full_filename))
|
||||
- f.seek(0)
|
||||
- f.truncate()
|
||||
f.write(content)
|
||||
+ os.replace(f.name, full_filename)
|
||||
|
||||
|
||||
def generate_header(path, modules):
|
||||
--
|
||||
2.34.1
|
||||
|
||||
@@ -11,10 +11,12 @@ LIC_FILES_CHKSUM += "file://cmsis/LICENSE.txt;md5=e3fc50a88d0a364313df4b21ef20c2
|
||||
SRC_URI = "\
|
||||
git://github.com/ARM-software/SCP-firmware.git;protocol=https;name=scp;destsuffix=src;nobranch=1 \
|
||||
git://github.com/ARM-software/CMSIS_5.git;protocol=https;name=cmsis;destsuffix=src/cmsis;lfs=0;nobranch=1 \
|
||||
file://0001-tools-gen_module_code-atomically-rewrite-the-generat.patch \
|
||||
"
|
||||
|
||||
PV = "2.6+git${SRCPV}"
|
||||
SRCREV_scp = "fd7c83561a7d76c7681d5d017fb23aa3664c028c"
|
||||
SRCREV_cmsis = "refs/tags/5.2.0"
|
||||
SRCREV_cmsis = "80cc44bba16cb4c8f495b7aa9709d41ac50e9529"
|
||||
SRCREV_FORMAT = "scp_cmsis"
|
||||
|
||||
require scp-firmware.inc
|
||||
|
||||
@@ -24,7 +24,7 @@ SRC_URI[tfa.sha256sum] = "7c4c00a4f28d3cfbb235fd1a1fb28c4d2fc1d657c9301686e7d882
|
||||
# Those are used in trusted-firmware-a.inc if TFA_MBEDTLS is set to 1
|
||||
#
|
||||
|
||||
SRC_URI_MBEDTLS = "git://github.com/ARMmbed/mbedtls.git;name=mbedtls;protocol=https;destsuffix=git/mbedtls;branch=mbedtls-2.16"
|
||||
SRC_URI_MBEDTLS = "git://github.com/ARMmbed/mbedtls.git;name=mbedtls;protocol=https;destsuffix=git/mbedtls;branch=archive/mbedtls-2.16"
|
||||
|
||||
# mbed TLS v2.16.2
|
||||
SRCREV_mbedtls = "d81c11b8ab61fd5b2da8133aa73c5fe33a0633eb"
|
||||
|
||||
@@ -24,7 +24,7 @@ SRC_URI[tfa.sha256sum] = "7c4c00a4f28d3cfbb235fd1a1fb28c4d2fc1d657c9301686e7d882
|
||||
# Those are used in trusted-firmware-a.inc if TFA_MBEDTLS is set to 1
|
||||
#
|
||||
|
||||
SRC_URI_MBEDTLS = "git://github.com/ARMmbed/mbedtls.git;name=mbedtls;protocol=https;destsuffix=git/mbedtls;branch=mbedtls-2.16"
|
||||
SRC_URI_MBEDTLS = "git://github.com/ARMmbed/mbedtls.git;name=mbedtls;protocol=https;destsuffix=git/mbedtls;branch=archive/mbedtls-2.16"
|
||||
|
||||
# mbed TLS v2.16.2
|
||||
SRCREV_mbedtls = "d81c11b8ab61fd5b2da8133aa73c5fe33a0633eb"
|
||||
|
||||
@@ -24,7 +24,7 @@ SRC_URI[tfa.sha256sum] = "7c4c00a4f28d3cfbb235fd1a1fb28c4d2fc1d657c9301686e7d882
|
||||
# Those are used in trusted-firmware-a.inc if TFA_MBEDTLS is set to 1
|
||||
#
|
||||
|
||||
SRC_URI_MBEDTLS = "git://github.com/ARMmbed/mbedtls.git;name=mbedtls;protocol=https;destsuffix=git/mbedtls;branch=mbedtls-2.18"
|
||||
SRC_URI_MBEDTLS = "git://github.com/ARMmbed/mbedtls.git;name=mbedtls;protocol=https;destsuffix=git/mbedtls;branch=archive/mbedtls-2.18"
|
||||
|
||||
# mbed TLS v2.18.1
|
||||
SRCREV_mbedtls = "ca933c7e0c9e84738b168b6b0feb89af4183a60a"
|
||||
|
||||
@@ -16,7 +16,7 @@ COMPATIBLE_MACHINE ?= "invalid"
|
||||
ARCH = "arm64"
|
||||
|
||||
SRC_URI = " \
|
||||
git://android.googlesource.com/kernel/common.git;protocol=https;branch=android-4.19-q-release \
|
||||
git://android.googlesource.com/kernel/common.git;protocol=https;branch=deprecated/android-4.19-q-release \
|
||||
"
|
||||
|
||||
# ASB-2020-06-05_4.19-q-release tag commit
|
||||
|
||||
Reference in New Issue
Block a user