diff --git a/third_party/chromium/BUILD.ec_src.bazel b/third_party/chromium/BUILD.ec_src.bazel index be79888..cb61d9b 100644 --- a/third_party/chromium/BUILD.ec_src.bazel +++ b/third_party/chromium/BUILD.ec_src.bazel @@ -28,7 +28,7 @@ make( "BOARD=hyperdebug", "ALLOW_CONFIG=1", "BUILDCC_PREFIX={}".format(host_prefix), - "CROSS_COMPILE_arm={}/{}".format(bazel_root, arm_prefix), + "CROSS_COMPILE={}/{}".format(bazel_root, arm_prefix), "out=$$INSTALLDIR$$", ], build_data = [ diff --git a/third_party/chromium/repos.bzl b/third_party/chromium/repos.bzl index af0e045..f66e910 100644 --- a/third_party/chromium/repos.bzl +++ b/third_party/chromium/repos.bzl @@ -12,6 +12,7 @@ def chromium_repos(): build_file = "//third_party/chromium:BUILD.ec_src.bazel", patches = [ "//third_party/chromium:ec-custom-version.patch", + "//third_party/chromium:work-with-old-gcc-10.patch", ], patch_args = ["-p1"], ) diff --git a/third_party/chromium/work-with-old-gcc-10.patch b/third_party/chromium/work-with-old-gcc-10.patch new file mode 100644 index 0000000..bf957cf --- /dev/null +++ b/third_party/chromium/work-with-old-gcc-10.patch @@ -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)