diff options
author | Ruslan Ermilov <ru@FreeBSD.org> | 2002-08-02 18:04:22 +0000 |
---|---|---|
committer | Ruslan Ermilov <ru@FreeBSD.org> | 2002-08-02 18:04:22 +0000 |
commit | 32f8ca450d4ca5b61179f4212991b2d21fd16d8f (patch) | |
tree | cf954f8ddb756ce0c32eb6ad33865187d8f1c050 /share/mk | |
parent | 4dd8f14efbb0df7c67b03923627df704da74c801 (diff) | |
download | src-32f8ca450d4ca5b61179f4212991b2d21fd16d8f.tar.gz src-32f8ca450d4ca5b61179f4212991b2d21fd16d8f.zip |
TARGET_CPUTYPE should exist solely in Makefile.inc1, similar to
TARGET_ARCH and TARGET. This is problematic when one has the =
(unconditional) type of assigment for CPUTYPE in /etc/make.conf.
(This would override what was set on the command line to "make
buildworld".)
Add a (horrible) kludge to Makefile.inc1 to check the type of
assignment for CPUTYPE (only for those who attempts to set it to
a different value). Fix an example make.conf. Fix the kernel's
build-tools target (aicasm only at the moment) to catch up with
bsd.cpu.mk,v 1.15 (BOOTSTRAPPING replaced with NO_CPU_CFLAGS in
Makefile.inc1's BMAKE).
Reviewed by: jhb
Notes
Notes:
svn path=/head/; revision=101232
Diffstat (limited to 'share/mk')
-rw-r--r-- | share/mk/bsd.cpu.mk | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/share/mk/bsd.cpu.mk b/share/mk/bsd.cpu.mk index 7a9d7e241e8f..1fd7427af6a2 100644 --- a/share/mk/bsd.cpu.mk +++ b/share/mk/bsd.cpu.mk @@ -1,16 +1,10 @@ # $FreeBSD$ -# Allow TARGET_CPUTYPE to override CPUTYPE to handle the cross-build case. - -.if defined(TARGET_CPUTYPE) -CPUTYPE = ${TARGET_CPUTYPE} -.endif - # Set default CPU compile flags and baseline CPUTYPE for each arch. The # compile flags must support the minimum CPU type for each architecture but # may tune support for more advanced processors. -.if !defined(CPUTYPE) || ${CPUTYPE} == "" +.if !defined(CPUTYPE) || empty(CPUTYPE) . if ${MACHINE_ARCH} == "i386" _CPUCFLAGS = -mcpu=pentiumpro CPUTYPE = i386 |