From 3103eac61c5ad371eb6251c1998ff72d62ea3b03 Mon Sep 17 00:00:00 2001 From: Alexey Gavrilov Date: Fri, 17 Jul 2026 10:36:35 +0700 Subject: Add a new cmake project variable and doc update A `IS_BIND_FEATURES_TO_BUILD` option has influence the `bindFeatureToBuild` function calling if it is specifies. Add some cmake options in build documentation Signed-off-by: Alexey Gavrilov --- BUILD.md | 19 ++++++++++++++++--- CMakeLists.txt | 4 ++++ 2 files changed, 20 insertions(+), 3 deletions(-) diff --git a/BUILD.md b/BUILD.md index 2e9c87d..6ff4255 100644 --- a/BUILD.md +++ b/BUILD.md @@ -45,13 +45,26 @@ It is reccommended to build grub from source configured target as chose architecture. - To build grub from source refer to the [documentation](https://www.gnu.org/software/grub/manual/grub/html_node/Obtaining-and-Building-GRUB.html) + To build grub from source refer to the + [documentation](https://www.gnu.org/software/grub/manual/grub/html_node/Obtaining-and-Building-GRUB.html) ## Kernel configuration -You can configure kernel using cmake -D option. All cmake options build-in are supported +You can configure kernel using cmake -D:= option. All cmake build-in options are supported. ### Options -Not yet available options +#### Objective project relative options + +**IS_BIND_FEATURES_TO_BUILD**:BOOL + + Check run matches features dependencies with the objective project toolset + (it is a compiler and architecture). + +#### Features module relative options + +**FEATURES_SUSPEND**:BOOL + + All cmake feature module functions are suppress and print the warning about + it is suspend. ## Build instructions diff --git a/CMakeLists.txt b/CMakeLists.txt index 0fa2c03..383bc13 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -122,6 +122,10 @@ add_subdirectory(drivers) add_subdirectory(include) add_subdirectory(libgcc) +if(IS_BIND_FEATURES_TO_BUILD) + bindFeaturesToBuild() +endif() + target_sources(Objective PRIVATE $ ) -- cgit v1.2.3