]> granicus.if.org Git - esp-idf/commitdiff
ldgen: fix build issue on make when build dir is a symlink
authorRenz Christian Bagaporo <renz@espressif.com>
Tue, 27 Aug 2019 02:26:34 +0000 (10:26 +0800)
committerRenz Christian Bagaporo <renz@espressif.com>
Tue, 27 Aug 2019 05:53:31 +0000 (13:53 +0800)
Fixes an issue where build fails if the build directory is a symlink.
The issue is caused by the rule target and the final executable dependency
not matching.

Closes https://github.com/espressif/esp-idf/issues/3626

components/esp32/Makefile.projbuild

index cf8746f2686255267f0007b8701871fccd71b798..d13dbe2d0bf53148ee413cdc314c7df9daaa745b 100644 (file)
@@ -10,7 +10,7 @@ ifneq ("$(filter esp32,$(TEST_COMPONENTS_LIST))","")
 CPPFLAGS += -DESP_TIMER_DYNAMIC_OVERFLOW_VAL
 endif
 ESP32_LINKER_SCRIPT_TEMPLATE := $(COMPONENT_PATH)/ld/esp32.project.ld.in
-ESP32_LINKER_SCRIPT_OUTPUT_DIR := $(abspath $(BUILD_DIR_BASE)/esp32)
+ESP32_LINKER_SCRIPT_OUTPUT_DIR := $(realpath $(BUILD_DIR_BASE)/esp32)
 
 # Target to generate linker script generator from fragments presented by each of
 # the components