From dd8393d349adef68330da725d6ae446fef9dd327 Mon Sep 17 00:00:00 2001 From: Wei Liu Date: Thu, 6 Aug 2020 19:19:23 +0800 Subject: [PATCH] Makefile: modify the realpath to abspath function realpath function would be got null while the directory or file is not exist, modify the function abspath to instead realpath. Tracked-On: #5146 Signed-off-by: Wei Liu --- hypervisor/scripts/makefile/cfg_update.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hypervisor/scripts/makefile/cfg_update.mk b/hypervisor/scripts/makefile/cfg_update.mk index 33e7b2dfd..6192d7463 100644 --- a/hypervisor/scripts/makefile/cfg_update.mk +++ b/hypervisor/scripts/makefile/cfg_update.mk @@ -51,7 +51,7 @@ ifeq ($(CONFIG_XML_ENABLED),true) if [ "$(TARGET_DIR)" = "" ]; then \ python3 ../misc/acrn-config/scenario_config/scenario_cfg_gen.py --board $(BOARD_FILE) --scenario $(SCENARIO_FILE) > $(UPDATE_RESULT);\ else \ - python3 ../misc/acrn-config/scenario_config/scenario_cfg_gen.py --board $(BOARD_FILE) --scenario $(SCENARIO_FILE) --out $(realpath $(TARGET_DIR)) > $(UPDATE_RESULT);\ + python3 ../misc/acrn-config/scenario_config/scenario_cfg_gen.py --board $(BOARD_FILE) --scenario $(SCENARIO_FILE) --out $(abspath $(TARGET_DIR)) > $(UPDATE_RESULT);\ fi;\ cat $(UPDATE_RESULT);\ if [ "`sed -n /successfully/p $(UPDATE_RESULT)`" = "" ]; then rm -f $(UPDATE_RESULT); exit 1; fi;\