patch-1.3.42 linux/arch/i386/boot/compressed/Makefile

Next file: linux/arch/i386/boot/setup.S
Previous file: linux/arch/i386/boot/bootsect.S
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.41/linux/arch/i386/boot/compressed/Makefile linux/arch/i386/boot/compressed/Makefile
@@ -11,6 +11,10 @@
 
 CFLAGS = -O2 -DSTDC_HEADERS
 
+ifdef SMP
+CFLAGS := $(CFLAGS) -D__SMP__
+endif
+
 ifdef CONFIG_KERNEL_ELF
 TARGET=--target elf32-i386
 INPUT_DATA=input_data
@@ -22,8 +26,17 @@
 vmlinux: piggy.o $(OBJECTS)
 	$(LD) $(ZLINKFLAGS) -o vmlinux $(OBJECTS) piggy.o
 
+ifdef SMP
+
+head.o: head.S $(TOPDIR)/include/linux/tasks.h
+	$(CC) -D__SMP__ -traditional -c head.S
+
+else
+
 head.o: head.S $(TOPDIR)/include/linux/tasks.h
 	$(CC) -traditional -c head.S
+
+endif
 
 ifdef CONFIG_KERNEL_ELF
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this