Commit Graph

11 Commits

Author SHA1 Message Date
Vagrant Cascadian ddf891909a roms/seabios-hppa: Use consistent date and remove hostname.
Two issues break reproducibility; the time and hostname get embedded
in the resulting seabios binary.

Simply drop the hostname from the embedded version string, as it
shouldn't be needed in Debian package builds.

Use the SOURCE_DATE_EPOCH environment variable to set the build date
rather than the current time:

  https://reproducible-builds.org/docs/source-date-epoch/

Gbp-Pq: Name seabios-hppa-use-consistent-date-and-remove-hostname.patch
Signed-off-by: Cong Liu <liucong2@kylinos.cn>
2022-11-09 22:24:23 +08:00
Vagrant Cascadian 967217afcc roms/openbios: Use SOURCE_DATE_EPOCH in Makefile.
Embedding the build time breaks reproducibility. Instead, use the date
specified by the SOURCE_DATE_EPOCH environment variable:

  https://reproducible-builds.org/docs/source-date-epoch/

This patch relies on features of GNU date, and will need further
changes for portability to other systems.

Gbp-Pq: Name openbios-use-source_date_epoch-in-makefile.patch
Signed-off-by: Cong Liu <liucong2@kylinos.cn>
2022-11-09 22:24:22 +08:00
Michael Tokarev d950231899 openbios: do not error-out array-bounds warning
gcc-12.2 produces an apparently wrong warning for this file:

roms/openbios/arch/ppc/qemu/init.c:400:10: error: \
 array subscript 0 is outside array bounds of ‘uint32_t[0]’ {aka ‘unsigned int[]’} \
 [-Werror=array-bounds]
  400 |     *dsi = 0x48002002;
      |     =====^===========

Turn this particular -Werror back into warning. Gcc is apparently wrong here.

index e40385a70b..2e214aa079 100644

Gbp-Pq: Name openbios-array-bounds-gcc12.patch
Signed-off-by: Cong Liu <liucong2@kylinos.cn>
2022-11-09 22:24:22 +08:00
Debian QEMU Team 4b3985ec1c openbios-array-bounds
Gbp-Pq: Name openbios-array-bounds.diff
Signed-off-by: Cong Liu <liucong2@kylinos.cn>
2022-11-09 22:24:22 +08:00
Debian QEMU Team a06187536c openbios-address-of-packet-member
Gbp-Pq: Name openbios-address-of-packet-member.patch
Signed-off-by: Cong Liu <liucong2@kylinos.cn>
2022-11-09 22:24:22 +08:00
Michael Tokarev 62830bfba1 Note missing module package name
Debian ships different modules in different packages.
By default qemu ignores the fact that it can not load
a module, pretending this module never existed.
Give a useful hint about the package where the module
in question resides.

This is a hack, but it makes qemu a bit more user-friendly.

Gbp-Pq: Name note-missing-module-pkg-name.diff
Signed-off-by: Cong Liu <liucong2@kylinos.cn>
2022-11-09 22:24:22 +08:00
Michael Tokarev 59164a8de4 [PATCH, HACK]: linux-user: handle binfmt-misc P flag as a separate exe name
Updated: Wed, 31 Aug 2022 12:30:17 +0300

A hackish way to distinguish the case when qemu-user binary is executed
using in-kernel binfmt-misc subsystem with P flag (preserve argv).
We register binfmt interpreter under name /usr/libexec/qemu-binfmt/qemu-foo-binfmt-P
(which is just a symlink to ../../bin/qemu-foo), and if run like that,
qemu-user binary will "know" it should interpret argv[1] & argv[2]
in a special way.

Gbp-Pq: Name linux-user-binfmt-P.diff
Signed-off-by: Cong Liu <liucong2@kylinos.cn>
2022-11-09 22:24:21 +08:00
Michael Tokarev ad73066ff7 do not include pc-bios/meson.build from main build as we build all firmware separately
pc-bios/meson.build tries to link various firmware files to the build
directory, but we DFSG-removed them so the build fails to find them.
Just disable entering the subdir entirely since we buile all the
necessary firmware in d/rules anyway.

Gbp-Pq: Name skip-meson-pc-bios.diff
Signed-off-by: Cong Liu <liucong2@kylinos.cn>
2022-11-09 22:24:21 +08:00
Michael Tokarev 41cc5cf216 set default machine type to be microvm if CONFIG_MICROVM is defined
Debian-Specific: yes

Gbp-Pq: Name microvm-default-machine-type.patch
Signed-off-by: Cong Liu <liucong2@kylinos.cn>
2022-11-09 22:24:21 +08:00
Cong Liu de7fb444d6 build for openkylin
Signed-off-by: Cong Liu <liucong2@kylinos.cn>
2022-11-09 22:24:21 +08:00
Cong Liu 60210331fb New upstream version 7.1.0 2022-11-03 14:19:34 +08:00