NabuCasa / silabs-firmware-builder

Silicon Labs firmware builder

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

fix for recent builds

tube0013 opened this issue · comments

I ran into build issues on my fork recently, even when trying to build off of something that previously built fine.

it was not finding the project path after the project generation:

Build Log
Run slc generate \
Generation location: /opt/slc_cli/ncp-uart-hw-tubeszb-mgm21-2022
Generation: Starting AC generation for ucProject in project ncp-uart-hw: Tue Jul 18 16:07:48 UTC 2023
Generation: Starting AC generation for ProjectPostBuild in project ncp-uart-hw: Tue Jul 18 16:07:49 UTC 2023
Generation: AC content generated for ProjectPostBuild. Elapsed time: 44ms
Generation: Starting AC generation for ProjectPostBuild in project ncp-uart-hw: Tue Jul 18 16:07:50 UTC 2023
Generation: AC content generated for ProjectPostBuild. Elapsed time: 21ms
Generation: AC content generated for ucProject. Elapsed time: 2541ms
Generation: Starting project generation for ncp-uart-hw: Tue Jul 18 16:07:50 UTC 2023
Generation: Projects generated ncp-uart-hw.ewp, ncp-uart-hw.Makefile, ncp-uart-hw.vscode.Makefile
Elapsed time: 2740ms
Total generation time: 5340 ms

Slcp parse warnings for /opt/slc_cli/ncp-uart-hw-tubeszb-mgm21-2022/ncp-uart-hw.slcp
	ui_hints -> highlight -> [0] -> path: missing
Generation for Zigbee - NCP ncp-uart-hw to /opt/slc_cli/ncp-uart-hw-tubeszb-mgm21-2022 has completed.
See [readme.html] to for more information.
0s
Run cd ncp-uart-hw-tubeszb-mgm21-2022
  cd ncp-uart-hw-tubeszb-mgm21-2022
  sed -Ei "s/^(\s*#define SL_\S+_VCOM_BAUDRATE\s+)[0-9]+/\\11[15](https://github.com/tube0013/silabs-firmware-builder/actions/runs/5589641444/job/15139718121#step:5:16)[20](https://github.com/tube0013/silabs-firmware-builder/actions/runs/5589641444/job/15139718121#step:5:21)0/" \
      config/sl_*usart_vcom_config.h
  shell: su --shell=/bin/bash builder {0}
/__w/_temp/bf64a4c8-94ed-47ba-8db7-08d2f5985dfd: line 1: cd: ncp-uart-hw-tubeszb-mgm[21](https://github.com/tube0013/silabs-firmware-builder/actions/runs/5589641444/job/15139718121#step:5:22)-20[22](https://github.com/tube0013/silabs-firmware-builder/actions/runs/5589641444/job/15139718121#step:5:23): No such file or directory
sed: can't read config/sl_*usart_vcom_config.h: No such file or directory
Error: Process completed with exit code [2](https://github.com/tube0013/silabs-firmware-builder/actions/runs/5589641444/job/15139718121#step:6:2).

After a bunch of trial and error I fixed this by adding the full path to the export-destination in the slc generate command:

          slc generate \
              --with="${{ inputs.device }},${{ inputs.components }}" \
              --project-file="${{ inputs.project_file }}" \
              --export-destination="/__w/silabs-firmware-builder/silabs-firmware-builder/${{ inputs.firmware_name }}" \
              --copy-proj-sources --copy-sdk-sources --new-project --force \
              --configuration="${{ inputs.configuration }}"

adding the /__w/silabs-firmware-builder/silabs-firmware-builder/ in front of the firmware_name.

I think github may have changed something, I'd do a pr but my github abilities can't get it in a form of just this single change.

commented

This was probably caused by an slc update bug?.

I expect you can probably just prepend with $PWD