Boot Linux faster!

Check our new training course

Boot Linux faster!

Check our new training course
and Creative Commons CC-BY-SA
lecture and lab materials

Bootlin logo

Elixir Cross Referencer

# SPDX-License-Identifier: Apache-2.0
  message(FATAL_ERROR "ZEPHYR_BASE not set")

get_filename_component(generator ${CMAKE_MAKE_PROGRAM} NAME)
if(${generator} STREQUAL ninja)
  set(verbose "-v")
  set(verbose "VERBOSE=1")

message("Cleaning targets:")
message("  clean     - Remove most generated files but keep configuration and backup files")
message("  pristine  - Remove all files in the build directory")
message("Kconfig targets:")
message("  menuconfig - Update .config using a console-based interface")
message("  guiconfig  - Update .config using a graphical interface")
message("Other generic targets:")
message("  all          - Build a zephyr application")
message("  run          - Build a zephyr application and run it if the board supports emulation")
message("  flash        - Run \"west flash\"")
message("  debug        - Run \"west debug\"")
message("  debugserver  - Run \"west debugserver\" (or start GDB server on port 1234 for QEMU targets)")
message("  attach       - Run \"west attach\"")
message("  ram_report   - Build and create RAM usage report")
message("  rom_report   - Build and create ROM usage report")
message("  boards       - Display supported boards")
message("  shields      - Display supported shields")
message("  usage        - Display this text")
message("  help         - Display all build system targets")
message("Build flags:")
message("  ${generator} ${verbose} [targets] verbose build")
message("  cmake -DW=n   Enable extra gcc checks, n=1,2,3 where")
message("   1: warnings which may be relevant and do not occur too often")
message("   2: warnings which occur quite often but may still be relevant")
message("   3: more obscure warnings, can most likely be ignored")
message("   Multiple levels can be combined with W=12 or W=123")