-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge tag 'linux-kselftest-4.1-rc4' of git://git.kernel.org/pub/scm/l…
…inux/kernel/git/shuah/linux-kselftest Pull kselftest fixes from Shuah Khan: "Urgent fix for Kselftest regression introduced in 4.1-rc1 by the new x86 test due to its hard dependency on 32-bit build environment. A set of 5 patches fix the make kselftest run and kselftest install" * tag 'linux-kselftest-4.1-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest: selftests, x86: Rework x86 target architecture detection selftests, x86: Remove useless run_tests rule selftests/x86: install tests selftest/x86: have no dependency on all when cross building selftest/x86: build both bitnesses
- Loading branch information
Showing
5 changed files
with
69 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/bin/sh | ||
# check_cc.sh - Helper to test userspace compilation support | ||
# Copyright (c) 2015 Andrew Lutomirski | ||
# GPL v2 | ||
|
||
CC="$1" | ||
TESTPROG="$2" | ||
shift 2 | ||
|
||
if "$CC" -o /dev/null "$TESTPROG" -O0 "$@" 2>/dev/null; then | ||
echo 1 | ||
else | ||
echo 0 | ||
fi | ||
|
||
exit 0 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,10 @@ | |
* GPL v2 | ||
*/ | ||
|
||
#ifndef __i386__ | ||
# error wrong architecture | ||
#endif | ||
|
||
#include <stdio.h> | ||
|
||
int main() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
/* | ||
* Trivial program to check that we have a valid 32-bit build environment. | ||
* Copyright (c) 2015 Andy Lutomirski | ||
* GPL v2 | ||
*/ | ||
|
||
#ifndef __x86_64__ | ||
# error wrong architecture | ||
#endif | ||
|
||
#include <stdio.h> | ||
|
||
int main() | ||
{ | ||
printf("\n"); | ||
|
||
return 0; | ||
} |