You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by ma...@apache.org on 2019/02/20 15:28:58 UTC
[mynewt-newt] branch master updated: newt;
add 2 additional environment variables for download script;
the flash area size which is getting populated. And root of the bin
directory, in case you need to reference flash_loader target for the BSP
when downloading.
This is an automated email from the ASF dual-hosted git repository.
marko pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-newt.git
The following commit(s) were added to refs/heads/master by this push:
new b21ee0b newt; add 2 additional environment variables for download script; the flash area size which is getting populated. And root of the bin directory, in case you need to reference flash_loader target for the BSP when downloading.
new efa649d Merge pull request #269 from mkiiskila/download_more_env_vars
b21ee0b is described below
commit b21ee0b6062e21af2b5a82459aeb19c9bf959f40
Author: Marko Kiiskila <ma...@apache.org>
AuthorDate: Wed Feb 20 16:45:53 2019 +0200
newt; add 2 additional environment variables for download script;
the flash area size which is getting populated. And root of the
bin directory, in case you need to reference flash_loader target
for the BSP when downloading.
---
newt/builder/load.go | 2 ++
1 file changed, 2 insertions(+)
diff --git a/newt/builder/load.go b/newt/builder/load.go
index bb2738c..4113e20 100644
--- a/newt/builder/load.go
+++ b/newt/builder/load.go
@@ -76,6 +76,7 @@ func Load(binBaseName string, bspPkg *pkg.BspPackage,
env = append(env, fmt.Sprintf("CORE_PATH=%s", coreRepo.Path()))
env = append(env, fmt.Sprintf("BSP_PATH=%s", bspPath))
env = append(env, fmt.Sprintf("BIN_BASENAME=%s", binBaseName))
+ env = append(env, fmt.Sprintf("BIN_ROOT=%s", BinRoot()))
// bspPath, binBaseName are passed in command line for backwards
// compatibility
@@ -143,6 +144,7 @@ func (b *Builder) Load(imageSlot int, extraJtagCmd string) error {
flashTargetArea))
}
envSettings["FLASH_OFFSET"] = "0x" + strconv.FormatInt(int64(tgtArea.Offset), 16)
+ envSettings["FLASH_AREA_SIZE"] = "0x" + strconv.FormatInt(int64(tgtArea.Size), 16)
// Convert the binary path from absolute to relative. This is required for
// compatibility with unix-in-windows environemnts (e.g., cygwin).