feature: BUILD.gn中device_path允许指向vendor
close: #I5N9NC Signed-off-by: arvinzzz <zhaotianyu9@huawei.com> Change-Id: If6a05871a0c78a92d6370b73528674e411642e20
This commit is contained in:
parent
99640e9977
commit
d4db5a5a75
7
BUILD.gn
7
BUILD.gn
|
@ -120,8 +120,11 @@ config("los_config") {
|
||||||
cmd = "if [ -f $device_path/BUILD.gn ]; then echo true; else echo false; fi"
|
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")
|
HAVE_DEVICE_SDK = exec_script("//build/lite/run_shell_cmd.py", [ cmd ], "value")
|
||||||
|
|
||||||
# board and soc decoupling feature, device_path should contains board
|
# If device_path points to vendor, use device_path directly,
|
||||||
BOARD_SOC_FEATURE = device_path != string_replace(device_path, "/board/", "")
|
# 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") {
|
config("public") {
|
||||||
configs = [
|
configs = [
|
||||||
|
|
Loading…
Reference in New Issue