Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 2 Dec 2017 00:07:04 +0000 (UTC)
From:      Warner Losh <imp@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r326442 - in head/stand: . powerpc/boot1.chrp
Message-ID:  <201712020007.vB2074ke033637@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: imp
Date: Sat Dec  2 00:07:04 2017
New Revision: 326442
URL: https://svnweb.freebsd.org/changeset/base/326442

Log:
  Cleanup CFALGS usage here
  
  Only define the CFLAGS we need.
  SSP_CFLAGS is now defined globally, no need to define it here.
  Define -D_STANDALONE globally for src/stand builds.
  
  Sponsored by: Netflix

Modified:
  head/stand/defs.mk
  head/stand/powerpc/boot1.chrp/Makefile

Modified: head/stand/defs.mk
==============================================================================
--- head/stand/defs.mk	Sat Dec  2 00:06:58 2017	(r326441)
+++ head/stand/defs.mk	Sat Dec  2 00:07:04 2017	(r326442)
@@ -39,7 +39,7 @@ LIBSA32=	${BOOTOBJ}/libsa32/libsa32.a
 .endif
 
 # Standard options:
-CFLAGS+=	-I${SASRC}
+CFLAGS+=	-I${SASRC} -D_STANDALONE
 CFLAGS+=	-I${SYSDIR}
 
 # Filesystem support

Modified: head/stand/powerpc/boot1.chrp/Makefile
==============================================================================
--- head/stand/powerpc/boot1.chrp/Makefile	Sat Dec  2 00:06:58 2017	(r326441)
+++ head/stand/powerpc/boot1.chrp/Makefile	Sat Dec  2 00:07:04 2017	(r326442)
@@ -2,8 +2,6 @@
 
 .include <bsd.init.mk>
 
-SSP_CFLAGS=
-
 PROG=           boot1.elf
 NEWVERSWHAT=    "Open Firmware boot block" ${MACHINE_ARCH}
 INSTALLFLAGS=   -b
@@ -13,7 +11,7 @@ SRCS=		boot1.c ashldi3.c syncicache.c
 
 MAN=
 
-CFLAGS= -I${LDRSRC} -I${SYSDIR} -I${SASRC} -D_STANDALONE
+CFLAGS+=-I${LDRSRC}
 LDFLAGS=-nostdlib -static -Wl,-N
 
 .PATH:  ${SYSDIR}/libkern ${SRCTOP}/lib/libc/powerpc/gen ${.CURDIR}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201712020007.vB2074ke033637>