From d4db5a5a75416ce18d273296de926a5d0f2e7898 Mon Sep 17 00:00:00 2001 From: arvinzzz Date: Sat, 20 Aug 2022 15:54:44 +0800 Subject: [PATCH] =?UTF-8?q?feature:=20BUILD.gn=E4=B8=ADdevice=5Fpath?= =?UTF-8?q?=E5=85=81=E8=AE=B8=E6=8C=87=E5=90=91vendor=20close:=20#I5N9NC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: arvinzzz Change-Id: If6a05871a0c78a92d6370b73528674e411642e20 --- BUILD.gn | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/BUILD.gn b/BUILD.gn index 0cd45e2d..801cfea1 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -120,8 +120,11 @@ config("los_config") { cmd = "if [ -f $device_path/BUILD.gn ]; then echo true; else echo false; fi" HAVE_DEVICE_SDK = exec_script("//build/lite/run_shell_cmd.py", [ cmd ], "value") -# board and soc decoupling feature, device_path should contains board -BOARD_SOC_FEATURE = device_path != string_replace(device_path, "/board/", "") +# If device_path points to vendor, use device_path directly, +# otherwise board is decoupled from soc, device_path should contain board +BOARD_SOC_FEATURE = + device_path == string_replace(device_path, "/vendor/", "") && + device_path != string_replace(device_path, "/board/", "") config("public") { configs = [