From 288f9eec0f5fb4fdd83577426d346b8ab9bcd9a7 Mon Sep 17 00:00:00 2001 From: Yi-Yo Chiang Date: Sun, 2 May 2021 19:03:00 +0800 Subject: [PATCH] Make mkbootfs self-contained Now that mkbootfs is in prebuilt build tools, make it have no dynamic dependency so that the binary is portable. Bug: 184490452 Test: Presubmit Change-Id: Ida4ee9af3c51ba9d163cf9c1e7b7098fd24e0de1 --- cpio/Android.bp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cpio/Android.bp b/cpio/Android.bp index 16af079b1..cd2a6245a 100644 --- a/cpio/Android.bp +++ b/cpio/Android.bp @@ -8,7 +8,11 @@ cc_binary_host { name: "mkbootfs", srcs: ["mkbootfs.c"], cflags: ["-Werror"], - shared_libs: ["libcutils"], + static_libs: [ + "libbase", + "libcutils", + "liblog", + ], dist: { targets: ["dist_files"], },