From 23f8bde52dca769ad9d44f74450b32a017b0776d Mon Sep 17 00:00:00 2001 From: Doug Zongker Date: Wed, 7 Sep 2011 14:11:51 -0700 Subject: [PATCH] save uid/gid/mode information of boot and recovery files Save these in the target_files so we don't have to depend on using the contents of android_filesystem_config.h at the tip of tree. Bug: 5266067 Change-Id: Ica5dd43a2013c9db72d7c9434f9d7de1abaf18f9 --- core/Makefile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/core/Makefile b/core/Makefile index af233f1d21..debe691e01 100644 --- a/core/Makefile +++ b/core/Makefile @@ -1087,9 +1087,11 @@ ifdef PRODUCT_EXTRA_RECOVERY_KEYS endif @# Zip everything up, preserving symlinks $(hide) (cd $(zip_root) && zip -qry ../$(notdir $@) .) - @# Run fs_config on all the system files in the zip, and save the output - $(hide) zipinfo -1 $@ | awk -F/ 'BEGIN { OFS="/" } /^SYSTEM\// {$$1 = "system"; print}' | $(HOST_OUT_EXECUTABLES)/fs_config > $(zip_root)/META/filesystem_config.txt - $(hide) (cd $(zip_root) && zip -q ../$(notdir $@) META/filesystem_config.txt) + @# Run fs_config on all the system, boot ramdisk, and recovery ramdisk files in the zip, and save the output + $(hide) zipinfo -1 $@ | awk 'BEGIN { FS="SYSTEM/" } /^SYSTEM\// {print "system/" $$2}' | $(HOST_OUT_EXECUTABLES)/fs_config > $(zip_root)/META/filesystem_config.txt + $(hide) zipinfo -1 $@ | awk 'BEGIN { FS="BOOT/RAMDISK/" } /^BOOT\/RAMDISK\// {print $$2}' | $(HOST_OUT_EXECUTABLES)/fs_config > $(zip_root)/META/boot_filesystem_config.txt + $(hide) zipinfo -1 $@ | awk 'BEGIN { FS="RECOVERY/RAMDISK/" } /^RECOVERY\/RAMDISK\// {print $$2}' | $(HOST_OUT_EXECUTABLES)/fs_config > $(zip_root)/META/recovery_filesystem_config.txt + $(hide) (cd $(zip_root) && zip -q ../$(notdir $@) META/*filesystem_config.txt) target-files-package: $(BUILT_TARGET_FILES_PACKAGE)