diff --git a/meta-oniro-staging/recipes-devtools/gn/gn_git.bb b/meta-oniro-staging/recipes-devtools/gn/gn_git.bb
index b7fa813ce8bd23ab71f8646e662cb731046c989d..166b319cff8b3ceb281497a6b7e06b3825aa4299 100644
--- a/meta-oniro-staging/recipes-devtools/gn/gn_git.bb
+++ b/meta-oniro-staging/recipes-devtools/gn/gn_git.bb
@@ -44,7 +44,7 @@ do_install() {
     install ${B}/gn ${D}${bindir}
 }
 
-BBCLASSEXTEND = "native"
+BBCLASSEXTEND = "native nativesdk"
 
 COMPATIBLE_HOST = "^(?!riscv32).*"