Skip to content

Commit

Permalink
Add more ARM archs
Browse files Browse the repository at this point in the history
  • Loading branch information
2m committed Feb 26, 2016
1 parent 9792308 commit 34dfea0
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
16 changes: 15 additions & 1 deletion contrib/mkimage-arch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ case "$(uname -m)" in
PACMAN_EXTRA_PKGS='archlinuxarm-keyring'
EXPECT_TIMEOUT=120
ARCH_KEYRING=archlinuxarm
DOCKER_IMAGE_NAME=archlinuxarm
DOCKER_IMAGE_NAME=$(uname -m)-archlinux
;;
*)
PACMAN_CONF='./mkimage-arch-pacman.conf'
Expand All @@ -74,6 +74,20 @@ case "$(uname -m)" in
;;
esac

case "$(uname -m)" in
armv6*)
PACMAN_ARCH=armv6h
;;
armv7*)
PACMAN_ARCH=armv7h
;;
*)
PACMAN_ARCH=arm
;;
esac

sed s/%ARCH%/$PACMAN_ARCH/g mkimage-archarm-pacman.conf.template > mkimage-archarm-pacman.conf

export PACMAN_MIRRORLIST

expect <<EOF
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ HoldPkg = pacman glibc
#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
#CleanMethod = KeepInstalled
#UseDelta = 0.7
Architecture = armv7h
Architecture = %ARCH%

# Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup
#IgnorePkg =
Expand Down

0 comments on commit 34dfea0

Please sign in to comment.