public inbox for cip-dev@lists.cip-project.org
 help / color / mirror / Atom feed
From: Jan Kiszka <jan.kiszka@siemens.com>
To: cip-dev <cip-dev@lists.cip-project.org>
Subject: [isar-cip-core][PATCH] gnu-efi: Drop self-built version for trixie
Date: Mon, 16 Mar 2026 13:31:12 +0100	[thread overview]
Message-ID: <3331bf6f-b66a-4029-bc7a-ba0ddbc747b4@siemens.com> (raw)

From: Jan Kiszka <jan.kiszka@siemens.com>

Debian bug #1086705 has been backported to trixie as well. Drop our own
self-built version which is now breaking the build.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
---
 .../efibootguard/efibootguard_0.21-1+cip.bb   |  2 -
 .../0001-ARM32-Split-headers-and-code.patch   | 93 -------------------
 recipes-devtools/gnu-efi/gnu-efi_latest.bb    | 25 -----
 3 files changed, 120 deletions(-)
 delete mode 100644 recipes-devtools/gnu-efi/files/0001-ARM32-Split-headers-and-code.patch
 delete mode 100644 recipes-devtools/gnu-efi/gnu-efi_latest.bb

diff --git a/recipes-bsp/efibootguard/efibootguard_0.21-1+cip.bb b/recipes-bsp/efibootguard/efibootguard_0.21-1+cip.bb
index f5dd1933..b847b611 100644
--- a/recipes-bsp/efibootguard/efibootguard_0.21-1+cip.bb
+++ b/recipes-bsp/efibootguard/efibootguard_0.21-1+cip.bb
@@ -39,8 +39,6 @@ DEPENDS:buster   = "python-shtab"
 DEPENDS:bullseye = "python-shtab"
 DEPENDS:bookworm = "python-shtab"
 
-DEPENDS:trixie = "gnu-efi"
-
 # needed for buster, bullseye could use compat >= 13
 python() {
     arch = d.getVar('DISTRO_ARCH')
diff --git a/recipes-devtools/gnu-efi/files/0001-ARM32-Split-headers-and-code.patch b/recipes-devtools/gnu-efi/files/0001-ARM32-Split-headers-and-code.patch
deleted file mode 100644
index 2f15d246..00000000
--- a/recipes-devtools/gnu-efi/files/0001-ARM32-Split-headers-and-code.patch
+++ /dev/null
@@ -1,93 +0,0 @@
-From 24a4cd0e5653fd84b004c00c808c45cc3fb7a7e2 Mon Sep 17 00:00:00 2001
-From: Callum Farmer <gmbr3@opensuse.org>
-Date: Mon, 23 Sep 2024 16:51:49 +0100
-Subject: [PATCH] ARM32: Split headers and code
-
-* Force code to be at known dest of 4096
-* Move _start into .text
-* Load the _start symbol address and then minus 4096 to get the load
-  address
-
-Signed-off-by: Callum Farmer <gmbr3@opensuse.org>
----
- gnuefi/crt0-efi-arm.S  | 21 +++++++++++----------
- gnuefi/elf_arm_efi.lds |  1 +
- 2 files changed, 12 insertions(+), 10 deletions(-)
-
-diff --git a/gnuefi/crt0-efi-arm.S b/gnuefi/crt0-efi-arm.S
-index 9c2c467..ad02ca1 100644
---- a/gnuefi/crt0-efi-arm.S
-+++ b/gnuefi/crt0-efi-arm.S
-@@ -45,11 +45,11 @@ optional_header:
- 	.2byte	0x10b				// PE32+ format
- 	.byte	0x02				// MajorLinkerVersion
- 	.byte	0x14				// MinorLinkerVersion
--	.4byte	_etext - _start		// SizeOfCode
-+	.4byte	_text_size - ImageBase		// SizeOfCode
- 	.4byte	_alldata_size - ImageBase		// SizeOfInitializedData
- 	.4byte	0				// SizeOfUninitializedData
--	.4byte	_start - ImageBase		// AddressOfEntryPoint
--	.4byte	_start - ImageBase		// BaseOfCode
-+	.4byte	_text - ImageBase		// AddressOfEntryPoint
-+	.4byte	_text - ImageBase		// BaseOfCode
- 	.4byte	_reloc - ImageBase		// BaseOfData
- 
- extra_header_fields:
-@@ -67,7 +67,7 @@ extra_header_fields:
- 	.4byte	_image_end - ImageBase		// SizeOfImage
- 
- 	// Everything before the kernel image is considered part of the header
--	.4byte	_start - ImageBase		// SizeOfHeaders
-+	.4byte	_text - ImageBase		// SizeOfHeaders
- 	.4byte	0				// CheckSum
- 	.2byte	EFI_SUBSYSTEM			// Subsystem
- 	.2byte	0				// DllCharacteristics
-@@ -100,10 +100,10 @@ extra_header_fields:
- section_table:
- 
- 	.ascii	".text\0\0\0"
--	.4byte	_evtext - _start // VirtualSize
--	.4byte	_start - ImageBase	// VirtualAddress
--	.4byte	_etext - _start		// SizeOfRawData
--	.4byte	_start - ImageBase	// PointerToRawData
-+	.4byte	_text_vsize - ImageBase // VirtualSize
-+	.4byte	_text - ImageBase	// VirtualAddress
-+	.4byte	_text_size - ImageBase		// SizeOfRawData
-+	.4byte	_text - ImageBase	// PointerToRawData
- 	.4byte	0		// PointerToRelocations (0 for executables)
- 	.4byte	0		// PointerToLineNumbers (0 for executables)
- 	.2byte	0		// NumberOfRelocations  (0 for executables)
-@@ -148,7 +148,7 @@ section_table:
- 	.2byte	0			// NumberOfLineNumbers
- 	.4byte	0x40000040		// Characteristics (section flags)
- 
--.balign 256
-+.text
- .globl	_start
- .type _start,%function
- _start:
-@@ -159,7 +159,8 @@ _start:
- 	adr		r1, .L_DYNAMIC
- 	ldr		r0, [r1]
- 	add		r1, r0, r1
--	adr		r0, ImageBase
-+	adr		r0, _start
-+	sub		r0, r0, #0x1000
- 	bl		_relocate
- 	teq		r0, #0
- 	bne		0f
-diff --git a/gnuefi/elf_arm_efi.lds b/gnuefi/elf_arm_efi.lds
-index afe17af..b7e3fb1 100644
---- a/gnuefi/elf_arm_efi.lds
-+++ b/gnuefi/elf_arm_efi.lds
-@@ -5,6 +5,7 @@ SECTIONS
- {
-   .text 0 : {
-     *(.text.head)
-+    . = 0x1000;
-     _text = .;
-     *(.text)
-     *(.text.*)
--- 
-2.43.0
-
diff --git a/recipes-devtools/gnu-efi/gnu-efi_latest.bb b/recipes-devtools/gnu-efi/gnu-efi_latest.bb
deleted file mode 100644
index 2272a2b9..00000000
--- a/recipes-devtools/gnu-efi/gnu-efi_latest.bb
+++ /dev/null
@@ -1,25 +0,0 @@
-#
-# CIP Core, generic profile
-#
-# Copyright (c) Siemens AG, 2023
-#
-# Authors:
-#  Jan Kiszka <jan.kiszka@siemens.com>
-#
-# SPDX-License-Identifier: MIT
-#
-
-inherit dpkg
-
-CHANGELOG_V="<orig-version>+cip"
-
-SRC_URI = "apt://${BPN}"
-SRC_URI += "file://0001-ARM32-Split-headers-and-code.patch;apply=no"
-
-do_prepare_build() {
-	deb_add_changelog
-
-	cd ${S}
-	quilt import -f ${WORKDIR}/*.patch
-	quilt push -a
-}
-- 
2.47.3


                 reply	other threads:[~2026-03-16 12:31 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3331bf6f-b66a-4029-bc7a-ba0ddbc747b4@siemens.com \
    --to=jan.kiszka@siemens.com \
    --cc=cip-dev@lists.cip-project.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox