Module Name: src
Committed By: joerg
Date: Fri May 20 22:29:56 UTC 2011
Modified Files:
src/sys/arch/i386/stand/boot: Makefile.boot
src/sys/arch/i386/stand/bootxx: Makefile.bootxx
src/sys/arch/i386/stand/cdboot: Makefile
src/sys/arch/i386/stand/dosboot: Makefile
src/sys/arch/i386/stand/fatboot: Makefile.fat
src/sys/arch/i386/stand/lib: Makefile
src/sys/arch/i386/stand/netboot: Makefile.netboot
src/sys/arch/i386/stand/pxeboot: Makefile
Log Message:
Disable integrated assembler for files that use .code16 or .code32 for
now. Disable Clang completely for bootxx and netboot for now until the
size issue has been sorted out.
To generate a diff of this commit:
cvs rdiff -u -r1.50 -r1.51 src/sys/arch/i386/stand/boot/Makefile.boot
cvs rdiff -u -r1.39 -r1.40 src/sys/arch/i386/stand/bootxx/Makefile.bootxx
cvs rdiff -u -r1.11 -r1.12 src/sys/arch/i386/stand/cdboot/Makefile
cvs rdiff -u -r1.25 -r1.26 src/sys/arch/i386/stand/dosboot/Makefile
cvs rdiff -u -r1.5 -r1.6 src/sys/arch/i386/stand/fatboot/Makefile.fat
cvs rdiff -u -r1.31 -r1.32 src/sys/arch/i386/stand/lib/Makefile
cvs rdiff -u -r1.8 -r1.9 src/sys/arch/i386/stand/netboot/Makefile.netboot
cvs rdiff -u -r1.20 -r1.21 src/sys/arch/i386/stand/pxeboot/Makefile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/i386/stand/boot/Makefile.boot
diff -u src/sys/arch/i386/stand/boot/Makefile.boot:1.50 src/sys/arch/i386/stand/boot/Makefile.boot:1.51
--- src/sys/arch/i386/stand/boot/Makefile.boot:1.50 Sat Feb 26 18:22:58 2011
+++ src/sys/arch/i386/stand/boot/Makefile.boot Fri May 20 22:29:55 2011
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.boot,v 1.50 2011/02/26 18:22:58 jakllsch Exp $
+# $NetBSD: Makefile.boot,v 1.51 2011/05/20 22:29:55 joerg Exp $
S= ${.CURDIR}/../../../../..
@@ -7,6 +7,8 @@
NEWVERSWHAT?= "BIOS Boot"
VERSIONFILE?= ${.CURDIR}/../version
+AFLAGS.biosboot.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:}
+
SOURCES?= biosboot.S boot2.c conf.c devopen.c exec.c
SRCS= ${SOURCES}
.if !make(depend)
Index: src/sys/arch/i386/stand/bootxx/Makefile.bootxx
diff -u src/sys/arch/i386/stand/bootxx/Makefile.bootxx:1.39 src/sys/arch/i386/stand/bootxx/Makefile.bootxx:1.40
--- src/sys/arch/i386/stand/bootxx/Makefile.bootxx:1.39 Thu May 27 06:58:14 2010
+++ src/sys/arch/i386/stand/bootxx/Makefile.bootxx Fri May 20 22:29:55 2011
@@ -1,7 +1,13 @@
-# $NetBSD: Makefile.bootxx,v 1.39 2010/05/27 06:58:14 dholland Exp $
+# $NetBSD: Makefile.bootxx,v 1.40 2011/05/20 22:29:55 joerg Exp $
S= ${.CURDIR}/../../../../..
+UNSUPPORTED_COMPILER.clang= # defined
+
+AFLAGS.bootxx.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:}
+AFLAGS.label.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:}
+AFLAGS.pbr.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:}
+
PIE_CFLAGS=
PIE_LDFLAGS=
PIE_AFLAGS=
Index: src/sys/arch/i386/stand/cdboot/Makefile
diff -u src/sys/arch/i386/stand/cdboot/Makefile:1.11 src/sys/arch/i386/stand/cdboot/Makefile:1.12
--- src/sys/arch/i386/stand/cdboot/Makefile:1.11 Sun Jan 2 02:31:32 2011
+++ src/sys/arch/i386/stand/cdboot/Makefile Fri May 20 22:29:55 2011
@@ -1,7 +1,9 @@
-# $NetBSD: Makefile,v 1.11 2011/01/02 02:31:32 jakllsch Exp $
+# $NetBSD: Makefile,v 1.12 2011/05/20 22:29:55 joerg Exp $
S= ${.CURDIR}/../../../..
+AFLAGS.cdboot.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:}
+
NOMAN= # defined
.include <bsd.own.mk>
Index: src/sys/arch/i386/stand/dosboot/Makefile
diff -u src/sys/arch/i386/stand/dosboot/Makefile:1.25 src/sys/arch/i386/stand/dosboot/Makefile:1.26
--- src/sys/arch/i386/stand/dosboot/Makefile:1.25 Mon Mar 30 09:22:52 2009
+++ src/sys/arch/i386/stand/dosboot/Makefile Fri May 20 22:29:55 2011
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.25 2009/03/30 09:22:52 tsutsui Exp $
+# $NetBSD: Makefile,v 1.26 2011/05/20 22:29:55 joerg Exp $
S= ${.CURDIR}/../../../..
@@ -9,6 +9,9 @@
STARTFILE= ${DOSSTART}
RELOC= 0x100
+AFLAGS.dosboot.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:}
+AFLAGS.start_dos.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:}
+
SRCS= main.c devopen.c exec.c
CPPFLAGS+= -DSLOW # for libz
Index: src/sys/arch/i386/stand/fatboot/Makefile.fat
diff -u src/sys/arch/i386/stand/fatboot/Makefile.fat:1.5 src/sys/arch/i386/stand/fatboot/Makefile.fat:1.6
--- src/sys/arch/i386/stand/fatboot/Makefile.fat:1.5 Mon Mar 30 09:22:52 2009
+++ src/sys/arch/i386/stand/fatboot/Makefile.fat Fri May 20 22:29:56 2011
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.fat,v 1.5 2009/03/30 09:22:52 tsutsui Exp $
+# $NetBSD: Makefile.fat,v 1.6 2011/05/20 22:29:56 joerg Exp $
S= ${.CURDIR}/../../../../..
@@ -10,6 +10,8 @@
LIBCRTEND= # nothing
LIBC= # nothing
+AFLAGS.fatboot.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:}
+
PIE_CFLAGS=
PIE_LDFLAGS=
PIE_AFLAGS=
Index: src/sys/arch/i386/stand/lib/Makefile
diff -u src/sys/arch/i386/stand/lib/Makefile:1.31 src/sys/arch/i386/stand/lib/Makefile:1.32
--- src/sys/arch/i386/stand/lib/Makefile:1.31 Wed Jan 5 22:06:59 2011
+++ src/sys/arch/i386/stand/lib/Makefile Fri May 20 22:29:56 2011
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.31 2011/01/05 22:06:59 jakllsch Exp $
+# $NetBSD: Makefile,v 1.32 2011/05/20 22:29:56 joerg Exp $
S?= ${.CURDIR}/../../../..
@@ -11,6 +11,28 @@
I386_INCLUDE_BUS?= no
I386_INCLUDE_PS2?= yes
+AFLAGS.biosdelay.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:}
+AFLAGS.biosgetrtc.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:}
+AFLAGS.biosgetsystime.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:}
+AFLAGS.biosmca.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:}
+AFLAGS.biosmemps2.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:}
+AFLAGS.biosmem.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:}
+AFLAGS.biosmemx.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:}
+AFLAGS.biosreboot.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:}
+AFLAGS.biosvbe.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:}
+AFLAGS.biosvideomode.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:}
+AFLAGS.bios_disk.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:}
+AFLAGS.bios_pci.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:}
+AFLAGS.comio.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:}
+AFLAGS.conio.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:}
+AFLAGS.dos_file.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:}
+AFLAGS.dump_eax.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:}
+AFLAGS.message.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:}
+AFLAGS.message32.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:}
+AFLAGS.pvcopy.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:}
+AFLAGS.putstr.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:}
+AFLAGS.realprot.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:}
+
CPPFLAGS= -I$S/lib/libsa ${I386CPPFLAGS} ${I386MISCCPPFLAGS}
#CPPFLAGS+= -DDISK_DEBUG
#CPPFLAGS+= -DNO_DISKLABEL
Index: src/sys/arch/i386/stand/netboot/Makefile.netboot
diff -u src/sys/arch/i386/stand/netboot/Makefile.netboot:1.8 src/sys/arch/i386/stand/netboot/Makefile.netboot:1.9
--- src/sys/arch/i386/stand/netboot/Makefile.netboot:1.8 Mon Mar 30 09:22:52 2009
+++ src/sys/arch/i386/stand/netboot/Makefile.netboot Fri May 20 22:29:56 2011
@@ -1,7 +1,11 @@
-# $NetBSD: Makefile.netboot,v 1.8 2009/03/30 09:22:52 tsutsui Exp $
+# $NetBSD: Makefile.netboot,v 1.9 2011/05/20 22:29:56 joerg Exp $
NOMAN= # defined
+UNSUPPORTED_COMPILER.clang= # defined
+
+AFLAGS.start_rom.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:}
+
PIE_CFLAGS=
PIE_LDFLAGS=
PIE_AFLAGS=
Index: src/sys/arch/i386/stand/pxeboot/Makefile
diff -u src/sys/arch/i386/stand/pxeboot/Makefile:1.20 src/sys/arch/i386/stand/pxeboot/Makefile:1.21
--- src/sys/arch/i386/stand/pxeboot/Makefile:1.20 Sun Jan 17 17:02:47 2010
+++ src/sys/arch/i386/stand/pxeboot/Makefile Fri May 20 22:29:56 2011
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.20 2010/01/17 17:02:47 drochner Exp $
+# $NetBSD: Makefile,v 1.21 2011/05/20 22:29:56 joerg Exp $
S= ${.CURDIR}/../../../..
@@ -9,6 +9,9 @@
STARTFILE= ${PXESTART}
RELOC= 0x0
+AFLAGS.pxe_call.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:}
+AFLAGS.start_pxe.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:}
+
.if (${BASE} != "pxeboot_ia32")
.PATH.c: ${.CURDIR}/../pxeboot
.PATH.S: ${.CURDIR}/../pxeboot