Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ pipeline {
agent any

parameters {
string(name: 'PR_BRANCHES', defaultValue: '', description: 'Comma separated list of additional pull request branches (e.g. meta-gyroidos=PR-177,meta-gyroidos-nxp=PR-13,gyroidos_build=PR-97)')
string(name: 'CI_LIB_VERSION', defaultValue: 'main', description: 'Version of gyroidos_ci_common to use for this build')
string(name: 'PR_BRANCHES', defaultValue: '', description: 'Comma separated list of additional pull request branches (e.g. meta-gyroidos=PR-177,meta-gyroidos-nxp=PR-13,gyroidos_build=PR-97)')
}

stages {
Expand All @@ -11,21 +12,22 @@ pipeline {
script {
REPO_NAME = determineRepoName()

if (CHANGE_TARGET != null) {
if (env.CHANGE_TARGET != null) {
// in case this is a PR build
// set the BASE_BRANCH to the target
// e.g. PR-123 -> kirkstone
BASE_BRANCH = CHANGE_TARGET
BASE_BRANCH = env.CHANGE_TARGET
} else {
// in case this is a regular build
// let the BASE_BRANCH equal this branch
// e.g. kirkstone -> kirkstone
BASE_BRANCH = BRANCH_NAME
BASE_BRANCH = env.BRANCH_NAME
}
}

build job: "../gyroidos/${BASE_BRANCH}", wait: true, parameters: [
string(name: "PR_BRANCHES", value: "${REPO_NAME}=${BRANCH_NAME},${PR_BRANCHES}")
string(name: "CI_LIB_VERSION", value: CI_LIB_VERSION),
string(name: "PR_BRANCHES", value: "${REPO_NAME}=${env.BRANCH_NAME},${env.PR_BRANCHES}")
]
}
}
Expand Down
2 changes: 1 addition & 1 deletion recipes-kernel/efitools/efitools-common.inc
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=e28f66b16cb46be47b20a4cdfe6e99a1"

SRC_URI = "https://git.kernel.org/pub/scm/linux/kernel/git/jejb/efitools.git/snapshot/efitools_${PV}.tar.gz"
SRC_URI += "file://0001-lib-console-compatibly-fix-to-upstream-change-of-gnu.patch"
SRC_URI += "file://0001-Fix-includes-for-strptime.patch"
SRC_URI += "file://0001-flash-var-sign-efi-sig-list-Fix-include-for-strptime.patch"

S = "${WORKDIR}/efitools_${PV}"
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
From cfba1434e3aea571b9be9e2315a8df66d0c8f5a4 Mon Sep 17 00:00:00 2001
From: Felix Wruck <felix.wruck@aisec.fraunhofer.de>
Date: Fri, 19 Sep 2025 10:49:49 +0200
Subject: [PATCH] flash-var, sign-efi-sig-list: Fix include for strptime
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Currently, builds with strict GCC flags fail due to an
"error: implicit declaration of function ‘strptime’".

Therefore, add the missing #define _XOPEN_SOURCE in flash-var.c
and sign-efi-sig-list.c before including time.h.

Signed-off-by: Felix Wruck <felix.wruck@aisec.fraunhofer.de>
---
flash-var.c | 1 +
sign-efi-sig-list.c | 1 +
2 files changed, 2 insertions(+)

diff --git a/flash-var.c b/flash-var.c
index aa10ae6..d5f5f2f 100644
--- a/flash-var.c
+++ b/flash-var.c
@@ -1,3 +1,4 @@
+#define _XOPEN_SOURCE
#include <stdlib.h>
#include <stdint.h>
#include <sys/types.h>
diff --git a/sign-efi-sig-list.c b/sign-efi-sig-list.c
index 94bd7d4..c096c70 100644
--- a/sign-efi-sig-list.c
+++ b/sign-efi-sig-list.c
@@ -3,6 +3,7 @@
*
* see COPYING file
*/
+#define _XOPEN_SOURCE
#include <stdint.h>
#define __STDC_VERSION__ 199901L
#include <efi.h>
--
2.47.3