You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
42 lines
1.8 KiB
42 lines
1.8 KiB
# SPDX-License-Identifier: Apache-2.0 |
|
if(NOT DEFINED ZEPHYR_BASE) |
|
message(FATAL_ERROR "ZEPHYR_BASE not set") |
|
endif() |
|
|
|
get_filename_component(generator ${CMAKE_MAKE_PROGRAM} NAME) |
|
if(${generator} STREQUAL ninja) |
|
set(verbose "-v") |
|
else() |
|
set(verbose "VERBOSE=1") |
|
endif() |
|
|
|
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("") |
|
message("Kconfig targets:") |
|
message(" menuconfig - Update .config using a console-based interface") |
|
message(" guiconfig - Update .config using a graphical interface") |
|
message("") |
|
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("") |
|
message("Build flags:") |
|
message("") |
|
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")
|
|
|