summaryrefslogtreecommitdiff
path: root/bin/build-packages
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2019-04-14 19:41:57 +0200
committerErich Eckner <git@eckner.net>2019-04-14 19:41:57 +0200
commitff370122a964424f729fc4e478a1a84cc967a074 (patch)
tree0531a9bc80c15f860ff9051a9fca6ad137205052 /bin/build-packages
parentb408d8fb7c4692be53590175ce5eb05f4e12a362 (diff)
downloadbuilder-ff370122a964424f729fc4e478a1a84cc967a074.tar.xz
bin/build-packages: request "pentium4" packages if we have sse2
Diffstat (limited to 'bin/build-packages')
-rwxr-xr-xbin/build-packages7
1 files changed, 6 insertions, 1 deletions
diff --git a/bin/build-packages b/bin/build-packages
index 990c1bb..19e836f 100755
--- a/bin/build-packages
+++ b/bin/build-packages
@@ -210,7 +210,12 @@ while [ "${count}" -ne 0 ] && \
arch='i486'
;;
'i686'|'x86_64')
- arch='i686'
+ if grep '^flags\s*:' '/proc/cpuinfo' | \
+ grep -qwF 'sse2'; then
+ arch='pentium4'
+ else
+ arch='i686'
+ fi
;;
# TODO: someone should request build assignments for "pentium4"
# It's probably a good idea to let pentium4 build slaves also build i686