hacks for uImage and GPH compatible modules
[pandora-kernel.git] / Makefile
index 7fb1a2c..d617b08 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,7 @@
 VERSION = 2
 PATCHLEVEL = 6
 SUBLEVEL = 24
-EXTRAVERSION = -rc4
+EXTRAVERSION =
 NAME = Arr Matey! A Hairy Bilge Rat!
 
 # *DOCUMENTATION*
@@ -12,7 +12,7 @@ NAME = Arr Matey! A Hairy Bilge Rat!
 
 # Do not:
 # o  use make's built-in rules and variables
-#    (this increases performance and avoid hard-to-debug behavour);
+#    (this increases performance and avoids hard-to-debug behaviour);
 # o  print "Entering directory ...";
 MAKEFLAGS += -rR --no-print-directory
 
@@ -190,8 +190,9 @@ SUBARCH := $(shell uname -m | sed -e s/i.86/i386/ -e s/sun4u/sparc64/ \
 # Default value for CROSS_COMPILE is not to prefix executables
 # Note: Some architectures assign CROSS_COMPILE in their arch/*/Makefile
 
-ARCH           ?= $(SUBARCH)
-CROSS_COMPILE  ?=
+ARCH           ?= arm
+CROSS_COMPILE  ?= arm-linux-
+#CROSS_COMPILE ?= arm-wiz-linux-gnueabi-
 
 # Architecture as present in compile.h
 UTS_MACHINE    := $(ARCH)
@@ -318,7 +319,12 @@ MODFLAGS   = -DMODULE
 CFLAGS_MODULE   = $(MODFLAGS)
 AFLAGS_MODULE   = $(MODFLAGS)
 LDFLAGS_MODULE  =
-CFLAGS_KERNEL  =
+ifeq ("$(CROSS_COMPILE)", "arm-wiz-linux-gnueabi-")
+CFLAGS_KERNEL  = -fno-tree-scev-cprop
+endif
+ifeq ("$(CROSS_COMPILE)", "arm-linux-")
+CFLAGS_KERNEL  = 
+endif
 AFLAGS_KERNEL  =
 
 
@@ -574,6 +580,11 @@ export     INSTALL_PATH ?= /boot
 # relocations required by build roots.  This is not defined in the
 # makefile but the argument can be passed to make if needed.
 #
+# ghcstop add
+INSTALL_MOD_PATH := $(shell \
+       if [ -f .insignal_module_installdir ]; then \
+       echo -n "`cat .insignal_module_installdir`"; \
+       fi)
 
 MODLIB = $(INSTALL_MOD_PATH)/lib/modules/$(KERNELRELEASE)
 export MODLIB
@@ -1329,7 +1340,7 @@ else
 ALLINCLUDE_ARCHS := $(SRCARCH)
 endif
 else
-#Allow user to specify only ALLSOURCE_PATHS on the command line, keeping existing behavour.
+#Allow user to specify only ALLSOURCE_PATHS on the command line, keeping existing behaviour.
 ALLINCLUDE_ARCHS := $(ALLSOURCE_ARCHS)
 endif