summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexey Gavrilov <alexey.gavrilov@mail.com>2026-07-17 10:36:35 +0700
committerAlexey Gavrilov <alexey.gavrilov@mail.com>2026-07-17 10:36:35 +0700
commit3103eac61c5ad371eb6251c1998ff72d62ea3b03 (patch)
treec663eefd1f71f30b4053d54d8ea18743d669d9ce
parent23bf8bbaa4bb5f3725bc6e07283aa9f5b94f0943 (diff)
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 <alexey.gavrilov@mail.com>
-rw-r--r--BUILD.md19
-rw-r--r--CMakeLists.txt4
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<var>:<type>=<value> 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
$<TARGET_OBJECTS:Boot>
)