Skip to content

Commit 87bdc15

Browse files
author
Valeriy Khorunzhin
committed
patch
Signed-off-by: Valeriy Khorunzhin <valeriy.khorunzhin@flant.com>
1 parent 9e591c1 commit 87bdc15

4 files changed

Lines changed: 15 additions & 51 deletions

File tree

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
diff --git a/scripts/layoutrom.py b/scripts/layoutrom.py
2+
index 6616721..4f655dc 100755
3+
--- a/scripts/layoutrom.py
4+
+++ b/scripts/layoutrom.py
5+
@@ -564,7 +564,7 @@ def parseObjDump(file, fileid):
6+
7+
if state == 'section':
8+
try:
9+
- idx, name, size, vma, lma, fileoff, align = line.split()
10+
+ idx, name, size, vma, lma, fileoff, align, *_flags = line.split()
11+
if align[:3] != '2**':
12+
continue
13+
section = Section()

images/qemu/patches/seabios/002-layoutrom-handle-missing-sections.patch

Lines changed: 0 additions & 46 deletions
This file was deleted.
Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,2 @@
11
# 001-isa-debug-port-no-bootable-device-message.patch
22
If SeaBIOS cannot find a bootable device, output "No bootable device." to the debug device at address 0x403 in addition to the normal console message.
3-
4-
# 002-layoutrom-handle-missing-sections.patch
5-
Teach `layoutrom.py` to skip relocations and anchor sections that are absent in `objdump` output from newer toolchains so `make -C roms bios` can finish successfully.

images/qemu/werf.inc.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ shell:
3535
mkdir -p ~/.ssh && echo "StrictHostKeyChecking accept-new" > ~/.ssh/config
3636
git clone --depth=1 $(cat /run/secrets/SOURCE_REPO)/{{ $gitRepoUrl }} --branch {{ $version }} /src/{{ $gitRepoName }}-{{ $version }}
3737
38-
echo "12"
38+
echo "123"
3939
4040
cd /src/{{ $gitRepoName }}-{{ $version }}
4141
@@ -67,7 +67,7 @@ shell:
6767
echo "Apply SeaBIOS patches"
6868
for p in /patches/seabios/*.patch ; do
6969
[ -f "$p" ] || continue
70-
git -C roms/seabios apply --check --ignore-space-change --ignore-whitespace "$p" >/dev/null 2>&1 || continue
70+
git -C roms/seabios apply --check --ignore-space-change --ignore-whitespace "$p" >/dev/null 2>&1 || (echo "FAIL" ; exit 1)
7171
echo -n "Apply ${p} to roms/seabios ... "
7272
git -C roms/seabios apply --ignore-space-change --ignore-whitespace "$p" && echo OK || (echo FAIL ; exit 1)
7373
done

0 commit comments

Comments
 (0)