diff --git a/BUILD.gn b/BUILD.gn index bd824558b5b1b7f1706f93c38a17fc5e926c7ba9..0a9374352b659ec7adc47e4703746de65b25bb34 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -239,9 +239,9 @@ if (is_lite_system && current_os == "ohos") { # exclude these files because they need special treatment if (uapi_from == "make") { - exclude_files = "asm|scsi" + exclude_files = "^asm\$|^scsi\$" } else { - exclude_files = "asm-arm|asm-arm64|scsi" + exclude_files = "^asm-arm\$|^asm-arm64\$|^scsi\$" } arguments_uapi +=