From 69281c31bac7ee37f037e2509b73abbb9caa8745 Mon Sep 17 00:00:00 2001 From: Peter Collingbourne Date: Fri, 23 Feb 2024 22:38:54 -0800 Subject: [PATCH] Create empty /linkerconfig/ld.config.txt in ramdisk. This silences warnings such as: linker: Warning: failed to find generated linker configuration from "/linkerconfig/ld.config.txt" WARNING: linker: Warning: failed to find generated linker configuration from "/linkerconfig/ld.config.txt" that are printed at the start of every command in the first stage console. Change-Id: I3d820e4960a4dbca34369223aed83589534c2eb6 --- core/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/Makefile b/core/Makefile index 6edac1ab0a..3cc3f4cf5d 100644 --- a/core/Makefile +++ b/core/Makefile @@ -2727,6 +2727,8 @@ $(INTERNAL_RECOVERY_RAMDISK_FILES_TIMESTAMP): $(MKBOOTFS) $(COMPRESSION_COMMAND_ $(if $(strip $(recovery_wipe)), \ cp -f $(recovery_wipe) $(TARGET_RECOVERY_ROOT_OUT)/system/etc/recovery.wipe) ln -sf prop.default $(TARGET_RECOVERY_ROOT_OUT)/default.prop + # Silence warnings in first_stage_console. + touch $(TARGET_RECOVERY_ROOT_OUT)/linkerconfig/ld.config.txt $(BOARD_RECOVERY_IMAGE_PREPARE) $(hide) touch $@