qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* QEMU build dependencies for new board
@ 2020-11-23 17:29 Ancuta, Cristian
  2020-11-23 18:49 ` Peter Maydell
  0 siblings, 1 reply; 4+ messages in thread
From: Ancuta, Cristian @ 2020-11-23 17:29 UTC (permalink / raw)
  To: qemu-devel@nongnu.org

[-- Attachment #1: Type: text/plain, Size: 1731 bytes --]

Hi all,

I've implemented a new CPU target in ./target/arch_name and I'm also trying to add a new board to emulate that target on in system mode in ./hw/arch_name. The board is based on the versatilepb, but I'll gradually be removing all the arm implementation from it, aiming for a minimal implementation with just my custom cpu architecture, system bus, main memory and an UART.

I've also added all the necessary stuff required by minikconf.py in ./default-configs/<target>-softmmu.mak, ./hw/<arch>/Kconfig and a source entry in ./hw/Kconfig.

Here's what the ./hw/<arch>/Kconfig file looks like

config NEW_BOARD
                  bool
                  select PL011  # UART
                  select PL080  # DMA controller

The problem is that the build system is bringing in other files that I didn't specify (CONFIG_A15MPCORE, CONFIG_A15MPCORE, CONFIG_9MPCORE, etc. ), and I'm not sure how they're ending up in ./build/<target>-softmmu/config_device.mak:

CONFIG_A15MPCORE=y
CONFIG_A9MPCORE=y
CONFIG_A9SCU=y
CONFIG_A9_GTIMER=y
CONFIG_ARM11MPCORE=y
CONFIG_ARM11SCU=y
CONFIG_ARM_GIC=y
CONFIG_ARM_MPTIMER=y
CONFIG_ARM_TIMER=y
CONFIG_BITBANG_I2C=y
CONFIG_DS1338=y
CONFIG_FRAMEBUFFER=y
CONFIG_I2C=y
CONFIG_LAN9118=y
CONFIG_LSI_SCSI_PCI=y
CONFIG_MSI_NONBROKEN=y
CONFIG_<NEW_BOARD>=y
CONFIG_PCI=y
CONFIG_PL011=y
CONFIG_PL031=y
CONFIG_PL041=y
CONFIG_PL050=y
CONFIG_PL061=y
CONFIG_PL080=y
CONFIG_PL110=y
CONFIG_PL181=y
CONFIG_PL310=y
CONFIG_PS2=y
CONFIG_PTIMER=y
CONFIG_SCSI=y
CONFIG_SD=y


And because a15mpcore.c is trying to include "kvm_arm.h" from /target/arm which I don't include in my build, it obviously doesn't compile.

Any help would be appreciated

Thanks,
Cristian

[-- Attachment #2: Type: text/html, Size: 7766 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-11-24 15:52 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-11-23 17:29 QEMU build dependencies for new board Ancuta, Cristian
2020-11-23 18:49 ` Peter Maydell
2020-11-24 15:47   ` Ancuta, Cristian
2020-11-24 15:51     ` Peter Maydell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).