You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The -B/--custom-binary parameter of the build.sh script only works correctly when the path to the target binary is absolute.
Specifying the path relative to the current directory leads to the build processing until the stage where binaries are copied from the binaries directory. During this step the build throws a warning about the target binary missing from the binaries directory.
Note how the output says Custom binaries used, but all the binaries still have the (default) tag. This includes the fpga.bit binary, which shows custom.bit to be the correct executable nonetheless.
Workaround
A workaround for this problem is to specify the path to the target binary in an absolute fashion.
E.g., replace step 3 above with: ./build.sh -d DEVICE -B fpga.bit $(pwd)/custom.bit -x U-Boot
This will build correctly and the corresponding output reflects the settings, by not display the (default) tag for the fpga.bit binary.
This behavior may also be intended, but in that case it's either poorly or entirely undocumented, I believe.
The text was updated successfully, but these errors were encountered:
Summary
The
-B/--custom-binary
parameter of thebuild.sh
script only works correctly when the path to the target binary is absolute.Specifying the path relative to the current directory leads to the build processing until the stage where binaries are copied from the
binaries
directory. During this step the build throws a warning about the target binary missing from thebinaries
directory.Steps
git clone https://github.com/enclustra-bsp/bsp-xilinx bsp-xilinx
bsp-xilinx
directory (in my casecustom.bit
)./build.sh -d DEVICE -B fpga.bit custom.bit -x U-Boot
Output of the above command:
Note how the output says
Custom binaries used
, but all the binaries still have the(default)
tag. This includes thefpga.bit
binary, which showscustom.bit
to be the correct executable nonetheless.Workaround
A workaround for this problem is to specify the path to the target binary in an absolute fashion.
E.g., replace step 3 above with:
./build.sh -d DEVICE -B fpga.bit $(pwd)/custom.bit -x U-Boot
This will build correctly and the corresponding output reflects the settings, by not display the
(default)
tag for thefpga.bit
binary.This behavior may also be intended, but in that case it's either poorly or entirely undocumented, I believe.
The text was updated successfully, but these errors were encountered: