mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-04-28 11:43:56 +00:00
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 <weix.w.liu@intel.com>
This commit is contained in:
parent
38d866f96f
commit
dd8393d349
@ -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;\
|
||||
|
Loading…
Reference in New Issue
Block a user