Skip to content

Commit

Permalink
[Rootfs] Rename armv6l -> armv7l only for the GCCBootstrap shard
Browse files Browse the repository at this point in the history
  • Loading branch information
giordano committed Dec 2, 2021
1 parent 06718ae commit a1c706e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Rootfs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,10 @@ function artifact_name(cs::CompilerShard)
if cs.target != nothing
target_str = "-$(triplet(cs.target))"

# armv6l uses the same shards as armv7l, so we just rename here.
target_str = replace(target_str, "-armv6l-linux" => "-armv7l-linux")
if cs.name == "GCCBootstrap"
# armv6l uses the same GCC shards as armv7l, so we just rename here.
target_str = replace(target_str, "-armv6l-linux" => "-armv7l-linux")
end
end
ext = Dict(:squashfs => "squashfs", :unpacked => "unpacked")[cs.archive_type]
return "$(cs.name)$(target_str).v$(cs.version).$(triplet(cs.host)).$(ext)"
Expand Down

0 comments on commit a1c706e

Please sign in to comment.