OSDN Git Service

Add extra search paths from unrestricted section
authorKiyoung Kim <kiyoungkim@google.com>
Fri, 12 Jun 2020 10:15:05 +0000 (19:15 +0900)
committerKiyoung Kim <kiyoungkim@google.com>
Wed, 17 Jun 2020 02:16:47 +0000 (02:16 +0000)
Add extra search paths - system_ext/${LIB} and product/${LIB} - so *TS
tests can be executed with extra libraries from the partners

Bug: 158674810
Test: Cuttlefish boot succeeded
Change-Id: I37787a92df28c3713d607eaea6a031b2b9db0f3d
Merged-In: I37787a92df28c3713d607eaea6a031b2b9db0f3d

contents/namespace/unrestricteddefault.cc

index 3cfa6c3..b6186ba 100644 (file)
@@ -30,8 +30,10 @@ Namespace BuildUnrestrictedDefaultNamespace([[maybe_unused]] const Context& ctx)
   Namespace ns("default", /*is_isolated=*/false, /*is_visible=*/true);
 
   ns.AddSearchPath("/system/${LIB}", AsanPath::WITH_DATA_ASAN);
+  ns.AddSearchPath(Var("SYSTEM_EXT") + "/${LIB}", AsanPath::WITH_DATA_ASAN);
   ns.AddSearchPath("/odm/${LIB}", AsanPath::WITH_DATA_ASAN);
   ns.AddSearchPath("/vendor/${LIB}", AsanPath::WITH_DATA_ASAN);
+  ns.AddSearchPath(Var("PRODUCT") + "/${LIB}", AsanPath::WITH_DATA_ASAN);
 
   ns.AddRequires(std::vector{
       // Keep in sync with the "platform" namespace in art/build/apex/ld.config.txt.