VERSION = 2
PATCHLEVEL = 6
SUBLEVEL = 24
-EXTRAVERSION = -rc8
+EXTRAVERSION =
NAME = Arr Matey! A Hairy Bilge Rat!
# *DOCUMENTATION*
# 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
# 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)
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 =
# 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
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