Skip to content

Commit

Permalink
mkosi: dev-fedora: Use [Match] for cross compiler packages
Browse files Browse the repository at this point in the history
Signed-off-by: Nathan Chancellor <[email protected]>
  • Loading branch information
nathanchance committed Jan 8, 2025
1 parent 43cb62c commit 297cc6d
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 10 deletions.
5 changes: 5 additions & 0 deletions mkosi/dev-fedora/mkosi.conf.d/00-arm64-cross-compilers.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[Content]
Packages=binutils-x86_64-linux-gnu
gcc-x86_64-linux-gnu
[Match]
Architecture=arm64
5 changes: 5 additions & 0 deletions mkosi/dev-fedora/mkosi.conf.d/00-x86_64-cross-compilers.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[Content]
Packages=binutils-aarch64-linux-gnu
gcc-aarch64-linux-gnu
[Match]
Architecture=x86-64
12 changes: 2 additions & 10 deletions mkosi/dev-fedora/mkosi.postinst.d/01-install-packages.fish.chroot
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

# Setup external repos
curl -LSso /etc/yum.repos.d/gh-cli.repo https://cli.github.com/packages/rpm/gh-cli.repo
or return

echo '[tuxmake]
name=tuxmake
Expand All @@ -14,15 +15,6 @@ enabled=1' >/etc/yum.repos.d/tuxmake.repo
dnf update -y
or return

set packages \
dnf install -y \
gh \
tuxmake
switch $ARCHITECTURE
case arm64
set -a packages {binutils,gcc}-x86_64-linux-gnu
case x86-64
set -a packages {binutils,gcc}-aarch64-linux-gnu
end

dnf install -y $packages
or return

0 comments on commit 297cc6d

Please sign in to comment.