Permalink
Browse files

Fix up 'Add sparse support' in f61834d

Forgot to commit the checkarch.sh script.

Signed-off-by: Mark Harvey <markh794@gmail.com>
  • Loading branch information...
markh794 committed Nov 20, 2012
1 parent ccc74cd commit af0219b411cad1cc1d1bfbd3b193820ea6de3e92
Showing with 27 additions and 1 deletion.
  1. +1 −1 Makefile
  2. +26 −0 scripts/checkarch.sh
View
@@ -47,7 +47,7 @@ kernel: patch
$(MAKE) -C kernel
.PHONY:check
-check: ARCH=$(shell sh script/checkarch.sh)
+check: ARCH=$(shell sh scripts/checkarch.sh)
check:
CC=$(CHECK_CC_FLAGS) $(MAKE) all
View
@@ -0,0 +1,26 @@
+#!/bin/sh
+arch=`gcc -dumpmachine`
+
+case $arch in
+`echo $arch | grep x86_64`)
+ echo -m64
+ ;;
+`echo $arch | grep "i[3-6]86"`)
+ echo -m32
+ ;;
+*)
+ echo '
+ Failed to parse your architecture.
+ Please run
+
+ $ make check32
+
+ or
+
+ $ make check64
+
+ manually.
+ '
+ exit 1
+;;
+esac

0 comments on commit af0219b

Please sign in to comment.