Skip to content

Commit e7f5f2f

Browse files
committed
libbinder: Include stability.cpp in the Trusty NDK library
Bug: 242243245 Test: build Trusty Change-Id: I3d449982cb3b6e5e8b40f58f1924726400a22cf0
1 parent 6b97f7f commit e7f5f2f

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

libs/binder/ndk/stability.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
using ::android::internal::Stability;
2525

26-
#ifdef __ANDROID_VNDK__
26+
#if defined(__ANDROID_VNDK__) && !defined(__TRUSTY__)
2727
#error libbinder_ndk should only be built in a system context
2828
#endif
2929

libs/binder/trusty/ndk/rules.mk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ MODULE_SRCS := \
2323
$(LIBBINDER_NDK_DIR)/ibinder.cpp \
2424
$(LIBBINDER_NDK_DIR)/libbinder.cpp \
2525
$(LIBBINDER_NDK_DIR)/parcel.cpp \
26+
$(LIBBINDER_NDK_DIR)/stability.cpp \
2627
$(LIBBINDER_NDK_DIR)/status.cpp \
2728

2829
MODULE_EXPORT_INCLUDES += \

0 commit comments

Comments
 (0)