patch-2.0.34 linux/arch/alpha/Makefile

Next file: linux/arch/alpha/boot/Makefile
Previous file: linux/Makefile
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.0.33/linux/arch/alpha/Makefile linux/arch/alpha/Makefile
@@ -26,6 +26,21 @@
 
 CFLAGS := $(CFLAGS) -mno-fp-regs
 
+# determine if we can use the BWX instructions with GAS
+$(shell rm -f /tmp/GAS_VER)
+#$(shell $(AS) --version >& /tmp/GAS_VER)
+$(shell $(AS) --version > /tmp/GAS_VER 2>&1)
+OLD_GAS := $(shell if cat /tmp/GAS_VER | grep 'version 2.7' > /dev/null; then echo yes; else echo no; fi)
+
+ifneq ($(OLD_GAS),yes)
+ CFLAGS := $(CFLAGS) -Wa,-m21164a -DBWX_USABLE
+
+# if PYXIS, then enable use of BWIO space
+ ifeq ($(CONFIG_ALPHA_PYXIS),y)
+  CFLAGS := $(CFLAGS) -DBWIO_ENABLED
+ endif
+endif
+
 HEAD := arch/alpha/kernel/head.o
 
 SUBDIRS := $(SUBDIRS) arch/alpha/kernel arch/alpha/mm arch/alpha/lib \
@@ -57,3 +72,6 @@
 
 archdep:
 	@$(MAKEBOOT) dep
+
+bootpfile:
+	@$(MAKEBOOT) bootpfile

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov