PERFORCE change 125772 for review

Rafal Jaworowski raj at FreeBSD.org
Tue Aug 28 03:27:34 PDT 2007


http://perforce.freebsd.org/chv.cgi?CH=125772

Change 125772 by raj at raj_booke_intgr on 2007/08/28 10:27:21

	Add appropriate CPU flag to build e500 PowerPC machine code
	
	Kernel built without e500-specific flag does not run on MPC8555; in
	order to produce a working kernel use:
	
	make buildkernel TARGET_ARCH=powerpc TARGET_CPUTYPE=e500 KERNCONF=...

Affected files ...

.. //depot/projects/e500/share/mk/bsd.cpu.mk#4 edit

Differences ...

==== //depot/projects/e500/share/mk/bsd.cpu.mk#4 (text+ko) ====

@@ -173,6 +173,13 @@
 LD += -EB
 .endif
 
+.if ${MACHINE_ARCH} == "powerpc"
+.  if ${CPUTYPE} == "e500"
+MACHINE_CPU = e500
+_CPUCFLAGS+= -Wa,-me500
+.  endif
+.endif
+
 # NB: COPTFLAGS is handled in /usr/src/sys/conf/kern.pre.mk
 
 .if !defined(NO_CPU_CFLAGS)


More information about the p4-projects mailing list