This is the documentation for the latest (main) development branch of Zephyr. If you are looking for the documentation of previous releases, use the drop-down menu on the left and select the desired version.

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 Kconfig.zephyr:380

Included via 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.)