Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5f1ddcdd authored by Andrei Homescu's avatar Andrei Homescu
Browse files

libbinder: Fix Trusty build from __ANDROID_VENDOR__

Fix a couple of minor issues from the addition of
__ANDROID_VENDOR__ to the Trusty build.

Bug: 242243245
Test: Build Rust binderRpcTest on Trusty
Change-Id: I834dd195149a42da39438af4d02a05190025497d
parent 81c83d59
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -27,7 +27,7 @@ using ::android::internal::Stability;
#error libbinder_ndk should only be built in a system context
#endif

#ifdef __ANDROID_VENDOR__
#if defined(__ANDROID_VENDOR__) && !defined(__TRUSTY__)
#error libbinder_ndk should only be built in a system context
#endif

+3 −0
Original line number Diff line number Diff line
@@ -30,6 +30,9 @@ MODULE_LIBRARY_DEPS += \
	external/rust/crates/downcast-rs \
	trusty/user/base/lib/trusty-sys \

MODULE_RUSTFLAGS += \
	--cfg 'android_vendor' \

# Trusty does not have `ProcessState`, so there are a few
# doc links in `IBinder` that are still broken.
MODULE_RUSTFLAGS += \