Skip to content

Comments

tools: xilinx.mk: Remove --transform option from tar commands#2908

Merged
stefpopa merged 1 commit intomainfrom
fix_win_build_error
Feb 23, 2026
Merged

tools: xilinx.mk: Remove --transform option from tar commands#2908
stefpopa merged 1 commit intomainfrom
fix_win_build_error

Conversation

@stefpopa
Copy link
Collaborator

@stefpopa stefpopa commented Feb 23, 2026

The --transform 's/^(./|.)//' option uses GNU tar regex syntax that is not recognized on Windows, causing the create_boot_bin target to fail with a command not found error.

Remove the option from both tar invocations. The -C

flag already ensures paths in the archive are relative to the target directory, so the transform was only cosmetically stripping the leading ./ prefix and is not needed for the archive to function correctly.

Fixes a build failure reported on EngineerZone:
https://ez.analog.com/microcontroller-no-os-drivers/f/q-a/602737/issues-in-building-no-os-driver

Pull Request Description

Please replace this with a detailed description and motivation of the changes.
You can tick the checkboxes below with an 'x' between square brackets or just check them after publishing the PR.
If this PR contains a breaking change, list dependent PRs and try to push all related PRs at the same time.

PR Type

  • Bug fix (change that fixes an issue)
  • New feature (change that adds new functionality)
  • Breaking change (has dependencies in other repos or will cause CI to fail)

PR Checklist

  • I have followed the Coding style guidelines
  • I have complied with the Submission Checklist
  • I have performed a self-review of the changes
  • I have commented my code, at least hard-to-understand parts
  • I have build all projects affected by the changes in this PR
  • I have tested in hardware affected projects, at the relevant boards
  • I have signed off all commits from this PR
  • I have updated the documentation (wiki pages, ReadMe etc), if applies

The --transform 's/^\(\.\/\|\.\)//' option uses GNU tar regex syntax
that is not recognized on Windows, causing the create_boot_bin target
to fail with a command not found error.

Remove the option from both tar invocations. The -C <dir> flag already
ensures paths in the archive are relative to the target directory, so
the transform was only cosmetically stripping the leading ./ prefix
and is not needed for the archive to function correctly.

Fixes a build failure reported on EngineerZone:
https://ez.analog.com/microcontroller-no-os-drivers/f/q-a/602737/issues-in-building-no-os-driver

Signed-off-by: Stefan Popa <stefan.popa@analog.com>
@stefpopa stefpopa merged commit 8d65a65 into main Feb 23, 2026
12 of 19 checks passed
@stefpopa stefpopa deleted the fix_win_build_error branch February 23, 2026 13:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants