]> granicus.if.org Git - esp-idf/commit
esp32: Rename esp32.common.ld to esp32.project.ld to avoid build errors when downgrading
authorAngus Gratton <angus@espressif.com>
Wed, 13 Mar 2019 22:59:31 +0000 (09:59 +1100)
committerAngus Gratton <gus@projectgus.com>
Wed, 13 Mar 2019 22:59:31 +0000 (09:59 +1100)
commita79c5b8271d923ca2f5952a942c2445fcbffc1a0
treedba786a21051518ccbd6743a5d06b66b56cf59e8
parent710bcbd4479447740249751b091f97c0889b55c6
esp32: Rename esp32.common.ld to esp32.project.ld to avoid build errors when downgrading

Linker script generator produces build/esp32/esp32.common.ld from
components/esp32/ld/esp32.common.ld.in

This works fine until IDF is downgraded to V3.1 which uses components/esp32/ld/esp32.common.ld and
doesn't track build/esp32/esp32.common.ld at all.

At this point, the linker runs in the build/esp32 directory and "-T esp32.common.ld" picks up the
linker script generated .ld file, which causes mis-builds.

As reported on forums: https://esp32.com/viewtopic.php?f=13&t=9684&p=40105
components/esp32/CMakeLists.txt
components/esp32/Makefile.projbuild
components/esp32/component.mk
components/esp32/ld/esp32.ld
components/esp32/ld/esp32.project.ld.in [moved from components/esp32/ld/esp32.common.ld.in with 100% similarity]
docs/en/api-guides/linker-script-generation.rst
docs/zh_CN/api-guides/linker-script-generation.rst
tools/ci/test_build_system.sh
tools/ci/test_build_system_cmake.sh