Merge from matt-nb5-mips64diff -r1.4 -r1.5 src/distrib/evbmips/Makefile
(matt)
--- src/distrib/evbmips/Makefile 2007/03/07 19:42:02 1.4
+++ src/distrib/evbmips/Makefile 2009/12/14 01:12:05 1.5
@@ -1,15 +1,13 @@ | @@ -1,15 +1,13 @@ | |||
1 | # $NetBSD: Makefile,v 1.4 2007/03/07 19:42:02 bouyer Exp $ | 1 | # $NetBSD: Makefile,v 1.5 2009/12/14 01:12:05 matt Exp $ | |
2 | 2 | |||
3 | .include <bsd.own.mk> | 3 | .include <bsd.own.mk> | |
4 | .include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib" | 4 | .include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib" | |
5 | 5 | |||
6 | SUBDIR= cdroms | 6 | SUBDIR= cdroms | |
7 | .if ${MACHINE_ARCH} == "mipsel" | |||
8 | SUBDIR+= instkernel | 7 | SUBDIR+= instkernel | |
9 | .endif | |||
10 | TARGETS+= release | 8 | TARGETS+= release | |
11 | 9 | |||
12 | iso_image: | 10 | iso_image: | |
13 | ${MAKEDIRTARGET} cdroms iso_image | 11 | ${MAKEDIRTARGET} cdroms iso_image | |
14 | 12 | |||
15 | .include <bsd.subdir.mk> | 13 | .include <bsd.subdir.mk> |
--- src/distrib/evbmips/instkernel/instkernel/Makefile 2006/03/30 15:45:42 1.1
+++ src/distrib/evbmips/instkernel/instkernel/Makefile 2009/12/14 01:12:05 1.2
@@ -1,23 +1,30 @@ | @@ -1,23 +1,30 @@ | |||
1 | # $NetBSD: Makefile,v 1.1 2006/03/30 15:45:42 shige Exp $ | 1 | # $NetBSD: Makefile,v 1.2 2009/12/14 01:12:05 matt Exp $ | |
2 | 2 | |||
3 | .include <bsd.own.mk> | 3 | .include <bsd.own.mk> | |
4 | .include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib" | 4 | .include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib" | |
5 | 5 | |||
6 | RAMDISKDIR!= cd ${.CURDIR}/../ramdisk && ${PRINTOBJDIR} | 6 | RAMDISKDIR!= cd ${.CURDIR}/../ramdisk && ${PRINTOBJDIR} | |
7 | RAMDISK= ${RAMDISKDIR}/ramdisk.fs | 7 | RAMDISK= ${RAMDISKDIR}/ramdisk.fs | |
8 | 8 | |||
9 | .if ${MACHINE_ARCH} == "mipsel" | 9 | .if ${MACHINE_ARCH} == "mipsel" | |
10 | # Little endian platforms. | 10 | # Little endian platforms. | |
11 | MDSETTARGETS= INSTALL_OMSAL400 ${RAMDISK} - | 11 | MDSETTARGETS= INSTALL_OMSAL400 ${RAMDISK} - | |
12 | MDSETTARGETS+= INSTALL_MALTA ${RAMDISK} - | |||
13 | ||||
14 | .elif ${MACHINE_ARCH} == "mips64eb" || ${MACHINE_ARCH} == "mips64el" | |||
15 | MDSETTARGETS= INSTALL_MALTA32 ${RAMDISK} - | |||
16 | MDSETTARGETS+= INSTALL_MALTA64 ${RAMDISK} - | |||
17 | ||||
12 | .else | 18 | .else | |
13 | # Big endian platforms. | 19 | # Big endian platforms. | |
14 | MDSETTARGETS= | 20 | MDSETTARGETS= INSTALL_MALTA ${RAMDISK} - | |
21 | ||||
15 | .endif | 22 | .endif | |
16 | MDSET_RELEASEDIR= installation | 23 | MDSET_RELEASEDIR= installation | |
17 | MDSET_SUFFIXES.-= srec create-srec | 24 | MDSET_SUFFIXES.-= srec create-srec | |
18 | 25 | |||
19 | create-srec= ${OBJCOPY} -O srec ${.TARGET:R} ${.TARGET} | 26 | create-srec= ${OBJCOPY} -O srec ${.TARGET:R} ${.TARGET} | |
20 | 27 | |||
21 | .include "${DISTRIBDIR}/common/Makefile.mdset" | 28 | .include "${DISTRIBDIR}/common/Makefile.mdset" | |
22 | 29 | |||
23 | .include <bsd.prog.mk> | 30 | .include <bsd.prog.mk> |
--- src/distrib/evbmips/instkernel/ramdisk/Makefile 2009/09/20 23:19:52 1.7
+++ src/distrib/evbmips/instkernel/ramdisk/Makefile 2009/12/14 01:12:05 1.8
@@ -1,29 +1,29 @@ | @@ -1,29 +1,29 @@ | |||
1 | # $NetBSD: Makefile,v 1.7 2009/09/20 23:19:52 abs Exp $ | 1 | # $NetBSD: Makefile,v 1.8 2009/12/14 01:12:05 matt Exp $ | |
2 | 2 | |||
3 | .include <bsd.own.mk> | 3 | .include <bsd.own.mk> | |
4 | .include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib" | 4 | .include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib" | |
5 | 5 | |||
6 | IMAGE= ramdisk.fs | 6 | IMAGE= ramdisk.fs | |
7 | IMAGESIZE= 4096k | 7 | IMAGESIZE= 4096k | |
8 | MAKEFS_FLAGS= -f 15 | 8 | MAKEFS_FLAGS= -f 15 | |
9 | 9 | |||
10 | WARNS= 1 | 10 | WARNS= 1 | |
11 | DBG= -Os | 11 | DBG= -Os | |
12 | 12 | |||
13 | CRUNCHBIN= ramdiskbin | 13 | CRUNCHBIN= ramdiskbin | |
14 | LISTS= ${.CURDIR}/list ${DISTRIBDIR}/common/list.sysinst | 14 | LISTS= ${.CURDIR}/list ${DISTRIBDIR}/common/list.sysinst | |
15 | MTREECONF= ${DISTRIBDIR}/common/mtree.common | 15 | MTREECONF= ${DISTRIBDIR}/common/mtree.common | |
16 | .if ${MACHINE_ARCH} == "mipsel" | 16 | .if ${MACHINE_ARCH} == "mipsel" || ${MACHINE_ARCH} == "mips64el" | |
17 | IMAGEENDIAN= le | 17 | IMAGEENDIAN= le | |
18 | .else | 18 | .else | |
19 | IMAGEENDIAN= be | 19 | IMAGEENDIAN= be | |
20 | .endif | 20 | .endif | |
21 | MAKEDEVTARGETS= ramdisk | 21 | MAKEDEVTARGETS= ramdisk | |
22 | IMAGEDEPENDS= ${CRUNCHBIN} \ | 22 | IMAGEDEPENDS= ${CRUNCHBIN} \ | |
23 | dot.profile \ | 23 | dot.profile \ | |
24 | ${DISTRIBDIR}/common/termcap \ | 24 | ${DISTRIBDIR}/common/termcap \ | |
25 | ${NETBSDSRCDIR}/etc/group ${NETBSDSRCDIR}/etc/master.passwd \ | 25 | ${NETBSDSRCDIR}/etc/group ${NETBSDSRCDIR}/etc/master.passwd \ | |
26 | ${NETBSDSRCDIR}/etc/netconfig ${DISTRIBDIR}/common/protocols \ | 26 | ${NETBSDSRCDIR}/etc/netconfig ${DISTRIBDIR}/common/protocols \ | |
27 | ${DISTRIBDIR}/common/services | 27 | ${DISTRIBDIR}/common/services | |
28 | 28 | |||
29 | MAKEDEVTARGETS= std md0 wd0 wd1 wd2 wd3 cd0 cd1 sd0 sd1 sd2 sd3 st0 pty0 ttyv0 | 29 | MAKEDEVTARGETS= std md0 wd0 wd1 wd2 wd3 cd0 cd1 sd0 sd1 sd2 sd3 st0 pty0 ttyv0 |
--- src/distrib/pmax/instkernel/Makefile 2009/01/18 12:51:25 1.37
+++ src/distrib/pmax/instkernel/Makefile 2009/12/14 01:12:06 1.38
@@ -1,31 +1,37 @@ | @@ -1,31 +1,37 @@ | |||
1 | # $NetBSD: Makefile,v 1.37 2009/01/18 12:51:25 he Exp $ | 1 | # $NetBSD: Makefile,v 1.38 2009/12/14 01:12:06 matt Exp $ | |
2 | 2 | |||
3 | .include <bsd.own.mk> | 3 | .include <bsd.own.mk> | |
4 | .include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib" | 4 | .include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib" | |
5 | 5 | |||
6 | .include <bsd.kernobj.mk> | 6 | .include <bsd.kernobj.mk> | |
7 | 7 | |||
8 | .if ${MACHINE_ARCH} == "mips64el" | |||
9 | SFX= 64 | |||
10 | .endif | |||
11 | ||||
8 | IMAGE= diskimage | 12 | IMAGE= diskimage | |
9 | IMAGESIZE= 2200k | 13 | IMAGESIZE= 2400k | |
10 | LISTS= ${.CURDIR}/list | 14 | LISTS= ${.CURDIR}/list${SFX} | |
11 | MTREECONF= ${DISTRIBDIR}/common/mtree.dot | 15 | MTREECONF= ${DISTRIBDIR}/common/mtree.dot | |
12 | IMAGEENDIAN= le | 16 | IMAGEENDIAN= le | |
13 | PRIMARYBOOT= ${DESTDIR}/usr/mdec/bootxx_ffs | 17 | PRIMARYBOOT= ${DESTDIR}/usr/mdec/bootxx_ffs | |
14 | IMAGEDEPENDS= netbsd-INSTALL.gz ${DESTDIR}/usr/mdec/boot.pmax ${PRIMARYBOOT} | 18 | IMAGEDEPENDS= netbsd-INSTALL${SFX}.gz ${DESTDIR}/usr/mdec/boot.pmax ${PRIMARYBOOT} | |
15 | IMAGEPOSTBUILD= ${TOOL_INSTALLBOOT} -v -m ${MACHINE} ${IMAGE} ${PRIMARYBOOT} | 19 | IMAGEPOSTBUILD= ${TOOL_INSTALLBOOT} -v -m ${MACHINE} ${IMAGE} ${PRIMARYBOOT} | |
16 | 20 | |||
17 | RAMDISKDIR!= cd ${.CURDIR}/../ramdisk && ${PRINTOBJDIR} | 21 | RAMDISKDIR!= cd ${.CURDIR}/../ramdisk && ${PRINTOBJDIR} | |
18 | RAMDISK= ${RAMDISKDIR}/ramdisk.fs | 22 | RAMDISK= ${RAMDISKDIR}/ramdisk.fs | |
19 | 23 | |||
20 | MDSETTARGETS= RAMDISK ${RAMDISK} netbsd-INSTALL | 24 | MDSETTARGETS= RAMDISK${SFX} ${RAMDISK} netbsd-INSTALL${SFX} | |
21 | MDSET_RELEASEDIR= binary/kernel | 25 | MDSET_RELEASEDIR= binary/kernel | |
22 | 26 | |||
23 | MDSET_SUFFIXES.netbsd-INSTALL= ecoff create-ecoff | 27 | .if ${MACHINE_ARCH} == "mipsel" | |
24 | create-ecoff= ${ELF2ECOFF} ${.TARGET:R} ${.TARGET} | 28 | MDSET_SUFFIXES.netbsd-INSTALL${SFX}= ecoff create-ecoff | |
29 | create-ecoff= ${ELF2ECOFF} ${.TARGET:R} ${.TARGET} | |||
30 | .endif | |||
25 | 31 | |||
26 | IMAGE_RELEASEDIR= installation/diskimage | 32 | IMAGE_RELEASEDIR= installation/diskimage | |
27 | 33 | |||
28 | .include "${DISTRIBDIR}/common/Makefile.image" | 34 | .include "${DISTRIBDIR}/common/Makefile.image" | |
29 | .include "${DISTRIBDIR}/common/Makefile.mdset" | 35 | .include "${DISTRIBDIR}/common/Makefile.mdset" | |
30 | 36 | |||
31 | .include <bsd.prog.mk> | 37 | .include <bsd.prog.mk> |
# $NetBSD: list64,v 1.2 2009/12/14 01:12:06 matt Exp $
COPY ${DESTDIR}/usr/mdec/boot.pmax boot.pmax
COPY ${OBJDIR}/netbsd-INSTALL64.gz netbsd
--- src/distrib/pmax/miniroot/Makefile.inc 2009/09/20 23:19:55 1.20
+++ src/distrib/pmax/miniroot/Makefile.inc 2009/12/14 01:12:06 1.21
@@ -1,17 +1,26 @@ | @@ -1,17 +1,26 @@ | |||
1 | # $NetBSD: Makefile.inc,v 1.20 2009/09/20 23:19:55 abs Exp $ | 1 | # $NetBSD: Makefile.inc,v 1.21 2009/12/14 01:12:06 matt Exp $ | |
2 | ||||
3 | .if ${MACHINE_ARCH} == "mips64el" | |||
4 | SFX= 64 | |||
5 | .endif | |||
2 | 6 | |||
3 | DBG= -Os | 7 | DBG= -Os | |
4 | 8 | |||
5 | IMAGESIZE= 32m | 9 | IMAGESIZE= 32m | |
6 | MAKEFS_FLAGS= -f 15 | 10 | MAKEFS_FLAGS= -f 15 | |
7 | IMAGEENDIAN= le | 11 | IMAGEENDIAN= le | |
8 | MAKEDEVTARGETS= all | 12 | MAKEDEVTARGETS= all | |
13 | LISTS= ${.CURDIR}/list ${ARCHDIR}/list${SFX} | |||
9 | LISTS+= ${DISTRIBDIR}/common/list.sysinst | 14 | LISTS+= ${DISTRIBDIR}/common/list.sysinst | |
10 | MTREECONF+= ${.CURDIR}/mtree.usr.install | 15 | MTREECONF+= ${.CURDIR}/mtree.usr.install | |
11 | IMAGEDEPENDS+= ${ARCHDIR}/dot.profile ${DISTRIBDIR}/common/termcap \ | 16 | IMAGEDEPENDS+= ${ARCHDIR}/dot.profile ${DISTRIBDIR}/common/termcap \ | |
12 | ${DESTDIR}/.profile ${DESTDIR}/boot.pmax \ | 17 | ${DESTDIR}/.profile ${DESTDIR}/boot.pmax \ | |
13 | ${KERNOBJDIR}/GENERIC/netbsd \ | 18 | ${DESTDIR}/etc/disktab \ | |
14 | ${KERNOBJDIR}/GENERIC/netbsd.ecoff \ | 19 | ${KERNOBJDIR}/GENERIC${SFX}/netbsd | |
20 | ||||
21 | .if ${MACHINE_ARCH} == "mipsel" | |||
22 | IMAGEDEPENDS+= ${KERNOBJDIR}/GENERIC/netbsd.ecoff \ | |||
15 | ${KERNOBJDIR}/INSTALL/nfsnetbsd.ecoff | 23 | ${KERNOBJDIR}/INSTALL/nfsnetbsd.ecoff | |
24 | .endif | |||
16 | 25 | |||
17 | IMAGEPOSTBUILD= ${TOOL_INSTALLBOOT} -v -m ${MACHINE} ${IMAGE} ${DESTDIR}/usr/mdec/bootxx_ffs | 26 | IMAGEPOSTBUILD= ${TOOL_INSTALLBOOT} -v -m ${MACHINE} ${IMAGE} ${DESTDIR}/usr/mdec/bootxx_ffs |
# $NetBSD: list64,v 1.2 2009/12/14 01:12:06 matt Exp $
# extras in bin
PROG bin/csh
PROG bin/date
PROG bin/rcp
PROG bin/rcmd
# extras in sbin
PROG sbin/disklabel
PROG sbin/fsck_ext2fs
PROG sbin/mount_ext2fs
PROG sbin/mount_kernfs
# extras in usr/bin
PROG usr/bin/netstat
PROG usr/bin/rsh
PROG usr/bin/tset usr/bin/reset
PROG usr/bin/vi
# extras in usr/sbin
PROG usr/sbin/installboot
# crunchgen source directory specials: progs built in nonstandard places
SPECIAL vi srcdir usr.bin/nvi/build
# Minimize use of MFS
SYMLINK /tmp var/tmp
# we need the contents of /usr/mdec
COPYDIR ${DESTDIR}/usr/mdec usr/mdec
# and /boot.pmax
COPY ${DESTDIR}/boot.pmax boot.pmax
# the zoneinfo (dont use)
#COPYDIR ${DESTDIR}/usr/share/zoneinfo usr/share/zoneinfo
# a subset termcap file
COPY ${ARCHDIR}/termcap.vt100 usr/share/misc/termcap
# copy the kernel(s)
COPY ${KERNOBJDIR}/GENERIC64/netbsd netbsd
#COPY ${KERNOBJDIR}/GENERIC64/netbsd.ecoff netbsd.ecoff
#COPY ${KERNOBJDIR}/INSTALL64/nfsnetbsd.ecoff nfsnetbsd.ecoff
# various files that we need in /etc for the install
#COPY ${DESTDIR}/etc/disktab etc/disktab.shadow
#SYMLINK /tmp/disktab.shadow etc/disktab
#SYMLINK /tmp/fstab.shadow etc/fstab
#SYMLINK /tmp/resolv.conf.shadow etc/resolv.conf
#SYMLINK /tmp/hosts etc/hosts
# sysinst needs disktab template
COPY ${DESTDIR}/etc/disktab etc/disktab.preinstall
# and the installation tools
COPY ${ARCHDIR}/dot.profile .profile
# and a spare .profile
COPY ${DESTDIR}/.profile tmp/.hdprofile
--- src/etc/etc.algor/Makefile.inc 2007/07/24 10:49:23 1.3
+++ src/etc/etc.algor/Makefile.inc 2009/12/14 01:12:05 1.4
@@ -1,9 +1,13 @@ | @@ -1,9 +1,13 @@ | |||
1 | # $NetBSD: Makefile.inc,v 1.3 2007/07/24 10:49:23 pavel Exp $ | 1 | # $NetBSD: Makefile.inc,v 1.4 2009/12/14 01:12:05 matt Exp $ | |
2 | # | 2 | # | |
3 | # etc.algor/Makefile.inc -- algor-specific etc Makefile targets | 3 | # etc.algor/Makefile.inc -- algor-specific etc Makefile targets | |
4 | # | 4 | # | |
5 | 5 | |||
6 | # If you change the list of distributed kernels, don't forget | 6 | # If you change the list of distributed kernels, don't forget | |
7 | # to update the release documentation in distrib/notes/common/contents | 7 | # to update the release documentation in distrib/notes/common/contents | |
8 | 8 | |||
9 | .if ${MACHINE_ARCH} == "mipsel" | |||
9 | KERNEL_SETS= P4032 P5064 | 10 | KERNEL_SETS= P4032 P5064 | |
11 | .else | |||
12 | KERNEL_SETS= P5064-64 | |||
13 | .endif |
--- src/etc/etc.evbmips/Makefile.inc 2007/07/24 10:49:25 1.11
+++ src/etc/etc.evbmips/Makefile.inc 2009/12/14 01:12:05 1.12
@@ -1,19 +1,24 @@ | @@ -1,19 +1,24 @@ | |||
1 | # $NetBSD: Makefile.inc,v 1.11 2007/07/24 10:49:25 pavel Exp $ | 1 | # $NetBSD: Makefile.inc,v 1.12 2009/12/14 01:12:05 matt Exp $ | |
2 | # | 2 | # | |
3 | # etc.evbmips/Makefile.inc -- evbmips-specific etc Makefile targets | 3 | # etc.evbmips/Makefile.inc -- evbmips-specific etc Makefile targets | |
4 | # | 4 | # | |
5 | 5 | |||
6 | # If you change the list of distributed kernels, don't forget | 6 | # If you change the list of distributed kernels, don't forget | |
7 | # to update the release documentation in distrib/notes/common/contents | 7 | # to update the release documentation in distrib/notes/common/contents | |
8 | 8 | |||
9 | KERNEL_SUFFIXES= srec | 9 | KERNEL_SUFFIXES= srec | |
10 | 10 | |||
11 | .if ${MACHINE_ARCH} == "mipsel" | 11 | .if ${MACHINE_ARCH} == "mipsel" | |
12 | KERNEL_SETS= ALCHEMY DBAU1500 DBAU1550 MALTA MTX-1 OMSAL400 | 12 | KERNEL_SETS= ALCHEMY DBAU1500 DBAU1550 MALTA MTX-1 OMSAL400 | |
13 | BUILD_KERNELS= INSTALL_OMSAL400 | 13 | BUILD_KERNELS= INSTALL_OMSAL400 INSTALL_MALTA | |
14 | ||||
15 | .elif ${MACHINE_ARCH} == "mips64eb" || ${MACHINE_ARCH} == "mips64el" | |||
16 | KERNEL_SETS= MALTA32 MALTA64 | |||
17 | BUILD_KERNELS= INSTALL_MALTA32 INSTALL_MALTA64 | |||
14 | 18 | |||
15 | .else | 19 | .else | |
16 | KERNEL_SETS= ALCHEMY DBAU1500 DBAU1550 MALTA | 20 | KERNEL_SETS= ALCHEMY DBAU1500 DBAU1550 MALTA | |
21 | BUILD_KERNELS= INSTALL_OMSAL400 INSTALL_MALTA | |||
17 | 22 | |||
18 | .endif | 23 | .endif | |
19 | 24 |
--- src/etc/etc.pmax/Makefile.inc 2007/07/24 10:49:27 1.16
+++ src/etc/etc.pmax/Makefile.inc 2009/12/14 01:12:05 1.17
@@ -1,15 +1,25 @@ | @@ -1,15 +1,25 @@ | |||
1 | # $NetBSD: Makefile.inc,v 1.16 2007/07/24 10:49:27 pavel Exp $ | 1 | # $NetBSD: Makefile.inc,v 1.17 2009/12/14 01:12:05 matt Exp $ | |
2 | # | 2 | # | |
3 | # etc.pmax/Makefile.inc -- pmax-specific etc Makefile targets | 3 | # etc.pmax/Makefile.inc -- pmax-specific etc Makefile targets | |
4 | # | 4 | # | |
5 | 5 | |||
6 | # If you change the list of distributed kernels, don't forget | 6 | # If you change the list of distributed kernels, don't forget | |
7 | # to update the release documentation in distrib/notes/common/contents | 7 | # to update the release documentation in distrib/notes/common/contents | |
8 | 8 | |||
9 | .if ${MACHINE_ARCH} == "mipsel" | |||
10 | ||||
9 | KERNEL_SETS= GENERIC | 11 | KERNEL_SETS= GENERIC | |
10 | 12 | |||
11 | BUILD_KERNELS= INSTALL RAMDISK | 13 | BUILD_KERNELS= INSTALL RAMDISK | |
12 | 14 | |||
15 | .else | |||
16 | ||||
17 | KERNEL_SETS= GENERIC64 | |||
18 | ||||
19 | BUILD_KERNELS= INSTALL64 RAMDISK64 | |||
20 | ||||
21 | .endif | |||
22 | ||||
13 | INSTALLATION_DIRS+= installation/diskimage \ | 23 | INSTALLATION_DIRS+= installation/diskimage \ | |
14 | installation/netboot \ | 24 | installation/netboot \ | |
15 | installation/miniroot | 25 | installation/miniroot |
--- src/etc/etc.sbmips/Makefile.inc 2007/07/24 10:49:27 1.3
+++ src/etc/etc.sbmips/Makefile.inc 2009/12/14 01:12:05 1.4
@@ -1,9 +1,9 @@ | @@ -1,9 +1,9 @@ | |||
1 | # $NetBSD: Makefile.inc,v 1.3 2007/07/24 10:49:27 pavel Exp $ | 1 | # $NetBSD: Makefile.inc,v 1.4 2009/12/14 01:12:05 matt Exp $ | |
2 | # | 2 | # | |
3 | # etc.sbmips/Makefile.inc -- sbmips-specific etc Makefile targets | 3 | # etc.sbmips/Makefile.inc -- sbmips-specific etc Makefile targets | |
4 | # | 4 | # | |
5 | 5 | |||
6 | # If you change the list of distributed kernels, don't forget | 6 | # If you change the list of distributed kernels, don't forget | |
7 | # to update the release documentation in distrib/notes/common/contents | 7 | # to update the release documentation in distrib/notes/common/contents | |
8 | 8 | |||
9 | KERNEL_SETS= GENERIC | 9 | KERNEL_SETS= GENERIC${MACHINE_ARCH:S/mips//:C/e[lb]//} |
--- src/etc/etc.sgimips/Makefile.inc 2008/10/19 22:05:20 1.18
+++ src/etc/etc.sgimips/Makefile.inc 2009/12/14 01:12:05 1.19
@@ -1,34 +1,43 @@ | @@ -1,34 +1,43 @@ | |||
1 | # $NetBSD: Makefile.inc,v 1.18 2008/10/19 22:05:20 apb Exp $ | 1 | # $NetBSD: Makefile.inc,v 1.19 2009/12/14 01:12:05 matt Exp $ | |
2 | # | 2 | # | |
3 | # etc.sgimips/Makefile.inc -- sgimips-specific etc Makefile targets | 3 | # etc.sgimips/Makefile.inc -- sgimips-specific etc Makefile targets | |
4 | # | 4 | # | |
5 | 5 | |||
6 | # If you change the list of distributed kernels, don't forget | 6 | # If you change the list of distributed kernels, don't forget | |
7 | # to update the release documentation in distrib/notes/common/contents | 7 | # to update the release documentation in distrib/notes/common/contents | |
8 | 8 | |||
9 | KERNEL_SETS= GENERIC32_IP12 GENERIC32_IP2x GENERIC32_IP3x | 9 | .if ${MACHINE_ARCH} == "mipseb" | |
10 | SFX=32 | |||
11 | .else | |||
12 | SFX=64 | |||
13 | .endif | |||
14 | ||||
15 | KERNEL_SETS= GENERIC${SFX}_IP2x GENERIC${SFX}_IP3x | |||
16 | .if ${MACHINE_ARCH} == "mipseb" | |||
17 | KERNEL_SETS= GENERIC32_IP12 | |||
10 | KERNEL_SUFFIXES= ecoff | 18 | KERNEL_SUFFIXES= ecoff | |
19 | .endif | |||
11 | 20 | |||
12 | #EXTRA_KERNELS= NETBOOT | 21 | #EXTRA_KERNELS= NETBOOT | |
13 | 22 | |||
14 | BUILD_KERNELS= INSTALL32_IP2x INSTALL32_IP3x | 23 | BUILD_KERNELS= INSTALL${SFX}_IP2x INSTALL${SFX}_IP3x | |
15 | 24 | |||
16 | INSTALLATION_DIRS+= installation/netboot \ | 25 | INSTALLATION_DIRS+= installation/netboot \ | |
17 | installation/diskimage | 26 | installation/diskimage | |
18 | 27 | |||
19 | iso-image-md-pre: | 28 | iso-image-md-pre: | |
20 | cp ${RELEASEDIR}/${RELEASEMACHINEDIR}/binary/kernel/netbsd-INSTALL32_IP2x.gz ${RELEASEDIR}/ip2x | 29 | cp ${RELEASEDIR}/${RELEASEMACHINEDIR}/binary/kernel/netbsd-INSTALL${SFX}_IP2x.gz ${RELEASEDIR}/ip2x | |
21 | cp ${RELEASEDIR}/${RELEASEMACHINEDIR}/binary/kernel/netbsd-INSTALL32_IP3x.gz ${RELEASEDIR}/ip3x | 30 | cp ${RELEASEDIR}/${RELEASEMACHINEDIR}/binary/kernel/netbsd-INSTALL${SFX}_IP3x.gz ${RELEASEDIR}/ip3x | |
22 | echo "ip2x/=${RELEASEDIR}/ip2x/" >> ${CDROM.pathlist} | 31 | echo "ip2x/=${RELEASEDIR}/ip2x/" >> ${CDROM.pathlist} | |
23 | echo "ip3x/=${RELEASEDIR}/ip3x/" >> ${CDROM.pathlist} | 32 | echo "ip3x/=${RELEASEDIR}/ip3x/" >> ${CDROM.pathlist} | |
24 | 33 | |||
25 | SGI.image= ${RELEASEDIR}/${RELEASEMACHINEDIR}/installation/cdrom/netbsd-sgimips.img | 34 | SGI.image= ${RELEASEDIR}/${RELEASEMACHINEDIR}/installation/cdrom/netbsd-sgimips.img | |
26 | 35 | |||
27 | iso-image-md-post: | 36 | iso-image-md-post: | |
28 | @SEEK=`${TOOL_AWK} '/SGI_BOOT_BLOCK_SIZE_VOLHDR/{print $$3}' \ | 37 | @SEEK=`${TOOL_AWK} '/SGI_BOOT_BLOCK_SIZE_VOLHDR/{print $$3}' \ | |
29 | ${DESTDIR}/usr/include/sys/bootblock.h` ; \ | 38 | ${DESTDIR}/usr/include/sys/bootblock.h` ; \ | |
30 | EST=`ls -l ${CDROM.image} \ | 39 | EST=`ls -l ${CDROM.image} \ | |
31 | | ${TOOL_AWK} '{ s += $$5 } \ | 40 | | ${TOOL_AWK} '{ s += $$5 } \ | |
32 | END { print int(('$${SEEK}'*512+s)/1024/1024/32+1)*32 \ | 41 | END { print int(('$${SEEK}'*512+s)/1024/1024/32+1)*32 \ | |
33 | }'` ; \ | 42 | }'` ; \ | |
34 | echo "Estimated image size: $${EST} MB"; \ | 43 | echo "Estimated image size: $${EST} MB"; \ |