Skip to content

Commit

Permalink
Add QEMU_EVE_SERIAL variable to override SMBIOS serial number
Browse files Browse the repository at this point in the history
When we need to override QEMU serial number it is more convenient
to use a variable on make command line

Signed-off-by: Mikhail Malyshev <[email protected]>
  • Loading branch information
rucoder authored and eriknordmark committed Oct 30, 2023
1 parent aceb287 commit fe3146d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,7 @@ QEMU_OPTS_NET2=192.168.2.0/24
QEMU_OPTS_NET2_FIRST_IP=192.168.2.10

QEMU_MEMORY:=4096
QEMU_EVE_SERIAL?=31415926

PFLASH_amd64=y
PFLASH=$(PFLASH_$(ZARCH))
Expand All @@ -239,8 +240,8 @@ QEMU_TPM_DEVICE_riscv64=tpm-tis
QEMU_OPTS_TPM_Y_$(ZARCH)=-chardev socket,id=chrtpm,path=$(CURRENT_SWTPM)/swtpm-sock -tpmdev emulator,id=tpm0,chardev=chrtpm -device $(QEMU_TPM_DEVICE_$(ZARCH)),tpmdev=tpm0
QEMU_OPTS_TPM=$(QEMU_OPTS_TPM_$(TPM:%=Y)_$(ZARCH))

QEMU_OPTS_amd64=-smbios type=1,serial=31415926
QEMU_OPTS_arm64=-smbios type=1,serial=31415926 -drive file=fat:rw:$(dir $(DEVICETREE_DTB)),label=QEMU_DTB,format=vvfat
QEMU_OPTS_amd64=-smbios type=1,serial=$(QEMU_EVE_SERIAL)
QEMU_OPTS_arm64=-smbios type=1,serial=$(QEMU_EVE_SERIAL) -drive file=fat:rw:$(dir $(DEVICETREE_DTB)),label=QEMU_DTB,format=vvfat
QEMU_OPTS_riscv64=-kernel $(UBOOT_IMG)/u-boot.bin -device virtio-blk,drive=uefi-disk
QEMU_OPTS_COMMON= -m $(QEMU_MEMORY) -smp 4 -display none $(QEMU_OPTS_BIOS) \
-serial mon:stdio \
Expand Down

0 comments on commit fe3146d

Please sign in to comment.