summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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>
)