Switch remaining platforms to modern CPP for assembler.diff -r1.219 -r1.220 src/UPDATING
(joerg)
--- src/UPDATING 2011/01/17 18:11:09 1.219
+++ src/UPDATING 2011/01/21 15:59:04 1.220
@@ -1,541 +1,535 @@ | @@ -1,541 +1,535 @@ | |||
1 | $NetBSD: UPDATING,v 1.219 2011/01/17 18:11:09 joerg Exp $ | 1 | $NetBSD: UPDATING,v 1.220 2011/01/21 15:59:04 joerg Exp $ | |
2 | 2 | |||
3 | This file (UPDATING) is intended to be a brief reference to recent | 3 | This file (UPDATING) is intended to be a brief reference to recent | |
4 | changes that might cause problems in the build process, and a guide for | 4 | changes that might cause problems in the build process, and a guide for | |
5 | what to do if something doesn't work. | 5 | what to do if something doesn't work. | |
6 | 6 | |||
7 | For a more detailed description of the recommended way to build NetBSD | 7 | For a more detailed description of the recommended way to build NetBSD | |
8 | using build.sh, see the BUILDING file. | 8 | using build.sh, see the BUILDING file. | |
9 | 9 | |||
10 | Note that much of the advice in this UPDATING file was written before | 10 | Note that much of the advice in this UPDATING file was written before | |
11 | build.sh existed. Nevertheless, the advice here may be useful for | 11 | build.sh existed. Nevertheless, the advice here may be useful for | |
12 | working around specific problems with build.sh. | 12 | working around specific problems with build.sh. | |
13 | 13 | |||
14 | See also: BUILDING, build.sh, Makefile. | 14 | See also: BUILDING, build.sh, Makefile. | |
15 | 15 | |||
16 | Recent changes: | 16 | Recent changes: | |
17 | ^^^^^^^^^^^^^^^ | 17 | ^^^^^^^^^^^^^^^ | |
18 | 20110117: | 18 | 20110121: | |
19 | Assembler files on the following platforms no longer use -tradition-cpp: | 19 | Assembler files no longer use -tradition-cpp. This can break | |
20 | - Alpha, | 20 | the build of individual parts of the tree. This is handled | |
21 | - AMD64, | 21 | correctly by build.sh. Manual builds have to update /usr/share/mk | |
22 | - i386, | 22 | and re-run config(1) for any kernel configurations as needed. | |
23 | - SPARC, | |||
24 | - SPARC64. | |||
25 | This can break the build of individual parts of the tree. This is | |||
26 | handled correctly by build.sh. Manual builds have to update | |||
27 | /usr/share/mk and re-run config(1) for any kernel configurations as | |||
28 | needed. | |||
29 | 23 | |||
30 | 20101217: | 24 | 20101217: | |
31 | The tcpdump(8) program was changed to drop privileges and chroot(2) | 25 | The tcpdump(8) program was changed to drop privileges and chroot(2) | |
32 | by default. It may be necessary to manually update passwd(5) and | 26 | by default. It may be necessary to manually update passwd(5) and | |
33 | group(5) in order to make the program work with existing setups. | 27 | group(5) in order to make the program work with existing setups. | |
34 | 28 | |||
35 | 20101125: | 29 | 20101125: | |
36 | The latest changes to setenv(3) dissallow setting environment | 30 | The latest changes to setenv(3) dissallow setting environment | |
37 | variables with names that contain '='. Revision 1.18 of env.c | 31 | variables with names that contain '='. Revision 1.18 of env.c | |
38 | assumed that this was allowed. Installing a new libc with an | 32 | assumed that this was allowed. Installing a new libc with an | |
39 | old copy of /usr/bin/env causes env x=1 printenv | grep x= to | 33 | old copy of /usr/bin/env causes env x=1 printenv | grep x= to | |
40 | break which affects the autoconf tests for dependency finding, | 34 | break which affects the autoconf tests for dependency finding, | |
41 | so building gcc will end up printing: | 35 | so building gcc will end up printing: | |
42 | checking dependency style of gcc... none | 36 | checking dependency style of gcc... none | |
43 | configure: error: no usable dependency style found | 37 | configure: error: no usable dependency style found | |
44 | Fix it by rebuilding and re-installing env. | 38 | Fix it by rebuilding and re-installing env. | |
45 | 39 | |||
46 | 20101119: | 40 | 20101119: | |
47 | Recent Xorg updates in xsrc/external/mit/ may cause various build | 41 | Recent Xorg updates in xsrc/external/mit/ may cause various build | |
48 | or run-time problems. Delete your entire DESTDIR and OBJDIR if you | 42 | or run-time problems. Delete your entire DESTDIR and OBJDIR if you | |
49 | have any build problems with xsrc, or problems with mismatched | 43 | have any build problems with xsrc, or problems with mismatched | |
50 | versions between xorg-server and drivers. | 44 | versions between xorg-server and drivers. | |
51 | 45 | |||
52 | 20100604: | 46 | 20100604: | |
53 | The update of ATF to 0.9 causes old tests written in shell to fail | 47 | The update of ATF to 0.9 causes old tests written in shell to fail | |
54 | unless they are rebuilt. If you are building with MKUPDATE=yes, | 48 | unless they are rebuilt. If you are building with MKUPDATE=yes, | |
55 | you need to clean the src/external/bsd/atf/tests/ and the src/tests/ | 49 | you need to clean the src/external/bsd/atf/tests/ and the src/tests/ | |
56 | trees by hand. | 50 | trees by hand. | |
57 | 51 | |||
58 | 20100522: | 52 | 20100522: | |
59 | Recent Xorg updates in xsrc/external/mit/ will cause various build | 53 | Recent Xorg updates in xsrc/external/mit/ will cause various build | |
60 | problems. Delete your entire DESTDIR and OBJDIR if you have any | 54 | problems. Delete your entire DESTDIR and OBJDIR if you have any | |
61 | build problems with xsrc. | 55 | build problems with xsrc. | |
62 | 56 | |||
63 | 20100522: | 57 | 20100522: | |
64 | private section of <ctype.h> was splitted, and now mklocale(1) | 58 | private section of <ctype.h> was splitted, and now mklocale(1) | |
65 | include ctype_local.h, so you have to make cleandir in tools/mklocale. | 59 | include ctype_local.h, so you have to make cleandir in tools/mklocale. | |
66 | 60 | |||
67 | 20100520: | 61 | 20100520: | |
68 | The location of the xkb compiled descriptions has changed. Please | 62 | The location of the xkb compiled descriptions has changed. Please | |
69 | remove usr/X11R7/lib/X11/xkb/compiled from your $DESTDIR. | 63 | remove usr/X11R7/lib/X11/xkb/compiled from your $DESTDIR. | |
70 | 64 | |||
71 | 20100222: | 65 | 20100222: | |
72 | The shared objects file extension has been changed from .so to | 66 | The shared objects file extension has been changed from .so to | |
73 | .pico, in order to avoid conflicts with shared libraries names | 67 | .pico, in order to avoid conflicts with shared libraries names | |
74 | libXX.so. All now stale regular .so files can be removed from | 68 | libXX.so. All now stale regular .so files can be removed from | |
75 | your object directories. | 69 | your object directories. | |
76 | 70 | |||
77 | 20100204: | 71 | 20100204: | |
78 | The termcap database has been removed from the sources, | 72 | The termcap database has been removed from the sources, | |
79 | but has not been marked obsolete so it is not removed | 73 | but has not been marked obsolete so it is not removed | |
80 | from the system when upgrading. | 74 | from the system when upgrading. | |
81 | As such, you will need to remove them from your object | 75 | As such, you will need to remove them from your object | |
82 | and destination directories. | 76 | and destination directories. | |
83 | 77 | |||
84 | 20091101: | 78 | 20091101: | |
85 | After updating, it may be necessary to make the 'cleandir' | 79 | After updating, it may be necessary to make the 'cleandir' | |
86 | target in src/tools/yacc/ and in src/usr.bin/yacc/ before a | 80 | target in src/tools/yacc/ and in src/usr.bin/yacc/ before a | |
87 | 'build.sh -u tools' or 'build.sh -u distribution'. Ditto | 81 | 'build.sh -u tools' or 'build.sh -u distribution'. Ditto | |
88 | src/tools/lex/ and src/usr.bin/lex/. | 82 | src/tools/lex/ and src/usr.bin/lex/. | |
89 | 83 | |||
90 | 20091001: | 84 | 20091001: | |
91 | On amd64 you must rebuild tools (to get the new binutils) | 85 | On amd64 you must rebuild tools (to get the new binutils) | |
92 | before building a kernel, or the build fails on cpufunc.S. | 86 | before building a kernel, or the build fails on cpufunc.S. | |
93 | 87 | |||
94 | 20091001: | 88 | 20091001: | |
95 | An error will create a ./usr/X11R7/lib/X11/xkb/compiled/xkb | 89 | An error will create a ./usr/X11R7/lib/X11/xkb/compiled/xkb | |
96 | symlink, failing the build. Delete the link, and the subdir | 90 | symlink, failing the build. Delete the link, and the subdir | |
97 | it is in, and retry your build. | 91 | it is in, and retry your build. | |
98 | 92 | |||
99 | 20090718: | 93 | 20090718: | |
100 | libc build changed so that strchr() provides the extra entry | 94 | libc build changed so that strchr() provides the extra entry | |
101 | point for index(). Update build of libc.a (and libc_pic.a) | 95 | point for index(). Update build of libc.a (and libc_pic.a) | |
102 | may fail because the archive contains the unwanted index.o. | 96 | may fail because the archive contains the unwanted index.o. | |
103 | (Similarly for strrchr() and rindex().) | 97 | (Similarly for strrchr() and rindex().) | |
104 | 98 | |||
105 | 20090709: | 99 | 20090709: | |
106 | Native Xorg was upgraded again. Builds will probably fail again | 100 | Native Xorg was upgraded again. Builds will probably fail again | |
107 | without a clean objdir, at least for src/external/mit/xorg. | 101 | without a clean objdir, at least for src/external/mit/xorg. | |
108 | 102 | |||
109 | 20090616: | 103 | 20090616: | |
110 | Native Xorg was upgraded. Builds will need a clean objdir for | 104 | Native Xorg was upgraded. Builds will need a clean objdir for | |
111 | src/external/mit/xorg. Upgrading a system from sets will not | 105 | src/external/mit/xorg. Upgrading a system from sets will not | |
112 | work properly yet as the /usr/X11R7/lib/X11/xkb/symbols/pc | 106 | work properly yet as the /usr/X11R7/lib/X11/xkb/symbols/pc | |
113 | subdirectory has been changed into a file, and this needs to | 107 | subdirectory has been changed into a file, and this needs to | |
114 | be manually "rm -r"'ed before installing xbase.tgz. | 108 | be manually "rm -r"'ed before installing xbase.tgz. | |
115 | 109 | |||
116 | 20090501: | 110 | 20090501: | |
117 | Several new functions were added to string.h/libc, and this | 111 | Several new functions were added to string.h/libc, and this | |
118 | can cause autoconf problems during the tool build for people | 112 | can cause autoconf problems during the tool build for people | |
119 | who fail to clean out their tools objects properly. If you | 113 | who fail to clean out their tools objects properly. If you | |
120 | note messages about stpcpy, stpncpy or strnlen accompanying a | 114 | note messages about stpcpy, stpncpy or strnlen accompanying a | |
121 | failure during the tool build, clean out all your tools | 115 | failure during the tool build, clean out all your tools | |
122 | objects and start again. | 116 | objects and start again. | |
123 | 117 | |||
124 | 20090325: | 118 | 20090325: | |
125 | The i386 port was switched to i486 default toolchain. This requires | 119 | The i386 port was switched to i486 default toolchain. This requires | |
126 | cleaning your src/tools directory and $TOOLDIR and rebuilding them. | 120 | cleaning your src/tools directory and $TOOLDIR and rebuilding them. | |
127 | 121 | |||
128 | 20090126: | 122 | 20090126: | |
129 | The __posix_fadvise50 system call changed assembly stub type. You | 123 | The __posix_fadvise50 system call changed assembly stub type. You | |
130 | need to 'rm -f __posix_fadvise50.*' in the libc build directory | 124 | need to 'rm -f __posix_fadvise50.*' in the libc build directory | |
131 | to avoid using the old assembly stub. | 125 | to avoid using the old assembly stub. | |
132 | 126 | |||
133 | 20090202: | 127 | 20090202: | |
134 | pkg_install now depends on the pkgdb cache for automatic conflict | 128 | pkg_install now depends on the pkgdb cache for automatic conflict | |
135 | detection. It is recommented to rebuild the cache with | 129 | detection. It is recommented to rebuild the cache with | |
136 | ``pkg_admin rebuild''. | 130 | ``pkg_admin rebuild''. | |
137 | 131 | |||
138 | 20090110: | 132 | 20090110: | |
139 | time_t and dev_t have been bumped to 64 bit quantities. To upgrade: | 133 | time_t and dev_t have been bumped to 64 bit quantities. To upgrade: | |
140 | 1. Make sure your kernel has COMPAT_50 in it. Build and install. | 134 | 1. Make sure your kernel has COMPAT_50 in it. Build and install. | |
141 | This is needed even in the MODULAR kernel because there is | 135 | This is needed even in the MODULAR kernel because there is | |
142 | conditionally compiled code in rtsock.c. | 136 | conditionally compiled code in rtsock.c. | |
143 | 2. make sure build.sh completes and the binaries in a chroot work | 137 | 2. make sure build.sh completes and the binaries in a chroot work | |
144 | before installing. | 138 | before installing. | |
145 | 3. If you don't use build.sh and you build directly to root, and | 139 | 3. If you don't use build.sh and you build directly to root, and | |
146 | your build breaks in the middle, don't despair. Make sure headers | 140 | your build breaks in the middle, don't despair. Make sure headers | |
147 | are installed properly, and start building libraries first libc | 141 | are installed properly, and start building libraries first libc | |
148 | and libutil, install them and then continue building all the | 142 | and libutil, install them and then continue building all the | |
149 | libraries in src/lib and src/gnu/lib and install them. Once | 143 | libraries in src/lib and src/gnu/lib and install them. Once | |
150 | the new libraries are installed, you can restart the build. | 144 | the new libraries are installed, you can restart the build. | |
151 | 4. If you compile packages and you notice link time warnings, | 145 | 4. If you compile packages and you notice link time warnings, | |
152 | rebuild the required packages to update their shared libraries. | 146 | rebuild the required packages to update their shared libraries. | |
153 | Any package you rebuild will require rebuilding all the packages | 147 | Any package you rebuild will require rebuilding all the packages | |
154 | that depend on it. | 148 | that depend on it. | |
155 | 5. Next time you run pwd_mkdb with the new binary, the file | 149 | 5. Next time you run pwd_mkdb with the new binary, the file | |
156 | will be upgraded and it will not be backwards compatible. | 150 | will be upgraded and it will not be backwards compatible. | |
157 | 6. The utmpx/wtmpx files (/var/run/utmpx and /var/log/wtmpx, see | 151 | 6. The utmpx/wtmpx files (/var/run/utmpx and /var/log/wtmpx, see | |
158 | lastlogx(5)) have been versioned, and there is a heuristic | 152 | lastlogx(5)) have been versioned, and there is a heuristic | |
159 | for utmp. You are better off removing the old files after | 153 | for utmp. You are better off removing the old files after | |
160 | upgrading. The automated clearing of /var/run during | 154 | upgrading. The automated clearing of /var/run during | |
161 | boot, and the automated rotating of files in /var/log by | 155 | boot, and the automated rotating of files in /var/log by | |
162 | newsyslog(8), may mean that you do not have to remove the | 156 | newsyslog(8), may mean that you do not have to remove the | |
163 | files manually. | 157 | files manually. | |
164 | 7. The optional accounting file (/var/account/acct, see | 158 | 7. The optional accounting file (/var/account/acct, see | |
165 | accton(8)) has not been versioned, and will need to be | 159 | accton(8)) has not been versioned, and will need to be | |
166 | removed. The automatic rotation of the accounting file by | 160 | removed. The automatic rotation of the accounting file by | |
167 | /etc/daily limits the bad consequences of failure to remove | 161 | /etc/daily limits the bad consequences of failure to remove | |
168 | the file. | 162 | the file. | |
169 | 8. Application software that writes time_t to binary files on | 163 | 8. Application software that writes time_t to binary files on | |
170 | disk will break or need attention. Most notably: if you are | 164 | disk will break or need attention. Most notably: if you are | |
171 | using PostgreSQL < 8.4, you need to dump your databases, | 165 | using PostgreSQL < 8.4, you need to dump your databases, | |
172 | rebuild PostgreSQL with the new time_t, then restore. | 166 | rebuild PostgreSQL with the new time_t, then restore. | |
173 | 167 | |||
174 | 20081219: | 168 | 20081219: | |
175 | config(1) has been updated, and one of the files it creates - | 169 | config(1) has been updated, and one of the files it creates - | |
176 | swapnetbsd.o - has changed format. You need to rebuild config | 170 | swapnetbsd.o - has changed format. You need to rebuild config | |
177 | (done automatically by build.sh) and then you need to rerun | 171 | (done automatically by build.sh) and then you need to rerun | |
178 | config on all kernel configuration files before rebuilding those | 172 | config on all kernel configuration files before rebuilding those | |
179 | kernels. | 173 | kernels. | |
180 | 174 | |||
181 | 20081205: | 175 | 20081205: | |
182 | If you build with MKX11=no, you should remove /etc/rc.d/xdm and | 176 | If you build with MKX11=no, you should remove /etc/rc.d/xdm and | |
183 | /etc/rc.d/xfs from DESTDIR because those files were moved to the xetc | 177 | /etc/rc.d/xfs from DESTDIR because those files were moved to the xetc | |
184 | set and will appear as extra files for MKX11=no update builds. | 178 | set and will appear as extra files for MKX11=no update builds. | |
185 | 179 | |||
186 | 20081122: | 180 | 20081122: | |
187 | On i386, various kernel options(4) in GENERIC including | 181 | On i386, various kernel options(4) in GENERIC including | |
188 | file systems have been disabled and moved into kernel modules. | 182 | file systems have been disabled and moved into kernel modules. | |
189 | Before trying a new GENERIC kernel, you have to prepare the | 183 | Before trying a new GENERIC kernel, you have to prepare the | |
190 | following files as well as a new GENERIC kernel: | 184 | following files as well as a new GENERIC kernel: | |
191 | 185 | |||
192 | - build and install kernel modules from src/sys/modules | 186 | - build and install kernel modules from src/sys/modules | |
193 | 187 | |||
194 | - install the latest bootloader, which will load a module | 188 | - install the latest bootloader, which will load a module | |
195 | for the file system from which the kernel is loaded automatically | 189 | for the file system from which the kernel is loaded automatically | |
196 | 190 | |||
197 | If you have to load your kernel from a file system which is not of | 191 | If you have to load your kernel from a file system which is not of | |
198 | the same type as the root file system, you have to load the necessary | 192 | the same type as the root file system, you have to load the necessary | |
199 | file system module manually on the boot prompt or in the boot.cfg file. | 193 | file system module manually on the boot prompt or in the boot.cfg file. | |
200 | 194 | |||
201 | 20080827: | 195 | 20080827: | |
202 | If you built and installed a libc from sources between | 196 | If you built and installed a libc from sources between | |
203 | 2008/08/20 and 2008/08/26 you got a broken strtouq(3) | 197 | 2008/08/20 and 2008/08/26 you got a broken strtouq(3) | |
204 | which results in false errors reported by lint(1). | 198 | which results in false errors reported by lint(1). | |
205 | Since this breaks the libc build itself, manual help is | 199 | Since this breaks the libc build itself, manual help is | |
206 | needed -- lint must be disabled temporarily, e.g.: | 200 | needed -- lint must be disabled temporarily, e.g.: | |
207 | $ (cd lib/libc && make MKLINT=no dependall install) | 201 | $ (cd lib/libc && make MKLINT=no dependall install) | |
208 | 202 | |||
209 | 20080813: | 203 | 20080813: | |
210 | MKDEBUG build was broken because the .depend files did not know | 204 | MKDEBUG build was broken because the .depend files did not know | |
211 | about .go files. You need to remove all .depend files and rebuild. | 205 | about .go files. You need to remove all .depend files and rebuild. | |
212 | 206 | |||
213 | 20080802: | 207 | 20080802: | |
214 | A regression in binary compatibility for pthread_mutex_t has | 208 | A regression in binary compatibility for pthread_mutex_t has | |
215 | been fixed. Unfortunately, the price is breaking compatibility | 209 | been fixed. Unfortunately, the price is breaking compatibility | |
216 | for -current. | 210 | for -current. | |
217 | 211 | |||
218 | Threaded programs (using libpthread) and C++ programs (using | 212 | Threaded programs (using libpthread) and C++ programs (using | |
219 | libstdc++) compiled after 20070907 and before 20080802 need to | 213 | libstdc++) compiled after 20070907 and before 20080802 need to | |
220 | be recompiled. | 214 | be recompiled. | |
221 | 215 | |||
222 | One way to find affected pkgsrc packages: | 216 | One way to find affected pkgsrc packages: | |
223 | 217 | |||
224 | $ grep REQUIRES=/usr/lib/libpthread /var/db/pkg/*/+BUILD_INFO | 218 | $ grep REQUIRES=/usr/lib/libpthread /var/db/pkg/*/+BUILD_INFO | |
225 | $ grep REQUIRES=/usr/lib/libstdc++ /var/db/pkg/*/+BUILD_INFO | 219 | $ grep REQUIRES=/usr/lib/libstdc++ /var/db/pkg/*/+BUILD_INFO | |
226 | 220 | |||
227 | 20080731: | 221 | 20080731: | |
228 | WAPBL (metadata journaling support) has been added, but at this | 222 | WAPBL (metadata journaling support) has been added, but at this | |
229 | time isn't backwards compatible with pre-WAPBL aware kernels | 223 | time isn't backwards compatible with pre-WAPBL aware kernels | |
230 | and userland (fsck_ffs in particular). Please make sure you | 224 | and userland (fsck_ffs in particular). Please make sure you | |
231 | don't use a journaled filesystem with an older kernel/userland, | 225 | don't use a journaled filesystem with an older kernel/userland, | |
232 | especially an uncleanly mounted journaled filesystem. WAPBL | 226 | especially an uncleanly mounted journaled filesystem. WAPBL | |
233 | also requires the super block to be in the UFS2 format. You | 227 | also requires the super block to be in the UFS2 format. You | |
234 | can use fsck_ffs -c 4 to update the superblock format. | 228 | can use fsck_ffs -c 4 to update the superblock format. | |
235 | 229 | |||
236 | 20080721: | 230 | 20080721: | |
237 | Assembler warnings are now fatal if $WARNS>0 and $NOGCCERROR | 231 | Assembler warnings are now fatal if $WARNS>0 and $NOGCCERROR | |
238 | isn't defined. | 232 | isn't defined. | |
239 | 233 | |||
240 | 20080531: | 234 | 20080531: | |
241 | The ioctl number of DRVSUSPENDDEV command on /dev/drvctl changed | 235 | The ioctl number of DRVSUSPENDDEV command on /dev/drvctl changed | |
242 | from 125 (conflicted with DRVCTLCOMMAND) to 129. The drvctl(8) | 236 | from 125 (conflicted with DRVCTLCOMMAND) to 129. The drvctl(8) | |
243 | utility needs to be rebuilt and reinstalled as older binaries | 237 | utility needs to be rebuilt and reinstalled as older binaries | |
244 | won't work correctly. The following sequence of commands: | 238 | won't work correctly. The following sequence of commands: | |
245 | 239 | |||
246 | $ (cd sys/sys/ && nbmake-$arch includes) | 240 | $ (cd sys/sys/ && nbmake-$arch includes) | |
247 | $ (cd sbin/drvctl/ && nbmake-$arch clean) | 241 | $ (cd sbin/drvctl/ && nbmake-$arch clean) | |
248 | $ (cd sbin/drvctl/ && nbmake-$arch all) | 242 | $ (cd sbin/drvctl/ && nbmake-$arch all) | |
249 | 243 | |||
250 | leaves new drvctl utility in sbin/drvctl build directory. | 244 | leaves new drvctl utility in sbin/drvctl build directory. | |
251 | 245 | |||
252 | 20080503: | 246 | 20080503: | |
253 | The <bsd.lib.mk> variable MKPRIVATELIB was renamed to LIBISPRIVATE. | 247 | The <bsd.lib.mk> variable MKPRIVATELIB was renamed to LIBISPRIVATE. | |
254 | 248 | |||
255 | 20080521: | 249 | 20080521: | |
256 | For a while, unprivileged UPDATE builds would fail to | 250 | For a while, unprivileged UPDATE builds would fail to | |
257 | succeed at the checkflist stage, complaining that | 251 | succeed at the checkflist stage, complaining that | |
258 | ${DESTDIR}/stand/<arch>/ did not exist. A fix for this | 252 | ${DESTDIR}/stand/<arch>/ did not exist. A fix for this | |
259 | problem was committed to share/mk/bsd.kmodule.mk, revision 1.9. | 253 | problem was committed to share/mk/bsd.kmodule.mk, revision 1.9. | |
260 | If you already hit this problem, update the .mk file, | 254 | If you already hit this problem, update the .mk file, | |
261 | remove ${DESTDIR}/stand/<arch>, and re-run the build. | 255 | remove ${DESTDIR}/stand/<arch>, and re-run the build. | |
262 | 256 | |||
263 | 20080303: | 257 | 20080303: | |
264 | Linker warnings are now fatal if $WARNS>0. | 258 | Linker warnings are now fatal if $WARNS>0. | |
265 | 259 | |||
266 | 20080126: | 260 | 20080126: | |
267 | The posix_fadvise system call has been changed from an assembly | 261 | The posix_fadvise system call has been changed from an assembly | |
268 | stub, to a c file that calls an assembly stub. You need to | 262 | stub, to a c file that calls an assembly stub. You need to | |
269 | 'rm -f posix_fadvise.* .depend' in the libc build directory to | 263 | 'rm -f posix_fadvise.* .depend' in the libc build directory to | |
270 | avoid using the old assembly stub. | 264 | avoid using the old assembly stub. | |
271 | 265 | |||
272 | 20071209: | 266 | 20071209: | |
273 | The acpiec(4) driver has been split into two attachments. If you | 267 | The acpiec(4) driver has been split into two attachments. If you | |
274 | get ACPI errors before the attachment, please update your kernel | 268 | get ACPI errors before the attachment, please update your kernel | |
275 | configuration file appropriately or see GENERIC for more details. | 269 | configuration file appropriately or see GENERIC for more details. | |
276 | 270 | |||
277 | 20071115: | 271 | 20071115: | |
278 | The it(4) driver has been renamed to itesio(4) and the old port | 272 | The it(4) driver has been renamed to itesio(4) and the old port | |
279 | argument specified in the kernel configuration file is not valid | 273 | argument specified in the kernel configuration file is not valid | |
280 | anymore. The itesio(4) driver now uses the Super I/O address port | 274 | anymore. The itesio(4) driver now uses the Super I/O address port | |
281 | rather than the EC address port. Please update your kernel | 275 | rather than the EC address port. Please update your kernel | |
282 | configuration file appropriately or see GENERIC for more details. | 276 | configuration file appropriately or see GENERIC for more details. | |
283 | 277 | |||
284 | 20071028: | 278 | 20071028: | |
285 | The pccons(4) driver has been removed from the NetBSD/shark port. | 279 | The pccons(4) driver has been removed from the NetBSD/shark port. | |
286 | You need to update any custom kernel configuration file you have | 280 | You need to update any custom kernel configuration file you have | |
287 | to remove any references to pccons (which includes removing the | 281 | to remove any references to pccons (which includes removing the | |
288 | now useless XSERVER option) and replace them with the correct | 282 | now useless XSERVER option) and replace them with the correct | |
289 | entries for the wscons driver. See the GENERIC configuration file | 283 | entries for the wscons driver. See the GENERIC configuration file | |
290 | for more details. | 284 | for more details. | |
291 | 285 | |||
292 | 20070913: | 286 | 20070913: | |
293 | A latent bug in dhclient/dhcpd that caused it to be unable to | 287 | A latent bug in dhclient/dhcpd that caused it to be unable to | |
294 | enumerate interfaces was fixed. The bug began to cause | 288 | enumerate interfaces was fixed. The bug began to cause | |
295 | problems after 20070911 when the kernel's SIOCGIFCONF | 289 | problems after 20070911 when the kernel's SIOCGIFCONF | |
296 | implementation was repaired. From 20070529 to 20070911 racoon | 290 | implementation was repaired. From 20070529 to 20070911 racoon | |
297 | could not enumerate interfaces. (These are noted because | 291 | could not enumerate interfaces. (These are noted because | |
298 | normal kernel/userspace version matching hygiene is not | 292 | normal kernel/userspace version matching hygiene is not | |
299 | sufficient to avoid this problem.) Ensure that both kernel | 293 | sufficient to avoid this problem.) Ensure that both kernel | |
300 | and userland are from after 20070913. | 294 | and userland are from after 20070913. | |
301 | 295 | |||
302 | 20070703: | 296 | 20070703: | |
303 | nbinstall has been renamed ${MACHINE_GNU_ARCH}-install. It | 297 | nbinstall has been renamed ${MACHINE_GNU_ARCH}-install. It | |
304 | calls the target-specific strip program, and the logic to pass | 298 | calls the target-specific strip program, and the logic to pass | |
305 | down STRIP from make has been removed. This requires a | 299 | down STRIP from make has been removed. This requires a | |
306 | re-installation of tools. | 300 | re-installation of tools. | |
307 | 301 | |||
308 | 20070422: | 302 | 20070422: | |
309 | The way OS emulations lookup filenames inside the emulation root | 303 | The way OS emulations lookup filenames inside the emulation root | |
310 | has been changed. Rather than modify the pathname (and copy back | 304 | has been changed. Rather than modify the pathname (and copy back | |
311 | to userspace) namei() and lookup() directly check the emulation | 305 | to userspace) namei() and lookup() directly check the emulation | |
312 | root. One side effect is that absolute symlinks inside the emulated | 306 | root. One side effect is that absolute symlinks inside the emulated | |
313 | root file system will be relative to that file system - unless they | 307 | root file system will be relative to that file system - unless they | |
314 | start /../ this is useful when the emulated root is a real install | 308 | start /../ this is useful when the emulated root is a real install | |
315 | that has such links. | 309 | that has such links. | |
316 | This might affect symlinks that have been added to reference outside | 310 | This might affect symlinks that have been added to reference outside | |
317 | the emulated root. | 311 | the emulated root. | |
318 | 312 | |||
319 | 20070412: | 313 | 20070412: | |
320 | The pckbc driver on sgimips IP32 has been removed. Use macekbc | 314 | The pckbc driver on sgimips IP32 has been removed. Use macekbc | |
321 | instead. See the GENERIC32_IP3x kernel configuration for an | 315 | instead. See the GENERIC32_IP3x kernel configuration for an | |
322 | example. | 316 | example. | |
323 | 317 | |||
324 | 20070319: | 318 | 20070319: | |
325 | src/lib/libc/Makefile revision 1.129 broke libc and ld.elf_so | 319 | src/lib/libc/Makefile revision 1.129 broke libc and ld.elf_so | |
326 | on many platforms due to incorrect flags settings. If you | 320 | on many platforms due to incorrect flags settings. If you | |
327 | updated and built after about 20070315, do "nbmake-$arch | 321 | updated and built after about 20070315, do "nbmake-$arch | |
328 | cleandir" in src/lib/libc and src/libexec/ld.elf_so to force a | 322 | cleandir" in src/lib/libc and src/libexec/ld.elf_so to force a | |
329 | rebuild of object files that might have been built | 323 | rebuild of object files that might have been built | |
330 | incorrectly, and ensure that you have at least | 324 | incorrectly, and ensure that you have at least | |
331 | src/lib/libc/Makefile 1.130. | 325 | src/lib/libc/Makefile 1.130. | |
332 | 326 | |||
333 | 20070210: | 327 | 20070210: | |
334 | src/sys/sys/{sa.h,savar.h} were removed. | 328 | src/sys/sys/{sa.h,savar.h} were removed. | |
335 | find ${OBJDIR} \( -name .depend -o -name '*.d' \) -print \ | 329 | find ${OBJDIR} \( -name .depend -o -name '*.d' \) -print \ | |
336 | | xargs egrep -l '/sa.h|/savar.h' | xargs rm | 330 | | xargs egrep -l '/sa.h|/savar.h' | xargs rm | |
337 | will allow dependencies on those files to get get rebuilt | 331 | will allow dependencies on those files to get get rebuilt | |
338 | 332 | |||
339 | 20070209: | 333 | 20070209: | |
340 | The threading model was changed when the newlock2 branch | 334 | The threading model was changed when the newlock2 branch | |
341 | was merged to NetBSD-current. If you boot with a new | 335 | was merged to NetBSD-current. If you boot with a new | |
342 | kernel (version 4.99.10), then you also need a new pthread | 336 | kernel (version 4.99.10), then you also need a new pthread | |
343 | library (/usr/lib/libpthread.so.0.7). If you boot with | 337 | library (/usr/lib/libpthread.so.0.7). If you boot with | |
344 | an old kernel, then you need the old pthread library | 338 | an old kernel, then you need the old pthread library | |
345 | (/usr/lib/libpthread.so.0.6). Provided you keep the kernel and | 339 | (/usr/lib/libpthread.so.0.6). Provided you keep the kernel and | |
346 | the pthread library in sync, old threaded applications should | 340 | the pthread library in sync, old threaded applications should | |
347 | continue to work with an old or new kernel. Note that named(8) | 341 | continue to work with an old or new kernel. Note that named(8) | |
348 | is the only threaded application in the base system. | 342 | is the only threaded application in the base system. | |
349 | 343 | |||
350 | 20061214: | 344 | 20061214: | |
351 | Following the move of string_to_flags() and flags_to_string() | 345 | Following the move of string_to_flags() and flags_to_string() | |
352 | from the bin/ls/ sources to libutil, users doing UPDATE builds | 346 | from the bin/ls/ sources to libutil, users doing UPDATE builds | |
353 | will need to do a "make cleandir" in | 347 | will need to do a "make cleandir" in | |
354 | tools/mtree/, tools/makefs/, tools/binstall/, tools/pax/, | 348 | tools/mtree/, tools/makefs/, tools/binstall/, tools/pax/, | |
355 | bin/pax/, bin/ls/, usr.sbin/mtree/, usr.sbin/makefs/, | 349 | bin/pax/, bin/ls/, usr.sbin/mtree/, usr.sbin/makefs/, | |
356 | usr.bin/xinstall/, libexec/ftpd/, rescue/, as well | 350 | usr.bin/xinstall/, libexec/ftpd/, rescue/, as well | |
357 | as the installation images in distrib/ | 351 | as the installation images in distrib/ | |
358 | in order to excise stale references to the old stat_flags.h header | 352 | in order to excise stale references to the old stat_flags.h header | |
359 | file in the ls sources -- stat_flags.h has been removed. | 353 | file in the ls sources -- stat_flags.h has been removed. | |
360 | 354 | |||
361 | 20061108: | 355 | 20061108: | |
362 | The configure script used in the src/tools/gcc compiler has been | 356 | The configure script used in the src/tools/gcc compiler has been | |
363 | changed to indicate that our libc has ssp support built-in and | 357 | changed to indicate that our libc has ssp support built-in and | |
364 | does not depend on -lssp and -lssp-nonshared. You'll need to | 358 | does not depend on -lssp and -lssp-nonshared. You'll need to | |
365 | make clean in src/tools/gcc first to rebuild the compiler. | 359 | make clean in src/tools/gcc first to rebuild the compiler. | |
366 | 360 | |||
367 | 20061009: | 361 | 20061009: | |
368 | The sysctl variables net.inet{,6}.tcp{,6}.newreno are no longer | 362 | The sysctl variables net.inet{,6}.tcp{,6}.newreno are no longer | |
369 | available. Use net.inet{,6}.tcp{,6}.congctl.selected instead. | 363 | available. Use net.inet{,6}.tcp{,6}.congctl.selected instead. | |
370 | 364 | |||
371 | 20060814: | 365 | 20060814: | |
372 | The vt, vidcconsole, kbd, and rpckbd drivers on acorn32 have been | 366 | The vt, vidcconsole, kbd, and rpckbd drivers on acorn32 have been | |
373 | withdrawn. Use vidcvideo and pckbd instead. See the GENERIC | 367 | withdrawn. Use vidcvideo and pckbd instead. See the GENERIC | |
374 | kernel configuration for an example. X servers from the last | 368 | kernel configuration for an example. X servers from the last | |
375 | few years should cope. | 369 | few years should cope. | |
376 | 370 | |||
377 | 20060703: | 371 | 20060703: | |
378 | MPACPI is no more. We always configure PCI interrupts using ACPI | 372 | MPACPI is no more. We always configure PCI interrupts using ACPI | |
379 | if we have an ACPI kernel. The option MPACPI_SCANPCI has been renamed | 373 | if we have an ACPI kernel. The option MPACPI_SCANPCI has been renamed | |
380 | to ACPI_SCANPCI. Thanks to work from fvdl. | 374 | to ACPI_SCANPCI. Thanks to work from fvdl. | |
381 | 375 | |||
382 | 20060627: | 376 | 20060627: | |
383 | socket(2) has changed, and its system call has been versioned. | 377 | socket(2) has changed, and its system call has been versioned. | |
384 | For userlands with the old version of socket(2), make sure that | 378 | For userlands with the old version of socket(2), make sure that | |
385 | your kernel has 'options COMPAT_30' set, or else 'bad system call' | 379 | your kernel has 'options COMPAT_30' set, or else 'bad system call' | |
386 | errors will result. | 380 | errors will result. | |
387 | 381 | |||
388 | Hints for a more successful build: | 382 | Hints for a more successful build: | |
389 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | 383 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
390 | Use build.sh, but do not use its "expert mode": | 384 | Use build.sh, but do not use its "expert mode": | |
391 | This will automatically build the tools in the | 385 | This will automatically build the tools in the | |
392 | correct order, and it will keep the tools and the | 386 | correct order, and it will keep the tools and the | |
393 | new build products from interfering with the running | 387 | new build products from interfering with the running | |
394 | system. This will allow you to ignore most of the | 388 | system. This will allow you to ignore most of the | |
395 | other advice in this file. | 389 | other advice in this file. | |
396 | Build a new kernel first: | 390 | Build a new kernel first: | |
397 | This makes sure that any new system calls or features | 391 | This makes sure that any new system calls or features | |
398 | expected by the new userland will be present. This | 392 | expected by the new userland will be present. This | |
399 | helps to avoid critical errors when upgrading. | 393 | helps to avoid critical errors when upgrading. | |
400 | Use object directories: | 394 | Use object directories: | |
401 | This helps to keep stale object | 395 | This helps to keep stale object | |
402 | files from polluting the build if a Makefile "forgets" | 396 | files from polluting the build if a Makefile "forgets" | |
403 | about one. It also makes it easier to clean up after | 397 | about one. It also makes it easier to clean up after | |
404 | a build. It's also necessary if you want to use the | 398 | a build. It's also necessary if you want to use the | |
405 | same source tree for multiple machines. | 399 | same source tree for multiple machines. | |
406 | To use object directories with build.sh: | 400 | To use object directories with build.sh: | |
407 | a) invoke build.sh with the "-M" or "-O" options. | 401 | a) invoke build.sh with the "-M" or "-O" options. | |
408 | To use object directories without using build.sh: | 402 | To use object directories without using build.sh: | |
409 | a) cd /usr/src ; make cleandir | 403 | a) cd /usr/src ; make cleandir | |
410 | b) Add "OBJMACHINE=yes" to /etc/mk.conf | 404 | b) Add "OBJMACHINE=yes" to /etc/mk.conf | |
411 | c) Add "MKOBJDIRS=yes" to /etc/mk.conf | 405 | c) Add "MKOBJDIRS=yes" to /etc/mk.conf | |
412 | d) cd /usr/src ; make build | 406 | d) cd /usr/src ; make build | |
413 | Note that running "make obj" in a directory will create | 407 | Note that running "make obj" in a directory will create | |
414 | in obj.$MACHINE directory. | 408 | in obj.$MACHINE directory. | |
415 | Build to a DESTDIR: | 409 | Build to a DESTDIR: | |
416 | This helps to keep old installed files (especially libraries) | 410 | This helps to keep old installed files (especially libraries) | |
417 | from interfering with the new build. | 411 | from interfering with the new build. | |
418 | To build to a DESTDIR with build.sh, use the "-D" option. | 412 | To build to a DESTDIR with build.sh, use the "-D" option. | |
419 | To build to a DESTDIR without using build.sh, set the DESTDIR | 413 | To build to a DESTDIR without using build.sh, set the DESTDIR | |
420 | environment variable before running make build. It should be | 414 | environment variable before running make build. It should be | |
421 | set to the pathname of an initially empty directory. | 415 | set to the pathname of an initially empty directory. | |
422 | Problems: if you do not use build.sh, you might need to | 416 | Problems: if you do not use build.sh, you might need to | |
423 | update critical utilities without using DESTDIR since | 417 | update critical utilities without using DESTDIR since | |
424 | nothing is executed from what is installed in DESTDIR. | 418 | nothing is executed from what is installed in DESTDIR. | |
425 | (See critical utils, below.) | 419 | (See critical utils, below.) | |
426 | Build often: | 420 | Build often: | |
427 | This keeps critical utilities current enough to not choke | 421 | This keeps critical utilities current enough to not choke | |
428 | on any other part of the source tree that depends on up to | 422 | on any other part of the source tree that depends on up to | |
429 | date functionality. If you use build.sh, you should not have | 423 | date functionality. If you use build.sh, you should not have | |
430 | this problem. | 424 | this problem. | |
431 | 425 | |||
432 | What to do if things don't work: | 426 | What to do if things don't work: | |
433 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | 427 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
434 | When things don't work there is usually a few things that commonly | 428 | When things don't work there is usually a few things that commonly | |
435 | should be done. | 429 | should be done. | |
436 | 1) make includes | 430 | 1) make includes | |
437 | This should be done automatically by make build. | 431 | This should be done automatically by make build. | |
438 | 2) cd share/mk && make install | 432 | 2) cd share/mk && make install | |
439 | Again, automatically done by make build. | 433 | Again, automatically done by make build. | |
440 | 434 | |||
441 | Failsafe rebuild of a small part of the tree: | 435 | Failsafe rebuild of a small part of the tree: | |
442 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | 436 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
443 | To make sure you rebuild something correctly you want to do | 437 | To make sure you rebuild something correctly you want to do | |
444 | something like the following: | 438 | something like the following: | |
445 | 1) Make sure the includes and .mk files are up to date. | 439 | 1) Make sure the includes and .mk files are up to date. | |
446 | 2) Make sure any program used to build the particular | 440 | 2) Make sure any program used to build the particular | |
447 | utility is up to date. (yacc, lex, etc...) | 441 | utility is up to date. (yacc, lex, etc...) | |
448 | 3) cd ...path/to/util... | 442 | 3) cd ...path/to/util... | |
449 | make cleandir | 443 | make cleandir | |
450 | rm ...all obj directories... | 444 | rm ...all obj directories... | |
451 | make cleandir # yes, again | 445 | make cleandir # yes, again | |
452 | make obj | 446 | make obj | |
453 | make depend && make | 447 | make depend && make | |
454 | 448 | |||
455 | Failsafe rebuild of the entire tree: | 449 | Failsafe rebuild of the entire tree: | |
456 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | 450 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
457 | If you really want to make sure the source tree is clean and | 451 | If you really want to make sure the source tree is clean and | |
458 | ready for a build try the following. Note that sourcing /etc/mk.conf | 452 | ready for a build try the following. Note that sourcing /etc/mk.conf | |
459 | (a make(1) Makefile) in this manner is not right, and will not work | 453 | (a make(1) Makefile) in this manner is not right, and will not work | |
460 | for anyone who uses any make(1) features in /etc/mk.conf. | 454 | for anyone who uses any make(1) features in /etc/mk.conf. | |
461 | 455 | |||
462 | ---cut here--- | 456 | ---cut here--- | |
463 | #!/bin/sh | 457 | #!/bin/sh | |
464 | . /etc/mk.conf | 458 | . /etc/mk.conf | |
465 | 459 | |||
466 | if [ -z $NETBSDSRCDIR ] ; then | 460 | if [ -z $NETBSDSRCDIR ] ; then | |
467 | NETBSDSRCDIR=/usr/src | 461 | NETBSDSRCDIR=/usr/src | |
468 | fi | 462 | fi | |
469 | if [ \! -d $NETBSDSRCDIR ] ; then | 463 | if [ \! -d $NETBSDSRCDIR ] ; then | |
470 | echo Unable to find sources | 464 | echo Unable to find sources | |
471 | exit 1 | 465 | exit 1 | |
472 | fi | 466 | fi | |
473 | find $NETBSDSRCDIR -name \*.o -o -name obj.\* -o -name obj -exec rm \{\} \; | 467 | find $NETBSDSRCDIR -name \*.o -o -name obj.\* -o -name obj -exec rm \{\} \; | |
474 | 468 | |||
475 | if [ -z $BSDOBJDIR ] ; then | 469 | if [ -z $BSDOBJDIR ] ; then | |
476 | BSDOBJDIR=/usr/obj | 470 | BSDOBJDIR=/usr/obj | |
477 | fi | 471 | fi | |
478 | if [ -d $BSDOBJDIR ] ; then | 472 | if [ -d $BSDOBJDIR ] ; then | |
479 | rm -rf $BSDOBJDIR | 473 | rm -rf $BSDOBJDIR | |
480 | fi | 474 | fi | |
481 | 475 | |||
482 | cd $NETBSDSRCDIR && make cleandir | 476 | cd $NETBSDSRCDIR && make cleandir | |
483 | 477 | |||
484 | ---cut here--- | 478 | ---cut here--- | |
485 | 479 | |||
486 | Critical utilities: | 480 | Critical utilities: | |
487 | ^^^^^^^^^^^^^^^^^^^ | 481 | ^^^^^^^^^^^^^^^^^^^ | |
488 | usr.bin/compile_et | 482 | usr.bin/compile_et | |
489 | usr.bin/make | 483 | usr.bin/make | |
490 | usr.bin/yacc | 484 | usr.bin/yacc | |
491 | usr.bin/lex | 485 | usr.bin/lex | |
492 | usr.bin/xlint | 486 | usr.bin/xlint | |
493 | usr.bin/config | 487 | usr.bin/config | |
494 | 488 | |||
495 | Other problems and possible solutions: | 489 | Other problems and possible solutions: | |
496 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | 490 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
497 | Symptom:Complaints involving a Makefile. | 491 | Symptom:Complaints involving a Makefile. | |
498 | Fix: Rebuild usr.bin/make: | 492 | Fix: Rebuild usr.bin/make: | |
499 | cd usr.bin/make && make && make install | 493 | cd usr.bin/make && make && make install | |
500 | Or, a failsafe method if that doesn't work: | 494 | Or, a failsafe method if that doesn't work: | |
501 | cd usr.bin/make && cc *.c */*.c -I . -o make && mv make /usr/bin | 495 | cd usr.bin/make && cc *.c */*.c -I . -o make && mv make /usr/bin | |
502 | 496 | |||
503 | Fix: Make sure .mk files are up to date. | 497 | Fix: Make sure .mk files are up to date. | |
504 | cd share/mk && make install | 498 | cd share/mk && make install | |
505 | 499 | |||
506 | Symptom:Kernel `config' fails to configure any kernel, including GENERIC. | 500 | Symptom:Kernel `config' fails to configure any kernel, including GENERIC. | |
507 | Fix: Rebuild usr.bin/config | 501 | Fix: Rebuild usr.bin/config | |
508 | 502 | |||
509 | Symptom: | 503 | Symptom: | |
510 | Fix: Rebuild usr.bin/yacc | 504 | Fix: Rebuild usr.bin/yacc | |
511 | 505 | |||
512 | Symptom: | 506 | Symptom: | |
513 | Fix: Rebuild usr.bin/lex | 507 | Fix: Rebuild usr.bin/lex | |
514 | 508 | |||
515 | Symptom: | 509 | Symptom: | |
516 | Fix: rm /usr/lib/libbfd.a | 510 | Fix: rm /usr/lib/libbfd.a | |
517 | 511 | |||
518 | Symptom:Obsolete intermediate files are used during compilation | 512 | Symptom:Obsolete intermediate files are used during compilation | |
519 | Fix: Try the following sequence of commands in the directory in question. | 513 | Fix: Try the following sequence of commands in the directory in question. | |
520 | make cleandir; rm `make print-objdir`; make cleandir; make obj | 514 | make cleandir; rm `make print-objdir`; make cleandir; make obj | |
521 | (If you built the tree without "make obj" in the past, obsolete files | 515 | (If you built the tree without "make obj" in the past, obsolete files | |
522 | may remain. The command tries to clean everything up) | 516 | may remain. The command tries to clean everything up) | |
523 | 517 | |||
524 | Symptom:.../sysinst/run.c:xx: warning: initialization from incompatible | 518 | Symptom:.../sysinst/run.c:xx: warning: initialization from incompatible | |
525 | pointer type | 519 | pointer type | |
526 | Fix: Rebuild and install usr.bin/menuc | 520 | Fix: Rebuild and install usr.bin/menuc | |
527 | 521 | |||
528 | Symptom:mklocale not found during build in share/locale/ctype | 522 | Symptom:mklocale not found during build in share/locale/ctype | |
529 | Fix: Build and install usr.bin/mklocale | 523 | Fix: Build and install usr.bin/mklocale | |
530 | 524 | |||
531 | Symptom:undefined reference to `__assert13' or `__unsetenv13' | 525 | Symptom:undefined reference to `__assert13' or `__unsetenv13' | |
532 | Fix: Rebuild and install lib/libc | 526 | Fix: Rebuild and install lib/libc | |
533 | 527 | |||
534 | Symptom:usr.bin/config fails to build. | 528 | Symptom:usr.bin/config fails to build. | |
535 | Fix: Try building with -DMAKE_BOOTSTRAP added to CFLAGS in Makefile. | 529 | Fix: Try building with -DMAKE_BOOTSTRAP added to CFLAGS in Makefile. | |
536 | 530 | |||
537 | Symptom:undefined reference to `getprogname' or `setprogname' | 531 | Symptom:undefined reference to `getprogname' or `setprogname' | |
538 | Fix: Rebuild and install lib/libc | 532 | Fix: Rebuild and install lib/libc | |
539 | 533 | |||
540 | Symptom:lint does not understand the '-X' option | 534 | Symptom:lint does not understand the '-X' option | |
541 | Fix: May need to build & install libs with NOLINT=1 before rebuilding lint | 535 | Fix: May need to build & install libs with NOLINT=1 before rebuilding lint |
--- src/share/mk/sys.mk 2011/01/17 18:11:10 1.103
+++ src/share/mk/sys.mk 2011/01/21 15:59:04 1.104
--- src/sys/arch/acorn26/conf/Attic/Makefile.acorn26 2008/02/13 23:37:17 1.10
+++ src/sys/arch/acorn26/conf/Attic/Makefile.acorn26 2011/01/21 15:59:04 1.11
@@ -1,108 +1,108 @@ | @@ -1,108 +1,108 @@ | |||
1 | # $NetBSD: Makefile.acorn26,v 1.10 2008/02/13 23:37:17 joerg Exp $ | 1 | # $NetBSD: Makefile.acorn26,v 1.11 2011/01/21 15:59:04 joerg Exp $ | |
2 | 2 | |||
3 | # Makefile for NetBSD | 3 | # Makefile for NetBSD | |
4 | # | 4 | # | |
5 | # This makefile is constructed from a machine description: | 5 | # This makefile is constructed from a machine description: | |
6 | # config machineid | 6 | # config machineid | |
7 | # Most changes should be made in the machine description | 7 | # Most changes should be made in the machine description | |
8 | # /sys/arch/acorn26/conf/``machineid'' | 8 | # /sys/arch/acorn26/conf/``machineid'' | |
9 | # after which you should do | 9 | # after which you should do | |
10 | # config machineid | 10 | # config machineid | |
11 | # Machine generic makefile changes should be made in | 11 | # Machine generic makefile changes should be made in | |
12 | # /sys/arch/acorn26/conf/Makefile.i386 | 12 | # /sys/arch/acorn26/conf/Makefile.i386 | |
13 | # after which config should be rerun for all machines of that type. | 13 | # after which config should be rerun for all machines of that type. | |
14 | # | 14 | # | |
15 | # To specify debugging, add the config line: makeoptions DEBUG="-g" | 15 | # To specify debugging, add the config line: makeoptions DEBUG="-g" | |
16 | # A better way is to specify -g only for a few files. | 16 | # A better way is to specify -g only for a few files. | |
17 | # | 17 | # | |
18 | # makeoptions DEBUGLIST="uvm* trap if_*" | 18 | # makeoptions DEBUGLIST="uvm* trap if_*" | |
19 | 19 | |||
20 | USETOOLS?= no | 20 | USETOOLS?= no | |
21 | NEED_OWN_INSTALL_TARGET?=no | 21 | NEED_OWN_INSTALL_TARGET?=no | |
22 | .include <bsd.own.mk> | 22 | .include <bsd.own.mk> | |
23 | 23 | |||
24 | ## | 24 | ## | |
25 | ## (1) port identification | 25 | ## (1) port identification | |
26 | ## | 26 | ## | |
27 | ARM= $S/arch/arm | 27 | ARM= $S/arch/arm | |
28 | ACORN26= $S/arch/acorn26 | 28 | ACORN26= $S/arch/acorn26 | |
29 | GENASSYM_CONF= ${ACORN26}/acorn26/genassym.cf | 29 | GENASSYM_CONF= ${ACORN26}/acorn26/genassym.cf | |
30 | 30 | |||
31 | ## | 31 | ## | |
32 | ## (2) compile settings | 32 | ## (2) compile settings | |
33 | ## | 33 | ## | |
34 | CPPFLAGS+= -Dacorn26 | 34 | CPPFLAGS+= -Dacorn26 | |
35 | CWARNFLAGS+= -Wcomment | 35 | CWARNFLAGS+= -Wcomment | |
36 | # We'd like GCC to leave R14 alone as much as possible (so page faults in the | 36 | # We'd like GCC to leave R14 alone as much as possible (so page faults in the | |
37 | # kernel are safer). | 37 | # kernel are safer). | |
38 | CFLAGS+= -ffixed-r14 -mapcs-frame -fno-omit-frame-pointer | 38 | CFLAGS+= -ffixed-r14 -mapcs-frame -fno-omit-frame-pointer | |
39 | AFLAGS+= -x assembler-with-cpp -traditional-cpp | 39 | AFLAGS+= -x assembler-with-cpp | |
40 | 40 | |||
41 | ## | 41 | ## | |
42 | ## (3) libkern and compat | 42 | ## (3) libkern and compat | |
43 | ## | 43 | ## | |
44 | 44 | |||
45 | ## | 45 | ## | |
46 | ## (4) local objects, compile rules, and dependencies | 46 | ## (4) local objects, compile rules, and dependencies | |
47 | ## | 47 | ## | |
48 | MD_OBJS= vectors.o locore.o | 48 | MD_OBJS= vectors.o locore.o | |
49 | MD_CFILES= | 49 | MD_CFILES= | |
50 | MD_SFILES= ${ARM}/arm/vectors.S ${ACORN26}/acorn26/locore.S | 50 | MD_SFILES= ${ARM}/arm/vectors.S ${ACORN26}/acorn26/locore.S | |
51 | 51 | |||
52 | locore.o: ${ACORN26}/acorn26/locore.S assym.h | 52 | locore.o: ${ACORN26}/acorn26/locore.S assym.h | |
53 | ${NORMAL_S} | 53 | ${NORMAL_S} | |
54 | 54 | |||
55 | vectors.o: ${ARM}/arm/vectors.S assym.h | 55 | vectors.o: ${ARM}/arm/vectors.S assym.h | |
56 | ${NORMAL_S} | 56 | ${NORMAL_S} | |
57 | 57 | |||
58 | bcopyinout.o copyinout.o copystr.o cpu_in_cksum.o fiq_subr.o: assym.h | 58 | bcopyinout.o copyinout.o copystr.o cpu_in_cksum.o fiq_subr.o: assym.h | |
59 | sigcode.o: assym.h | 59 | sigcode.o: assym.h | |
60 | 60 | |||
61 | ## | 61 | ## | |
62 | ## (5) link settings | 62 | ## (5) link settings | |
63 | ## | 63 | ## | |
64 | TEXTADDR?= 0x02098000 | 64 | TEXTADDR?= 0x02098000 | |
65 | LINKFORMAT= -N | 65 | LINKFORMAT= -N | |
66 | # Strip ARM mapping symbols from the kernel image, as they interfere | 66 | # Strip ARM mapping symbols from the kernel image, as they interfere | |
67 | # with ddb. Do it differently if 'makeoptions DEBUG="-g"' was specified. | 67 | # with ddb. Do it differently if 'makeoptions DEBUG="-g"' was specified. | |
68 | .if !defined(DEBUG) || empty(DEBUG:M-g*) | 68 | .if !defined(DEBUG) || empty(DEBUG:M-g*) | |
69 | SYSTEM_LD_TAIL?= @${OBJCOPY} --strip-symbol='$$a' \ | 69 | SYSTEM_LD_TAIL?= @${OBJCOPY} --strip-symbol='$$a' \ | |
70 | --strip-symbol='$$t' \ | 70 | --strip-symbol='$$t' \ | |
71 | --strip-symbol='$$d' $@ ;\ | 71 | --strip-symbol='$$d' $@ ;\ | |
72 | ${SIZE} $@; chmod 755 $@ | 72 | ${SIZE} $@; chmod 755 $@ | |
73 | .else | 73 | .else | |
74 | STRIPFLAGS=-g --strip-symbol='$$a' --strip-symbol='$$t' --strip-symbol='$$d' | 74 | STRIPFLAGS=-g --strip-symbol='$$a' --strip-symbol='$$t' --strip-symbol='$$d' | |
75 | .endif | 75 | .endif | |
76 | 76 | |||
77 | ## | 77 | ## | |
78 | ## (6) port specific target dependencies | 78 | ## (6) port specific target dependencies | |
79 | ## | 79 | ## | |
80 | 80 | |||
81 | ## | 81 | ## | |
82 | ## (7) misc settings | 82 | ## (7) misc settings | |
83 | ## | 83 | ## | |
84 | 84 | |||
85 | ## | 85 | ## | |
86 | ## (8) config(8) generated machinery | 86 | ## (8) config(8) generated machinery | |
87 | ## | 87 | ## | |
88 | %INCLUDES | 88 | %INCLUDES | |
89 | 89 | |||
90 | %OBJS | 90 | %OBJS | |
91 | 91 | |||
92 | %CFILES | 92 | %CFILES | |
93 | 93 | |||
94 | %SFILES | 94 | %SFILES | |
95 | 95 | |||
96 | %LOAD | 96 | %LOAD | |
97 | 97 | |||
98 | %RULES | 98 | %RULES | |
99 | 99 | |||
100 | ## | 100 | ## | |
101 | ## (9) port independent kernel machinery | 101 | ## (9) port independent kernel machinery | |
102 | ## | 102 | ## | |
103 | .include "$S/conf/Makefile.kern.inc" | 103 | .include "$S/conf/Makefile.kern.inc" | |
104 | 104 | |||
105 | ## | 105 | ## | |
106 | ## (10) Appending make options. | 106 | ## (10) Appending make options. | |
107 | ## | 107 | ## | |
108 | %MAKEOPTIONSAPPEND | 108 | %MAKEOPTIONSAPPEND |
--- src/sys/arch/amiga/conf/Makefile.amiga 2009/01/25 22:25:08 1.106
+++ src/sys/arch/amiga/conf/Makefile.amiga 2011/01/21 15:59:05 1.107
@@ -1,109 +1,109 @@ | @@ -1,109 +1,109 @@ | |||
1 | # $NetBSD: Makefile.amiga,v 1.106 2009/01/25 22:25:08 abs Exp $ | 1 | # $NetBSD: Makefile.amiga,v 1.107 2011/01/21 15:59:05 joerg Exp $ | |
2 | 2 | |||
3 | # Makefile for NetBSD | 3 | # Makefile for NetBSD | |
4 | # | 4 | # | |
5 | # This makefile is constructed from a machine description: | 5 | # This makefile is constructed from a machine description: | |
6 | # config machineid | 6 | # config machineid | |
7 | # Most changes should be made in the machine description | 7 | # Most changes should be made in the machine description | |
8 | # /sys/arch/amiga/conf/``machineid'' | 8 | # /sys/arch/amiga/conf/``machineid'' | |
9 | # after which you should do | 9 | # after which you should do | |
10 | # config machineid | 10 | # config machineid | |
11 | # Machine generic makefile changes should be made in | 11 | # Machine generic makefile changes should be made in | |
12 | # /sys/arch/amiga/conf/Makefile.amiga | 12 | # /sys/arch/amiga/conf/Makefile.amiga | |
13 | # after which config should be rerun for all machines of that type. | 13 | # after which config should be rerun for all machines of that type. | |
14 | # | 14 | # | |
15 | # To specify debugging, add the config line: makeoptions DEBUG="-g" | 15 | # To specify debugging, add the config line: makeoptions DEBUG="-g" | |
16 | # A better way is to specify -g only for a few files. | 16 | # A better way is to specify -g only for a few files. | |
17 | # | 17 | # | |
18 | # makeoptions DEBUGLIST="uvm* trap if_*" | 18 | # makeoptions DEBUGLIST="uvm* trap if_*" | |
19 | 19 | |||
20 | MACHINE_ARCH=m68k | 20 | MACHINE_ARCH=m68k | |
21 | USETOOLS?= no | 21 | USETOOLS?= no | |
22 | NEED_OWN_INSTALL_TARGET?=no | 22 | NEED_OWN_INSTALL_TARGET?=no | |
23 | .include <bsd.own.mk> | 23 | .include <bsd.own.mk> | |
24 | 24 | |||
25 | ## | 25 | ## | |
26 | ## (1) port identification | 26 | ## (1) port identification | |
27 | ## | 27 | ## | |
28 | AMIGA= $S/arch/amiga | 28 | AMIGA= $S/arch/amiga | |
29 | GENASSYM_CONF= ${AMIGA}/amiga/genassym.cf | 29 | GENASSYM_CONF= ${AMIGA}/amiga/genassym.cf | |
30 | 30 | |||
31 | ## | 31 | ## | |
32 | ## (2) compile settings | 32 | ## (2) compile settings | |
33 | ## | 33 | ## | |
34 | CPPFLAGS+= -Damiga -DFPCOPROC | 34 | CPPFLAGS+= -Damiga -DFPCOPROC | |
35 | .if !defined(CMACHFLAGS) | 35 | .if !defined(CMACHFLAGS) | |
36 | .include "$S/arch/m68k/Makefile.cmachflags" | 36 | .include "$S/arch/m68k/Makefile.cmachflags" | |
37 | CMACHFLAGS+= -Wa,-m68030 -Wa,-m68851 | 37 | CMACHFLAGS+= -Wa,-m68030 -Wa,-m68851 | |
38 | .endif | 38 | .endif | |
39 | CFLAGS+= ${CMACHFLAGS} -msoft-float | 39 | CFLAGS+= ${CMACHFLAGS} -msoft-float | |
40 | AFLAGS+= -x assembler-with-cpp -traditional-cpp | 40 | AFLAGS+= -x assembler-with-cpp | |
41 | 41 | |||
42 | ## | 42 | ## | |
43 | ## (3) libkern and compat | 43 | ## (3) libkern and compat | |
44 | ## | 44 | ## | |
45 | KERN_AS= obj | 45 | KERN_AS= obj | |
46 | 46 | |||
47 | ## | 47 | ## | |
48 | ## (4) local objects, compile rules, and dependencies | 48 | ## (4) local objects, compile rules, and dependencies | |
49 | ## | 49 | ## | |
50 | # for the Motorola 68040 Floating Point Software Product | 50 | # for the Motorola 68040 Floating Point Software Product | |
51 | .include "$S/arch/m68k/fpsp/Makefile.inc" | 51 | .include "$S/arch/m68k/fpsp/Makefile.inc" | |
52 | 52 | |||
53 | # for the Motorola 68060 Software Support Package | 53 | # for the Motorola 68060 Software Support Package | |
54 | .include "$S/arch/m68k/060sp/Makefile.inc" | 54 | .include "$S/arch/m68k/060sp/Makefile.inc" | |
55 | 55 | |||
56 | MD_OBJS= locore.o ${FPSP} | 56 | MD_OBJS= locore.o ${FPSP} | |
57 | MD_CFILES= | 57 | MD_CFILES= | |
58 | MD_SFILES= ${AMIGA}/amiga/locore.s | 58 | MD_SFILES= ${AMIGA}/amiga/locore.s | |
59 | 59 | |||
60 | copy.o copypage.o lock_stubs.o: assym.h | 60 | copy.o copypage.o lock_stubs.o: assym.h | |
61 | 61 | |||
62 | locore.o: ${AMIGA}/amiga/locore.s assym.h | 62 | locore.o: ${AMIGA}/amiga/locore.s assym.h | |
63 | ${NORMAL_S} | 63 | ${NORMAL_S} | |
64 | 64 | |||
65 | ## | 65 | ## | |
66 | ## (5) link settings | 66 | ## (5) link settings | |
67 | ## | 67 | ## | |
68 | TEXTADDR?= 0 | 68 | TEXTADDR?= 0 | |
69 | LINKFORMAT= -n | 69 | LINKFORMAT= -n | |
70 | 70 | |||
71 | ## | 71 | ## | |
72 | ## (6) port specific target dependencies | 72 | ## (6) port specific target dependencies | |
73 | ## | 73 | ## | |
74 | 74 | |||
75 | # depend on CPU configuration | 75 | # depend on CPU configuration | |
76 | amiga_init.o locore.o pmap.o sys_machdep.o: Makefile | 76 | amiga_init.o locore.o pmap.o sys_machdep.o: Makefile | |
77 | bzsc.o bztzsc.o cbiisc.o cbsc.o flsc.o sbic.o: Makefile | 77 | bzsc.o bztzsc.o cbiisc.o cbsc.o flsc.o sbic.o: Makefile | |
78 | 78 | |||
79 | # depends on defined(DRACO) | 79 | # depends on defined(DRACO) | |
80 | a2kbbc.o: Makefile | 80 | a2kbbc.o: Makefile | |
81 | 81 | |||
82 | ## | 82 | ## | |
83 | ## (7) misc settings | 83 | ## (7) misc settings | |
84 | ## | 84 | ## | |
85 | 85 | |||
86 | ## | 86 | ## | |
87 | ## (8) config(8) generated machinery | 87 | ## (8) config(8) generated machinery | |
88 | ## | 88 | ## | |
89 | %INCLUDES | 89 | %INCLUDES | |
90 | 90 | |||
91 | %OBJS | 91 | %OBJS | |
92 | 92 | |||
93 | %CFILES | 93 | %CFILES | |
94 | 94 | |||
95 | %SFILES | 95 | %SFILES | |
96 | 96 | |||
97 | %LOAD | 97 | %LOAD | |
98 | 98 | |||
99 | %RULES | 99 | %RULES | |
100 | 100 | |||
101 | ## | 101 | ## | |
102 | ## (9) port independent kernel machinery | 102 | ## (9) port independent kernel machinery | |
103 | ## | 103 | ## | |
104 | .include "$S/conf/Makefile.kern.inc" | 104 | .include "$S/conf/Makefile.kern.inc" | |
105 | 105 | |||
106 | ## | 106 | ## | |
107 | ## (10) Appending make options. | 107 | ## (10) Appending make options. | |
108 | ## | 108 | ## | |
109 | %MAKEOPTIONSAPPEND | 109 | %MAKEOPTIONSAPPEND |
--- src/sys/arch/arc/stand/boot/Makefile 2010/05/27 06:58:12 1.9
+++ src/sys/arch/arc/stand/boot/Makefile 2011/01/21 15:59:05 1.10
@@ -1,77 +1,77 @@ | @@ -1,77 +1,77 @@ | |||
1 | # $NetBSD: Makefile,v 1.9 2010/05/27 06:58:12 dholland Exp $ | 1 | # $NetBSD: Makefile,v 1.10 2011/01/21 15:59:05 joerg Exp $ | |
2 | 2 | |||
3 | .include <bsd.own.mk> | 3 | .include <bsd.own.mk> | |
4 | .include <bsd.sys.mk> # for ${HOST_SH} | 4 | .include <bsd.sys.mk> # for ${HOST_SH} | |
5 | 5 | |||
6 | S!= cd ${.CURDIR}/../../../..; pwd | 6 | S!= cd ${.CURDIR}/../../../..; pwd | |
7 | 7 | |||
8 | PROG= boot | 8 | PROG= boot | |
9 | MKMAN= no # defined | 9 | MKMAN= no # defined | |
10 | STRIPFLAG= | 10 | STRIPFLAG= | |
11 | BINMODE= 444 | 11 | BINMODE= 444 | |
12 | 12 | |||
13 | NETBSD_VERS!= ${HOST_SH} ${S}/conf/osrelease.sh | 13 | NETBSD_VERS!= ${HOST_SH} ${S}/conf/osrelease.sh | |
14 | 14 | |||
15 | SRCS= start.S | 15 | SRCS= start.S | |
16 | SRCS+= boot.c bootinfo.c conf.c devopen.c disk.c getchar.c getopt.c putchar.c | 16 | SRCS+= boot.c bootinfo.c conf.c devopen.c disk.c getchar.c getopt.c putchar.c | |
17 | 17 | |||
18 | # XXX SHOULD NOT NEED TO DEFINE THESE! | 18 | # XXX SHOULD NOT NEED TO DEFINE THESE! | |
19 | LIBCRT0= | 19 | LIBCRT0= | |
20 | LIBC= | 20 | LIBC= | |
21 | LIBCRTBEGIN= | 21 | LIBCRTBEGIN= | |
22 | LIBCRTEND= | 22 | LIBCRTEND= | |
23 | 23 | |||
24 | AFLAGS= -x assembler-with-cpp -traditional-cpp -mno-abicalls -mips2 | 24 | AFLAGS= -x assembler-with-cpp -mno-abicalls -mips2 | |
25 | AFLAGS+= -D_LOCORE -D_KERNEL | 25 | AFLAGS+= -D_LOCORE -D_KERNEL | |
26 | CFLAGS= -Os -mmemcpy -G 1024 | 26 | CFLAGS= -Os -mmemcpy -G 1024 | |
27 | CFLAGS+= -ffreestanding -mno-abicalls -msoft-float -mips2 | 27 | CFLAGS+= -ffreestanding -mno-abicalls -msoft-float -mips2 | |
28 | CFLAGS+= -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith | 28 | CFLAGS+= -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith | |
29 | CPPFLAGS+= -nostdinc -I. -I${S} | 29 | CPPFLAGS+= -nostdinc -I. -I${S} | |
30 | CPPFLAGS+= -D_STANDALONE -DNO_ABICALLS -D${MACHINE} | 30 | CPPFLAGS+= -D_STANDALONE -DNO_ABICALLS -D${MACHINE} | |
31 | CPPFLAGS+= -DNETBSD_VERS='"${NETBSD_VERS}"' | 31 | CPPFLAGS+= -DNETBSD_VERS='"${NETBSD_VERS}"' | |
32 | #CPPFLAGS+= -DBOOT_DEBUG | 32 | #CPPFLAGS+= -DBOOT_DEBUG | |
33 | LDSCRIPT= ${S}/arch/mips/conf/stand.ldscript | 33 | LDSCRIPT= ${S}/arch/mips/conf/stand.ldscript | |
34 | TEXTADDR= 0x80f00000 | 34 | TEXTADDR= 0x80f00000 | |
35 | 35 | |||
36 | # if there is a 'version' file, add rule for vers.c and add it to SRCS | 36 | # if there is a 'version' file, add rule for vers.c and add it to SRCS | |
37 | # and CLEANFILES | 37 | # and CLEANFILES | |
38 | .if exists(version) | 38 | .if exists(version) | |
39 | .PHONY: vers.c | 39 | .PHONY: vers.c | |
40 | vers.c: ${.CURDIR}/version | 40 | vers.c: ${.CURDIR}/version | |
41 | ${HOST_SH} ${S}/conf/newvers_stand.sh ${.CURDIR}/version ${MACHINE} | 41 | ${HOST_SH} ${S}/conf/newvers_stand.sh ${.CURDIR}/version ${MACHINE} | |
42 | 42 | |||
43 | SRCS+= vers.c | 43 | SRCS+= vers.c | |
44 | CLEANFILES+= vers.c | 44 | CLEANFILES+= vers.c | |
45 | .endif | 45 | .endif | |
46 | 46 | |||
47 | ### find out what to use for libsa | 47 | ### find out what to use for libsa | |
48 | SAMISCMAKEFLAGS= SA_USE_CREAD=yes SA_USE_LOADFILE=yes | 48 | SAMISCMAKEFLAGS= SA_USE_CREAD=yes SA_USE_LOADFILE=yes | |
49 | .include "${S}/lib/libsa/Makefile.inc" | 49 | .include "${S}/lib/libsa/Makefile.inc" | |
50 | LIBSA= ${SALIB} | 50 | LIBSA= ${SALIB} | |
51 | 51 | |||
52 | ### find out what to use for libkern | 52 | ### find out what to use for libkern | |
53 | .include "${S}/lib/libkern/Makefile.inc" | 53 | .include "${S}/lib/libkern/Makefile.inc" | |
54 | LIBKERN= ${KERNLIB} | 54 | LIBKERN= ${KERNLIB} | |
55 | 55 | |||
56 | ### find out what to use for libz | 56 | ### find out what to use for libz | |
57 | .include "${S}/lib/libz/Makefile.inc" | 57 | .include "${S}/lib/libz/Makefile.inc" | |
58 | LIBZ= ${ZLIB} | 58 | LIBZ= ${ZLIB} | |
59 | 59 | |||
60 | LIBS= ${LIBSA} ${LIBKERN} ${LIBZ} | 60 | LIBS= ${LIBSA} ${LIBKERN} ${LIBZ} | |
61 | 61 | |||
62 | cleandir distclean: .WAIT cleanlibdir | 62 | cleandir distclean: .WAIT cleanlibdir | |
63 | cleanlibdir: | 63 | cleanlibdir: | |
64 | -rm -rf lib | 64 | -rm -rf lib | |
65 | 65 | |||
66 | ${PROG}: ${OBJS} ${LIBS} | 66 | ${PROG}: ${OBJS} ${LIBS} | |
67 | ${LD} -Map ${PROG}.map -N -x -Ttext ${TEXTADDR} -T ${LDSCRIPT} \ | 67 | ${LD} -Map ${PROG}.map -N -x -Ttext ${TEXTADDR} -T ${LDSCRIPT} \ | |
68 | -e start -o ${PROG}.elf ${OBJS} ${LIBS} | 68 | -e start -o ${PROG}.elf ${OBJS} ${LIBS} | |
69 | @${SIZE} ${PROG}.elf | 69 | @${SIZE} ${PROG}.elf | |
70 | ${OBJCOPY} --impure -O ecoff-littlemips \ | 70 | ${OBJCOPY} --impure -O ecoff-littlemips \ | |
71 | -R .pdr -R .mdebug.abi32 -R .comment -R .ident \ | 71 | -R .pdr -R .mdebug.abi32 -R .comment -R .ident \ | |
72 | ${PROG}.elf ${.TARGET} | 72 | ${PROG}.elf ${.TARGET} | |
73 | 73 | |||
74 | CLEANFILES+= ${PROG}.elf ${PROG}.map | 74 | CLEANFILES+= ${PROG}.elf ${PROG}.map | |
75 | 75 | |||
76 | .include <bsd.klinks.mk> | 76 | .include <bsd.klinks.mk> | |
77 | .include <bsd.prog.mk> | 77 | .include <bsd.prog.mk> |
--- src/sys/arch/atari/conf/Makefile.atari 2009/10/19 13:40:28 1.74
+++ src/sys/arch/atari/conf/Makefile.atari 2011/01/21 15:59:05 1.75
@@ -1,100 +1,100 @@ | @@ -1,100 +1,100 @@ | |||
1 | # $NetBSD: Makefile.atari,v 1.74 2009/10/19 13:40:28 tsutsui Exp $ | 1 | # $NetBSD: Makefile.atari,v 1.75 2011/01/21 15:59:05 joerg Exp $ | |
2 | 2 | |||
3 | # Makefile for NetBSD | 3 | # Makefile for NetBSD | |
4 | # | 4 | # | |
5 | # This makefile is constructed from a machine description: | 5 | # This makefile is constructed from a machine description: | |
6 | # config machineid | 6 | # config machineid | |
7 | # Most changes should be made in the machine description | 7 | # Most changes should be made in the machine description | |
8 | # /sys/arch/atari/conf/``machineid'' | 8 | # /sys/arch/atari/conf/``machineid'' | |
9 | # after which you should do | 9 | # after which you should do | |
10 | # config machineid | 10 | # config machineid | |
11 | # Machine generic makefile changes should be made in | 11 | # Machine generic makefile changes should be made in | |
12 | # /sys/arch/atari/conf/Makefile.atari | 12 | # /sys/arch/atari/conf/Makefile.atari | |
13 | # after which config should be rerun for all machines of that type. | 13 | # after which config should be rerun for all machines of that type. | |
14 | 14 | |||
15 | MACHINE_ARCH=m68k | 15 | MACHINE_ARCH=m68k | |
16 | USETOOLS?= no | 16 | USETOOLS?= no | |
17 | NEED_OWN_INSTALL_TARGET?=no | 17 | NEED_OWN_INSTALL_TARGET?=no | |
18 | .include <bsd.own.mk> | 18 | .include <bsd.own.mk> | |
19 | 19 | |||
20 | ## | 20 | ## | |
21 | ## (1) port identification | 21 | ## (1) port identification | |
22 | ## | 22 | ## | |
23 | ATARI= $S/arch/atari | 23 | ATARI= $S/arch/atari | |
24 | GENASSYM_CONF= ${ATARI}/atari/genassym.cf | 24 | GENASSYM_CONF= ${ATARI}/atari/genassym.cf | |
25 | 25 | |||
26 | ## | 26 | ## | |
27 | ## (2) compile settings | 27 | ## (2) compile settings | |
28 | ## | 28 | ## | |
29 | CPPFLAGS+= -Datari | 29 | CPPFLAGS+= -Datari | |
30 | .if !defined(CMACHFLAGS) | 30 | .if !defined(CMACHFLAGS) | |
31 | .include "$S/arch/m68k/Makefile.cmachflags" | 31 | .include "$S/arch/m68k/Makefile.cmachflags" | |
32 | CMACHFLAGS+= -Wa,-m68030 | 32 | CMACHFLAGS+= -Wa,-m68030 | |
33 | .endif | 33 | .endif | |
34 | CFLAGS+= ${CMACHFLAGS} -msoft-float | 34 | CFLAGS+= ${CMACHFLAGS} -msoft-float | |
35 | AFLAGS+= -x assembler-with-cpp -traditional-cpp | 35 | AFLAGS+= -x assembler-with-cpp | |
36 | 36 | |||
37 | ## | 37 | ## | |
38 | ## (3) libkern and compat | 38 | ## (3) libkern and compat | |
39 | ## | 39 | ## | |
40 | KERN_AS= obj | 40 | KERN_AS= obj | |
41 | 41 | |||
42 | ## | 42 | ## | |
43 | ## (4) local objects, compile rules, and dependencies | 43 | ## (4) local objects, compile rules, and dependencies | |
44 | ## | 44 | ## | |
45 | # for the Motorola 68040 Floating Point Software Product | 45 | # for the Motorola 68040 Floating Point Software Product | |
46 | .include "$S/arch/m68k/fpsp/Makefile.inc" | 46 | .include "$S/arch/m68k/fpsp/Makefile.inc" | |
47 | 47 | |||
48 | # for the Motorola 68060 Software Support Package | 48 | # for the Motorola 68060 Software Support Package | |
49 | .include "$S/arch/m68k/060sp/Makefile.inc" | 49 | .include "$S/arch/m68k/060sp/Makefile.inc" | |
50 | 50 | |||
51 | MD_OBJS= locore.o ${FPSP} | 51 | MD_OBJS= locore.o ${FPSP} | |
52 | MD_CFILES= | 52 | MD_CFILES= | |
53 | MD_SFILES= ${ATARI}/atari/locore.s | 53 | MD_SFILES= ${ATARI}/atari/locore.s | |
54 | 54 | |||
55 | copy.o copypage.o lock_stubs.o: assym.h | 55 | copy.o copypage.o lock_stubs.o: assym.h | |
56 | 56 | |||
57 | locore.o: ${ATARI}/atari/locore.s assym.h | 57 | locore.o: ${ATARI}/atari/locore.s assym.h | |
58 | ${NORMAL_S} | 58 | ${NORMAL_S} | |
59 | 59 | |||
60 | ## | 60 | ## | |
61 | ## (5) link settings | 61 | ## (5) link settings | |
62 | ## | 62 | ## | |
63 | TEXTADDR?= 0 | 63 | TEXTADDR?= 0 | |
64 | LINKFORMAT= -n | 64 | LINKFORMAT= -n | |
65 | 65 | |||
66 | ## | 66 | ## | |
67 | ## (6) port specific target dependencies | 67 | ## (6) port specific target dependencies | |
68 | ## | 68 | ## | |
69 | 69 | |||
70 | # depend on CPU configuration | 70 | # depend on CPU configuration | |
71 | locore.o pmap.o pmap_motorola.o sys_machdep.o: Makefile | 71 | locore.o pmap.o pmap_motorola.o sys_machdep.o: Makefile | |
72 | 72 | |||
73 | ## | 73 | ## | |
74 | ## (7) misc settings | 74 | ## (7) misc settings | |
75 | ## | 75 | ## | |
76 | 76 | |||
77 | ## | 77 | ## | |
78 | ## (8) config(8) generated machinery | 78 | ## (8) config(8) generated machinery | |
79 | ## | 79 | ## | |
80 | %INCLUDES | 80 | %INCLUDES | |
81 | 81 | |||
82 | %OBJS | 82 | %OBJS | |
83 | 83 | |||
84 | %CFILES | 84 | %CFILES | |
85 | 85 | |||
86 | %SFILES | 86 | %SFILES | |
87 | 87 | |||
88 | %LOAD | 88 | %LOAD | |
89 | 89 | |||
90 | %RULES | 90 | %RULES | |
91 | 91 | |||
92 | ## | 92 | ## | |
93 | ## (9) port independent kernel machinery | 93 | ## (9) port independent kernel machinery | |
94 | ## | 94 | ## | |
95 | .include "$S/conf/Makefile.kern.inc" | 95 | .include "$S/conf/Makefile.kern.inc" | |
96 | 96 | |||
97 | ## | 97 | ## | |
98 | ## (10) Appending make options. | 98 | ## (10) Appending make options. | |
99 | ## | 99 | ## | |
100 | %MAKEOPTIONSAPPEND | 100 | %MAKEOPTIONSAPPEND |
--- src/sys/arch/bebox/stand/boot/Makefile 2010/10/14 06:58:22 1.29
+++ src/sys/arch/bebox/stand/boot/Makefile 2011/01/21 15:59:05 1.30
@@ -1,85 +1,85 @@ | @@ -1,85 +1,85 @@ | |||
1 | # $NetBSD: Makefile,v 1.29 2010/10/14 06:58:22 kiyohara Exp $ | 1 | # $NetBSD: Makefile,v 1.30 2011/01/21 15:59:05 joerg Exp $ | |
2 | 2 | |||
3 | NOMAN= # defined | 3 | NOMAN= # defined | |
4 | 4 | |||
5 | .include <bsd.own.mk> | 5 | .include <bsd.own.mk> | |
6 | 6 | |||
7 | COMMON= ${.CURDIR}/../common | 7 | COMMON= ${.CURDIR}/../common | |
8 | COMMONOBJ!= cd ${COMMON} && ${PRINTOBJDIR} | 8 | COMMONOBJ!= cd ${COMMON} && ${PRINTOBJDIR} | |
9 | 9 | |||
10 | .PATH: ${.CURDIR}/../boot ${COMMONOBJ} ${.CURDIR}/../../../powerpc/powerpc | 10 | .PATH: ${.CURDIR}/../boot ${COMMONOBJ} ${.CURDIR}/../../../powerpc/powerpc | |
11 | 11 | |||
12 | S= ${.CURDIR}/../../../.. | 12 | S= ${.CURDIR}/../../../.. | |
13 | L= ${COMMONOBJ}/lib | 13 | L= ${COMMONOBJ}/lib | |
14 | 14 | |||
15 | ELF2PEF= ${.CURDIR}/../../../powerpc/stand/mkbootimage | 15 | ELF2PEF= ${.CURDIR}/../../../powerpc/stand/mkbootimage | |
16 | 16 | |||
17 | COMMONLIBDIR= ${.CURDIR}/../../../../../common | 17 | COMMONLIBDIR= ${.CURDIR}/../../../../../common | |
18 | 18 | |||
19 | BASE?= boot | 19 | BASE?= boot | |
20 | PROG= ${BASE} | 20 | PROG= ${BASE} | |
21 | NEWVERSWHAT= "BOOT" | 21 | NEWVERSWHAT= "BOOT" | |
22 | 22 | |||
23 | SRCS= srt0.s | 23 | SRCS= srt0.s | |
24 | SRCS+= boot.c clock.c com.c conf.c cons.c cpu.c devopen.c | 24 | SRCS+= boot.c clock.c com.c conf.c cons.c cpu.c devopen.c | |
25 | SRCS+= fd.c filesystem.c inkernel.c io.c kbd.c monitor.c ns16550.c | 25 | SRCS+= fd.c filesystem.c inkernel.c io.c kbd.c monitor.c ns16550.c | |
26 | SRCS+= pci.c prf.c sd.c siop.c tgets.c vers.c vga.c video.c vreset.c wdc.c wd.c | 26 | SRCS+= pci.c prf.c sd.c siop.c tgets.c vers.c vga.c video.c vreset.c wdc.c wd.c | |
27 | SRCS+= setjmp.S | 27 | SRCS+= setjmp.S | |
28 | 28 | |||
29 | CFLAGS= -Wno-main -ffreestanding | 29 | CFLAGS= -Wno-main -ffreestanding | |
30 | AFLAGS= -x assembler-with-cpp -traditional-cpp | 30 | AFLAGS= -x assembler-with-cpp | |
31 | 31 | |||
32 | CPPFLAGS= -nostdinc | 32 | CPPFLAGS= -nostdinc | |
33 | CPPFLAGS+= -I${.OBJDIR} -I${S} -I${COMMONLIBDIR}/include -I${S}/lib/libsa | 33 | CPPFLAGS+= -I${.OBJDIR} -I${S} -I${COMMONLIBDIR}/include -I${S}/lib/libsa | |
34 | CPPFLAGS+= -I${ELF2PEF} | 34 | CPPFLAGS+= -I${ELF2PEF} | |
35 | CPPFLAGS+= -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes | 35 | CPPFLAGS+= -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes | |
36 | CPPFLAGS+= -D_STANDALONE -DRELOC=${RELOC} -DUSE_SCAN | 36 | CPPFLAGS+= -D_STANDALONE -DRELOC=${RELOC} -DUSE_SCAN | |
37 | CPPFLAGS+= -D__daddr_t=int32_t | 37 | CPPFLAGS+= -D__daddr_t=int32_t | |
38 | #CPPFLAGS+= -DDBMONITOR | 38 | #CPPFLAGS+= -DDBMONITOR | |
39 | 39 | |||
40 | .if (${BASE} == "boot") | 40 | .if (${BASE} == "boot") | |
41 | CPPFLAGS+= -DCONS_BE | 41 | CPPFLAGS+= -DCONS_BE | |
42 | .elif (${BASE} == "boot_com0") | 42 | .elif (${BASE} == "boot_com0") | |
43 | CPPFLAGS+= -DCONS_SERIAL -DCOMSPEED=9600 -DCOMPORT=0x3f8 | 43 | CPPFLAGS+= -DCONS_SERIAL -DCOMSPEED=9600 -DCOMPORT=0x3f8 | |
44 | .elif (${BASE} == "boot_vga") | 44 | .elif (${BASE} == "boot_vga") | |
45 | CPPFLAGS+= -DCONS_VGA | 45 | CPPFLAGS+= -DCONS_VGA | |
46 | .endif | 46 | .endif | |
47 | 47 | |||
48 | STRIPFLAG= | 48 | STRIPFLAG= | |
49 | BINMODE= 444 | 49 | BINMODE= 444 | |
50 | 50 | |||
51 | # XXX SHOULD NOT NEED TO DEFINE THESE! | 51 | # XXX SHOULD NOT NEED TO DEFINE THESE! | |
52 | LIBCRT0= | 52 | LIBCRT0= | |
53 | LIBC= | 53 | LIBC= | |
54 | LIBCRTBEGIN= | 54 | LIBCRTBEGIN= | |
55 | LIBCRTEND= | 55 | LIBCRTEND= | |
56 | 56 | |||
57 | RELOC= 0x700000 | 57 | RELOC= 0x700000 | |
58 | 58 | |||
59 | CLEANFILES+= vers.c machine powerpc ${PROG}.elf | 59 | CLEANFILES+= vers.c machine powerpc ${PROG}.elf | |
60 | 60 | |||
61 | LIBS= ${L}/sa/libsa.a ${L}/kern/libkern.a ${L}/z/libz.a | 61 | LIBS= ${L}/sa/libsa.a ${L}/kern/libkern.a ${L}/z/libz.a | |
62 | 62 | |||
63 | .if !make(obj) && !make(clean) && !make(cleandir) | 63 | .if !make(obj) && !make(clean) && !make(cleandir) | |
64 | .BEGIN: machine powerpc | 64 | .BEGIN: machine powerpc | |
65 | .NOPATH: machine powerpc | 65 | .NOPATH: machine powerpc | |
66 | 66 | |||
67 | machine:: | 67 | machine:: | |
68 | -rm -f $@ | 68 | -rm -f $@ | |
69 | ln -s ${S}/arch/${MACHINE}/include $@ | 69 | ln -s ${S}/arch/${MACHINE}/include $@ | |
70 | 70 | |||
71 | powerpc:: | 71 | powerpc:: | |
72 | -rm -f $@ | 72 | -rm -f $@ | |
73 | ln -s ${S}/arch/powerpc/include $@ | 73 | ln -s ${S}/arch/powerpc/include $@ | |
74 | .endif | 74 | .endif | |
75 | 75 | |||
76 | vers.c: ${.CURDIR}/../boot/version | 76 | vers.c: ${.CURDIR}/../boot/version | |
77 | ${HOST_SH} ${S}/conf/newvers_stand.sh ${.CURDIR}/../boot/version \ | 77 | ${HOST_SH} ${S}/conf/newvers_stand.sh ${.CURDIR}/../boot/version \ | |
78 | "bebox" ${NEWVERSWHAT} | 78 | "bebox" ${NEWVERSWHAT} | |
79 | 79 | |||
80 | ${PROG}: ${OBJS} ${LIBS} | 80 | ${PROG}: ${OBJS} ${LIBS} | |
81 | ${LD} -o ${PROG}.elf -N -T ${.CURDIR}/../boot/ld.script \ | 81 | ${LD} -o ${PROG}.elf -N -T ${.CURDIR}/../boot/ld.script \ | |
82 | -Ttext ${RELOC} ${OBJS} ${LIBS} | 82 | -Ttext ${RELOC} ${OBJS} ${LIBS} | |
83 | ${STRIP} -o ${PROG} ${PROG}.elf | 83 | ${STRIP} -o ${PROG} ${PROG}.elf | |
84 | 84 | |||
85 | .include <bsd.prog.mk> | 85 | .include <bsd.prog.mk> |
--- src/sys/arch/cesfic/conf/Makefile.cesfic 2006/09/01 13:07:51 1.15
+++ src/sys/arch/cesfic/conf/Makefile.cesfic 2011/01/21 15:59:05 1.16
@@ -1,95 +1,95 @@ | @@ -1,95 +1,95 @@ | |||
1 | # $NetBSD: Makefile.cesfic,v 1.15 2006/09/01 13:07:51 matt Exp $ | 1 | # $NetBSD: Makefile.cesfic,v 1.16 2011/01/21 15:59:05 joerg Exp $ | |
2 | 2 | |||
3 | # Makefile for NetBSD | 3 | # Makefile for NetBSD | |
4 | # | 4 | # | |
5 | # This makefile is constructed from a machine description: | 5 | # This makefile is constructed from a machine description: | |
6 | # config machineid | 6 | # config machineid | |
7 | # Most changes should be made in the machine description | 7 | # Most changes should be made in the machine description | |
8 | # /sys/arch/cesfic/conf/``machineid'' | 8 | # /sys/arch/cesfic/conf/``machineid'' | |
9 | # after which you should do | 9 | # after which you should do | |
10 | # config machineid | 10 | # config machineid | |
11 | # Machine generic makefile changes should be made in | 11 | # Machine generic makefile changes should be made in | |
12 | # /sys/arch/cesfic/conf/Makefile.cesfic | 12 | # /sys/arch/cesfic/conf/Makefile.cesfic | |
13 | # after which config should be rerun for all machines of that type. | 13 | # after which config should be rerun for all machines of that type. | |
14 | # | 14 | # | |
15 | # To specify debugging, add the config line: makeoptions DEBUG="-g" | 15 | # To specify debugging, add the config line: makeoptions DEBUG="-g" | |
16 | # A better way is to specify -g only for a few files. | 16 | # A better way is to specify -g only for a few files. | |
17 | # | 17 | # | |
18 | # makeoptions DEBUGLIST="uvm* trap if_*" | 18 | # makeoptions DEBUGLIST="uvm* trap if_*" | |
19 | 19 | |||
20 | MACHINE_ARCH=m68k | 20 | MACHINE_ARCH=m68k | |
21 | USETOOLS?= no | 21 | USETOOLS?= no | |
22 | NEED_OWN_INSTALL_TARGET?=no | 22 | NEED_OWN_INSTALL_TARGET?=no | |
23 | .include <bsd.own.mk> | 23 | .include <bsd.own.mk> | |
24 | 24 | |||
25 | ## | 25 | ## | |
26 | ## (1) port identification | 26 | ## (1) port identification | |
27 | ## | 27 | ## | |
28 | CESFIC= $S/arch/cesfic | 28 | CESFIC= $S/arch/cesfic | |
29 | GENASSYM_CONF= ${CESFIC}/cesfic/genassym.cf | 29 | GENASSYM_CONF= ${CESFIC}/cesfic/genassym.cf | |
30 | 30 | |||
31 | ## | 31 | ## | |
32 | ## (2) compile settings | 32 | ## (2) compile settings | |
33 | ## | 33 | ## | |
34 | CPPFLAGS+= -Dcesfic | 34 | CPPFLAGS+= -Dcesfic | |
35 | CWARNFLAGS+= -Wno-format | 35 | CWARNFLAGS+= -Wno-format | |
36 | CFLAGS+= -msoft-float | 36 | CFLAGS+= -msoft-float | |
37 | AFLAGS+= -x assembler-with-cpp -traditional-cpp | 37 | AFLAGS+= -x assembler-with-cpp | |
38 | AFLAGS+= -Wa,-m68040 -Wa,-m68030 -Wa,-m68851 | 38 | AFLAGS+= -Wa,-m68040 -Wa,-m68030 -Wa,-m68851 | |
39 | 39 | |||
40 | ## | 40 | ## | |
41 | ## (3) libkern and compat | 41 | ## (3) libkern and compat | |
42 | ## | 42 | ## | |
43 | KERN_AS= obj | 43 | KERN_AS= obj | |
44 | 44 | |||
45 | ## | 45 | ## | |
46 | ## (4) local objects, compile rules, and dependencies | 46 | ## (4) local objects, compile rules, and dependencies | |
47 | ## | 47 | ## | |
48 | # for the Motorola 68040 Floating Point Software Product | 48 | # for the Motorola 68040 Floating Point Software Product | |
49 | .include "$S/arch/m68k/fpsp/Makefile.inc" | 49 | .include "$S/arch/m68k/fpsp/Makefile.inc" | |
50 | 50 | |||
51 | MD_OBJS= locore.o ${FPSP} | 51 | MD_OBJS= locore.o ${FPSP} | |
52 | MD_CFILES= | 52 | MD_CFILES= | |
53 | MD_SFILES= ${CESFIC}/cesfic/locore.s | 53 | MD_SFILES= ${CESFIC}/cesfic/locore.s | |
54 | 54 | |||
55 | locore.o: ${CESFIC}/cesfic/locore.s assym.h | 55 | locore.o: ${CESFIC}/cesfic/locore.s assym.h | |
56 | ${NORMAL_S} | 56 | ${NORMAL_S} | |
57 | 57 | |||
58 | ## | 58 | ## | |
59 | ## (5) link settings | 59 | ## (5) link settings | |
60 | ## | 60 | ## | |
61 | LINKFORMAT= -n | 61 | LINKFORMAT= -n | |
62 | TEXTADDR?= 2000 | 62 | TEXTADDR?= 2000 | |
63 | 63 | |||
64 | ## | 64 | ## | |
65 | ## (6) port specific target dependencies | 65 | ## (6) port specific target dependencies | |
66 | ## | 66 | ## | |
67 | 67 | |||
68 | ## | 68 | ## | |
69 | ## (7) misc settings | 69 | ## (7) misc settings | |
70 | ## | 70 | ## | |
71 | 71 | |||
72 | ## | 72 | ## | |
73 | ## (8) config(8) generated machinery | 73 | ## (8) config(8) generated machinery | |
74 | ## | 74 | ## | |
75 | %INCLUDES | 75 | %INCLUDES | |
76 | 76 | |||
77 | %OBJS | 77 | %OBJS | |
78 | 78 | |||
79 | %CFILES | 79 | %CFILES | |
80 | 80 | |||
81 | #%SFILES | 81 | #%SFILES | |
82 | 82 | |||
83 | %LOAD | 83 | %LOAD | |
84 | 84 | |||
85 | %RULES | 85 | %RULES | |
86 | 86 | |||
87 | ## | 87 | ## | |
88 | ## (9) port independent kernel machinery | 88 | ## (9) port independent kernel machinery | |
89 | ## | 89 | ## | |
90 | .include "$S/conf/Makefile.kern.inc" | 90 | .include "$S/conf/Makefile.kern.inc" | |
91 | 91 | |||
92 | ## | 92 | ## | |
93 | ## (10) Appending make options. | 93 | ## (10) Appending make options. | |
94 | ## | 94 | ## | |
95 | %MAKEOPTIONSAPPEND | 95 | %MAKEOPTIONSAPPEND |
--- src/sys/arch/hp300/conf/Makefile.hp300 2005/12/11 12:17:13 1.87
+++ src/sys/arch/hp300/conf/Makefile.hp300 2011/01/21 15:59:06 1.88
@@ -1,96 +1,96 @@ | @@ -1,96 +1,96 @@ | |||
1 | # $NetBSD: Makefile.hp300,v 1.87 2005/12/11 12:17:13 christos Exp $ | 1 | # $NetBSD: Makefile.hp300,v 1.88 2011/01/21 15:59:06 joerg Exp $ | |
2 | 2 | |||
3 | # Makefile for NetBSD | 3 | # Makefile for NetBSD | |
4 | # | 4 | # | |
5 | # This makefile is constructed from a machine description: | 5 | # This makefile is constructed from a machine description: | |
6 | # config machineid | 6 | # config machineid | |
7 | # Most changes should be made in the machine description | 7 | # Most changes should be made in the machine description | |
8 | # /sys/arch/hp300/conf/``machineid'' | 8 | # /sys/arch/hp300/conf/``machineid'' | |
9 | # after which you should do | 9 | # after which you should do | |
10 | # config machineid | 10 | # config machineid | |
11 | # Machine generic makefile changes should be made in | 11 | # Machine generic makefile changes should be made in | |
12 | # /sys/arch/hp300/conf/Makefile.hp300 | 12 | # /sys/arch/hp300/conf/Makefile.hp300 | |
13 | # after which config should be rerun for all machines of that type. | 13 | # after which config should be rerun for all machines of that type. | |
14 | # | 14 | # | |
15 | # To specify debugging, add the config line: makeoptions DEBUG="-g" | 15 | # To specify debugging, add the config line: makeoptions DEBUG="-g" | |
16 | # A better way is to specify -g only for a few files. | 16 | # A better way is to specify -g only for a few files. | |
17 | # | 17 | # | |
18 | # makeoptions DEBUGLIST="uvm* trap if_*" | 18 | # makeoptions DEBUGLIST="uvm* trap if_*" | |
19 | 19 | |||
20 | MACHINE_ARCH=m68k | 20 | MACHINE_ARCH=m68k | |
21 | USETOOLS?= no | 21 | USETOOLS?= no | |
22 | NEED_OWN_INSTALL_TARGET?=no | 22 | NEED_OWN_INSTALL_TARGET?=no | |
23 | .include <bsd.own.mk> | 23 | .include <bsd.own.mk> | |
24 | 24 | |||
25 | ## | 25 | ## | |
26 | ## (1) port identification | 26 | ## (1) port identification | |
27 | ## | 27 | ## | |
28 | HP300= $S/arch/hp300 | 28 | HP300= $S/arch/hp300 | |
29 | GENASSYM_CONF= ${HP300}/hp300/genassym.cf | 29 | GENASSYM_CONF= ${HP300}/hp300/genassym.cf | |
30 | 30 | |||
31 | ## | 31 | ## | |
32 | ## (2) compile settings | 32 | ## (2) compile settings | |
33 | ## | 33 | ## | |
34 | CPPFLAGS+= -Dhp300 | 34 | CPPFLAGS+= -Dhp300 | |
35 | CFLAGS+= -msoft-float | 35 | CFLAGS+= -msoft-float | |
36 | AFLAGS+= -x assembler-with-cpp -traditional-cpp | 36 | AFLAGS+= -x assembler-with-cpp | |
37 | 37 | |||
38 | ## | 38 | ## | |
39 | ## (3) libkern and compat | 39 | ## (3) libkern and compat | |
40 | ## | 40 | ## | |
41 | KERN_AS= obj | 41 | KERN_AS= obj | |
42 | 42 | |||
43 | ## | 43 | ## | |
44 | ## (4) local objects, compile rules, and dependencies | 44 | ## (4) local objects, compile rules, and dependencies | |
45 | ## | 45 | ## | |
46 | # for the Motorola 68040 Floating Point Software Product | 46 | # for the Motorola 68040 Floating Point Software Product | |
47 | .include "$S/arch/m68k/fpsp/Makefile.inc" | 47 | .include "$S/arch/m68k/fpsp/Makefile.inc" | |
48 | 48 | |||
49 | MD_OBJS= locore.o ${FPSP} | 49 | MD_OBJS= locore.o ${FPSP} | |
50 | MD_CFILES= | 50 | MD_CFILES= | |
51 | MD_SFILES= ${HP300}/hp300/locore.s | 51 | MD_SFILES= ${HP300}/hp300/locore.s | |
52 | 52 | |||
53 | locore.o: ${HP300}/hp300/locore.s assym.h | 53 | locore.o: ${HP300}/hp300/locore.s assym.h | |
54 | ${NORMAL_S} | 54 | ${NORMAL_S} | |
55 | 55 | |||
56 | ## | 56 | ## | |
57 | ## (5) link settings | 57 | ## (5) link settings | |
58 | ## | 58 | ## | |
59 | LINKFORMAT= -n | 59 | LINKFORMAT= -n | |
60 | TEXTADDR?= 0 | 60 | TEXTADDR?= 0 | |
61 | 61 | |||
62 | ## | 62 | ## | |
63 | ## (6) port specific target dependencies | 63 | ## (6) port specific target dependencies | |
64 | ## | 64 | ## | |
65 | 65 | |||
66 | # depend on CPU configuration | 66 | # depend on CPU configuration | |
67 | dma.o hpux_machdep.o locore.o machdep.o pmap.o pmap_boostrap.o sys_machdep.o trap.o: Makefile | 67 | dma.o hpux_machdep.o locore.o machdep.o pmap.o pmap_boostrap.o sys_machdep.o trap.o: Makefile | |
68 | 68 | |||
69 | ## | 69 | ## | |
70 | ## (7) misc settings | 70 | ## (7) misc settings | |
71 | ## | 71 | ## | |
72 | 72 | |||
73 | ## | 73 | ## | |
74 | ## (8) config(8) generated machinery | 74 | ## (8) config(8) generated machinery | |
75 | ## | 75 | ## | |
76 | %INCLUDES | 76 | %INCLUDES | |
77 | 77 | |||
78 | %OBJS | 78 | %OBJS | |
79 | 79 | |||
80 | %CFILES | 80 | %CFILES | |
81 | 81 | |||
82 | #%SFILES | 82 | #%SFILES | |
83 | 83 | |||
84 | %LOAD | 84 | %LOAD | |
85 | 85 | |||
86 | %RULES | 86 | %RULES | |
87 | 87 | |||
88 | ## | 88 | ## | |
89 | ## (9) port independent kernel machinery | 89 | ## (9) port independent kernel machinery | |
90 | ## | 90 | ## | |
91 | .include "$S/conf/Makefile.kern.inc" | 91 | .include "$S/conf/Makefile.kern.inc" | |
92 | 92 | |||
93 | ## | 93 | ## | |
94 | ## (10) Appending make options. | 94 | ## (10) Appending make options. | |
95 | ## | 95 | ## | |
96 | %MAKEOPTIONSAPPEND | 96 | %MAKEOPTIONSAPPEND |
--- src/sys/arch/hpcmips/stand/lcboot/Makefile 2006/06/02 19:46:24 1.9
+++ src/sys/arch/hpcmips/stand/lcboot/Makefile 2011/01/21 15:59:06 1.10
@@ -1,85 +1,85 @@ | @@ -1,85 +1,85 @@ | |||
1 | # $NetBSD: Makefile,v 1.9 2006/06/02 19:46:24 mrg Exp $ | 1 | # $NetBSD: Makefile,v 1.10 2011/01/21 15:59:06 joerg Exp $ | |
2 | .include <bsd.own.mk> | 2 | .include <bsd.own.mk> | |
3 | 3 | |||
4 | ROMICE?= no | 4 | ROMICE?= no | |
5 | 5 | |||
6 | S= ${.CURDIR}/../../../../ | 6 | S= ${.CURDIR}/../../../../ | |
7 | 7 | |||
8 | PROG= lcboot.out | 8 | PROG= lcboot.out | |
9 | SREC= lcboot.srec | 9 | SREC= lcboot.srec | |
10 | MKMAN= no | 10 | MKMAN= no | |
11 | WARNS= 1 | 11 | WARNS= 1 | |
12 | SRCS= start.S main.c com.c conf.c dev_flash.c dev_net.c \ | 12 | SRCS= start.S main.c com.c conf.c dev_flash.c dev_net.c \ | |
13 | devopen.c i28f128.c if_cs.c | 13 | devopen.c i28f128.c if_cs.c | |
14 | 14 | |||
15 | #CPPFLAGS+= -DDEBUG -DNET_DEBUG -DNETIF_DEBUG -DARP_DEBUG \ | 15 | #CPPFLAGS+= -DDEBUG -DNET_DEBUG -DNETIF_DEBUG -DARP_DEBUG \ | |
16 | # -DETHER_DEBUG -DBOOTP_DEBUG | 16 | # -DETHER_DEBUG -DBOOTP_DEBUG | |
17 | 17 | |||
18 | STARTOBJS= | 18 | STARTOBJS= | |
19 | 19 | |||
20 | NEWVERSWHAT= "L-Card+ Boot" | 20 | NEWVERSWHAT= "L-Card+ Boot" | |
21 | VERSIONFILE= ${S}/arch/hpcmips/stand/lcboot/version | 21 | VERSIONFILE= ${S}/arch/hpcmips/stand/lcboot/version | |
22 | 22 | |||
23 | 23 | |||
24 | # Make sure we override any optimization options specified by the user. | 24 | # Make sure we override any optimization options specified by the user. | |
25 | #COPTS= -Os | 25 | #COPTS= -Os | |
26 | COPTS= | 26 | COPTS= | |
27 | DBG= | 27 | DBG= | |
28 | 28 | |||
29 | AFLAGS+= -D_LOCORE -D_KERNEL | 29 | AFLAGS+= -D_LOCORE -D_KERNEL | |
30 | AFLAGS+= -x assembler-with-cpp -traditional-cpp -mips2 -mno-abicalls | 30 | AFLAGS+= -x assembler-with-cpp -mips2 -mno-abicalls | |
31 | INCLUDES= -I${.OBJDIR} -I${S} -I${S}/arch | 31 | INCLUDES= -I${.OBJDIR} -I${S} -I${S}/arch | |
32 | CPPFLAGS+= ${INCLUDES} -nostdinc -D_STANDALONE -DHEAP_LIMIT=0x8002ffff | 32 | CPPFLAGS+= ${INCLUDES} -nostdinc -D_STANDALONE -DHEAP_LIMIT=0x8002ffff | |
33 | CFLAGS+= -mips2 -EL -mno-abicalls -ffreestanding -mmemcpy | 33 | CFLAGS+= -mips2 -EL -mno-abicalls -ffreestanding -mmemcpy | |
34 | LD_SCRIPT= lcboot.ldscript | 34 | LD_SCRIPT= lcboot.ldscript | |
35 | 35 | |||
36 | .if defined(ROMICE) && (${ROMICE} == "yes") | 36 | .if defined(ROMICE) && (${ROMICE} == "yes") | |
37 | CPPFLAGS+= -DROMICE | 37 | CPPFLAGS+= -DROMICE | |
38 | .endif | 38 | .endif | |
39 | 39 | |||
40 | .if !make(obj) && !make(clean) && !make(cleandir) | 40 | .if !make(obj) && !make(clean) && !make(cleandir) | |
41 | .BEGIN: | 41 | .BEGIN: | |
42 | @([ -h machine ] || ln -s ${S}/arch/${MACHINE}/include machine) | 42 | @([ -h machine ] || ln -s ${S}/arch/${MACHINE}/include machine) | |
43 | @[ -h mips ] || ln -s ${S}/arch/mips/include mips | 43 | @[ -h mips ] || ln -s ${S}/arch/mips/include mips | |
44 | .NOPATH: machine | 44 | .NOPATH: machine | |
45 | .endif | 45 | .endif | |
46 | CLEANFILES+= machine mips | 46 | CLEANFILES+= machine mips | |
47 | 47 | |||
48 | ${OBJS}: machine mips | 48 | ${OBJS}: machine mips | |
49 | 49 | |||
50 | ### find out what to use for libkern | 50 | ### find out what to use for libkern | |
51 | .include "${S}/lib/libkern/Makefile.inc" | 51 | .include "${S}/lib/libkern/Makefile.inc" | |
52 | LIBKERN= ${KERNLIB} | 52 | LIBKERN= ${KERNLIB} | |
53 | 53 | |||
54 | ### find out what to use for libz | 54 | ### find out what to use for libz | |
55 | .include "${S}/lib/libz/Makefile.inc" | 55 | .include "${S}/lib/libz/Makefile.inc" | |
56 | LIBZ= ${ZLIB} | 56 | LIBZ= ${ZLIB} | |
57 | 57 | |||
58 | ### find out what to use for libsa | 58 | ### find out what to use for libsa | |
59 | SAMISCMAKEFLAGS+="SA_USE_LOADFILE=yes" | 59 | SAMISCMAKEFLAGS+="SA_USE_LOADFILE=yes" | |
60 | SAMISCMAKEFLAGS+="SA_USE_CREAD=yes" | 60 | SAMISCMAKEFLAGS+="SA_USE_CREAD=yes" | |
61 | .include "${S}/lib/libsa/Makefile.inc" | 61 | .include "${S}/lib/libsa/Makefile.inc" | |
62 | LIBSA= ${SALIB} | 62 | LIBSA= ${SALIB} | |
63 | 63 | |||
64 | LIBLIST= ${LIBSA} ${LIBZ} ${LIBSA} ${LIBKERN} ${LIBSA} | 64 | LIBLIST= ${LIBSA} ${LIBZ} ${LIBSA} ${LIBKERN} ${LIBSA} | |
65 | 65 | |||
66 | # if there is a 'version' file, add rule for vers.c and add it to SRCS | 66 | # if there is a 'version' file, add rule for vers.c and add it to SRCS | |
67 | # and CLEANFILES | 67 | # and CLEANFILES | |
68 | .if exists (${VERSIONFILE}) | 68 | .if exists (${VERSIONFILE}) | |
69 | SRCS+= vers.c | 69 | SRCS+= vers.c | |
70 | CLEANFILES+= vers.c | 70 | CLEANFILES+= vers.c | |
71 | .PHONY: vers.c | 71 | .PHONY: vers.c | |
72 | vers.c: ${VERSIONFILE} | 72 | vers.c: ${VERSIONFILE} | |
73 | ${HOST_SH} ${S}/conf/newvers_stand.sh ${.ALLSRC} 'hpcmips' ${NEWVERSWHAT} | 73 | ${HOST_SH} ${S}/conf/newvers_stand.sh ${.ALLSRC} 'hpcmips' ${NEWVERSWHAT} | |
74 | .endif | 74 | .endif | |
75 | 75 | |||
76 | CLEANFILES+= ${PROG} | 76 | CLEANFILES+= ${PROG} | |
77 | ${PROG}: ${OBJS} ${LIBKERN} ${LIBSA} ${LIBZ} | 77 | ${PROG}: ${OBJS} ${LIBKERN} ${LIBSA} ${LIBZ} | |
78 | ${LD} -o ${PROG} -T ${LD_SCRIPT} ${OBJS} ${LIBLIST} | 78 | ${LD} -o ${PROG} -T ${LD_SCRIPT} ${OBJS} ${LIBLIST} | |
79 | 79 | |||
80 | CLEANFILES+= ${SREC} | 80 | CLEANFILES+= ${SREC} | |
81 | all: ${SREC} | 81 | all: ${SREC} | |
82 | ${SREC}: ${PROG} | 82 | ${SREC}: ${PROG} | |
83 | ${OBJCOPY} -S -O srec ${PROG} ${SREC} | 83 | ${OBJCOPY} -S -O srec ${PROG} ${SREC} | |
84 | 84 | |||
85 | .include <bsd.prog.mk> | 85 | .include <bsd.prog.mk> |
--- src/sys/arch/luna68k/conf/Makefile.luna68k 2008/02/19 14:38:14 1.19
+++ src/sys/arch/luna68k/conf/Makefile.luna68k 2011/01/21 15:59:06 1.20
@@ -1,96 +1,96 @@ | @@ -1,96 +1,96 @@ | |||
1 | # $NetBSD: Makefile.luna68k,v 1.19 2008/02/19 14:38:14 joerg Exp $ | 1 | # $NetBSD: Makefile.luna68k,v 1.20 2011/01/21 15:59:06 joerg Exp $ | |
2 | 2 | |||
3 | # Makefile for NetBSD | 3 | # Makefile for NetBSD | |
4 | # | 4 | # | |
5 | # This makefile is constructed from a machine description: | 5 | # This makefile is constructed from a machine description: | |
6 | # config machineid | 6 | # config machineid | |
7 | # Most changes should be made in the machine description | 7 | # Most changes should be made in the machine description | |
8 | # /sys/arch/luna68k/conf/``machineid'' | 8 | # /sys/arch/luna68k/conf/``machineid'' | |
9 | # after which you should do | 9 | # after which you should do | |
10 | # config machineid | 10 | # config machineid | |
11 | # Machine generic makefile changes should be made in | 11 | # Machine generic makefile changes should be made in | |
12 | # /sys/arch/luna68k/conf/Makefile.luna68k | 12 | # /sys/arch/luna68k/conf/Makefile.luna68k | |
13 | # after which config should be rerun for all machines of that type. | 13 | # after which config should be rerun for all machines of that type. | |
14 | # To specify debugging, add the config line: makeoptions DEBUG="-g" | 14 | # To specify debugging, add the config line: makeoptions DEBUG="-g" | |
15 | # A better way is to specify -g only for a few files. | 15 | # A better way is to specify -g only for a few files. | |
16 | # | 16 | # | |
17 | # makeoptions DEBUGLIST="uvm* trap if_*" | 17 | # makeoptions DEBUGLIST="uvm* trap if_*" | |
18 | 18 | |||
19 | MACHINE_ARCH=m68k | 19 | MACHINE_ARCH=m68k | |
20 | USETOOLS?= no | 20 | USETOOLS?= no | |
21 | NEED_OWN_INSTALL_TARGET?=no | 21 | NEED_OWN_INSTALL_TARGET?=no | |
22 | .include <bsd.own.mk> | 22 | .include <bsd.own.mk> | |
23 | 23 | |||
24 | ## | 24 | ## | |
25 | ## (1) port identification | 25 | ## (1) port identification | |
26 | ## | 26 | ## | |
27 | LUNA68K= $S/arch/luna68k | 27 | LUNA68K= $S/arch/luna68k | |
28 | GENASSYM_CONF= ${LUNA68K}/luna68k/genassym.cf | 28 | GENASSYM_CONF= ${LUNA68K}/luna68k/genassym.cf | |
29 | 29 | |||
30 | ## | 30 | ## | |
31 | ## (2) compile settings | 31 | ## (2) compile settings | |
32 | ## | 32 | ## | |
33 | CPPFLAGS+= -Dluna68k | 33 | CPPFLAGS+= -Dluna68k | |
34 | CFLAGS+= -msoft-float | 34 | CFLAGS+= -msoft-float | |
35 | AFLAGS+= -x assembler-with-cpp -traditional-cpp | 35 | AFLAGS+= -x assembler-with-cpp | |
36 | 36 | |||
37 | ## | 37 | ## | |
38 | ## (3) libkern and compat | 38 | ## (3) libkern and compat | |
39 | ## | 39 | ## | |
40 | 40 | |||
41 | ## | 41 | ## | |
42 | ## (4) local objects, compile rules, and dependencies | 42 | ## (4) local objects, compile rules, and dependencies | |
43 | ## | 43 | ## | |
44 | # for the Motorola 68040 Floating Point Software Product | 44 | # for the Motorola 68040 Floating Point Software Product | |
45 | # .include "$S/arch/m68k/fpsp/Makefile.inc" | 45 | # .include "$S/arch/m68k/fpsp/Makefile.inc" | |
46 | 46 | |||
47 | MD_OBJS= locore.o ${FPSP} | 47 | MD_OBJS= locore.o ${FPSP} | |
48 | MD_CFILES= | 48 | MD_CFILES= | |
49 | MD_SFILES= | 49 | MD_SFILES= | |
50 | 50 | |||
51 | locore.o: ${LUNA68K}/luna68k/locore.s assym.h | 51 | locore.o: ${LUNA68K}/luna68k/locore.s assym.h | |
52 | ${NORMAL_S} | 52 | ${NORMAL_S} | |
53 | 53 | |||
54 | ## | 54 | ## | |
55 | ## (5) link settings | 55 | ## (5) link settings | |
56 | ## | 56 | ## | |
57 | LINKFORMAT= -N | 57 | LINKFORMAT= -N | |
58 | TEXTADDR?= 0xc000 | 58 | TEXTADDR?= 0xc000 | |
59 | 59 | |||
60 | ## | 60 | ## | |
61 | ## (6) port specific target dependencies | 61 | ## (6) port specific target dependencies | |
62 | ## | 62 | ## | |
63 | 63 | |||
64 | # depend on CPU configuration | 64 | # depend on CPU configuration | |
65 | machdep.c trap.o: Makefile | 65 | machdep.c trap.o: Makefile | |
66 | 66 | |||
67 | copy.o copypage.o lock_stubs.o: assym.h | 67 | copy.o copypage.o lock_stubs.o: assym.h | |
68 | 68 | |||
69 | ## | 69 | ## | |
70 | ## (7) misc settings | 70 | ## (7) misc settings | |
71 | ## | 71 | ## | |
72 | 72 | |||
73 | ## | 73 | ## | |
74 | ## (8) config(8) generated machinery | 74 | ## (8) config(8) generated machinery | |
75 | ## | 75 | ## | |
76 | %INCLUDES | 76 | %INCLUDES | |
77 | 77 | |||
78 | %OBJS | 78 | %OBJS | |
79 | 79 | |||
80 | %CFILES | 80 | %CFILES | |
81 | 81 | |||
82 | %SFILES | 82 | %SFILES | |
83 | 83 | |||
84 | %LOAD | 84 | %LOAD | |
85 | 85 | |||
86 | %RULES | 86 | %RULES | |
87 | 87 | |||
88 | ## | 88 | ## | |
89 | ## (9) port independent kernel machinery | 89 | ## (9) port independent kernel machinery | |
90 | ## | 90 | ## | |
91 | .include "$S/conf/Makefile.kern.inc" | 91 | .include "$S/conf/Makefile.kern.inc" | |
92 | 92 | |||
93 | ## | 93 | ## | |
94 | ## (10) Appending make options. | 94 | ## (10) Appending make options. | |
95 | ## | 95 | ## | |
96 | %MAKEOPTIONSAPPEND | 96 | %MAKEOPTIONSAPPEND |
--- src/sys/arch/mac68k/conf/Makefile.mac68k 2008/02/18 14:01:17 1.89
+++ src/sys/arch/mac68k/conf/Makefile.mac68k 2011/01/21 15:59:07 1.90
@@ -1,98 +1,98 @@ | @@ -1,98 +1,98 @@ | |||
1 | # $NetBSD: Makefile.mac68k,v 1.89 2008/02/18 14:01:17 joerg Exp $ | 1 | # $NetBSD: Makefile.mac68k,v 1.90 2011/01/21 15:59:07 joerg Exp $ | |
2 | 2 | |||
3 | # Makefile for NetBSD | 3 | # Makefile for NetBSD | |
4 | # | 4 | # | |
5 | # This makefile is constructed from a machine description: | 5 | # This makefile is constructed from a machine description: | |
6 | # config machineid | 6 | # config machineid | |
7 | # Most changes should be made in the machine description | 7 | # Most changes should be made in the machine description | |
8 | # /sys/arch/mac68k/conf/``machineid'' | 8 | # /sys/arch/mac68k/conf/``machineid'' | |
9 | # after which you should do | 9 | # after which you should do | |
10 | # config machineid | 10 | # config machineid | |
11 | # Machine generic makefile changes should be made in | 11 | # Machine generic makefile changes should be made in | |
12 | # /sys/arch/mac68k/conf/Makefile.mac68k | 12 | # /sys/arch/mac68k/conf/Makefile.mac68k | |
13 | # after which config should be rerun for all machines of that type. | 13 | # after which config should be rerun for all machines of that type. | |
14 | # | 14 | # | |
15 | # To specify debugging, add the config line: makeoptions DEBUG="-g" | 15 | # To specify debugging, add the config line: makeoptions DEBUG="-g" | |
16 | # A better way is to specify -g only for a few files. | 16 | # A better way is to specify -g only for a few files. | |
17 | # | 17 | # | |
18 | # makeoptions DEBUGLIST="uvm* trap if_*" | 18 | # makeoptions DEBUGLIST="uvm* trap if_*" | |
19 | 19 | |||
20 | MACHINE_ARCH=m68k | 20 | MACHINE_ARCH=m68k | |
21 | USETOOLS?= no | 21 | USETOOLS?= no | |
22 | NEED_OWN_INSTALL_TARGET?=no | 22 | NEED_OWN_INSTALL_TARGET?=no | |
23 | .include <bsd.own.mk> | 23 | .include <bsd.own.mk> | |
24 | 24 | |||
25 | ## | 25 | ## | |
26 | ## (1) port identification | 26 | ## (1) port identification | |
27 | ## | 27 | ## | |
28 | MAC68K= $S/arch/mac68k | 28 | MAC68K= $S/arch/mac68k | |
29 | GENASSYM_CONF= ${MAC68K}/mac68k/genassym.cf | 29 | GENASSYM_CONF= ${MAC68K}/mac68k/genassym.cf | |
30 | 30 | |||
31 | ## | 31 | ## | |
32 | ## (2) compile settings | 32 | ## (2) compile settings | |
33 | ## | 33 | ## | |
34 | CPPFLAGS+= -Dmac68k | 34 | CPPFLAGS+= -Dmac68k | |
35 | CFLAGS+= -msoft-float | 35 | CFLAGS+= -msoft-float | |
36 | AFLAGS+= -x assembler-with-cpp -traditional-cpp | 36 | AFLAGS+= -x assembler-with-cpp | |
37 | 37 | |||
38 | ## | 38 | ## | |
39 | ## (3) libkern and compat | 39 | ## (3) libkern and compat | |
40 | ## | 40 | ## | |
41 | KERN_AS= obj | 41 | KERN_AS= obj | |
42 | 42 | |||
43 | ## | 43 | ## | |
44 | ## (4) local objects, compile rules, and dependencies | 44 | ## (4) local objects, compile rules, and dependencies | |
45 | ## | 45 | ## | |
46 | # for the Motorola 68040 Floating Point Software Product | 46 | # for the Motorola 68040 Floating Point Software Product | |
47 | .include "$S/arch/m68k/fpsp/Makefile.inc" | 47 | .include "$S/arch/m68k/fpsp/Makefile.inc" | |
48 | 48 | |||
49 | MD_OBJS= locore.o ${FPSP} | 49 | MD_OBJS= locore.o ${FPSP} | |
50 | MD_CFILES= | 50 | MD_CFILES= | |
51 | MD_SFILES= ${MAC68K}/mac68k/locore.s | 51 | MD_SFILES= ${MAC68K}/mac68k/locore.s | |
52 | 52 | |||
53 | locore.o: ${MAC68K}/mac68k/locore.s assym.h | 53 | locore.o: ${MAC68K}/mac68k/locore.s assym.h | |
54 | ${NORMAL_S} | 54 | ${NORMAL_S} | |
55 | 55 | |||
56 | ## | 56 | ## | |
57 | ## (5) link settings | 57 | ## (5) link settings | |
58 | ## | 58 | ## | |
59 | LINKFORMAT= -n | 59 | LINKFORMAT= -n | |
60 | TEXTADDR?= 0 | 60 | TEXTADDR?= 0 | |
61 | 61 | |||
62 | ## | 62 | ## | |
63 | ## (6) port specific target dependencies | 63 | ## (6) port specific target dependencies | |
64 | ## | 64 | ## | |
65 | 65 | |||
66 | # depend on CPU configuration | 66 | # depend on CPU configuration | |
67 | locore.o pmap.o trap.o: Makefile | 67 | locore.o pmap.o trap.o: Makefile | |
68 | 68 | |||
69 | copy.o copypage.o lock_stubs.o macromasm.o: assym.h | 69 | copy.o copypage.o lock_stubs.o macromasm.o: assym.h | |
70 | 70 | |||
71 | ## | 71 | ## | |
72 | ## (7) misc settings | 72 | ## (7) misc settings | |
73 | ## | 73 | ## | |
74 | 74 | |||
75 | ## | 75 | ## | |
76 | ## (8) config(8) generated machinery | 76 | ## (8) config(8) generated machinery | |
77 | ## | 77 | ## | |
78 | %INCLUDES | 78 | %INCLUDES | |
79 | 79 | |||
80 | %OBJS | 80 | %OBJS | |
81 | 81 | |||
82 | %CFILES | 82 | %CFILES | |
83 | 83 | |||
84 | %SFILES | 84 | %SFILES | |
85 | 85 | |||
86 | %LOAD | 86 | %LOAD | |
87 | 87 | |||
88 | %RULES | 88 | %RULES | |
89 | 89 | |||
90 | ## | 90 | ## | |
91 | ## (9) port independent kernel machinery | 91 | ## (9) port independent kernel machinery | |
92 | ## | 92 | ## | |
93 | .include "$S/conf/Makefile.kern.inc" | 93 | .include "$S/conf/Makefile.kern.inc" | |
94 | 94 | |||
95 | ## | 95 | ## | |
96 | ## (10) Appending make options. | 96 | ## (10) Appending make options. | |
97 | ## | 97 | ## | |
98 | %MAKEOPTIONSAPPEND | 98 | %MAKEOPTIONSAPPEND |
--- src/sys/arch/mips/conf/Makefile.mips 2009/12/14 00:46:04 1.55
+++ src/sys/arch/mips/conf/Makefile.mips 2011/01/21 15:59:07 1.56
@@ -1,151 +1,151 @@ | @@ -1,151 +1,151 @@ | |||
1 | # $NetBSD: Makefile.mips,v 1.55 2009/12/14 00:46:04 matt Exp $ | 1 | # $NetBSD: Makefile.mips,v 1.56 2011/01/21 15:59:07 joerg Exp $ | |
2 | 2 | |||
3 | # Makefile for NetBSD | 3 | # Makefile for NetBSD | |
4 | # | 4 | # | |
5 | # This makefile is constructed from a machine description: | 5 | # This makefile is constructed from a machine description: | |
6 | # config machineid | 6 | # config machineid | |
7 | # Most changes should be made in the machine description | 7 | # Most changes should be made in the machine description | |
8 | # /sys/arch/<machine>/conf/``machineid'' | 8 | # /sys/arch/<machine>/conf/``machineid'' | |
9 | # after which you should do | 9 | # after which you should do | |
10 | # config machineid | 10 | # config machineid | |
11 | # Machine generic makefile changes should be made in | 11 | # Machine generic makefile changes should be made in | |
12 | # /sys/arch/mips/conf/Makefile.mips | 12 | # /sys/arch/mips/conf/Makefile.mips | |
13 | # after which config should be rerun for all machines of that type. | 13 | # after which config should be rerun for all machines of that type. | |
14 | # | 14 | # | |
15 | # To specify debugging, add the config line: makeoptions DEBUG="-g" | 15 | # To specify debugging, add the config line: makeoptions DEBUG="-g" | |
16 | # A better way is to specify -g only for a few files. | 16 | # A better way is to specify -g only for a few files. | |
17 | # | 17 | # | |
18 | # makeoptions DEBUGLIST="uvm* trap if_*" | 18 | # makeoptions DEBUGLIST="uvm* trap if_*" | |
19 | 19 | |||
20 | USETOOLS?= no | 20 | USETOOLS?= no | |
21 | NEED_OWN_INSTALL_TARGET?=no | 21 | NEED_OWN_INSTALL_TARGET?=no | |
22 | .include <bsd.own.mk> | 22 | .include <bsd.own.mk> | |
23 | 23 | |||
24 | ## | 24 | ## | |
25 | ## (0) toolchain settings for things that aren't part of the standard | 25 | ## (0) toolchain settings for things that aren't part of the standard | |
26 | ## toolchain | 26 | ## toolchain | |
27 | ## | 27 | ## | |
28 | ELF2ECOFF?= elf2ecoff | 28 | ELF2ECOFF?= elf2ecoff | |
29 | 29 | |||
30 | ## | 30 | ## | |
31 | ## (1) port identification | 31 | ## (1) port identification | |
32 | ## | 32 | ## | |
33 | .ifndef S | 33 | .ifndef S | |
34 | S= ../../../.. | 34 | S= ../../../.. | |
35 | .endif | 35 | .endif | |
36 | THISMIPS= $S/arch/${MACHINE} | 36 | THISMIPS= $S/arch/${MACHINE} | |
37 | MIPS= $S/arch/mips | 37 | MIPS= $S/arch/mips | |
38 | GENASSYM_CONF= ${MIPS}/mips/genassym.cf | 38 | GENASSYM_CONF= ${MIPS}/mips/genassym.cf | |
39 | .-include "${THISMIPS}/conf/Makefile.${MACHINE}.inc" | 39 | .-include "${THISMIPS}/conf/Makefile.${MACHINE}.inc" | |
40 | 40 | |||
41 | ## | 41 | ## | |
42 | ## (2) compile settings | 42 | ## (2) compile settings | |
43 | ## | 43 | ## | |
44 | ## Note: -ffixed-?? must be kept in sync with cpu.h. | 44 | ## Note: -ffixed-?? must be kept in sync with cpu.h. | |
45 | ## | 45 | ## | |
46 | CPPFLAGS+= -D${MACHINE} | 46 | CPPFLAGS+= -D${MACHINE} | |
47 | DEFGP?= -G 0 | 47 | DEFGP?= -G 0 | |
48 | GP?= ${DEFGP} | 48 | GP?= ${DEFGP} | |
49 | CFLAGS+= ${GP} -mno-abicalls -msoft-float -ffixed-23 | 49 | CFLAGS+= ${GP} -mno-abicalls -msoft-float -ffixed-23 | |
50 | .if defined(LP64) && ${LP64} == "yes" | 50 | .if defined(LP64) && ${LP64} == "yes" | |
51 | .if ${MACHINE_ARCH} == "mips64eb" || ${MACHINE_ARCH} == "mips64el" | 51 | .if ${MACHINE_ARCH} == "mips64eb" || ${MACHINE_ARCH} == "mips64el" | |
52 | CFLAGS+= -msym32 -mabi=64 | 52 | CFLAGS+= -msym32 -mabi=64 | |
53 | AFLAGS+= -msym32 -mabi=64 | 53 | AFLAGS+= -msym32 -mabi=64 | |
54 | .endif | 54 | .endif | |
55 | .if ${MACHINE_ARCH} == "mips64eb" | 55 | .if ${MACHINE_ARCH} == "mips64eb" | |
56 | LDFLAGS+= -m elf64btsmip | 56 | LDFLAGS+= -m elf64btsmip | |
57 | LINKFORMAT+= -m elf64btsmip | 57 | LINKFORMAT+= -m elf64btsmip | |
58 | SYSTEM_LD_TAIL_EXTRA+= \ | 58 | SYSTEM_LD_TAIL_EXTRA+= \ | |
59 | ;echo ${OBJCOPY} -O elf32-nbigmips $@ $@.elf32; \ | 59 | ;echo ${OBJCOPY} -O elf32-nbigmips $@ $@.elf32; \ | |
60 | ${OBJCOPY} -O elf32-nbigmips $@ $@.elf32 | 60 | ${OBJCOPY} -O elf32-nbigmips $@ $@.elf32 | |
61 | .endif | 61 | .endif | |
62 | .if ${MACHINE_ARCH} == "mips64el" | 62 | .if ${MACHINE_ARCH} == "mips64el" | |
63 | LDFLAGS+= -m elf64ltsmip | 63 | LDFLAGS+= -m elf64ltsmip | |
64 | LINKFORMAT+= -m elf64ltsmip | 64 | LINKFORMAT+= -m elf64ltsmip | |
65 | SYSTEM_LD_TAIL_EXTRA+= \ | 65 | SYSTEM_LD_TAIL_EXTRA+= \ | |
66 | ;echo ${OBJCOPY} -O elf32-nlittlemips $@ $@.elf32; \ | 66 | ;echo ${OBJCOPY} -O elf32-nlittlemips $@ $@.elf32; \ | |
67 | ${OBJCOPY} -O elf32-nlittlemips $@ $@.elf32 | 67 | ${OBJCOPY} -O elf32-nlittlemips $@ $@.elf32 | |
68 | .endif | 68 | .endif | |
69 | .endif # LP64=yes | 69 | .endif # LP64=yes | |
70 | AFLAGS+= -mno-abicalls -x assembler-with-cpp -traditional-cpp ${AOPTS} | 70 | AFLAGS+= -mno-abicalls -x assembler-with-cpp ${AOPTS} | |
71 | 71 | |||
72 | ## | 72 | ## | |
73 | ## (3) libkern and compat | 73 | ## (3) libkern and compat | |
74 | ## | 74 | ## | |
75 | OPT_MODULAR= %MODULAR% | 75 | OPT_MODULAR= %MODULAR% | |
76 | .if !empty(OPT_MODULAR) | 76 | .if !empty(OPT_MODULAR) | |
77 | KERN_AS= obj | 77 | KERN_AS= obj | |
78 | .endif | 78 | .endif | |
79 | 79 | |||
80 | ## | 80 | ## | |
81 | ## (4) local objects, compile rules, and dependencies | 81 | ## (4) local objects, compile rules, and dependencies | |
82 | ## | 82 | ## | |
83 | MD_OBJS= locore.o locore_machdep.o | 83 | MD_OBJS= locore.o locore_machdep.o | |
84 | MD_CFILES= | 84 | MD_CFILES= | |
85 | MD_SFILES= ${MIPS}/mips/locore.S ${THISMIPS}/${MACHINE}/locore_machdep.S | 85 | MD_SFILES= ${MIPS}/mips/locore.S ${THISMIPS}/${MACHINE}/locore_machdep.S | |
86 | 86 | |||
87 | locore.o: ${MIPS}/mips/locore.S assym.h | 87 | locore.o: ${MIPS}/mips/locore.S assym.h | |
88 | ${NORMAL_S} | 88 | ${NORMAL_S} | |
89 | 89 | |||
90 | locore_machdep.o: ${THISMIPS}/${MACHINE}/locore_machdep.S assym.h | 90 | locore_machdep.o: ${THISMIPS}/${MACHINE}/locore_machdep.S assym.h | |
91 | ${NORMAL_S} | 91 | ${NORMAL_S} | |
92 | 92 | |||
93 | ## | 93 | ## | |
94 | ## (5) link settings | 94 | ## (5) link settings | |
95 | ## | 95 | ## | |
96 | .if ${MACHINE_ARCH} == "mips64eb" || ${MACHINE_ARCH} == "mips64el" | 96 | .if ${MACHINE_ARCH} == "mips64eb" || ${MACHINE_ARCH} == "mips64el" | |
97 | TEXTADDR?= ${DEFTEXTADDR:C/0x8/0xFFFFFFFF8/} | 97 | TEXTADDR?= ${DEFTEXTADDR:C/0x8/0xFFFFFFFF8/} | |
98 | .else | 98 | .else | |
99 | TEXTADDR?= ${DEFTEXTADDR} | 99 | TEXTADDR?= ${DEFTEXTADDR} | |
100 | .endif | 100 | .endif | |
101 | KERNLDSCRIPT?= ${MIPS}/conf/kern.ldscript | 101 | KERNLDSCRIPT?= ${MIPS}/conf/kern.ldscript | |
102 | # some mips ports specify a "magic" format | 102 | # some mips ports specify a "magic" format | |
103 | LINKFORMAT+= -T ${KERNLDSCRIPT} | 103 | LINKFORMAT+= -T ${KERNLDSCRIPT} | |
104 | EXTRA_LINKFLAGS= ${GP} ${LDOPTS} | 104 | EXTRA_LINKFLAGS= ${GP} ${LDOPTS} | |
105 | LINKFLAGS_NORMAL= -X | 105 | LINKFLAGS_NORMAL= -X | |
106 | STRIPFLAGS= -g -X | 106 | STRIPFLAGS= -g -X | |
107 | 107 | |||
108 | ## | 108 | ## | |
109 | ## (6) port specific target dependencies | 109 | ## (6) port specific target dependencies | |
110 | ## | 110 | ## | |
111 | 111 | |||
112 | # depend on CPU configuration | 112 | # depend on CPU configuration | |
113 | machdep.o mainbus.o trap.o: Makefile | 113 | machdep.o mainbus.o trap.o: Makefile | |
114 | 114 | |||
115 | # depend on System V IPC/shmem options | 115 | # depend on System V IPC/shmem options | |
116 | mips_machdep.o pmap.o: Makefile | 116 | mips_machdep.o pmap.o: Makefile | |
117 | 117 | |||
118 | # various assembly files that depend on assym.h | 118 | # various assembly files that depend on assym.h | |
119 | copy.o fp.o locore.o locore_mips1.o locore_mips3.o: assym.h | 119 | copy.o fp.o locore.o locore_mips1.o locore_mips3.o: assym.h | |
120 | lock_stubs.o mips32_subr.o mips3_subr.o mips5900_subr.o: assym.h | 120 | lock_stubs.o mips32_subr.o mips3_subr.o mips5900_subr.o: assym.h | |
121 | mips64_subr.o mipsX_subr.o sigcode.o: assym.h | 121 | mips64_subr.o mipsX_subr.o sigcode.o: assym.h | |
122 | 122 | |||
123 | 123 | |||
124 | ## | 124 | ## | |
125 | ## (7) misc settings | 125 | ## (7) misc settings | |
126 | ## | 126 | ## | |
127 | 127 | |||
128 | ## | 128 | ## | |
129 | ## (8) config(8) generated machinery | 129 | ## (8) config(8) generated machinery | |
130 | ## | 130 | ## | |
131 | %INCLUDES | 131 | %INCLUDES | |
132 | 132 | |||
133 | %OBJS | 133 | %OBJS | |
134 | 134 | |||
135 | %CFILES | 135 | %CFILES | |
136 | 136 | |||
137 | %SFILES | 137 | %SFILES | |
138 | 138 | |||
139 | %LOAD | 139 | %LOAD | |
140 | 140 | |||
141 | %RULES | 141 | %RULES | |
142 | 142 | |||
143 | ## | 143 | ## | |
144 | ## (9) port independent kernel machinery | 144 | ## (9) port independent kernel machinery | |
145 | ## | 145 | ## | |
146 | .include "$S/conf/Makefile.kern.inc" | 146 | .include "$S/conf/Makefile.kern.inc" | |
147 | 147 | |||
148 | ## | 148 | ## | |
149 | ## (10) Appending make options. | 149 | ## (10) Appending make options. | |
150 | ## | 150 | ## | |
151 | %MAKEOPTIONSAPPEND | 151 | %MAKEOPTIONSAPPEND |
--- src/sys/arch/mips/include/Makefile.inc 2009/11/29 23:46:41 1.8
+++ src/sys/arch/mips/include/Makefile.inc 2011/01/21 15:59:07 1.9
@@ -1,15 +1,15 @@ | @@ -1,15 +1,15 @@ | |||
1 | # $NetBSD: Makefile.inc,v 1.8 2009/11/29 23:46:41 pooka Exp $ | 1 | # $NetBSD: Makefile.inc,v 1.9 2011/01/21 15:59:07 joerg Exp $ | |
2 | 2 | |||
3 | CFLAGS+= -G 0 -ffixed-23 | 3 | CFLAGS+= -G 0 -ffixed-23 | |
4 | 4 | |||
5 | # this should really be !(RUMPKERNEL && target=PIC) | 5 | # this should really be !(RUMPKERNEL && target=PIC) | |
6 | .if !defined(RUMPKERNEL) | 6 | .if !defined(RUMPKERNEL) | |
7 | CFLAGS+= -mno-abicalls | 7 | CFLAGS+= -mno-abicalls | |
8 | AFLAGS+= -mno-abicalls | 8 | AFLAGS+= -mno-abicalls | |
9 | .endif | 9 | .endif | |
10 | 10 | |||
11 | .if ${MACHINE_ARCH} == "mips64eb" || ${MACHINE_ARCH} == "mips64el" | 11 | .if ${MACHINE_ARCH} == "mips64eb" || ${MACHINE_ARCH} == "mips64el" | |
12 | CFLAGS+= -msym32 | 12 | CFLAGS+= -msym32 | |
13 | .endif | 13 | .endif | |
14 | 14 | |||
15 | AFLAGS+= -x assembler-with-cpp -traditional-cpp ${AOPTS} | 15 | AFLAGS+= -x assembler-with-cpp ${AOPTS} |
--- src/sys/arch/mvme68k/conf/Makefile.mvme68k 2008/02/18 14:11:48 1.61
+++ src/sys/arch/mvme68k/conf/Makefile.mvme68k 2011/01/21 15:59:07 1.62
@@ -1,114 +1,114 @@ | @@ -1,114 +1,114 @@ | |||
1 | # $NetBSD: Makefile.mvme68k,v 1.61 2008/02/18 14:11:48 joerg Exp $ | 1 | # $NetBSD: Makefile.mvme68k,v 1.62 2011/01/21 15:59:07 joerg Exp $ | |
2 | 2 | |||
3 | # Makefile for NetBSD | 3 | # Makefile for NetBSD | |
4 | # | 4 | # | |
5 | # This makefile is constructed from a machine description: | 5 | # This makefile is constructed from a machine description: | |
6 | # config machineid | 6 | # config machineid | |
7 | # Most changes should be made in the machine description | 7 | # Most changes should be made in the machine description | |
8 | # /sys/arch/mvme68k/conf/``machineid'' | 8 | # /sys/arch/mvme68k/conf/``machineid'' | |
9 | # after which you should do | 9 | # after which you should do | |
10 | # config machineid | 10 | # config machineid | |
11 | # Machine generic makefile changes should be made in | 11 | # Machine generic makefile changes should be made in | |
12 | # /sys/arch/mvme68k/conf/Makefile.mvme68k | 12 | # /sys/arch/mvme68k/conf/Makefile.mvme68k | |
13 | # after which config should be rerun for all machines of that type. | 13 | # after which config should be rerun for all machines of that type. | |
14 | # | 14 | # | |
15 | # To specify debugging, add the config line: makeoptions DEBUG="-g" | 15 | # To specify debugging, add the config line: makeoptions DEBUG="-g" | |
16 | # A better way is to specify -g only for a few files. | 16 | # A better way is to specify -g only for a few files. | |
17 | # | 17 | # | |
18 | # makeoptions DEBUGLIST="uvm* trap if_*" | 18 | # makeoptions DEBUGLIST="uvm* trap if_*" | |
19 | 19 | |||
20 | MACHINE_ARCH=m68k | 20 | MACHINE_ARCH=m68k | |
21 | USETOOLS?= no | 21 | USETOOLS?= no | |
22 | NEED_OWN_INSTALL_TARGET?=no | 22 | NEED_OWN_INSTALL_TARGET?=no | |
23 | .include <bsd.own.mk> | 23 | .include <bsd.own.mk> | |
24 | 24 | |||
25 | ## | 25 | ## | |
26 | ## (1) port identification | 26 | ## (1) port identification | |
27 | ## | 27 | ## | |
28 | MVME68K= $S/arch/mvme68k | 28 | MVME68K= $S/arch/mvme68k | |
29 | GENASSYM_CONF= ${MVME68K}/mvme68k/genassym.cf | 29 | GENASSYM_CONF= ${MVME68K}/mvme68k/genassym.cf | |
30 | 30 | |||
31 | ## | 31 | ## | |
32 | ## (2) compile settings | 32 | ## (2) compile settings | |
33 | ## | 33 | ## | |
34 | CPPFLAGS+= -Dmvme68k | 34 | CPPFLAGS+= -Dmvme68k | |
35 | .if empty(IDENT:M-DMVME172) && empty(IDENT:M-DMVME177) | 35 | .if empty(IDENT:M-DMVME172) && empty(IDENT:M-DMVME177) | |
36 | .if empty(IDENT:M-DMVME147) | 36 | .if empty(IDENT:M-DMVME147) | |
37 | CMACHFLAGS= -m68040 | 37 | CMACHFLAGS= -m68040 | |
38 | .else | 38 | .else | |
39 | CMACHFLAGS= -m68030 | 39 | CMACHFLAGS= -m68030 | |
40 | .endif | 40 | .endif | |
41 | .else | 41 | .else | |
42 | .if empty(IDENT:M-DMVME147) && empty(IDENT:M-DMVME162) && empty(IDENT:M-DMVME167) | 42 | .if empty(IDENT:M-DMVME147) && empty(IDENT:M-DMVME162) && empty(IDENT:M-DMVME167) | |
43 | CMACHFLAGS= -m68060 -Wa,-m68030 -Wa,-m68851 | 43 | CMACHFLAGS= -m68060 -Wa,-m68030 -Wa,-m68851 | |
44 | .else | 44 | .else | |
45 | CMACHFLAGS= -m68020-60 -Wa,-m68030 -Wa,-m68851 | 45 | CMACHFLAGS= -m68020-60 -Wa,-m68030 -Wa,-m68851 | |
46 | .endif | 46 | .endif | |
47 | .endif | 47 | .endif | |
48 | CFLAGS+= ${CMACHFLAGS} -msoft-float | 48 | CFLAGS+= ${CMACHFLAGS} -msoft-float | |
49 | AFLAGS+= -x assembler-with-cpp -traditional-cpp | 49 | AFLAGS+= -x assembler-with-cpp | |
50 | 50 | |||
51 | ## | 51 | ## | |
52 | ## (3) libkern and compat | 52 | ## (3) libkern and compat | |
53 | ## | 53 | ## | |
54 | KERN_AS= obj | 54 | KERN_AS= obj | |
55 | 55 | |||
56 | ## | 56 | ## | |
57 | ## (4) local objects, compile rules, and dependencies | 57 | ## (4) local objects, compile rules, and dependencies | |
58 | ## | 58 | ## | |
59 | # for the Motorola 68040 Floating Point Software Product | 59 | # for the Motorola 68040 Floating Point Software Product | |
60 | .include "$S/arch/m68k/fpsp/Makefile.inc" | 60 | .include "$S/arch/m68k/fpsp/Makefile.inc" | |
61 | 61 | |||
62 | # for the Motorola 68060 Software Support Package | 62 | # for the Motorola 68060 Software Support Package | |
63 | .include "$S/arch/m68k/060sp/Makefile.inc" | 63 | .include "$S/arch/m68k/060sp/Makefile.inc" | |
64 | 64 | |||
65 | MD_OBJS= locore.o ${FPSP} | 65 | MD_OBJS= locore.o ${FPSP} | |
66 | MD_CFILES= | 66 | MD_CFILES= | |
67 | MD_SFILES= ${MVME68K}/mvme68k/locore.s | 67 | MD_SFILES= ${MVME68K}/mvme68k/locore.s | |
68 | 68 | |||
69 | 69 | |||
70 | locore.o: ${MVME68K}/mvme68k/locore.s assym.h | 70 | locore.o: ${MVME68K}/mvme68k/locore.s assym.h | |
71 | ${NORMAL_S} | 71 | ${NORMAL_S} | |
72 | ## | 72 | ## | |
73 | ## (5) link settings | 73 | ## (5) link settings | |
74 | ## | 74 | ## | |
75 | LINKFORMAT= -n | 75 | LINKFORMAT= -n | |
76 | TEXTADDR?= 8000 | 76 | TEXTADDR?= 8000 | |
77 | 77 | |||
78 | ## | 78 | ## | |
79 | ## (6) port specific target dependencies | 79 | ## (6) port specific target dependencies | |
80 | ## | 80 | ## | |
81 | 81 | |||
82 | # depend on CPU configuration | 82 | # depend on CPU configuration | |
83 | locore.o pmap.o sys_machdep.o trap.o: Makefile | 83 | locore.o pmap.o sys_machdep.o trap.o: Makefile | |
84 | 84 | |||
85 | copy.o copypage.o lock_stubs.o: assym.h | 85 | copy.o copypage.o lock_stubs.o: assym.h | |
86 | 86 | |||
87 | ## | 87 | ## | |
88 | ## (7) misc settings | 88 | ## (7) misc settings | |
89 | ## | 89 | ## | |
90 | 90 | |||
91 | ## | 91 | ## | |
92 | ## (8) config(8) generated machinery | 92 | ## (8) config(8) generated machinery | |
93 | ## | 93 | ## | |
94 | %INCLUDES | 94 | %INCLUDES | |
95 | 95 | |||
96 | %OBJS | 96 | %OBJS | |
97 | 97 | |||
98 | %CFILES | 98 | %CFILES | |
99 | 99 | |||
100 | %SFILES | 100 | %SFILES | |
101 | 101 | |||
102 | %LOAD | 102 | %LOAD | |
103 | 103 | |||
104 | %RULES | 104 | %RULES | |
105 | 105 | |||
106 | ## | 106 | ## | |
107 | ## (9) port independent kernel machinery | 107 | ## (9) port independent kernel machinery | |
108 | ## | 108 | ## | |
109 | .include "$S/conf/Makefile.kern.inc" | 109 | .include "$S/conf/Makefile.kern.inc" | |
110 | 110 | |||
111 | ## | 111 | ## | |
112 | ## (10) Appending make options. | 112 | ## (10) Appending make options. | |
113 | ## | 113 | ## | |
114 | %MAKEOPTIONSAPPEND | 114 | %MAKEOPTIONSAPPEND |
--- src/sys/arch/mvme68k/stand/bootxx/Makefile 2011/01/02 05:30:12 1.9
+++ src/sys/arch/mvme68k/stand/bootxx/Makefile 2011/01/21 15:59:07 1.10
@@ -1,15 +1,15 @@ | @@ -1,15 +1,15 @@ | |||
1 | # from: @(#)Makefile 8.1 (Berkeley) 6/10/93 | 1 | # from: @(#)Makefile 8.1 (Berkeley) 6/10/93 | |
2 | # $NetBSD: Makefile,v 1.9 2011/01/02 05:30:12 tsutsui Exp $ | 2 | # $NetBSD: Makefile,v 1.10 2011/01/21 15:59:07 joerg Exp $ | |
3 | 3 | |||
4 | COMPILE.S= $(CC) -x assembler-with-cpp -traditional-cpp \ | 4 | COMPILE.S= $(CC) -x assembler-with-cpp \ | |
5 | $(ASFLAGS) $(CPPFLAGS) $(INCPATH) -c -o $*.o | 5 | $(ASFLAGS) $(CPPFLAGS) $(INCPATH) -c -o $*.o | |
6 | 6 | |||
7 | SRCS= bootxx.c conf.c block_x.S | 7 | SRCS= bootxx.c conf.c block_x.S | |
8 | PROG= bootxx | 8 | PROG= bootxx | |
9 | LIBS= ${LIBSA} ${LIBKERN} ${LIBBUG} | 9 | LIBS= ${LIBSA} ${LIBKERN} ${LIBBUG} | |
10 | DPADD= ${LIBS} | 10 | DPADD= ${LIBS} | |
11 | SRTOBJ= | 11 | SRTOBJ= | |
12 | 12 | |||
13 | .include "../Makefile.booters" | 13 | .include "../Makefile.booters" | |
14 | 14 | |||
15 | .include <bsd.prog.mk> | 15 | .include <bsd.prog.mk> |
--- src/sys/arch/mvme68k/stand/libbug/Makefile 2009/12/06 13:31:16 1.15
+++ src/sys/arch/mvme68k/stand/libbug/Makefile 2011/01/21 15:59:08 1.16
@@ -1,32 +1,32 @@ | @@ -1,32 +1,32 @@ | |||
1 | # $NetBSD: Makefile,v 1.15 2009/12/06 13:31:16 tsutsui Exp $ | 1 | # $NetBSD: Makefile,v 1.16 2011/01/21 15:59:08 joerg Exp $ | |
2 | 2 | |||
3 | LIB=bug | 3 | LIB=bug | |
4 | 4 | |||
5 | NOPIC= # defined | 5 | NOPIC= # defined | |
6 | NOLINT= # defined | 6 | NOLINT= # defined | |
7 | NOPROFILE= # defined | 7 | NOPROFILE= # defined | |
8 | 8 | |||
9 | S=${.CURDIR}/../../../.. | 9 | S=${.CURDIR}/../../../.. | |
10 | DIR_SA=$S/lib/libsa | 10 | DIR_SA=$S/lib/libsa | |
11 | 11 | |||
12 | SRCS= bugcrt.c delay.c diskrd.c diskwr.c getbrdid.c inchr.c instat.c \ | 12 | SRCS= bugcrt.c delay.c diskrd.c diskwr.c getbrdid.c inchr.c instat.c \ | |
13 | outln.c outstr.c putchar.c return.c rtc_rd.c | 13 | outln.c outstr.c putchar.c return.c rtc_rd.c | |
14 | OBJS+= bugstart.o | 14 | OBJS+= bugstart.o | |
15 | CLEANFILES+= bugstart.o | 15 | CLEANFILES+= bugstart.o | |
16 | 16 | |||
17 | .include "../Makefile.booters" | 17 | .include "../Makefile.booters" | |
18 | 18 | |||
19 | # only needed during build | 19 | # only needed during build | |
20 | libinstall:: | 20 | libinstall:: | |
21 | 21 | |||
22 | # separate rule for bugstart.c | 22 | # separate rule for bugstart.c | |
23 | # this is build separately from rest of libbug | 23 | # this is build separately from rest of libbug | |
24 | bugstart.o: bugstart.s | 24 | bugstart.o: bugstart.s | |
25 | ${CC} -x assembler-with-cpp -traditional-cpp -nostdinc ${INCPATH} \ | 25 | ${CC} -x assembler-with-cpp -nostdinc ${INCPATH} \ | |
26 | -D_STANDALONE -c ${.IMPSRC} | 26 | -D_STANDALONE -c ${.IMPSRC} | |
27 | 27 | |||
28 | all realall: lib${LIB}.a | 28 | all realall: lib${LIB}.a | |
29 | 29 | |||
30 | .include <bsd.own.mk> | 30 | .include <bsd.own.mk> | |
31 | .undef DESTDIR | 31 | .undef DESTDIR | |
32 | .include <bsd.lib.mk> | 32 | .include <bsd.lib.mk> |
--- src/sys/arch/mvme68k/stand/sboot/Makefile 2002/04/09 19:37:22 1.13
+++ src/sys/arch/mvme68k/stand/sboot/Makefile 2011/01/21 15:59:08 1.14
@@ -1,34 +1,34 @@ | @@ -1,34 +1,34 @@ | |||
1 | # $NetBSD: Makefile,v 1.13 2002/04/09 19:37:22 scw Exp $ | 1 | # $NetBSD: Makefile,v 1.14 2011/01/21 15:59:08 joerg Exp $ | |
2 | 2 | |||
3 | # | 3 | # | |
4 | # sboot would like a newer GNU ld because it can generate S-Records. | 4 | # sboot would like a newer GNU ld because it can generate S-Records. | |
5 | # Until then, we convert. | 5 | # Until then, we convert. | |
6 | # | 6 | # | |
7 | 7 | |||
8 | COMPILE.s= $(CC) -x assembler-with-cpp -traditional-cpp \ | 8 | COMPILE.s= $(CC) -x assembler-with-cpp \ | |
9 | $(ASFLAGS) $(CPPFLAGS) $(INCPATH) -c -o $*.o | 9 | $(ASFLAGS) $(CPPFLAGS) $(INCPATH) -c -o $*.o | |
10 | 10 | |||
11 | RELOC= 0x4000 | 11 | RELOC= 0x4000 | |
12 | SRCS= start.s clock.c console.c etherfun.c le_poll.c \ | 12 | SRCS= start.s clock.c console.c etherfun.c le_poll.c \ | |
13 | oc_cksum.s sboot.c | 13 | oc_cksum.s sboot.c | |
14 | SRTOBJ= | 14 | SRTOBJ= | |
15 | PROG= sboot | 15 | PROG= sboot | |
16 | LIBS= ${LIBSA} | 16 | LIBS= ${LIBSA} | |
17 | DPADD= ${LIBS} | 17 | DPADD= ${LIBS} | |
18 | CLEANFILES+= sboot.srec | 18 | CLEANFILES+= sboot.srec | |
19 | 19 | |||
20 | PROGDEPENDS= ${OBJS} ${LIBS} | 20 | PROGDEPENDS= ${OBJS} ${LIBS} | |
21 | PROGLINKOBJS= ${OBJS} ${LIBS} | 21 | PROGLINKOBJS= ${OBJS} ${LIBS} | |
22 | 22 | |||
23 | sboot.srec: ${PROG} | 23 | sboot.srec: ${PROG} | |
24 | ${OBJCOPY} -O srec ${.OBJDIR}/sboot ${.TARGET} | 24 | ${OBJCOPY} -O srec ${.OBJDIR}/sboot ${.TARGET} | |
25 | 25 | |||
26 | .include "../Makefile.booters" | 26 | .include "../Makefile.booters" | |
27 | 27 | |||
28 | all realall: sboot.srec | 28 | all realall: sboot.srec | |
29 | 29 | |||
30 | install: sboot.srec | 30 | install: sboot.srec | |
31 | ${INSTALL_FILE} ${STRIPFLAG} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \ | 31 | ${INSTALL_FILE} ${STRIPFLAG} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \ | |
32 | ${.OBJDIR}/sboot.srec ${DESTDIR}${MDEC_DIR}/sboot | 32 | ${.OBJDIR}/sboot.srec ${DESTDIR}${MDEC_DIR}/sboot | |
33 | 33 | |||
34 | .include <bsd.prog.mk> | 34 | .include <bsd.prog.mk> |
--- src/sys/arch/news68k/conf/Makefile.news68k 2008/03/01 14:00:30 1.19
+++ src/sys/arch/news68k/conf/Makefile.news68k 2011/01/21 15:59:08 1.20
@@ -1,98 +1,98 @@ | @@ -1,98 +1,98 @@ | |||
1 | # $NetBSD: Makefile.news68k,v 1.19 2008/03/01 14:00:30 joerg Exp $ | 1 | # $NetBSD: Makefile.news68k,v 1.20 2011/01/21 15:59:08 joerg Exp $ | |
2 | # | 2 | # | |
3 | # Makefile for NetBSD | 3 | # Makefile for NetBSD | |
4 | # | 4 | # | |
5 | # This makefile is constructed from a machine description: | 5 | # This makefile is constructed from a machine description: | |
6 | # config machineid | 6 | # config machineid | |
7 | # Most changes should be made in the machine description | 7 | # Most changes should be made in the machine description | |
8 | # /sys/arch/news68k/conf/``machineid'' | 8 | # /sys/arch/news68k/conf/``machineid'' | |
9 | # after which you should do | 9 | # after which you should do | |
10 | # config machineid | 10 | # config machineid | |
11 | # Machine generic makefile changes should be made in | 11 | # Machine generic makefile changes should be made in | |
12 | # /sys/arch/news68k/conf/Makefile.news68k | 12 | # /sys/arch/news68k/conf/Makefile.news68k | |
13 | # after which config should be rerun for all machines of that type. | 13 | # after which config should be rerun for all machines of that type. | |
14 | # | 14 | # | |
15 | # To specify debugging, add the config line: makeoptions DEBUG="-g" | 15 | # To specify debugging, add the config line: makeoptions DEBUG="-g" | |
16 | # A better way is to specify -g only for a few files. | 16 | # A better way is to specify -g only for a few files. | |
17 | # | 17 | # | |
18 | # makeoptions DEBUGLIST="uvm* trap if_*" | 18 | # makeoptions DEBUGLIST="uvm* trap if_*" | |
19 | 19 | |||
20 | MACHINE_ARCH=m68k | 20 | MACHINE_ARCH=m68k | |
21 | USETOOLS?= no | 21 | USETOOLS?= no | |
22 | NEED_OWN_INSTALL_TARGET?=no | 22 | NEED_OWN_INSTALL_TARGET?=no | |
23 | .include <bsd.own.mk> | 23 | .include <bsd.own.mk> | |
24 | 24 | |||
25 | ## | 25 | ## | |
26 | ## (1) port identification | 26 | ## (1) port identification | |
27 | ## | 27 | ## | |
28 | .ifndef S | 28 | .ifndef S | |
29 | S= ../../../.. | 29 | S= ../../../.. | |
30 | .endif | 30 | .endif | |
31 | NEWS68K= $S/arch/news68k | 31 | NEWS68K= $S/arch/news68k | |
32 | GENASSYM_CONF= ${NEWS68K}/news68k/genassym.cf | 32 | GENASSYM_CONF= ${NEWS68K}/news68k/genassym.cf | |
33 | 33 | |||
34 | ## | 34 | ## | |
35 | ## (2) compile settings | 35 | ## (2) compile settings | |
36 | ## | 36 | ## | |
37 | CPPFLAGS+= -Dnews68k | 37 | CPPFLAGS+= -Dnews68k | |
38 | CFLAGS+= -msoft-float | 38 | CFLAGS+= -msoft-float | |
39 | AFLAGS+= -x assembler-with-cpp -traditional-cpp | 39 | AFLAGS+= -x assembler-with-cpp | |
40 | 40 | |||
41 | ## | 41 | ## | |
42 | ## (3) libkern and compat | 42 | ## (3) libkern and compat | |
43 | ## | 43 | ## | |
44 | KERN_AS= obj | 44 | KERN_AS= obj | |
45 | 45 | |||
46 | ## | 46 | ## | |
47 | ## (4) local objects, compile rules, and dependencies | 47 | ## (4) local objects, compile rules, and dependencies | |
48 | ## | 48 | ## | |
49 | MD_OBJS= locore.o ${FPSP} | 49 | MD_OBJS= locore.o ${FPSP} | |
50 | MD_CFILES= | 50 | MD_CFILES= | |
51 | MD_SFILES= ${NEWS68K}/news68k/locore.s | 51 | MD_SFILES= ${NEWS68K}/news68k/locore.s | |
52 | 52 | |||
53 | locore.o: ${NEWS68K}/news68k/locore.s assym.h | 53 | locore.o: ${NEWS68K}/news68k/locore.s assym.h | |
54 | ${NORMAL_S} | 54 | ${NORMAL_S} | |
55 | 55 | |||
56 | ## | 56 | ## | |
57 | ## (5) link settings | 57 | ## (5) link settings | |
58 | ## | 58 | ## | |
59 | LINKFORMAT= -n | 59 | LINKFORMAT= -n | |
60 | TEXTADDR?= 0 | 60 | TEXTADDR?= 0 | |
61 | 61 | |||
62 | ## | 62 | ## | |
63 | ## (6) port specific target dependencies | 63 | ## (6) port specific target dependencies | |
64 | ## | 64 | ## | |
65 | 65 | |||
66 | # depend on CPU configuration | 66 | # depend on CPU configuration | |
67 | machdep.o mainbus.o trap.o: Makefile | 67 | machdep.o mainbus.o trap.o: Makefile | |
68 | 68 | |||
69 | copy.o copypage.o lock_stubs.o: assym.h | 69 | copy.o copypage.o lock_stubs.o: assym.h | |
70 | 70 | |||
71 | ## | 71 | ## | |
72 | ## (7) misc settings | 72 | ## (7) misc settings | |
73 | ## | 73 | ## | |
74 | 74 | |||
75 | ## | 75 | ## | |
76 | ## (8) config(8) generated machinery | 76 | ## (8) config(8) generated machinery | |
77 | ## | 77 | ## | |
78 | %INCLUDES | 78 | %INCLUDES | |
79 | 79 | |||
80 | %OBJS | 80 | %OBJS | |
81 | 81 | |||
82 | %CFILES | 82 | %CFILES | |
83 | 83 | |||
84 | %SFILES | 84 | %SFILES | |
85 | 85 | |||
86 | %LOAD | 86 | %LOAD | |
87 | 87 | |||
88 | %RULES | 88 | %RULES | |
89 | 89 | |||
90 | ## | 90 | ## | |
91 | ## (9) port independent kernel machinery | 91 | ## (9) port independent kernel machinery | |
92 | ## | 92 | ## | |
93 | .include "$S/conf/Makefile.kern.inc" | 93 | .include "$S/conf/Makefile.kern.inc" | |
94 | 94 | |||
95 | ## | 95 | ## | |
96 | ## (10) Appending make options. | 96 | ## (10) Appending make options. | |
97 | ## | 97 | ## | |
98 | %MAKEOPTIONSAPPEND | 98 | %MAKEOPTIONSAPPEND |
--- src/sys/arch/next68k/conf/Makefile.next68k 2008/02/14 00:09:36 1.29
+++ src/sys/arch/next68k/conf/Makefile.next68k 2011/01/21 15:59:08 1.30
@@ -1,98 +1,98 @@ | @@ -1,98 +1,98 @@ | |||
1 | # $NetBSD: Makefile.next68k,v 1.29 2008/02/14 00:09:36 joerg Exp $ | 1 | # $NetBSD: Makefile.next68k,v 1.30 2011/01/21 15:59:08 joerg Exp $ | |
2 | 2 | |||
3 | # Makefile for NetBSD | 3 | # Makefile for NetBSD | |
4 | # | 4 | # | |
5 | # This makefile is constructed from a machine description: | 5 | # This makefile is constructed from a machine description: | |
6 | # config machineid | 6 | # config machineid | |
7 | # Most changes should be made in the machine description | 7 | # Most changes should be made in the machine description | |
8 | # /sys/arch/next68k/conf/``machineid'' | 8 | # /sys/arch/next68k/conf/``machineid'' | |
9 | # after which you should do | 9 | # after which you should do | |
10 | # config machineid | 10 | # config machineid | |
11 | # Machine generic makefile changes should be made in | 11 | # Machine generic makefile changes should be made in | |
12 | # /sys/arch/next68k/conf/Makefile.next68k | 12 | # /sys/arch/next68k/conf/Makefile.next68k | |
13 | # after which config should be rerun for all machines of that type. | 13 | # after which config should be rerun for all machines of that type. | |
14 | # | 14 | # | |
15 | # To specify debugging, add the config line: makeoptions DEBUG="-g" | 15 | # To specify debugging, add the config line: makeoptions DEBUG="-g" | |
16 | # A better way is to specify -g only for a few files. | 16 | # A better way is to specify -g only for a few files. | |
17 | # | 17 | # | |
18 | # makeoptions DEBUGLIST="uvm* trap if_*" | 18 | # makeoptions DEBUGLIST="uvm* trap if_*" | |
19 | 19 | |||
20 | MACHINE_ARCH=m68k | 20 | MACHINE_ARCH=m68k | |
21 | USETOOLS?= no | 21 | USETOOLS?= no | |
22 | NEED_OWN_INSTALL_TARGET?=no | 22 | NEED_OWN_INSTALL_TARGET?=no | |
23 | .include <bsd.own.mk> | 23 | .include <bsd.own.mk> | |
24 | 24 | |||
25 | ## | 25 | ## | |
26 | ## (1) port identification | 26 | ## (1) port identification | |
27 | ## | 27 | ## | |
28 | NEXT68K= $S/arch/next68k | 28 | NEXT68K= $S/arch/next68k | |
29 | GENASSYM_CONF= ${NEXT68K}/next68k/genassym.cf | 29 | GENASSYM_CONF= ${NEXT68K}/next68k/genassym.cf | |
30 | 30 | |||
31 | ## | 31 | ## | |
32 | ## (2) compile settings | 32 | ## (2) compile settings | |
33 | ## | 33 | ## | |
34 | CPPFLAGS+= -Dnext68k | 34 | CPPFLAGS+= -Dnext68k | |
35 | CFLAGS+= -msoft-float | 35 | CFLAGS+= -msoft-float | |
36 | AFLAGS+= -x assembler-with-cpp -traditional-cpp | 36 | AFLAGS+= -x assembler-with-cpp | |
37 | 37 | |||
38 | ## | 38 | ## | |
39 | ## (3) libkern and compat | 39 | ## (3) libkern and compat | |
40 | ## | 40 | ## | |
41 | KERN_AS= obj | 41 | KERN_AS= obj | |
42 | 42 | |||
43 | ## | 43 | ## | |
44 | ## (4) local objects, compile rules, and dependencies | 44 | ## (4) local objects, compile rules, and dependencies | |
45 | ## | 45 | ## | |
46 | # for the Motorola 68040 Floating Point Software Product | 46 | # for the Motorola 68040 Floating Point Software Product | |
47 | .include "$S/arch/m68k/fpsp/Makefile.inc" | 47 | .include "$S/arch/m68k/fpsp/Makefile.inc" | |
48 | 48 | |||
49 | MD_OBJS= locore.o ${FPSP} | 49 | MD_OBJS= locore.o ${FPSP} | |
50 | MD_CFILES= | 50 | MD_CFILES= | |
51 | MD_SFILES= ${NEXT68K}/next68k/locore.s | 51 | MD_SFILES= ${NEXT68K}/next68k/locore.s | |
52 | 52 | |||
53 | locore.o: ${NEXT68K}/next68k/locore.s assym.h | 53 | locore.o: ${NEXT68K}/next68k/locore.s assym.h | |
54 | ${NORMAL_S} | 54 | ${NORMAL_S} | |
55 | 55 | |||
56 | copy.o copypage.o lock_stubs.o: assym.h | 56 | copy.o copypage.o lock_stubs.o: assym.h | |
57 | 57 | |||
58 | ## | 58 | ## | |
59 | ## (5) link settings | 59 | ## (5) link settings | |
60 | ## | 60 | ## | |
61 | LINKFORMAT= -n | 61 | LINKFORMAT= -n | |
62 | TEXTADDR?= 0 | 62 | TEXTADDR?= 0 | |
63 | 63 | |||
64 | ## | 64 | ## | |
65 | ## (6) port specific target dependencies | 65 | ## (6) port specific target dependencies | |
66 | ## | 66 | ## | |
67 | 67 | |||
68 | # depend on CPU configuration | 68 | # depend on CPU configuration | |
69 | locore.o pmap.o trap.o: Makefile | 69 | locore.o pmap.o trap.o: Makefile | |
70 | 70 | |||
71 | ## | 71 | ## | |
72 | ## (7) misc settings | 72 | ## (7) misc settings | |
73 | ## | 73 | ## | |
74 | 74 | |||
75 | ## | 75 | ## | |
76 | ## (8) config(8) generated machinery | 76 | ## (8) config(8) generated machinery | |
77 | ## | 77 | ## | |
78 | %INCLUDES | 78 | %INCLUDES | |
79 | 79 | |||
80 | %OBJS | 80 | %OBJS | |
81 | 81 | |||
82 | %CFILES | 82 | %CFILES | |
83 | 83 | |||
84 | %SFILES | 84 | %SFILES | |
85 | 85 | |||
86 | %LOAD | 86 | %LOAD | |
87 | 87 | |||
88 | %RULES | 88 | %RULES | |
89 | 89 | |||
90 | ## | 90 | ## | |
91 | ## (9) port independent kernel machinery | 91 | ## (9) port independent kernel machinery | |
92 | ## | 92 | ## | |
93 | .include "$S/conf/Makefile.kern.inc" | 93 | .include "$S/conf/Makefile.kern.inc" | |
94 | 94 | |||
95 | ## | 95 | ## | |
96 | ## (10) Appending make options. | 96 | ## (10) Appending make options. | |
97 | ## | 97 | ## | |
98 | %MAKEOPTIONSAPPEND | 98 | %MAKEOPTIONSAPPEND |
--- src/sys/arch/prep/stand/boot/Makefile 2009/01/12 07:51:02 1.23
+++ src/sys/arch/prep/stand/boot/Makefile 2011/01/21 15:59:08 1.24
@@ -1,79 +1,79 @@ | @@ -1,79 +1,79 @@ | |||
1 | # $NetBSD: Makefile,v 1.23 2009/01/12 07:51:02 tsutsui Exp $ | 1 | # $NetBSD: Makefile,v 1.24 2011/01/21 15:59:08 joerg Exp $ | |
2 | 2 | |||
3 | NOMAN= # defined | 3 | NOMAN= # defined | |
4 | 4 | |||
5 | .include <bsd.own.mk> | 5 | .include <bsd.own.mk> | |
6 | 6 | |||
7 | COMMON= ${.CURDIR}/../common | 7 | COMMON= ${.CURDIR}/../common | |
8 | COMMONOBJ!= cd ${COMMON} && ${PRINTOBJDIR} | 8 | COMMONOBJ!= cd ${COMMON} && ${PRINTOBJDIR} | |
9 | 9 | |||
10 | .PATH: ${.CURDIR}/../boot ${COMMONOBJ} | 10 | .PATH: ${.CURDIR}/../boot ${COMMONOBJ} | |
11 | 11 | |||
12 | S= ${.CURDIR}/../../../.. | 12 | S= ${.CURDIR}/../../../.. | |
13 | L= ${COMMONOBJ}/lib | 13 | L= ${COMMONOBJ}/lib | |
14 | 14 | |||
15 | MKBOOTIMAGE= ${.CURDIR}/../../../powerpc/stand/mkbootimage | 15 | MKBOOTIMAGE= ${.CURDIR}/../../../powerpc/stand/mkbootimage | |
16 | 16 | |||
17 | BASE?= boot | 17 | BASE?= boot | |
18 | PROG= ${BASE} | 18 | PROG= ${BASE} | |
19 | NEWVERSWHAT= "BOOT" | 19 | NEWVERSWHAT= "BOOT" | |
20 | 20 | |||
21 | SRCS= srt0.s | 21 | SRCS= srt0.s | |
22 | SRCS+= boot.c clock.c com.c conf.c cons.c devopen.c | 22 | SRCS+= boot.c clock.c com.c conf.c cons.c devopen.c | |
23 | SRCS+= filesystem.c inkernel.c io.c tgets.c prf.c monitor.c | 23 | SRCS+= filesystem.c inkernel.c io.c tgets.c prf.c monitor.c | |
24 | SRCS+= kbd.c ns16550.c vers.c vreset.c vga.c | 24 | SRCS+= kbd.c ns16550.c vers.c vreset.c vga.c | |
25 | 25 | |||
26 | CFLAGS= -Os -mmultiple -ffreestanding | 26 | CFLAGS= -Os -mmultiple -ffreestanding | |
27 | CFLAGS+= -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes | 27 | CFLAGS+= -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes | |
28 | AFLAGS= -x assembler-with-cpp -traditional-cpp | 28 | AFLAGS= -x assembler-with-cpp | |
29 | 29 | |||
30 | CPPFLAGS= -nostdinc -I${.OBJDIR} -I${MKBOOTIMAGE} -I${S} | 30 | CPPFLAGS= -nostdinc -I${.OBJDIR} -I${MKBOOTIMAGE} -I${S} | |
31 | CPPFLAGS+= -D_STANDALONE -DRELOC=${RELOC} -DUSE_SCAN | 31 | CPPFLAGS+= -D_STANDALONE -DRELOC=${RELOC} -DUSE_SCAN | |
32 | CPPFLAGS+= -D__daddr_t=int32_t | 32 | CPPFLAGS+= -D__daddr_t=int32_t | |
33 | #CPPFLAGS+= -DDBMONITOR | 33 | #CPPFLAGS+= -DDBMONITOR | |
34 | 34 | |||
35 | .if (${BASE} == "boot") | 35 | .if (${BASE} == "boot") | |
36 | CPPFLAGS+= -DCONS_VGA -DVGA_RESET | 36 | CPPFLAGS+= -DCONS_VGA -DVGA_RESET | |
37 | .elif (${BASE} == "boot_com0") | 37 | .elif (${BASE} == "boot_com0") | |
38 | CPPFLAGS+= -DCONS_SERIAL -DCOMSPEED=9600 -DCOMPORT=0x3f8 | 38 | CPPFLAGS+= -DCONS_SERIAL -DCOMSPEED=9600 -DCOMPORT=0x3f8 | |
39 | .elif (${BASE} == "boot_com0_vreset") | 39 | .elif (${BASE} == "boot_com0_vreset") | |
40 | CPPFLAGS+= -DCONS_SERIAL -DCOMSPEED=9600 -DCOMPORT=0x3f8 -DVGA_RESET | 40 | CPPFLAGS+= -DCONS_SERIAL -DCOMSPEED=9600 -DCOMPORT=0x3f8 -DVGA_RESET | |
41 | .endif | 41 | .endif | |
42 | 42 | |||
43 | STRIPFLAG= | 43 | STRIPFLAG= | |
44 | BINMODE= 444 | 44 | BINMODE= 444 | |
45 | 45 | |||
46 | # XXX SHOULD NOT NEED TO DEFINE THESE! | 46 | # XXX SHOULD NOT NEED TO DEFINE THESE! | |
47 | LIBCRT0= | 47 | LIBCRT0= | |
48 | LIBC= | 48 | LIBC= | |
49 | LIBCRTBEGIN= | 49 | LIBCRTBEGIN= | |
50 | LIBCRTEND= | 50 | LIBCRTEND= | |
51 | 51 | |||
52 | RELOC= 0x800000 | 52 | RELOC= 0x800000 | |
53 | 53 | |||
54 | CLEANFILES+= vers.c machine powerpc ${PROG}.elf | 54 | CLEANFILES+= vers.c machine powerpc ${PROG}.elf | |
55 | 55 | |||
56 | LIBS= ${L}/sa/libsa.a ${L}/kern/libkern.a ${L}/z/libz.a | 56 | LIBS= ${L}/sa/libsa.a ${L}/kern/libkern.a ${L}/z/libz.a | |
57 | 57 | |||
58 | .if !make(obj) && !make(clean) && !make(cleandir) | 58 | .if !make(obj) && !make(clean) && !make(cleandir) | |
59 | .BEGIN: machine powerpc | 59 | .BEGIN: machine powerpc | |
60 | .NOPATH: machine powerpc | 60 | .NOPATH: machine powerpc | |
61 | 61 | |||
62 | machine:: | 62 | machine:: | |
63 | -rm -f $@ | 63 | -rm -f $@ | |
64 | ln -s ${S}/arch/${MACHINE}/include $@ | 64 | ln -s ${S}/arch/${MACHINE}/include $@ | |
65 | 65 | |||
66 | powerpc:: | 66 | powerpc:: | |
67 | -rm -f $@ | 67 | -rm -f $@ | |
68 | ln -s ${S}/arch/powerpc/include $@ | 68 | ln -s ${S}/arch/powerpc/include $@ | |
69 | .endif | 69 | .endif | |
70 | 70 | |||
71 | vers.c: ${.CURDIR}/../boot/version | 71 | vers.c: ${.CURDIR}/../boot/version | |
72 | ${HOST_SH} ${S}/conf/newvers_stand.sh ${.CURDIR}/../boot/version "prep" ${NEWVERSWHAT} | 72 | ${HOST_SH} ${S}/conf/newvers_stand.sh ${.CURDIR}/../boot/version "prep" ${NEWVERSWHAT} | |
73 | 73 | |||
74 | ${PROG}: ${OBJS} ${LIBS} | 74 | ${PROG}: ${OBJS} ${LIBS} | |
75 | ${LD} -o ${PROG}.elf -N -T ${.CURDIR}/../boot/ld.script \ | 75 | ${LD} -o ${PROG}.elf -N -T ${.CURDIR}/../boot/ld.script \ | |
76 | -Ttext ${RELOC} ${OBJS} ${LIBS} | 76 | -Ttext ${RELOC} ${OBJS} ${LIBS} | |
77 | ${STRIP} -o ${PROG} ${PROG}.elf | 77 | ${STRIP} -o ${PROG} ${PROG}.elf | |
78 | 78 | |||
79 | .include <bsd.prog.mk> | 79 | .include <bsd.prog.mk> |
--- src/sys/arch/rs6000/stand/boot/Makefile 2009/01/12 07:16:17 1.2
+++ src/sys/arch/rs6000/stand/boot/Makefile 2011/01/21 15:59:09 1.3
@@ -1,73 +1,73 @@ | @@ -1,73 +1,73 @@ | |||
1 | # $NetBSD: Makefile,v 1.2 2009/01/12 07:16:17 tsutsui Exp $ | 1 | # $NetBSD: Makefile,v 1.3 2011/01/21 15:59:09 joerg Exp $ | |
2 | 2 | |||
3 | NOMAN= # defined | 3 | NOMAN= # defined | |
4 | 4 | |||
5 | .include <bsd.own.mk> | 5 | .include <bsd.own.mk> | |
6 | 6 | |||
7 | COMMON= ${.CURDIR}/../common | 7 | COMMON= ${.CURDIR}/../common | |
8 | COMMONOBJ!= cd ${COMMON} && ${PRINTOBJDIR} | 8 | COMMONOBJ!= cd ${COMMON} && ${PRINTOBJDIR} | |
9 | 9 | |||
10 | .PATH: ${.CURDIR}/../boot ${COMMONOBJ} | 10 | .PATH: ${.CURDIR}/../boot ${COMMONOBJ} | |
11 | 11 | |||
12 | S= ${.CURDIR}/../../../.. | 12 | S= ${.CURDIR}/../../../.. | |
13 | L= ${COMMONOBJ}/lib | 13 | L= ${COMMONOBJ}/lib | |
14 | 14 | |||
15 | MKBOOTIMAGE= ${.CURDIR}/../../../powerpc/stand/mkbootimage | 15 | MKBOOTIMAGE= ${.CURDIR}/../../../powerpc/stand/mkbootimage | |
16 | 16 | |||
17 | BASE?= boot | 17 | BASE?= boot | |
18 | PROG= ${BASE} | 18 | PROG= ${BASE} | |
19 | NEWVERSWHAT= "BOOT" | 19 | NEWVERSWHAT= "BOOT" | |
20 | 20 | |||
21 | SRCS= srt0.s | 21 | SRCS= srt0.s | |
22 | SRCS+= boot.c clock.c com.c conf.c cons.c devopen.c | 22 | SRCS+= boot.c clock.c com.c conf.c cons.c devopen.c | |
23 | SRCS+= filesystem.c inkernel.c io.c tgets.c prf.c monitor.c | 23 | SRCS+= filesystem.c inkernel.c io.c tgets.c prf.c monitor.c | |
24 | SRCS+= ns16550.c vers.c | 24 | SRCS+= ns16550.c vers.c | |
25 | SRCS+= iplcb.c | 25 | SRCS+= iplcb.c | |
26 | 26 | |||
27 | CFLAGS= -Os -mmultiple -ffreestanding | 27 | CFLAGS= -Os -mmultiple -ffreestanding | |
28 | CFLAGS+= -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes | 28 | CFLAGS+= -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes | |
29 | AFLAGS= -x assembler-with-cpp -traditional-cpp | 29 | AFLAGS= -x assembler-with-cpp | |
30 | 30 | |||
31 | CPPFLAGS= -nostdinc -I${.OBJDIR} -I${MKBOOTIMAGE} -I${S} | 31 | CPPFLAGS= -nostdinc -I${.OBJDIR} -I${MKBOOTIMAGE} -I${S} | |
32 | CPPFLAGS+= -D_STANDALONE -DRELOC=${RELOC} -DUSE_SCAN | 32 | CPPFLAGS+= -D_STANDALONE -DRELOC=${RELOC} -DUSE_SCAN | |
33 | CPPFLAGS+= -D__daddr_t=int32_t | 33 | CPPFLAGS+= -D__daddr_t=int32_t | |
34 | #CPPFLAGS+= -DDBMONITOR | 34 | #CPPFLAGS+= -DDBMONITOR | |
35 | CPPFLAGS+= -DCONS_SERIAL -DCOMSPEED=9600 -DCOMPORT=0x30 | 35 | CPPFLAGS+= -DCONS_SERIAL -DCOMSPEED=9600 -DCOMPORT=0x30 | |
36 | 36 | |||
37 | STRIPFLAG= | 37 | STRIPFLAG= | |
38 | BINMODE= 444 | 38 | BINMODE= 444 | |
39 | 39 | |||
40 | # XXX SHOULD NOT NEED TO DEFINE THESE! | 40 | # XXX SHOULD NOT NEED TO DEFINE THESE! | |
41 | LIBCRT0= | 41 | LIBCRT0= | |
42 | LIBC= | 42 | LIBC= | |
43 | LIBCRTBEGIN= | 43 | LIBCRTBEGIN= | |
44 | LIBCRTEND= | 44 | LIBCRTEND= | |
45 | 45 | |||
46 | RELOC= 0x800000 | 46 | RELOC= 0x800000 | |
47 | #RELOC= 0x0 | 47 | #RELOC= 0x0 | |
48 | 48 | |||
49 | CLEANFILES+= vers.c machine powerpc | 49 | CLEANFILES+= vers.c machine powerpc | |
50 | 50 | |||
51 | LIBS= ${L}/sa/libsa.a ${L}/kern/libkern.a ${L}/z/libz.a | 51 | LIBS= ${L}/sa/libsa.a ${L}/kern/libkern.a ${L}/z/libz.a | |
52 | 52 | |||
53 | .if !make(obj) && !make(clean) && !make(cleandir) | 53 | .if !make(obj) && !make(clean) && !make(cleandir) | |
54 | .BEGIN: machine powerpc | 54 | .BEGIN: machine powerpc | |
55 | .NOPATH: machine powerpc | 55 | .NOPATH: machine powerpc | |
56 | 56 | |||
57 | machine:: | 57 | machine:: | |
58 | -rm -f $@ | 58 | -rm -f $@ | |
59 | ln -s ${S}/arch/${MACHINE}/include $@ | 59 | ln -s ${S}/arch/${MACHINE}/include $@ | |
60 | 60 | |||
61 | powerpc:: | 61 | powerpc:: | |
62 | -rm -f $@ | 62 | -rm -f $@ | |
63 | ln -s ${S}/arch/powerpc/include $@ | 63 | ln -s ${S}/arch/powerpc/include $@ | |
64 | .endif | 64 | .endif | |
65 | 65 | |||
66 | vers.c: ${.CURDIR}/../boot/version | 66 | vers.c: ${.CURDIR}/../boot/version | |
67 | ${HOST_SH} ${S}/conf/newvers_stand.sh ${.CURDIR}/../boot/version "rs6000" ${NEWVERSWHAT} | 67 | ${HOST_SH} ${S}/conf/newvers_stand.sh ${.CURDIR}/../boot/version "rs6000" ${NEWVERSWHAT} | |
68 | 68 | |||
69 | ${PROG}: ${OBJS} ${LIBS} | 69 | ${PROG}: ${OBJS} ${LIBS} | |
70 | ${LD} -o ${PROG} -s -N -T ${.CURDIR}/../boot/ld.script \ | 70 | ${LD} -o ${PROG} -s -N -T ${.CURDIR}/../boot/ld.script \ | |
71 | -Ttext ${RELOC} ${OBJS} ${LIBS} | 71 | -Ttext ${RELOC} ${OBJS} ${LIBS} | |
72 | 72 | |||
73 | .include <bsd.prog.mk> | 73 | .include <bsd.prog.mk> |
--- src/sys/arch/sh3/conf/Makefile.sh3 2008/05/06 02:25:19 1.26
+++ src/sys/arch/sh3/conf/Makefile.sh3 2011/01/21 15:59:09 1.27
@@ -1,96 +1,96 @@ | @@ -1,96 +1,96 @@ | |||
1 | # $NetBSD: Makefile.sh3,v 1.26 2008/05/06 02:25:19 uwe Exp $ | 1 | # $NetBSD: Makefile.sh3,v 1.27 2011/01/21 15:59:09 joerg Exp $ | |
2 | 2 | |||
3 | # Makefile for NetBSD | 3 | # Makefile for NetBSD | |
4 | # | 4 | # | |
5 | # This makefile is constructed from a machine description: | 5 | # This makefile is constructed from a machine description: | |
6 | # config machineid | 6 | # config machineid | |
7 | # Most changes should be made in the machine description | 7 | # Most changes should be made in the machine description | |
8 | # /sys/arch/<machine>/conf/``machineid'' | 8 | # /sys/arch/<machine>/conf/``machineid'' | |
9 | # after which you should do | 9 | # after which you should do | |
10 | # config machineid | 10 | # config machineid | |
11 | # CPU generic makefile changes should be made in | 11 | # CPU generic makefile changes should be made in | |
12 | # /sys/arch/sh3/conf/Makefile.sh3 | 12 | # /sys/arch/sh3/conf/Makefile.sh3 | |
13 | # after which config should be rerun for all machines of that type. | 13 | # after which config should be rerun for all machines of that type. | |
14 | # | 14 | # | |
15 | # To specify debugging, add the config line: makeoptions DEBUG="-g" | 15 | # To specify debugging, add the config line: makeoptions DEBUG="-g" | |
16 | # A better way is to specify -g only for a few files. | 16 | # A better way is to specify -g only for a few files. | |
17 | # | 17 | # | |
18 | # makeoptions DEBUGLIST="uvm* trap if_*" | 18 | # makeoptions DEBUGLIST="uvm* trap if_*" | |
19 | 19 | |||
20 | USETOOLS?= no | 20 | USETOOLS?= no | |
21 | NEED_OWN_INSTALL_TARGET?=no | 21 | NEED_OWN_INSTALL_TARGET?=no | |
22 | .include <bsd.own.mk> | 22 | .include <bsd.own.mk> | |
23 | 23 | |||
24 | ## | 24 | ## | |
25 | ## (1) port identification | 25 | ## (1) port identification | |
26 | ## | 26 | ## | |
27 | THISSH3= $S/arch/${MACHINE} | 27 | THISSH3= $S/arch/${MACHINE} | |
28 | SH3= $S/arch/sh3 | 28 | SH3= $S/arch/sh3 | |
29 | GENASSYM_CONF= ${SH3}/sh3/genassym.cf | 29 | GENASSYM_CONF= ${SH3}/sh3/genassym.cf | |
30 | .-include "${THISSH3}/conf/Makefile.${MACHINE}.inc" | 30 | .-include "${THISSH3}/conf/Makefile.${MACHINE}.inc" | |
31 | 31 | |||
32 | ## | 32 | ## | |
33 | ## (2) compile settings | 33 | ## (2) compile settings | |
34 | ## | 34 | ## | |
35 | CPPFLAGS+= -D${MACHINE} | 35 | CPPFLAGS+= -D${MACHINE} | |
36 | AFLAGS+= -x assembler-with-cpp -traditional-cpp | 36 | AFLAGS+= -x assembler-with-cpp | |
37 | # -O2 is too -falign-* zealous for low-memory sh3 machines | 37 | # -O2 is too -falign-* zealous for low-memory sh3 machines | |
38 | COPTS?= -Os -freorder-blocks | 38 | COPTS?= -Os -freorder-blocks | |
39 | 39 | |||
40 | ## | 40 | ## | |
41 | ## (3) libkern and compat | 41 | ## (3) libkern and compat | |
42 | ## | 42 | ## | |
43 | 43 | |||
44 | ## | 44 | ## | |
45 | ## (4) local objects, compile rules, and dependencies | 45 | ## (4) local objects, compile rules, and dependencies | |
46 | ## | 46 | ## | |
47 | MD_OBJS= locore.o | 47 | MD_OBJS= locore.o | |
48 | MD_CFILES= | 48 | MD_CFILES= | |
49 | MD_SFILES= ${THISSH3}/${MACHINE}/locore.S | 49 | MD_SFILES= ${THISSH3}/${MACHINE}/locore.S | |
50 | 50 | |||
51 | locore.o: ${THISSH3}/${MACHINE}/locore.S assym.h | 51 | locore.o: ${THISSH3}/${MACHINE}/locore.S assym.h | |
52 | ${NORMAL_S} | 52 | ${NORMAL_S} | |
53 | 53 | |||
54 | cpu_in_cksum.o exception_vector.o locore_subr.o: assym.h | 54 | cpu_in_cksum.o exception_vector.o locore_subr.o: assym.h | |
55 | 55 | |||
56 | ## | 56 | ## | |
57 | ## (5) link settings | 57 | ## (5) link settings | |
58 | ## | 58 | ## | |
59 | TEXTADDR?= ${DEFTEXTADDR} | 59 | TEXTADDR?= ${DEFTEXTADDR} | |
60 | LINKFLAGS_NORMAL= -X | 60 | LINKFLAGS_NORMAL= -X | |
61 | 61 | |||
62 | ## | 62 | ## | |
63 | ## (6) port specific target dependencies | 63 | ## (6) port specific target dependencies | |
64 | ## | 64 | ## | |
65 | 65 | |||
66 | # depend on CPU configuration | 66 | # depend on CPU configuration | |
67 | locore.o machdep.o: Makefile | 67 | locore.o machdep.o: Makefile | |
68 | 68 | |||
69 | ## | 69 | ## | |
70 | ## (7) misc settings | 70 | ## (7) misc settings | |
71 | ## | 71 | ## | |
72 | 72 | |||
73 | ## | 73 | ## | |
74 | ## (8) config(8) generated machinery | 74 | ## (8) config(8) generated machinery | |
75 | ## | 75 | ## | |
76 | %INCLUDES | 76 | %INCLUDES | |
77 | 77 | |||
78 | %OBJS | 78 | %OBJS | |
79 | 79 | |||
80 | %CFILES | 80 | %CFILES | |
81 | 81 | |||
82 | %SFILES | 82 | %SFILES | |
83 | 83 | |||
84 | %LOAD | 84 | %LOAD | |
85 | 85 | |||
86 | %RULES | 86 | %RULES | |
87 | 87 | |||
88 | ## | 88 | ## | |
89 | ## (9) port independent kernel machinery | 89 | ## (9) port independent kernel machinery | |
90 | ## | 90 | ## | |
91 | .include "$S/conf/Makefile.kern.inc" | 91 | .include "$S/conf/Makefile.kern.inc" | |
92 | 92 | |||
93 | ## | 93 | ## | |
94 | ## (10) Appending make options. | 94 | ## (10) Appending make options. | |
95 | ## | 95 | ## | |
96 | %MAKEOPTIONSAPPEND | 96 | %MAKEOPTIONSAPPEND |
--- src/sys/arch/sun2/conf/Makefile.sun2 2008/01/22 15:24:50 1.19
+++ src/sys/arch/sun2/conf/Makefile.sun2 2011/01/21 15:59:09 1.20
@@ -1,108 +1,108 @@ | @@ -1,108 +1,108 @@ | |||
1 | # $NetBSD: Makefile.sun2,v 1.19 2008/01/22 15:24:50 joerg Exp $ | 1 | # $NetBSD: Makefile.sun2,v 1.20 2011/01/21 15:59:09 joerg Exp $ | |
2 | 2 | |||
3 | # Makefile for NetBSD | 3 | # Makefile for NetBSD | |
4 | # | 4 | # | |
5 | # This makefile is constructed from a machine description: | 5 | # This makefile is constructed from a machine description: | |
6 | # config machineid | 6 | # config machineid | |
7 | # Most changes should be made in the machine description | 7 | # Most changes should be made in the machine description | |
8 | # /sys/arch/sun2/conf/``machineid'' | 8 | # /sys/arch/sun2/conf/``machineid'' | |
9 | # after which you should do | 9 | # after which you should do | |
10 | # config machineid | 10 | # config machineid | |
11 | # Machine generic makefile changes should be made in | 11 | # Machine generic makefile changes should be made in | |
12 | # /sys/arch/sun2/conf/Makefile.sun2 | 12 | # /sys/arch/sun2/conf/Makefile.sun2 | |
13 | # after which config should be rerun for all machines of that type. | 13 | # after which config should be rerun for all machines of that type. | |
14 | # | 14 | # | |
15 | # To specify debugging, add the config line: makeoptions DEBUG="-g" | 15 | # To specify debugging, add the config line: makeoptions DEBUG="-g" | |
16 | # A better way is to specify -g only for a few files. | 16 | # A better way is to specify -g only for a few files. | |
17 | # | 17 | # | |
18 | # makeoptions DEBUGLIST="uvm* trap if_*" | 18 | # makeoptions DEBUGLIST="uvm* trap if_*" | |
19 | 19 | |||
20 | MACHINE_ARCH=m68000 | 20 | MACHINE_ARCH=m68000 | |
21 | USETOOLS?= no | 21 | USETOOLS?= no | |
22 | NEED_OWN_INSTALL_TARGET?=no | 22 | NEED_OWN_INSTALL_TARGET?=no | |
23 | .include <bsd.own.mk> | 23 | .include <bsd.own.mk> | |
24 | 24 | |||
25 | ## | 25 | ## | |
26 | ## (1) port identification | 26 | ## (1) port identification | |
27 | ## | 27 | ## | |
28 | SUN2= $S/arch/sun2 | 28 | SUN2= $S/arch/sun2 | |
29 | GENASSYM_CONF= ${SUN2}/sun2/genassym.cf | 29 | GENASSYM_CONF= ${SUN2}/sun2/genassym.cf | |
30 | 30 | |||
31 | ## | 31 | ## | |
32 | ## (2) compile settings | 32 | ## (2) compile settings | |
33 | ## | 33 | ## | |
34 | CPPFLAGS+= -Dsun2 | 34 | CPPFLAGS+= -Dsun2 | |
35 | CFLAGS+= -msoft-float -fno-defer-pop | 35 | CFLAGS+= -msoft-float -fno-defer-pop | |
36 | AFLAGS+= -x assembler-with-cpp -traditional-cpp | 36 | AFLAGS+= -x assembler-with-cpp | |
37 | 37 | |||
38 | ## | 38 | ## | |
39 | ## (3) libkern and compat | 39 | ## (3) libkern and compat | |
40 | ## | 40 | ## | |
41 | KERN_AS= obj | 41 | KERN_AS= obj | |
42 | # XXX lib/libkern/arch/m68k/Makefile.inc needs to know that | 42 | # XXX lib/libkern/arch/m68k/Makefile.inc needs to know that | |
43 | # XXX our MACHINE_ARCH is m68000, and not m68k. --fredette | 43 | # XXX our MACHINE_ARCH is m68000, and not m68k. --fredette | |
44 | KERNMISCMAKEFLAGS= MACHINE_ARCH=${MACHINE_ARCH} | 44 | KERNMISCMAKEFLAGS= MACHINE_ARCH=${MACHINE_ARCH} | |
45 | 45 | |||
46 | ## | 46 | ## | |
47 | ## (4) local objects, compile rules, and dependencies | 47 | ## (4) local objects, compile rules, and dependencies | |
48 | ## | 48 | ## | |
49 | MD_OBJS= locore.o | 49 | MD_OBJS= locore.o | |
50 | MD_CFILES= | 50 | MD_CFILES= | |
51 | MD_SFILES= ${SUN2}/sun2/locore.s | 51 | MD_SFILES= ${SUN2}/sun2/locore.s | |
52 | 52 | |||
53 | locore.o: ${SUN2}/sun2/locore.s | 53 | locore.o: ${SUN2}/sun2/locore.s | |
54 | ${NORMAL_S} | 54 | ${NORMAL_S} | |
55 | 55 | |||
56 | ## | 56 | ## | |
57 | ## (5) link settings | 57 | ## (5) link settings | |
58 | ## | 58 | ## | |
59 | LINKFORMAT= -N | 59 | LINKFORMAT= -N | |
60 | TEXTADDR?= 00006000 | 60 | TEXTADDR?= 00006000 | |
61 | 61 | |||
62 | ## | 62 | ## | |
63 | ## (6) port specific target dependencies | 63 | ## (6) port specific target dependencies | |
64 | ## | 64 | ## | |
65 | 65 | |||
66 | # For cross-compilation, the "gcc -M" mkdep script is convenient, | 66 | # For cross-compilation, the "gcc -M" mkdep script is convenient, | |
67 | # but that does not correctly make rules from *.s files. The | 67 | # but that does not correctly make rules from *.s files. The | |
68 | # easiest work-around is to just list those dependencies here. | 68 | # easiest work-around is to just list those dependencies here. | |
69 | locore.o: assym.h m68k/asm.h m68k/trap.h | 69 | locore.o: assym.h m68k/asm.h m68k/trap.h | |
70 | copy.o: assym.h m68k/asm.h $S/sys/errno.h | 70 | copy.o: assym.h m68k/asm.h $S/sys/errno.h | |
71 | bcopy.o: assym.h m68k/asm.h | 71 | bcopy.o: assym.h m68k/asm.h | |
72 | copypage.o: assym.h m68k/asm.h | 72 | copypage.o: assym.h m68k/asm.h | |
73 | lock_stubs.o: assym.h | 73 | lock_stubs.o: assym.h | |
74 | 74 | |||
75 | # depend on CPU configuration | 75 | # depend on CPU configuration | |
76 | db_machdep.o dvma.o machdep.o pmap.o sun2_startup.o vm_machdep.o: Makefile | 76 | db_machdep.o dvma.o machdep.o pmap.o sun2_startup.o vm_machdep.o: Makefile | |
77 | 77 | |||
78 | # depends on DDB, etc. | 78 | # depends on DDB, etc. | |
79 | stub.o: Makefile | 79 | stub.o: Makefile | |
80 | 80 | |||
81 | ## | 81 | ## | |
82 | ## (7) misc settings | 82 | ## (7) misc settings | |
83 | ## | 83 | ## | |
84 | 84 | |||
85 | ## | 85 | ## | |
86 | ## (8) config(8) generated machinery | 86 | ## (8) config(8) generated machinery | |
87 | ## | 87 | ## | |
88 | %INCLUDES | 88 | %INCLUDES | |
89 | 89 | |||
90 | %OBJS | 90 | %OBJS | |
91 | 91 | |||
92 | %CFILES | 92 | %CFILES | |
93 | 93 | |||
94 | %SFILES | 94 | %SFILES | |
95 | 95 | |||
96 | %LOAD | 96 | %LOAD | |
97 | 97 | |||
98 | %RULES | 98 | %RULES | |
99 | 99 | |||
100 | ## | 100 | ## | |
101 | ## (9) port independent kernel machinery | 101 | ## (9) port independent kernel machinery | |
102 | ## | 102 | ## | |
103 | .include "$S/conf/Makefile.kern.inc" | 103 | .include "$S/conf/Makefile.kern.inc" | |
104 | 104 | |||
105 | ## | 105 | ## | |
106 | ## (10) Appending make options. | 106 | ## (10) Appending make options. | |
107 | ## | 107 | ## | |
108 | %MAKEOPTIONSAPPEND | 108 | %MAKEOPTIONSAPPEND |
--- src/sys/arch/sun3/conf/Makefile.sun3 2008/02/19 14:31:40 1.100
+++ src/sys/arch/sun3/conf/Makefile.sun3 2011/01/21 15:59:09 1.101
@@ -1,109 +1,109 @@ | @@ -1,109 +1,109 @@ | |||
1 | # $NetBSD: Makefile.sun3,v 1.100 2008/02/19 14:31:40 joerg Exp $ | 1 | # $NetBSD: Makefile.sun3,v 1.101 2011/01/21 15:59:09 joerg Exp $ | |
2 | 2 | |||
3 | # Makefile for NetBSD | 3 | # Makefile for NetBSD | |
4 | # | 4 | # | |
5 | # This makefile is constructed from a machine description: | 5 | # This makefile is constructed from a machine description: | |
6 | # config machineid | 6 | # config machineid | |
7 | # Most changes should be made in the machine description | 7 | # Most changes should be made in the machine description | |
8 | # /sys/arch/sun3/conf/``machineid'' | 8 | # /sys/arch/sun3/conf/``machineid'' | |
9 | # after which you should do | 9 | # after which you should do | |
10 | # config machineid | 10 | # config machineid | |
11 | # Machine generic makefile changes should be made in | 11 | # Machine generic makefile changes should be made in | |
12 | # /sys/arch/sun3/conf/Makefile.sun3 | 12 | # /sys/arch/sun3/conf/Makefile.sun3 | |
13 | # after which config should be rerun for all machines of that type. | 13 | # after which config should be rerun for all machines of that type. | |
14 | # | 14 | # | |
15 | # To specify debugging, add the config line: makeoptions DEBUG="-g" | 15 | # To specify debugging, add the config line: makeoptions DEBUG="-g" | |
16 | # A better way is to specify -g only for a few files. | 16 | # A better way is to specify -g only for a few files. | |
17 | # | 17 | # | |
18 | # makeoptions DEBUGLIST="uvm* trap if_*" | 18 | # makeoptions DEBUGLIST="uvm* trap if_*" | |
19 | 19 | |||
20 | MACHINE_ARCH=m68k | 20 | MACHINE_ARCH=m68k | |
21 | USETOOLS?= no | 21 | USETOOLS?= no | |
22 | NEED_OWN_INSTALL_TARGET?=no | 22 | NEED_OWN_INSTALL_TARGET?=no | |
23 | .include <bsd.own.mk> | 23 | .include <bsd.own.mk> | |
24 | 24 | |||
25 | ## | 25 | ## | |
26 | ## (1) port identification | 26 | ## (1) port identification | |
27 | ## | 27 | ## | |
28 | SUN3= $S/arch/sun3 | 28 | SUN3= $S/arch/sun3 | |
29 | GENASSYM_CONF= ${SUN3}/${MACHTYPE}/genassym.cf | 29 | GENASSYM_CONF= ${SUN3}/${MACHTYPE}/genassym.cf | |
30 | 30 | |||
31 | ## | 31 | ## | |
32 | ## (2) compile settings | 32 | ## (2) compile settings | |
33 | ## | 33 | ## | |
34 | CPPFLAGS+= -Dsun3 | 34 | CPPFLAGS+= -Dsun3 | |
35 | CFLAGS+= ${CMACHFLAGS} -msoft-float -fno-defer-pop | 35 | CFLAGS+= ${CMACHFLAGS} -msoft-float -fno-defer-pop | |
36 | AFLAGS+= -x assembler-with-cpp -traditional-cpp | 36 | AFLAGS+= -x assembler-with-cpp | |
37 | 37 | |||
38 | ## | 38 | ## | |
39 | ## (3) libkern and compat | 39 | ## (3) libkern and compat | |
40 | ## | 40 | ## | |
41 | KERN_AS= obj | 41 | KERN_AS= obj | |
42 | 42 | |||
43 | ## | 43 | ## | |
44 | ## (4) local objects, compile rules, and dependencies | 44 | ## (4) local objects, compile rules, and dependencies | |
45 | ## | 45 | ## | |
46 | MD_OBJS= locore.o | 46 | MD_OBJS= locore.o | |
47 | MD_CFILES= | 47 | MD_CFILES= | |
48 | MD_SFILES= ${SUN3}/${MACHTYPE}/locore.s | 48 | MD_SFILES= ${SUN3}/${MACHTYPE}/locore.s | |
49 | 49 | |||
50 | locore.o: ${SUN3}/${MACHTYPE}/locore.s | 50 | locore.o: ${SUN3}/${MACHTYPE}/locore.s | |
51 | ${NORMAL_S} | 51 | ${NORMAL_S} | |
52 | 52 | |||
53 | ## | 53 | ## | |
54 | ## (5) link settings | 54 | ## (5) link settings | |
55 | ## | 55 | ## | |
56 | .if ${MACHTYPE} == "sun3x" | 56 | .if ${MACHTYPE} == "sun3x" | |
57 | TEXTADDR?= F8004000 | 57 | TEXTADDR?= F8004000 | |
58 | .else | 58 | .else | |
59 | TEXTADDR?= 0E004000 | 59 | TEXTADDR?= 0E004000 | |
60 | .endif | 60 | .endif | |
61 | LINKFORMAT= -N | 61 | LINKFORMAT= -N | |
62 | 62 | |||
63 | ## | 63 | ## | |
64 | ## (6) port specific target dependencies | 64 | ## (6) port specific target dependencies | |
65 | ## | 65 | ## | |
66 | 66 | |||
67 | # For cross-compilation, the "gcc -M" mkdep script is convenient, | 67 | # For cross-compilation, the "gcc -M" mkdep script is convenient, | |
68 | # but that does not correctly make rules from *.s files. The | 68 | # but that does not correctly make rules from *.s files. The | |
69 | # easiest work-around is to just list those dependencies here. | 69 | # easiest work-around is to just list those dependencies here. | |
70 | locore.o: assym.h m68k/asm.h m68k/trap.h | 70 | locore.o: assym.h m68k/asm.h m68k/trap.h | |
71 | copy.o: assym.h m68k/asm.h $S/sys/errno.h | 71 | copy.o: assym.h m68k/asm.h $S/sys/errno.h | |
72 | bcopy.o: assym.h m68k/asm.h | 72 | bcopy.o: assym.h m68k/asm.h | |
73 | copypage.o: assym.h m68k/asm.h | 73 | copypage.o: assym.h m68k/asm.h | |
74 | lock_stubs.o: assym.h | 74 | lock_stubs.o: assym.h | |
75 | 75 | |||
76 | # depend on CPU configuration | 76 | # depend on CPU configuration | |
77 | db_machdep.o dvma.o machdep.o pmap.o sun3_startup.o vm_machdep.o: Makefile | 77 | db_machdep.o dvma.o machdep.o pmap.o sun3_startup.o vm_machdep.o: Makefile | |
78 | 78 | |||
79 | # depends on DDB, etc. | 79 | # depends on DDB, etc. | |
80 | stub.o: Makefile | 80 | stub.o: Makefile | |
81 | 81 | |||
82 | ## | 82 | ## | |
83 | ## (7) misc settings | 83 | ## (7) misc settings | |
84 | ## | 84 | ## | |
85 | 85 | |||
86 | ## | 86 | ## | |
87 | ## (8) config(8) generated machinery | 87 | ## (8) config(8) generated machinery | |
88 | ## | 88 | ## | |
89 | %INCLUDES | 89 | %INCLUDES | |
90 | 90 | |||
91 | %OBJS | 91 | %OBJS | |
92 | 92 | |||
93 | %CFILES | 93 | %CFILES | |
94 | 94 | |||
95 | %SFILES | 95 | %SFILES | |
96 | 96 | |||
97 | %LOAD | 97 | %LOAD | |
98 | 98 | |||
99 | %RULES | 99 | %RULES | |
100 | 100 | |||
101 | ## | 101 | ## | |
102 | ## (9) port independent kernel machinery | 102 | ## (9) port independent kernel machinery | |
103 | ## | 103 | ## | |
104 | .include "$S/conf/Makefile.kern.inc" | 104 | .include "$S/conf/Makefile.kern.inc" | |
105 | 105 | |||
106 | ## | 106 | ## | |
107 | ## (10) Appending make options. | 107 | ## (10) Appending make options. | |
108 | ## | 108 | ## | |
109 | %MAKEOPTIONSAPPEND | 109 | %MAKEOPTIONSAPPEND |
--- src/sys/arch/usermode/conf/Makefile.usermode 2007/12/29 17:48:23 1.3
+++ src/sys/arch/usermode/conf/Makefile.usermode 2011/01/21 15:59:09 1.4
@@ -1,70 +1,70 @@ | @@ -1,70 +1,70 @@ | |||
1 | # $NetBSD: Makefile.usermode,v 1.3 2007/12/29 17:48:23 jmcneill Exp $ | 1 | # $NetBSD: Makefile.usermode,v 1.4 2011/01/21 15:59:09 joerg Exp $ | |
2 | 2 | |||
3 | MACHINE_ARCH= usermode | 3 | MACHINE_ARCH= usermode | |
4 | USETOOLS?= no | 4 | USETOOLS?= no | |
5 | NEED_OWN_INSTALL_TARGET?= no | 5 | NEED_OWN_INSTALL_TARGET?= no | |
6 | .include <bsd.own.mk> | 6 | .include <bsd.own.mk> | |
7 | 7 | |||
8 | SYSTEM_LD= ${CC} -o netbsd ${SYSTEM_OBJ} ${EXTRA_OBJ} vers.o | 8 | SYSTEM_LD= ${CC} -o netbsd ${SYSTEM_OBJ} ${EXTRA_OBJ} vers.o | |
9 | 9 | |||
10 | ## | 10 | ## | |
11 | ## (1) port identification | 11 | ## (1) port identification | |
12 | ## | 12 | ## | |
13 | USERMODE= $S/arch/usermode | 13 | USERMODE= $S/arch/usermode | |
14 | GENASSYM_CONF= ${USERMODE}/usermode/genassym.cf | 14 | GENASSYM_CONF= ${USERMODE}/usermode/genassym.cf | |
15 | 15 | |||
16 | ## | 16 | ## | |
17 | ## (2) compile settings | 17 | ## (2) compile settings | |
18 | ## | 18 | ## | |
19 | DEFCOPTS= -O2 | 19 | DEFCOPTS= -O2 | |
20 | CPPFLAGS+= -Dusermode -Dmalloc=kernmalloc -Dfree=kernfree | 20 | CPPFLAGS+= -Dusermode -Dmalloc=kernmalloc -Dfree=kernfree | |
21 | CPPFLAGS.init_main.c+= -Dmain=kernmain | 21 | CPPFLAGS.init_main.c+= -Dmain=kernmain | |
22 | AFLAGS+= -x assembler-with-cpp -traditional-cpp | 22 | AFLAGS+= -x assembler-with-cpp | |
23 | 23 | |||
24 | ## | 24 | ## | |
25 | ## (3) libkern and compat | 25 | ## (3) libkern and compat | |
26 | ## | 26 | ## | |
27 | KERN_AS= obj | 27 | KERN_AS= obj | |
28 | 28 | |||
29 | ## | 29 | ## | |
30 | ## (4) local objects, compile rules, and dependencies | 30 | ## (4) local objects, compile rules, and dependencies | |
31 | ## | 31 | ## | |
32 | MD_OBJS= | 32 | MD_OBJS= | |
33 | MD_CFILES= | 33 | MD_CFILES= | |
34 | MD_SFILES= | 34 | MD_SFILES= | |
35 | 35 | |||
36 | ## | 36 | ## | |
37 | ## (5) link settings | 37 | ## (5) link settings | |
38 | ## | 38 | ## | |
39 | 39 | |||
40 | ## | 40 | ## | |
41 | ## (6) port specific target dependencies | 41 | ## (6) port specific target dependencies | |
42 | ## | 42 | ## | |
43 | 43 | |||
44 | ## | 44 | ## | |
45 | ## (7) misc settings | 45 | ## (7) misc settings | |
46 | ## | 46 | ## | |
47 | 47 | |||
48 | ## | 48 | ## | |
49 | ## (8) config(8) generated machinery | 49 | ## (8) config(8) generated machinery | |
50 | %INCLUDES | 50 | %INCLUDES | |
51 | 51 | |||
52 | %OBJS | 52 | %OBJS | |
53 | 53 | |||
54 | %CFILES | 54 | %CFILES | |
55 | 55 | |||
56 | %SFILES | 56 | %SFILES | |
57 | 57 | |||
58 | %LOAD | 58 | %LOAD | |
59 | 59 | |||
60 | %RULES | 60 | %RULES | |
61 | 61 | |||
62 | ## | 62 | ## | |
63 | ## (9) port independent kernel machinery | 63 | ## (9) port independent kernel machinery | |
64 | ## | 64 | ## | |
65 | .include "$S/conf/Makefile.kern.inc" | 65 | .include "$S/conf/Makefile.kern.inc" | |
66 | 66 | |||
67 | ## | 67 | ## | |
68 | ## (10) appending make options | 68 | ## (10) appending make options | |
69 | ## | 69 | ## | |
70 | %MAKEOPTIONSAPPEND | 70 | %MAKEOPTIONSAPPEND |
--- src/sys/arch/vax/conf/Makefile.vax 2008/03/01 13:59:56 1.80
+++ src/sys/arch/vax/conf/Makefile.vax 2011/01/21 15:59:10 1.81
@@ -1,104 +1,104 @@ | @@ -1,104 +1,104 @@ | |||
1 | # $NetBSD: Makefile.vax,v 1.80 2008/03/01 13:59:56 joerg Exp $ | 1 | # $NetBSD: Makefile.vax,v 1.81 2011/01/21 15:59:10 joerg Exp $ | |
2 | 2 | |||
3 | # Makefile for NetBSD | 3 | # Makefile for NetBSD | |
4 | # | 4 | # | |
5 | # This makefile is constructed from a machine description: | 5 | # This makefile is constructed from a machine description: | |
6 | # config machineid | 6 | # config machineid | |
7 | # Most changes should be made in the machine description | 7 | # Most changes should be made in the machine description | |
8 | # /sys/arch/vax/conf/``machineid'' | 8 | # /sys/arch/vax/conf/``machineid'' | |
9 | # after which you should do | 9 | # after which you should do | |
10 | # config machineid | 10 | # config machineid | |
11 | # Machine generic makefile changes should be made in | 11 | # Machine generic makefile changes should be made in | |
12 | # /sys/arch/vax/conf/Makefile.vax | 12 | # /sys/arch/vax/conf/Makefile.vax | |
13 | # after which config should be rerun for all machines of that type. | 13 | # after which config should be rerun for all machines of that type. | |
14 | # | 14 | # | |
15 | # To specify debugging, add the config line: makeoptions DEBUG="-g" | 15 | # To specify debugging, add the config line: makeoptions DEBUG="-g" | |
16 | # A better way is to specify -g only for a few files. | 16 | # A better way is to specify -g only for a few files. | |
17 | # | 17 | # | |
18 | # makeoptions DEBUGLIST="uvm* trap if_*" | 18 | # makeoptions DEBUGLIST="uvm* trap if_*" | |
19 | 19 | |||
20 | MACHINE_ARCH= vax | 20 | MACHINE_ARCH= vax | |
21 | USETOOLS?= no | 21 | USETOOLS?= no | |
22 | NEED_OWN_INSTALL_TARGET?=no | 22 | NEED_OWN_INSTALL_TARGET?=no | |
23 | .include <bsd.own.mk> | 23 | .include <bsd.own.mk> | |
24 | 24 | |||
25 | ## | 25 | ## | |
26 | ## (1) port identification | 26 | ## (1) port identification | |
27 | ## | 27 | ## | |
28 | VAX= $S/arch/vax | 28 | VAX= $S/arch/vax | |
29 | GENASSYM_CONF= ${VAX}/vax/genassym.cf | 29 | GENASSYM_CONF= ${VAX}/vax/genassym.cf | |
30 | 30 | |||
31 | ## | 31 | ## | |
32 | ## (2) compile settings | 32 | ## (2) compile settings | |
33 | ## | 33 | ## | |
34 | CPPFLAGS+= -D_VAX_INLINE_ | 34 | CPPFLAGS+= -D_VAX_INLINE_ | |
35 | AFLAGS+= -x assembler-with-cpp -traditional-cpp -fno-pic | 35 | AFLAGS+= -x assembler-with-cpp -fno-pic | |
36 | CFLAGS+= -fno-pic | 36 | CFLAGS+= -fno-pic | |
37 | 37 | |||
38 | ## | 38 | ## | |
39 | ## (3) libkern and compat | 39 | ## (3) libkern and compat | |
40 | ## | 40 | ## | |
41 | KERN_AS= obj | 41 | KERN_AS= obj | |
42 | 42 | |||
43 | ## | 43 | ## | |
44 | ## (4) local objects, compile rules, and dependencies | 44 | ## (4) local objects, compile rules, and dependencies | |
45 | ## | 45 | ## | |
46 | MD_OBJS= intvec.o subr.o | 46 | MD_OBJS= intvec.o subr.o | |
47 | MD_CFILES= | 47 | MD_CFILES= | |
48 | MD_SFILES= ${VAX}/vax/intvec.S ${VAX}/vax/subr.S | 48 | MD_SFILES= ${VAX}/vax/intvec.S ${VAX}/vax/subr.S | |
49 | 49 | |||
50 | intvec.o: ${VAX}/vax/intvec.S assym.h | 50 | intvec.o: ${VAX}/vax/intvec.S assym.h | |
51 | ${NORMAL_S} | 51 | ${NORMAL_S} | |
52 | 52 | |||
53 | subr.o: ${VAX}/vax/subr.S assym.h | 53 | subr.o: ${VAX}/vax/subr.S assym.h | |
54 | ${NORMAL_S} | 54 | ${NORMAL_S} | |
55 | 55 | |||
56 | ## | 56 | ## | |
57 | ## (5) link settings | 57 | ## (5) link settings | |
58 | ## | 58 | ## | |
59 | TEXTADDR?= 80000000 | 59 | TEXTADDR?= 80000000 | |
60 | LINKFORMAT= -N | 60 | LINKFORMAT= -N | |
61 | LINKFLAGS_DEBUG= -X | 61 | LINKFLAGS_DEBUG= -X | |
62 | LINKFLAGS_NORMAL= -S | 62 | LINKFLAGS_NORMAL= -S | |
63 | 63 | |||
64 | ## | 64 | ## | |
65 | ## (6) port specific target dependencies | 65 | ## (6) port specific target dependencies | |
66 | ## | 66 | ## | |
67 | 67 | |||
68 | # depend on CPU configuration | 68 | # depend on CPU configuration | |
69 | tmscp.o ts.o uba.o uda.o clock.o emulate.o intvec.o: Makefile | 69 | tmscp.o ts.o uba.o uda.o clock.o emulate.o intvec.o: Makefile | |
70 | sbi.o subr.o: Makefile | 70 | sbi.o subr.o: Makefile | |
71 | 71 | |||
72 | lock_stubs.o unimpl_emul.o: assym.h | 72 | lock_stubs.o unimpl_emul.o: assym.h | |
73 | 73 | |||
74 | ## | 74 | ## | |
75 | ## (7) misc settings | 75 | ## (7) misc settings | |
76 | ## | 76 | ## | |
77 | 77 | |||
78 | # XXX recent gcc4 gets ICE on this one | 78 | # XXX recent gcc4 gets ICE on this one | |
79 | COPTS.db_command.c+= -fno-tree-ter | 79 | COPTS.db_command.c+= -fno-tree-ter | |
80 | 80 | |||
81 | ## | 81 | ## | |
82 | ## (8) config(8) generated machinery | 82 | ## (8) config(8) generated machinery | |
83 | ## | 83 | ## | |
84 | %INCLUDES | 84 | %INCLUDES | |
85 | 85 | |||
86 | %OBJS | 86 | %OBJS | |
87 | 87 | |||
88 | %CFILES | 88 | %CFILES | |
89 | 89 | |||
90 | %SFILES | 90 | %SFILES | |
91 | 91 | |||
92 | %LOAD | 92 | %LOAD | |
93 | 93 | |||
94 | %RULES | 94 | %RULES | |
95 | 95 | |||
96 | ## | 96 | ## | |
97 | ## (9) port independent kernel machinery | 97 | ## (9) port independent kernel machinery | |
98 | ## | 98 | ## | |
99 | .include "$S/conf/Makefile.kern.inc" | 99 | .include "$S/conf/Makefile.kern.inc" | |
100 | 100 | |||
101 | ## | 101 | ## | |
102 | ## (10) Appending make options. | 102 | ## (10) Appending make options. | |
103 | ## | 103 | ## | |
104 | %MAKEOPTIONSAPPEND | 104 | %MAKEOPTIONSAPPEND |
--- src/sys/arch/x68k/conf/Makefile.x68k 2008/02/12 18:26:48 1.61
+++ src/sys/arch/x68k/conf/Makefile.x68k 2011/01/21 15:59:10 1.62
@@ -1,112 +1,112 @@ | @@ -1,112 +1,112 @@ | |||
1 | # $NetBSD: Makefile.x68k,v 1.61 2008/02/12 18:26:48 joerg Exp $ | 1 | # $NetBSD: Makefile.x68k,v 1.62 2011/01/21 15:59:10 joerg Exp $ | |
2 | # | 2 | # | |
3 | # Makefile for NetBSD | 3 | # Makefile for NetBSD | |
4 | # | 4 | # | |
5 | # This makefile is constructed from a machine description: | 5 | # This makefile is constructed from a machine description: | |
6 | # config machineid | 6 | # config machineid | |
7 | # Most changes should be made in the machine description | 7 | # Most changes should be made in the machine description | |
8 | # /sys/arch/x68k/conf/``machineid'' | 8 | # /sys/arch/x68k/conf/``machineid'' | |
9 | # after which you should do | 9 | # after which you should do | |
10 | # config machineid | 10 | # config machineid | |
11 | # Machine generic makefile changes should be made in | 11 | # Machine generic makefile changes should be made in | |
12 | # /sys/arch/x68k/conf/Makefile.x68k | 12 | # /sys/arch/x68k/conf/Makefile.x68k | |
13 | # after which config should be rerun for all machines of that type. | 13 | # after which config should be rerun for all machines of that type. | |
14 | # | 14 | # | |
15 | # To specify debugging, add the config line: makeoptions DEBUG="-g" | 15 | # To specify debugging, add the config line: makeoptions DEBUG="-g" | |
16 | # A better way is to specify -g only for a few files. | 16 | # A better way is to specify -g only for a few files. | |
17 | # | 17 | # | |
18 | # makeoptions DEBUGLIST="uvm* trap if_*" | 18 | # makeoptions DEBUGLIST="uvm* trap if_*" | |
19 | 19 | |||
20 | MACHINE_ARCH=m68k | 20 | MACHINE_ARCH=m68k | |
21 | USETOOLS?= no | 21 | USETOOLS?= no | |
22 | NEED_OWN_INSTALL_TARGET?=no | 22 | NEED_OWN_INSTALL_TARGET?=no | |
23 | .include <bsd.own.mk> | 23 | .include <bsd.own.mk> | |
24 | 24 | |||
25 | ## | 25 | ## | |
26 | ## (1) port identification | 26 | ## (1) port identification | |
27 | ## | 27 | ## | |
28 | X68K= $S/arch/x68k | 28 | X68K= $S/arch/x68k | |
29 | GENASSYM_CONF= ${X68K}/x68k/genassym.cf | 29 | GENASSYM_CONF= ${X68K}/x68k/genassym.cf | |
30 | 30 | |||
31 | ## | 31 | ## | |
32 | ## (2) compile settings | 32 | ## (2) compile settings | |
33 | ## | 33 | ## | |
34 | CPPFLAGS+= -Dx68k | 34 | CPPFLAGS+= -Dx68k | |
35 | AFLAGS+= -x assembler-with-cpp -traditional-cpp | 35 | AFLAGS+= -x assembler-with-cpp | |
36 | CMACHFLAGS?= -m68020-60 -Wa,-m68030 -Wa,-m68851 | 36 | CMACHFLAGS?= -m68020-60 -Wa,-m68030 -Wa,-m68851 | |
37 | CFLAGS+= ${CMACHFLAGS} -msoft-float | 37 | CFLAGS+= ${CMACHFLAGS} -msoft-float | |
38 | 38 | |||
39 | ## | 39 | ## | |
40 | ## (3) libkern and compat | 40 | ## (3) libkern and compat | |
41 | ## | 41 | ## | |
42 | KERN_AS= obj | 42 | KERN_AS= obj | |
43 | 43 | |||
44 | ## | 44 | ## | |
45 | ## (4) local objects, compile rules, and dependencies | 45 | ## (4) local objects, compile rules, and dependencies | |
46 | ## | 46 | ## | |
47 | # for the Motorola 68040 Floating Point Software Product | 47 | # for the Motorola 68040 Floating Point Software Product | |
48 | .include "$S/arch/m68k/fpsp/Makefile.inc" | 48 | .include "$S/arch/m68k/fpsp/Makefile.inc" | |
49 | 49 | |||
50 | # for the Motorola 68060 Software Support Package | 50 | # for the Motorola 68060 Software Support Package | |
51 | .include "$S/arch/m68k/060sp/Makefile.inc" | 51 | .include "$S/arch/m68k/060sp/Makefile.inc" | |
52 | 52 | |||
53 | MD_OBJS= locore.o ${FPSP} | 53 | MD_OBJS= locore.o ${FPSP} | |
54 | MD_CFILES= | 54 | MD_CFILES= | |
55 | MD_SFILES= ${X68K}/x68k/locore.s | 55 | MD_SFILES= ${X68K}/x68k/locore.s | |
56 | 56 | |||
57 | locore.o: ${X68K}/x68k/locore.s assym.h Makefile | 57 | locore.o: ${X68K}/x68k/locore.s assym.h Makefile | |
58 | ${NORMAL_S} | 58 | ${NORMAL_S} | |
59 | 59 | |||
60 | copy.o copypage.o lock_stubs.o: assym.h | 60 | copy.o copypage.o lock_stubs.o: assym.h | |
61 | 61 | |||
62 | ## | 62 | ## | |
63 | ## (5) link settings | 63 | ## (5) link settings | |
64 | ## | 64 | ## | |
65 | TEXTADDR?= 0 | 65 | TEXTADDR?= 0 | |
66 | LINKFORMAT= -n | 66 | LINKFORMAT= -n | |
67 | 67 | |||
68 | ## | 68 | ## | |
69 | ## (6) port specific target dependencies | 69 | ## (6) port specific target dependencies | |
70 | ## | 70 | ## | |
71 | 71 | |||
72 | # depend on root or device configuration | 72 | # depend on root or device configuration | |
73 | autoconf.o conf.o: Makefile | 73 | autoconf.o conf.o: Makefile | |
74 | 74 | |||
75 | # depend on maxusers | 75 | # depend on maxusers | |
76 | machdep.o: Makefile | 76 | machdep.o: Makefile | |
77 | 77 | |||
78 | # depend on DEBUG and/or DIAGNOSTIC options | 78 | # depend on DEBUG and/or DIAGNOSTIC options | |
79 | grf.o par.o sram.o: Makefile | 79 | grf.o par.o sram.o: Makefile | |
80 | intio_dmac.o mfp.o neptune.o opm.o scsirom.o xel.o zs.o bus.o: Makefile | 80 | intio_dmac.o mfp.o neptune.o opm.o scsirom.o xel.o zs.o bus.o: Makefile | |
81 | intio.o vm_machdep.o: Makefile | 81 | intio.o vm_machdep.o: Makefile | |
82 | 82 | |||
83 | ## | 83 | ## | |
84 | ## (7) misc settings | 84 | ## (7) misc settings | |
85 | ## | 85 | ## | |
86 | 86 | |||
87 | 87 | |||
88 | 88 | |||
89 | ## | 89 | ## | |
90 | ## (8) config(8) generated machinery | 90 | ## (8) config(8) generated machinery | |
91 | ## | 91 | ## | |
92 | %INCLUDES | 92 | %INCLUDES | |
93 | 93 | |||
94 | %OBJS | 94 | %OBJS | |
95 | 95 | |||
96 | %CFILES | 96 | %CFILES | |
97 | 97 | |||
98 | %SFILES | 98 | %SFILES | |
99 | 99 | |||
100 | %LOAD | 100 | %LOAD | |
101 | 101 | |||
102 | %RULES | 102 | %RULES | |
103 | 103 | |||
104 | ## | 104 | ## | |
105 | ## (9) port independent kernel machinery | 105 | ## (9) port independent kernel machinery | |
106 | ## | 106 | ## | |
107 | .include "$S/conf/Makefile.kern.inc" | 107 | .include "$S/conf/Makefile.kern.inc" | |
108 | 108 | |||
109 | ## | 109 | ## | |
110 | ## (10) Appending make options. | 110 | ## (10) Appending make options. | |
111 | ## | 111 | ## | |
112 | %MAKEOPTIONSAPPEND | 112 | %MAKEOPTIONSAPPEND |