dwld commented on issue #391: Fix for @repo targets in mfg create
URL: https://github.com/apache/mynewt-newt/pull/391#issuecomment-607291079
@utzig, here is the output of the current master newt build as it is:
```
2020/04/01 16:30:41.371 [DEBUG] goroutine 1 [running]:
mynewt.apache.org/newt/util.NewNewtError(0xc0005a1760, 0xa3, 0xc7f190)
C://Github/mynewt-newt/util/util.go:77
+0xd3
mynewt.apache.org/newt/util.FmtNewtError(0x84555a, 0x2, 0xc7f190, 0x1,
0x1, 0x0)
C://Github/mynewt-newt/util/util.go:84
+0x72
mynewt.apache.org/newt/newt/mfg.newMfgBuildTarget(0xc000150840, 0x12,
0xc000150de0, 0x15, 0x0, 0x0, 0xc00067e210, 0x0, 0x0, 0x0, ...)
C://Github/mynewt-newt/newt/mfg/build.go:226 +0x59e
mynewt.apache.org/newt/newt/mfg.newMfgBuilder(0xcc26e0, 0xc00043a120,
0x2, 0x2, 0x0, 0x0, 0x0, 0xc00059d170, 0x0, 0x0, ...)
C://Github/mynewt-newt/newt/mfg/build.go:439 +0x255
mynewt.apache.org/newt/newt/mfg.LoadMfgEmitter(0xcc26e0, 0x5,
0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
C://Github/mynewt-newt/newt/mfg/misc.go:54 +0x15b
mynewt.apache.org/newt/newt/cli.mfgCreateRunCmd(0xceec80, 0xc000108210,
0x2, 0x3)
C://Github/mynewt-newt/newt/cli/mfg_cmds.go:117
+0x1ba
github.com/spf13/cobra.(*Command).execute(0xceec80, 0xc0001080f0, 0x3,
0x3, 0xceec80, 0xc0001080f0)
C://go/pkg/mod/github.com/spf13/cobra@v0.0.5/command.go:830
+0x2b1
github.com/spf13/cobra.(*Command).ExecuteC(0xc8cf00, 0x845c6b, 0x4, 0x7)
C://go/pkg/mod/github.com/spf13/cobra@v0.0.5/command.go:914
+0x302
github.com/spf13/cobra.(*Command).Execute(...)
C://go/pkg/mod/github.com/spf13/cobra@v0.0.5/command.go:864
main.main()
C://Github/mynewt-newt/newt/newt.go:180
+0x19e
goroutine 6 [syscall]:
os/signal.signal_recv(0x0)
C:/Anwendungen/Go/src/runtime/sigqueue.go:147 +0xa3
os/signal.loop()
C:/Anwendungen/Go/src/os/signal/signal_unix.go:23 +0x29
created by os/signal.init.0
C:/Anwendungen/Go/src/os/signal/signal_unix.go:29 +0x48
Error: failed to read manifest file: open
C:/Entwicklung/newt_ble_central/bin/targets/nrf52_boot/app/boot/mynewt/manifest.json:
The system cannot find the path specified.
```
With the fix, the command works for me and outputs the following paths as
its inputs:
```
Creating a manufacturing image from the following files:
C:/Entwicklung/newt_ble_central/bin/targets/nrf52_ble/app/apps//manifest.json
C:/Entwicklung/newt_ble_central/bin/targets/nrf52_ble/app/apps/.elf
C:/Entwicklung/newt_ble_central/bin/targets/nrf52_ble/app/apps/.img
C:/Entwicklung/newt_ble_central/bin/targets/nrf52_boot/app/@mcuboot/boot/mynewt/manifest.json
C:/Entwicklung/newt_ble_central/bin/targets/nrf52_boot/app/@mcuboot/boot/mynewt/mynewt.elf
C:/Entwicklung/newt_ble_central/bin/targets/nrf52_boot/app/@mcuboot/boot/mynewt/mynewt.elf.bin
```
The nrf52_boot ```target.yml``` looks like this:
```
target.app: "@mcuboot/boot/mynewt"
target.bsp: "@apache-mynewt-core/hw/bsp/nordic_pca10056"
target.build_profile: optimized
```
The `mfg.yml` looks like this:
```
mfb.bsp: "@apache-mynewt-core/hw/bsp/nordic_pca10056"
mfg.targets:
- nrf52_boot:
name: "targets/nrf52_boot"
offset: 0x0
area: FLASH_AREA_BOOTLOADER
- nrf52_ble:
name: "targets/nrf52_ble"
offset: 0x0
area: FLASH_AREA_IMAGE_0
mfg.meta:
area: FLASH_AREA_BOOTLOADER
```
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org
With regards,
Apache Git Services