diff --git a/recipes-devtools/gn/gn_%.bbappend b/recipes-devtools/gn/gn_%.bbappend
new file mode 100644
index 0000000000000000000000000000000000000000..2851293d67a07a2b0ecea6fbb3018e3f2bdcf49f
--- /dev/null
+++ b/recipes-devtools/gn/gn_%.bbappend
@@ -0,0 +1,9 @@
+# SPDX-FileCopyrightText: Huawei Inc.
+#
+# SPDX-License-Identifier: Apache-2.0
+
+# OpenHarmony build system relies on the obsolete set_sources_assignment_filter
+# GN function which was recently dropped, therefore downgrading GN to revision
+# compatible with OpenHarmony
+
+SRCREV:oniro-openharmony-linux = "5da62d5e9d0f10cb8ece7c30563a6a214c78b68d"