CONFIG_BUILD_OUTPUT_EFI

Build as an EFI application

Type: bool

Help

Build as an EFI application.

This works by creating a "zephyr.efi" EFI binary containing a zephyr
image extracted from a built zephyr.elf file.  EFI applications are
relocatable, and cannot be placed at specific locations in memory.
Instead, the stub code will copy the embedded zephyr sections to the
appropriate locations at startup, clear any zero-filled (BSS, etc...)
areas, then jump into the 64 bit entry point.

Direct dependencies

X86_64

(Includes any dependencies from ifs and menus.)

Default

  • n

Kconfig definition

At <Zephyr>/Kconfig.zephyr:378

Included via <Zephyr>/Kconfig:8

Menu path: (Top) → Build and Link Features → Build Options

config BUILD_OUTPUT_EFI
    bool "Build as an EFI application"
    default n
    depends on X86_64
    help
      Build as an EFI application.

      This works by creating a "zephyr.efi" EFI binary containing a zephyr
      image extracted from a built zephyr.elf file.  EFI applications are
      relocatable, and cannot be placed at specific locations in memory.
      Instead, the stub code will copy the embedded zephyr sections to the
      appropriate locations at startup, clear any zero-filled (BSS, etc...)
      areas, then jump into the 64 bit entry point.

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