aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Terjan <pterjan@gmail.com>2016-01-09 21:38:52 +0000
committerPascal Terjan <pterjan@gmail.com>2016-01-09 21:38:52 +0000
commitb234b23494d34c20b963e44a69b69e91561413ea (patch)
treea94e27e8c5b6d9b4bc35b5a78bbe0054ddb258c3
parentd46d2da02e3b9d064f3ad78e128e99a7976c6ed1 (diff)
downloadspec-helper-b234b23494d34c20b963e44a69b69e91561413ea.tar
spec-helper-b234b23494d34c20b963e44a69b69e91561413ea.tar.gz
spec-helper-b234b23494d34c20b963e44a69b69e91561413ea.tar.bz2
spec-helper-b234b23494d34c20b963e44a69b69e91561413ea.tar.xz
spec-helper-b234b23494d34c20b963e44a69b69e91561413ea.zip
Add a new helper to disable SMP.
This is needed when running armv5 code on SMP armv7 build machines.
-rw-r--r--Makefile3
-rw-r--r--NEWS1
-rwxr-xr-xrestrict_to_cpu02
3 files changed, 5 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 8f293e0..f6382ce 100644
--- a/Makefile
+++ b/Makefile
@@ -3,7 +3,8 @@ VERSION = 0.31.10
SCRIPT_FILES = clean_files clean_perl compress_files check_elf_files \
lib_symlinks fix_mo translate_menu \
- fix_pamd gprintify remove_info_dir relink_symlinks fix_eol
+ fix_pamd gprintify remove_info_dir relink_symlinks fix_eol \
+ restrict_to_cpu0
BIN_FILES = macroszification
MACROS_FILES = spec-helper.macros
TEST_FILES = t/*.t
diff --git a/NEWS b/NEWS
index 3f89fdb..1899a18 100644
--- a/NEWS
+++ b/NEWS
@@ -1,4 +1,5 @@
* compress_files: drop support for LZMA
+ * restrict_to_cpu0: new helper to prevent SMP on some arches
2015-07-25 Shlomi Fish <shlomif@cpan.org> 0.31.10
* compress_files: More proper handling of $_. Convert as much as possible
diff --git a/restrict_to_cpu0 b/restrict_to_cpu0
new file mode 100755
index 0000000..febc67a
--- /dev/null
+++ b/restrict_to_cpu0
@@ -0,0 +1,2 @@
+#!/bin/sh
+/usr/bin/taskset -c 0 /bin/sh "$1"