Skip to content

Commit

Permalink
Repository for LD scripts; common LD script for ESP8266 // Resolve #379
Browse files Browse the repository at this point in the history
  • Loading branch information
ivankravets committed Dec 17, 2015
1 parent f0abd35 commit 3cbbecb
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
4 changes: 4 additions & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ PlatformIO 2.0
2.6.1 (2015-12-??)
~~~~~~~~~~~~~~~~~~

* Created public `platformio-pkg-ldscripts <https://github.com/platformio/platformio-pkg-ldscripts.git>`_
repository for LD scripts. Moved common configuration for ESP8266 MCU to
``esp8266.flash.common.ld``
(`issue #379 <https://github.com/platformio/platformio/issues/379>`_)
* Fixed reset method for Espressif NodeMCU (ESP-12E Module)
(`issue #380 <https://github.com/platformio/platformio/issues/380>`_)

Expand Down
2 changes: 1 addition & 1 deletion platformio/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

VERSION = (2, 6, "1.dev0")
VERSION = (2, 6, "1.dev1")
__version__ = ".".join([str(s) for s in VERSION])

__title__ = "platformio"
Expand Down
1 change: 1 addition & 0 deletions platformio/builder/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@
)

env = DefaultEnvironment()
env.Prepend(LIBPATH=[join("$PIOPACKAGES_DIR", "ldscripts")])

if "BOARD" in env:
try:
Expand Down
8 changes: 4 additions & 4 deletions platformio/builder/tools/platformio.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,17 +78,17 @@ def BuildProgram(env):

env.Append(
CPPDEFINES=["PLATFORMIO={0:02d}{1:02d}{2:02d}".format(
*pioversion_to_intstr())]
*pioversion_to_intstr())],
LIBS=deplibs,
LIBPATH=["$BUILD_DIR"]
)

return env.Program(
join("$BUILD_DIR", env.subst("$PROGNAME")),
env.LookupSources(
"$BUILDSRC_DIR", "$PROJECTSRC_DIR", duplicate=False,
src_filter=getenv("PLATFORMIO_SRC_FILTER",
env.get("SRC_FILTER"))),
LIBS=env.get("LIBS", []) + deplibs,
LIBPATH=env.get("LIBPATH", []) + ["$BUILD_DIR"]
env.get("SRC_FILTER")))
)


Expand Down

0 comments on commit 3cbbecb

Please sign in to comment.