File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change 22
33set -exuo pipefail
44
5+ ARMV7_ARCHITECTURE=" armv7"
6+
57GPG_KEY_ID=" 77193F152BDBE6A6"
68MOUNTPOINT=" /mnt"
9+ ARCHITECTURE=" $( cat /etc/apk/arch) "
710
811apk update
912apk add --no-cache arch-install-scripts
1013
11- if [ " $( cat /etc/apk/arch ) " = " armv7 " ]; then
14+ if [ " ${ARCHITECTURE} " = " ${ARMV7_ARCHITECTURE} " ]; then
1215 sed -i ' /Architecture/s/auto/armv7h/' /etc/pacman.conf
1316fi
1417
@@ -27,3 +30,8 @@ pacman-key --lsign-key "${GPG_KEY_ID}"
2730mkdir -p " ${MOUNTPOINT} "
2831pacstrap " ${MOUNTPOINT} " base arch-install-scripts $@
2932rm -r " ${MOUNTPOINT} /var/cache/pacman/pkg"
33+
34+ if [ " ${ARCHITECTURE} " = " ${ARMV7_ARCHITECTURE} " ]; then
35+ # fix bug in armv7h pacman https://archlinuxarm.org/forum/viewtopic.php?f=57&t=16830
36+ sed -i ' /^CFLAGS=/,/^[[:upper:]]+=/{s/[[:space:]]*-mno-omit-leaf-frame-pointer\b//g}' " ${MOUNTPOINT} /etc/makepkg.conf"
37+ fi
You can’t perform that action at this time.
0 commit comments