No, libc++.so is already included in the otatools zip file that I linked
earlier (missing that file would cause issues in our infrastructure using
otatools as well). I've confirmed it's there in our internal R trees as
well. If it's not showing up in your builds, are you sure you don't have a
local change to the build system causing this problem?

$ zipinfo otatools.zip | less
Archive:  otatools.zip
Zip file size: 361711518 bytes, number of entries: 257
-rwx------  2.0 unx 68541840 bl defN 08-Jan-01 00:00 bin/aapt2
-rwx------  2.0 unx 31833568 bl defN 08-Jan-01 00:00
bin/add_img_to_target_files
...
-rwx------  2.0 unx   558272 bl defN 08-Jan-01 00:00 bin/lpmake
-rwx------  2.0 unx   519040 bl defN 08-Jan-01 00:00 bin/lpunpack
...
-rw----     2.0 fat  1720976 bl defN 08-Jan-01 00:00
framework/boot_signer.jar
-rw----     2.0 fat  2715758 bl defN 08-Jan-01 00:00 framework/signapk.jar
-rw----     2.0 fat  1716209 bl defN 08-Jan-01 00:00
framework/verity_signer.jar
-rwx------  2.0 unx  4114648 bl defN 08-Jan-01 00:00 lib64/libbase.so
-rwx------  2.0 unx  1501888 bl defN 08-Jan-01 00:00
lib64/libbrillo-stream.so
-rwx------  2.0 unx  2690344 bl defN 08-Jan-01 00:00 lib64/libbrillo.so
-rwx------  2.0 unx  6454680 bl defN 08-Jan-01 00:00 lib64/libc++.so
-rwx------  2.0 unx 20883064 bl defN 08-Jan-01 00:00 lib64/libchrome.so
-rwx------  2.0 unx 13054768 bl defN 08-Jan-01 00:00
lib64/libconscrypt_openjdk_jni.so
-rwx------  2.0 unx  6968648 bl defN 08-Jan-01 00:00 lib64/libcrypto-host.so
-rwx------  2.0 unx    16736 bl defN 08-Jan-01 00:00
lib64/libcrypto_utils.so
-rwx------  2.0 unx   199776 bl defN 08-Jan-01 00:00 lib64/libcutils.so
...

- Dan

On Wed, May 6, 2020 at 4:58 PM 임정민 <jmin....@samsung.com> wrote:

> Thanks for quick response.
> Why I'm doing this. We use lpunpack including OTA/tools.
> but when I'm running lpunpack there is error cause there are no shared
> library like libc++
>
> You mean I should check all of this and added it into OTA/tools one by one?
>
> 2020년 5월 5일 화요일 오전 12시 49분 15초 UTC+9, 임정민 님의 말:
>>
>> Hi I found there are no shared library in ota packages.
>>
>> I expect there are some modules and shared libraries.
>> but only existing were modules like lpunpack.
>> I hope there are shared libraries such as libbase.so.
>> but It's not working.
>>
>> I think get-all-shared-libs-deps is related with copying shared libraries
>> into ota_package. but It's not working
>> please check it for me
>>
>> thanks
>>
>> !!!!!!!!!!
>> /build/make/core/Makefile
>> !!!!!!!!!
>>
>> -----------------------------------
>> INTERNAL_OTATOOLS_MODULES := \
>>   aapt2 \
>>   add_img_to_target_files \
>>   append2simg \
>>   avbtool \
>>   blk_alloc_to_base_fs \
>>   boot_signer \
>>   brillo_update_payload \
>>   brotli \
>>   bsdiff \
>>   build_image \
>>   build_super_image \
>>   build_verity_metadata \
>>   build_verity_tree \
>>   care_map_generator \
>>   check_ota_package_signature \
>>   check_target_files_signatures \
>>   check_target_files_vintf \
>>   checkvintf \
>>   delta_generator \
>>   e2fsck \
>>   e2fsdroid \
>>   fc_sort \
>>   fec \
>>   fs_config \
>>   generate_verity_key \
>>   img2simg \
>>   img_from_target_files \
>>   imgdiff \
>>   libconscrypt_openjdk_jni \
>>   lpmake \
>>   lpunpack \
>>   make_f2fs \
>>   merge_target_files \
>>   minigzip \
>>   mk_combined_img \
>>   mkbootfs \
>>   mkbootimg \
>>   mke2fs \
>>   mke2fs.conf \
>>   mkf2fsuserimg.sh \
>>   mksquashfs \
>>   mksquashfsimage.sh \
>>   mkuserimg_mke2fs \
>>   ota_from_target_files \
>>   sefcontext_compile \
>>   sgdisk \
>>   shflags \
>>   sign_apex \
>>   sign_target_files_apks \
>>   signapk \
>>   simg2img \
>>   sload_f2fs \
>>   tune2fs \
>>   unpack_bootimg \
>>   update_host_simulator \
>>   validate_target_files \
>>   verity_signer \
>>   verity_verifier \
>>   zipalign \
>>
>> # Additional tools to unpack and repack the apex file.
>> INTERNAL_OTATOOLS_MODULES += \
>>   apexer \
>>   deapexer \
>>   debugfs_static \
>>   merge_zips \
>>   resize2fs \
>>   soong_zip \
>>
>> ifeq (true,$(PRODUCT_SUPPORTS_VBOOT))
>> INTERNAL_OTATOOLS_MODULES += \
>>   futility \
>>   vboot_signer
>> endif
>>
>> INTERNAL_OTATOOLS_FILES := \
>>   $(filter $(HOST_OUT)/%,$(call
>> module-installed-files,$(INTERNAL_OTATOOLS_MODULES)))
>>
>> .PHONY: otatools
>> otatools: $(INTERNAL_OTATOOLS_FILES)
>>
>> # For each module, recursively resolve its host shared library
>> dependencies. Then we have a full
>> # list of modules whose installed files need to be packed.
>>
>> INTERNAL_OTATOOLS_MODULES_WITH_DEPS := \
>>   $(sort $(INTERNAL_OTATOOLS_MODULES) \
>>       $(foreach m,$(INTERNAL_OTATOOLS_MODULES),$(call
>> get-all-shared-libs-deps,$(m))))
>>
>> INTERNAL_OTATOOLS_PACKAGE_FILES := \
>>   $(filter $(HOST_OUT)/%,$(call
>> module-installed-files,$(INTERNAL_OTATOOLS_MODULES_WITH_DEPS)))
>>
>> INTERNAL_OTATOOLS_PACKAGE_FILES += \
>>   $(sort $(shell find build/make/target/product/security -type f -name
>> "*.x509.pem" -o \
>>       -name "*.pk8" -o -name verity_key))
>>
>> ifneq (,$(wildcard device))
>> INTERNAL_OTATOOLS_PACKAGE_FILES += \
>>   $(sort $(shell find device $(wildcard vendor) -type f -name "*.pk8" -o
>> -name "verifiedboot*" -o \
>>       -name "*.pem" -o -name "oem*.prop" -o -name "*.avbpubkey"))
>> endif
>> ifneq (,$(wildcard external/avb))
>> INTERNAL_OTATOOLS_PACKAGE_FILES += \
>>   $(sort $(shell find external/avb/test/data -type f -name
>> "testkey_*.pem" -o \
>>       -name "atx_metadata.bin"))
>> endif
>> ifeq (true,$(PRODUCT_SUPPORTS_VBOOT))
>> INTERNAL_OTATOOLS_PACKAGE_FILES += \
>>   $(sort $(shell find external/vboot_reference/tests/devkeys -type f))
>> endif
>>
>> INTERNAL_OTATOOLS_RELEASETOOLS := \
>>   $(sort $(shell find build/make/tools/releasetools -name "*.pyc" -prune
>> -o \
>>       \( -type f -o -type l \) -print))
>>
>> BUILT_OTATOOLS_PACKAGE := $(PRODUCT_OUT)/otatools.zip
>> $(BUILT_OTATOOLS_PACKAGE): PRIVATE_ZIP_ROOT := $(call
>> intermediates-dir-for,PACKAGING,otatools)/otatools
>> $(BUILT_OTATOOLS_PACKAGE): PRIVATE_OTATOOLS_PACKAGE_FILES :=
>> $(INTERNAL_OTATOOLS_PACKAGE_FILES)
>> $(BUILT_OTATOOLS_PACKAGE): PRIVATE_OTATOOLS_RELEASETOOLS :=
>> $(INTERNAL_OTATOOLS_RELEASETOOLS)
>> $(BUILT_OTATOOLS_PACKAGE): $(INTERNAL_OTATOOLS_PACKAGE_FILES)
>> $(INTERNAL_OTATOOLS_RELEASETOOLS)
>> $(BUILT_OTATOOLS_PACKAGE): $(SOONG_ZIP) $(ZIP2ZIP)
>> @echo "Package OTA tools: $@"
>> rm -rf $@ $(PRIVATE_ZIP_ROOT)
>> mkdir -p $(dir $@)
>> $(call
>> copy-files-with-structure,$(PRIVATE_OTATOOLS_PACKAGE_FILES),$(HOST_OUT)/,$(PRIVATE_ZIP_ROOT))
>> $(call
>> copy-files-with-structure,$(PRIVATE_OTATOOLS_RELEASETOOLS),build/make/tools/,$(PRIVATE_ZIP_ROOT))
>> cp $(SOONG_ZIP) $(ZIP2ZIP) $(MERGE_ZIPS) $(PRIVATE_ZIP_ROOT)/bin/
>> $(SOONG_ZIP) -o $@ -C $(PRIVATE_ZIP_ROOT) -D $(PRIVATE_ZIP_ROOT)
>>
>> .PHONY: otatools-package
>> otatools-package: $(BUILT_OTATOOLS_PACKAGE)
>> -----------------------------------
>>
> --
> --
> You received this message because you are subscribed to the "Android
> Building" mailing list.
> To post to this group, send email to android-building@googlegroups.com
> To unsubscribe from this group, send email to
> android-building+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-building?hl=en
>
> ---
> You received this message because you are subscribed to the Google Groups
> "Android Building" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to android-building+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/android-building/f89f4059-f9b0-4ad8-8aef-e68a01457977%40googlegroups.com
> <https://groups.google.com/d/msgid/android-building/f89f4059-f9b0-4ad8-8aef-e68a01457977%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
-- 
You received this message because you are subscribed to the "Android Building" 
mailing list.
To post to this group, send email to android-building@googlegroups.com
To unsubscribe from this group, send email to
android-building+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-building?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"Android Building" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-building+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-building/CALQgHd%3DGCOA_n9nbhEX%2BzMy0haWm%2B5NA-1orG1UfJGDEyW7GUQ%40mail.gmail.com.

Reply via email to