-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adapt to Makefile changes in ChromeOS EC repository
The build system has been slightly changed, requiring a slight change in how to specify the path to the cross compiler. Also, the EC codebase now assumes GCC 11 or above, while even the newest lowRISC/crt provides gcc 10.3.1. So a small patch was required, as the older GCC does not recognize the `min-pagesize` parameter for controlling GCC warnings.
- Loading branch information
Showing
3 changed files
with
15 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
diff --git a/Makefile.toolchain b/Makefile.toolchain | ||
index 76a0504e35..97b1267e3d 100644 | ||
--- a/Makefile.toolchain | ||
+++ b/Makefile.toolchain | ||
@@ -210,7 +210,7 @@ ifneq ($(CROSS_COMPILE_CC_NAME),clang) | ||
# is set to 0 such that GCC never generates any warnings for the constant | ||
# address pointers. For more details, refer to the GCC PR99578. | ||
ifneq ($(BOARD), host) | ||
-CFLAGS+= --param min-pagesize=0 | ||
+ | ||
endif | ||
endif | ||
ifneq ($(CROSS_COMPILE_CC_NAME),clang) |