CONFIG_ETH_QEMU_EXTRA_ARGS

Extra arguments to QEMU -nic option

Type: string

Help

Extra arguments passed to QEMU -nic option when Ethernet Networking
is enabled. Typically this is used to set the network MAC address of
Zephyr instance. This option can contain multiple QEMU option
arguments. Each QEMU argument must be separated by comma "," and no
spaces between arguments. Example: "mac=02:03:04:f0:0d:01" or
"mac=02:03:04:f0:0d:01,downscript=no"

Direct dependencies

NET_QEMU_ETHERNET && NET_L2_ETHERNET

(Includes any dependencies from ifs and menus.)

Default

  • “”

Kconfig definition

At <Zephyr>/drivers/ethernet/Kconfig:35

Included via <Zephyr>/Kconfig:8<Zephyr>/Kconfig.zephyr:42<Zephyr>/drivers/Kconfig:20

Menu path: (Top) → Device Drivers → Ethernet Drivers

config ETH_QEMU_EXTRA_ARGS
    string "Extra arguments to QEMU -nic option"
    default ""
    depends on NET_QEMU_ETHERNET && NET_L2_ETHERNET
    help
      Extra arguments passed to QEMU -nic option when Ethernet Networking
      is enabled. Typically this is used to set the network MAC address of
      Zephyr instance. This option can contain multiple QEMU option
      arguments. Each QEMU argument must be separated by comma "," and no
      spaces between arguments. Example: "mac=02:03:04:f0:0d:01" or
      "mac=02:03:04:f0:0d:01,downscript=no"

(The ‘depends on’ condition includes propagated dependencies from ifs and menus.)