Make everything compile again. All platforms compile on i386 now.

This commit is contained in:
christos 2003-01-11 19:44:04 +00:00
parent d5c5392912
commit 774782c3bc
33 changed files with 254 additions and 149 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.1 2002/05/02 23:02:50 bjh21 Exp $ # $NetBSD: Makefile,v 1.2 2003/01/11 19:44:07 christos Exp $
# #
# Makefile for acorn32 # Makefile for acorn32
# #
@ -7,7 +7,7 @@
SRCS= menu_defs.c msg_defs.c main.c install.c upgrade.c \ SRCS= menu_defs.c msg_defs.c main.c install.c upgrade.c \
txtwalk.c run.c factor.c net.c disks.c disks_lfs.c util.c geom.c \ txtwalk.c run.c factor.c net.c disks.c disks_lfs.c util.c geom.c \
label.c target.c md.c aout2elf.c label.c target.c md.c aout2elf.c savenewlabel.c sizemultname.c
md.o: menu_defs.h msg_defs.h md.o: menu_defs.h msg_defs.h

View File

@ -1,4 +1,4 @@
/* $NetBSD: md.c,v 1.4 2002/12/05 01:17:19 fvdl Exp $ */ /* $NetBSD: md.c,v 1.5 2003/01/11 19:44:07 christos Exp $ */
/* /*
* Copyright 1997 Piermont Information Systems Inc. * Copyright 1997 Piermont Information Systems Inc.
@ -46,6 +46,7 @@
#include <util.h> #include <util.h>
#include <sys/types.h> #include <sys/types.h>
#include <sys/disklabel.h> #include <sys/disklabel.h>
#include <sys/disklabel_acorn.h>
#include <sys/ioctl.h> #include <sys/ioctl.h>
#include <sys/param.h> #include <sys/param.h>
#include "defs.h" #include "defs.h"

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.3 2002/04/02 17:11:20 thorpej Exp $ # $NetBSD: Makefile,v 1.4 2003/01/11 19:44:07 christos Exp $
# #
# Makefile for acorn32 # Makefile for acorn32
# #
@ -7,7 +7,7 @@
SRCS= menu_defs.c msg_defs.c main.c install.c upgrade.c \ SRCS= menu_defs.c msg_defs.c main.c install.c upgrade.c \
txtwalk.c run.c factor.c net.c disks.c disks_lfs.c util.c geom.c \ txtwalk.c run.c factor.c net.c disks.c disks_lfs.c util.c geom.c \
label.c target.c md.c aout2elf.c label.c target.c md.c aout2elf.c savenewlabel.c sizemultname.c
md.o: menu_defs.h msg_defs.h md.o: menu_defs.h msg_defs.h

View File

@ -1,4 +1,4 @@
/* $NetBSD: md.c,v 1.5 2002/12/05 01:17:20 fvdl Exp $ */ /* $NetBSD: md.c,v 1.6 2003/01/11 19:44:07 christos Exp $ */
/* /*
* Copyright 1997 Piermont Information Systems Inc. * Copyright 1997 Piermont Information Systems Inc.
@ -46,6 +46,7 @@
#include <util.h> #include <util.h>
#include <sys/types.h> #include <sys/types.h>
#include <sys/disklabel.h> #include <sys/disklabel.h>
#include <sys/disklabel_acorn.h>
#include <sys/ioctl.h> #include <sys/ioctl.h>
#include <sys/param.h> #include <sys/param.h>
#include "defs.h" #include "defs.h"

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.2 2001/01/14 02:38:16 mrg Exp $ # $NetBSD: Makefile,v 1.3 2003/01/11 19:44:08 christos Exp $
# #
# Makefile for alpha # Makefile for alpha
# #
@ -7,7 +7,7 @@
SRCS= menu_defs.c msg_defs.c main.c install.c upgrade.c \ SRCS= menu_defs.c msg_defs.c main.c install.c upgrade.c \
txtwalk.c run.c factor.c net.c disks.c disks_lfs.c util.c geom.c \ txtwalk.c run.c factor.c net.c disks.c disks_lfs.c util.c geom.c \
label.c target.c md.c label.c target.c md.c savenewlabel.c sizemultname.c
md.o: menu_defs.h msg_defs.h md.o: menu_defs.h msg_defs.h

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.2 2001/01/14 02:38:17 mrg Exp $ # $NetBSD: Makefile,v 1.3 2003/01/11 19:44:08 christos Exp $
# #
# Makefile for i386 # Makefile for i386
# #
@ -7,7 +7,7 @@
SRCS= menu_defs.c msg_defs.c main.c install.c upgrade.c \ SRCS= menu_defs.c msg_defs.c main.c install.c upgrade.c \
txtwalk.c run.c factor.c net.c disks.c disks_lfs.c util.c geom.c \ txtwalk.c run.c factor.c net.c disks.c disks_lfs.c util.c geom.c \
label.c target.c md.c label.c target.c md.c sizemultname.c
fdisk.o md.o: menu_defs.h msg_defs.h fdisk.o md.o: menu_defs.h msg_defs.h

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.2 2002/10/17 02:05:37 lukem Exp $ # $NetBSD: Makefile,v 1.3 2003/01/11 19:44:08 christos Exp $
# #
# Makefile for arc # Makefile for arc
# #
@ -7,7 +7,7 @@
SRCS= menu_defs.c msg_defs.c main.c install.c upgrade.c \ SRCS= menu_defs.c msg_defs.c main.c install.c upgrade.c \
txtwalk.c run.c factor.c net.c disks.c disks_lfs.c util.c geom.c \ txtwalk.c run.c factor.c net.c disks.c disks_lfs.c util.c geom.c \
label.c target.c md.c mbr.c label.c target.c md.c mbr.c sizemultname.c
fdisk.o md.o: menu_defs.h msg_defs.h fdisk.o md.o: menu_defs.h msg_defs.h

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.3 2002/04/25 20:16:08 leo Exp $ # $NetBSD: Makefile,v 1.4 2003/01/11 19:44:08 christos Exp $
# #
# Makefile for atari # Makefile for atari
# #
@ -7,7 +7,7 @@
SRCS= menu_defs.c msg_defs.c main.c install.c upgrade.c \ SRCS= menu_defs.c msg_defs.c main.c install.c upgrade.c \
txtwalk.c run.c factor.c net.c disks.c disks_lfs.c util.c geom.c \ txtwalk.c run.c factor.c net.c disks.c disks_lfs.c util.c geom.c \
label.c target.c md.c aout2elf.c label.c target.c md.c aout2elf.c savenewlabel.c sizemultname.c
fdisk.o md.o: menu_defs.h msg_defs.h fdisk.o md.o: menu_defs.h msg_defs.h

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.3 2001/01/14 02:38:18 mrg Exp $ # $NetBSD: Makefile,v 1.4 2003/01/11 19:44:09 christos Exp $
# #
# Makefile for bebox # Makefile for bebox
# #
@ -7,7 +7,7 @@
SRCS= menu_defs.c msg_defs.c main.c install.c upgrade.c \ SRCS= menu_defs.c msg_defs.c main.c install.c upgrade.c \
txtwalk.c run.c factor.c net.c disks.c disks_lfs.c util.c geom.c \ txtwalk.c run.c factor.c net.c disks.c disks_lfs.c util.c geom.c \
label.c target.c md.c mbr.c label.c target.c md.c mbr.c sizemultname.c
fdisk.o md.o: menu_defs.h msg_defs.h fdisk.o md.o: menu_defs.h msg_defs.h

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.2 2002/04/11 16:34:00 skrll Exp $ # $NetBSD: Makefile,v 1.3 2003/01/11 19:44:09 christos Exp $
# #
# Makefile for cats # Makefile for cats
# #
@ -7,7 +7,7 @@
SRCS= menu_defs.c msg_defs.c main.c install.c upgrade.c \ SRCS= menu_defs.c msg_defs.c main.c install.c upgrade.c \
txtwalk.c run.c factor.c net.c disks.c disks_lfs.c util.c geom.c \ txtwalk.c run.c factor.c net.c disks.c disks_lfs.c util.c geom.c \
label.c target.c md.c label.c target.c md.c savenewlabel.c sizemultname.c
SRCS+= aout2elf.c SRCS+= aout2elf.c
md.o: menu_defs.h msg_defs.h md.o: menu_defs.h msg_defs.h

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.1 2002/04/13 01:47:52 thorpej Exp $ # $NetBSD: Makefile,v 1.2 2003/01/11 19:44:10 christos Exp $
# #
# Makefile for evbarm # Makefile for evbarm
# #
@ -7,7 +7,7 @@
SRCS= menu_defs.c msg_defs.c main.c install.c upgrade.c \ SRCS= menu_defs.c msg_defs.c main.c install.c upgrade.c \
txtwalk.c run.c factor.c net.c disks.c disks_lfs.c util.c geom.c \ txtwalk.c run.c factor.c net.c disks.c disks_lfs.c util.c geom.c \
label.c target.c md.c aout2elf.c label.c target.c md.c aout2elf.c savenewlabel.c sizemultname.c
md.o: menu_defs.h msg_defs.h md.o: menu_defs.h msg_defs.h

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.1 2002/12/09 14:13:13 scw Exp $ # $NetBSD: Makefile,v 1.2 2003/01/11 19:44:10 christos Exp $
# #
# Makefile for evbppc (walnut-specific at this time) # Makefile for evbppc (walnut-specific at this time)
# #
@ -7,7 +7,7 @@
SRCS= menu_defs.c msg_defs.c main.c install.c upgrade.c \ SRCS= menu_defs.c msg_defs.c main.c install.c upgrade.c \
txtwalk.c run.c factor.c net.c disks.c disks_lfs.c util.c geom.c \ txtwalk.c run.c factor.c net.c disks.c disks_lfs.c util.c geom.c \
label.c target.c md.c mbr.c label.c target.c md.c mbr.c sizemultname.c
fdisk.o md.o: menu_defs.h msg_defs.h fdisk.o md.o: menu_defs.h msg_defs.h

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.1 2002/02/10 01:14:05 gmcgarry Exp $ # $NetBSD: Makefile,v 1.2 2003/01/11 19:44:10 christos Exp $
# #
# Makefile for hp300 # Makefile for hp300
# #
@ -7,7 +7,7 @@
SRCS= menu_defs.c msg_defs.c main.c install.c upgrade.c \ SRCS= menu_defs.c msg_defs.c main.c install.c upgrade.c \
txtwalk.c run.c factor.c net.c disks.c disks_lfs.c util.c geom.c \ txtwalk.c run.c factor.c net.c disks.c disks_lfs.c util.c geom.c \
label.c target.c md.c label.c target.c md.c savenewlabel.c sizemultname.c
fdisk.o md.o: menu_defs.h msg_defs.h fdisk.o md.o: menu_defs.h msg_defs.h

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.4 2002/10/17 02:05:38 lukem Exp $ # $NetBSD: Makefile,v 1.5 2003/01/11 19:44:11 christos Exp $
# #
# Makefile for macppc # Makefile for macppc
# #
@ -7,7 +7,7 @@
SRCS= menu_defs.c msg_defs.c main.c install.c upgrade.c \ SRCS= menu_defs.c msg_defs.c main.c install.c upgrade.c \
txtwalk.c run.c factor.c net.c disks.c disks_lfs.c util.c geom.c \ txtwalk.c run.c factor.c net.c disks.c disks_lfs.c util.c geom.c \
label.c target.c md.c label.c target.c md.c savenewlabel.c sizemultname.c
md.o: menu_defs.h msg_defs.h md.o: menu_defs.h msg_defs.h

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.1 2001/02/19 07:38:44 wdk Exp $ # $NetBSD: Makefile,v 1.2 2003/01/11 19:44:11 christos Exp $
# #
# Makefile for mipsco # Makefile for mipsco
# #
@ -7,7 +7,7 @@
SRCS= menu_defs.c msg_defs.c main.c install.c upgrade.c \ SRCS= menu_defs.c msg_defs.c main.c install.c upgrade.c \
txtwalk.c run.c factor.c net.c disks.c disks_lfs.c util.c geom.c \ txtwalk.c run.c factor.c net.c disks.c disks_lfs.c util.c geom.c \
label.c target.c md.c label.c target.c md.c savenewlabel.c sizemultname.c
md.o: menu_defs.h msg_defs.h md.o: menu_defs.h msg_defs.h

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.1 2002/03/24 22:04:04 scw Exp $ # $NetBSD: Makefile,v 1.2 2003/01/11 19:44:11 christos Exp $
# #
# Makefile for mvme68k # Makefile for mvme68k
# #
@ -7,7 +7,7 @@
SRCS= menu_defs.c msg_defs.c main.c install.c upgrade.c \ SRCS= menu_defs.c msg_defs.c main.c install.c upgrade.c \
txtwalk.c run.c factor.c net.c disks.c disks_lfs.c util.c geom.c \ txtwalk.c run.c factor.c net.c disks.c disks_lfs.c util.c geom.c \
label.c target.c md.c label.c target.c md.c savenewlabel.c sizemultname.c
fdisk.o md.o: menu_defs.h msg_defs.h fdisk.o md.o: menu_defs.h msg_defs.h

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.3 2002/03/16 17:26:55 tsutsui Exp $ # $NetBSD: Makefile,v 1.4 2003/01/11 19:44:12 christos Exp $
# #
# Makefile for news68k # Makefile for news68k
# #
@ -7,7 +7,7 @@
SRCS= menu_defs.c msg_defs.c main.c install.c upgrade.c \ SRCS= menu_defs.c msg_defs.c main.c install.c upgrade.c \
txtwalk.c run.c factor.c net.c disks.c disks_lfs.c util.c geom.c \ txtwalk.c run.c factor.c net.c disks.c disks_lfs.c util.c geom.c \
label.c target.c md.c label.c target.c md.c savenewlabel.c sizemultname.c
SRCS+= aout2elf.c SRCS+= aout2elf.c
md.o: menu_defs.h msg_defs.h md.o: menu_defs.h msg_defs.h

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.1 2002/03/16 15:47:56 tsutsui Exp $ # $NetBSD: Makefile,v 1.2 2003/01/11 19:44:12 christos Exp $
# #
# Makefile for newsmips # Makefile for newsmips
# #
@ -7,7 +7,7 @@
SRCS= menu_defs.c msg_defs.c main.c install.c upgrade.c \ SRCS= menu_defs.c msg_defs.c main.c install.c upgrade.c \
txtwalk.c run.c factor.c net.c disks.c disks_lfs.c util.c geom.c \ txtwalk.c run.c factor.c net.c disks.c disks_lfs.c util.c geom.c \
label.c target.c md.c label.c target.c md.c savenewlabel.c sizemultname.c
md.o: menu_defs.h msg_defs.h md.o: menu_defs.h msg_defs.h

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.7 2001/01/14 02:38:21 mrg Exp $ # $NetBSD: Makefile,v 1.8 2003/01/11 19:44:12 christos Exp $
# #
# Makefile for pc532 # Makefile for pc532
# #
@ -7,7 +7,7 @@
SRCS= menu_defs.c msg_defs.c main.c install.c upgrade.c \ SRCS= menu_defs.c msg_defs.c main.c install.c upgrade.c \
txtwalk.c run.c factor.c net.c disks.c disks_lfs.c util.c geom.c \ txtwalk.c run.c factor.c net.c disks.c disks_lfs.c util.c geom.c \
label.c target.c md.c label.c target.c md.c savenewlabel.c sizemultname.c
md.o: menu_defs.h msg_defs.h md.o: menu_defs.h msg_defs.h

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.4 2001/01/14 02:38:21 mrg Exp $ # $NetBSD: Makefile,v 1.5 2003/01/11 19:44:12 christos Exp $
# #
# Makefile for pmax # Makefile for pmax
# #
@ -7,7 +7,7 @@
SRCS= menu_defs.c msg_defs.c main.c install.c upgrade.c \ SRCS= menu_defs.c msg_defs.c main.c install.c upgrade.c \
txtwalk.c run.c factor.c net.c disks.c disks_lfs.c util.c geom.c \ txtwalk.c run.c factor.c net.c disks.c disks_lfs.c util.c geom.c \
label.c target.c md.c label.c target.c md.c savenewlabel.c sizemultname.c
md.o: menu_defs.h msg_defs.h md.o: menu_defs.h msg_defs.h

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.1 2001/01/16 16:54:01 nonaka Exp $ # $NetBSD: Makefile,v 1.2 2003/01/11 19:44:13 christos Exp $
# #
# Makefile for prep # Makefile for prep
# #
@ -7,7 +7,7 @@
SRCS= menu_defs.c msg_defs.c main.c install.c upgrade.c \ SRCS= menu_defs.c msg_defs.c main.c install.c upgrade.c \
txtwalk.c run.c factor.c net.c disks.c disks_lfs.c util.c geom.c \ txtwalk.c run.c factor.c net.c disks.c disks_lfs.c util.c geom.c \
label.c target.c md.c mbr.c label.c target.c md.c mbr.c sizemultname.c
fdisk.o md.o: menu_defs.h msg_defs.h fdisk.o md.o: menu_defs.h msg_defs.h

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.1 2001/10/24 19:43:40 briggs Exp $ # $NetBSD: Makefile,v 1.2 2003/01/11 19:44:13 christos Exp $
# #
# Makefile for bebox # Makefile for bebox
# #
@ -7,7 +7,7 @@
SRCS= menu_defs.c msg_defs.c main.c install.c upgrade.c \ SRCS= menu_defs.c msg_defs.c main.c install.c upgrade.c \
txtwalk.c run.c factor.c net.c disks.c disks_lfs.c util.c geom.c \ txtwalk.c run.c factor.c net.c disks.c disks_lfs.c util.c geom.c \
label.c target.c md.c mbr.c label.c target.c md.c mbr.c sizemultname.c
fdisk.o md.o: menu_defs.h msg_defs.h fdisk.o md.o: menu_defs.h msg_defs.h

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.1 2001/11/20 15:53:22 soren Exp $ # $NetBSD: Makefile,v 1.2 2003/01/11 19:44:13 christos Exp $
# #
# Makefile for sgimips # Makefile for sgimips
# #
@ -7,7 +7,7 @@
SRCS= menu_defs.c msg_defs.c main.c install.c upgrade.c \ SRCS= menu_defs.c msg_defs.c main.c install.c upgrade.c \
txtwalk.c run.c factor.c net.c disks.c disks_lfs.c util.c geom.c \ txtwalk.c run.c factor.c net.c disks.c disks_lfs.c util.c geom.c \
label.c target.c md.c label.c target.c md.c savenewlabel.c sizemultname.c
md.o: menu_defs.h msg_defs.h md.o: menu_defs.h msg_defs.h

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.2 2002/04/02 17:02:54 thorpej Exp $ # $NetBSD: Makefile,v 1.3 2003/01/11 19:44:14 christos Exp $
# #
# Makefile for arm32 # Makefile for arm32
# #
@ -7,7 +7,7 @@
SRCS= menu_defs.c msg_defs.c main.c install.c upgrade.c \ SRCS= menu_defs.c msg_defs.c main.c install.c upgrade.c \
txtwalk.c run.c factor.c net.c disks.c disks_lfs.c util.c geom.c \ txtwalk.c run.c factor.c net.c disks.c disks_lfs.c util.c geom.c \
label.c target.c md.c aout2elf.c label.c target.c md.c aout2elf.c savenewlabel.c sizemultname.c
md.o: menu_defs.h msg_defs.h md.o: menu_defs.h msg_defs.h

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.3 2002/02/03 22:21:56 skrll Exp $ # $NetBSD: Makefile,v 1.4 2003/01/11 19:44:14 christos Exp $
# #
# Makefile for sparc # Makefile for sparc
# #
@ -7,7 +7,7 @@
SRCS= menu_defs.c msg_defs.c main.c install.c upgrade.c \ SRCS= menu_defs.c msg_defs.c main.c install.c upgrade.c \
txtwalk.c run.c factor.c net.c disks.c disks_lfs.c util.c geom.c \ txtwalk.c run.c factor.c net.c disks.c disks_lfs.c util.c geom.c \
label.c target.c md.c aout2elf.c label.c target.c md.c aout2elf.c savenewlabel.c sizemultname.c
md.o: menu_defs.h msg_defs.h md.o: menu_defs.h msg_defs.h

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.2 2001/01/14 02:38:22 mrg Exp $ # $NetBSD: Makefile,v 1.3 2003/01/11 19:44:14 christos Exp $
# #
# Makefile for sparc64 # Makefile for sparc64
# #
@ -7,7 +7,7 @@
SRCS= menu_defs.c msg_defs.c main.c install.c upgrade.c \ SRCS= menu_defs.c msg_defs.c main.c install.c upgrade.c \
txtwalk.c run.c factor.c net.c disks.c disks_lfs.c util.c geom.c \ txtwalk.c run.c factor.c net.c disks.c disks_lfs.c util.c geom.c \
label.c target.c md.c label.c target.c md.c savenewlabel.c sizemultname.c
md.o: menu_defs.h msg_defs.h md.o: menu_defs.h msg_defs.h

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.3 2002/03/30 21:55:11 matt Exp $ # $NetBSD: Makefile,v 1.4 2003/01/11 19:44:15 christos Exp $
# #
# Makefile for vax # Makefile for vax
# #
@ -7,7 +7,7 @@
SRCS= menu_defs.c msg_defs.c main.c install.c upgrade.c \ SRCS= menu_defs.c msg_defs.c main.c install.c upgrade.c \
txtwalk.c run.c factor.c net.c disks.c disks_lfs.c util.c geom.c \ txtwalk.c run.c factor.c net.c disks.c disks_lfs.c util.c geom.c \
label.c target.c md.c aout2elf.c label.c target.c md.c aout2elf.c savenewlabel.c sizemultname.c
md.o: menu_defs.h msg_defs.h md.o: menu_defs.h msg_defs.h

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.4 2002/10/17 02:05:39 lukem Exp $ # $NetBSD: Makefile,v 1.5 2003/01/11 19:44:15 christos Exp $
# #
# Makefile for x68k # Makefile for x68k
# #
@ -7,7 +7,7 @@
SRCS= menu_defs.c msg_defs.c main.c install.c upgrade.c \ SRCS= menu_defs.c msg_defs.c main.c install.c upgrade.c \
txtwalk.c run.c factor.c net.c disks.c disks_lfs.c util.c geom.c \ txtwalk.c run.c factor.c net.c disks.c disks_lfs.c util.c geom.c \
label.c target.c md.c label.c target.c md.c savenewlabel.c sizemultname.c
md.o: menu_defs.h msg_defs.h md.o: menu_defs.h msg_defs.h

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.1 2002/12/05 02:05:56 fvdl Exp $ # $NetBSD: Makefile,v 1.2 2003/01/11 19:44:16 christos Exp $
# #
# Makefile for x86_64 # Makefile for x86_64
# #
@ -7,7 +7,7 @@
SRCS= menu_defs.c msg_defs.c main.c install.c upgrade.c \ SRCS= menu_defs.c msg_defs.c main.c install.c upgrade.c \
txtwalk.c run.c factor.c net.c disks.c disks_lfs.c util.c geom.c \ txtwalk.c run.c factor.c net.c disks.c disks_lfs.c util.c geom.c \
label.c target.c md.c mbr.c aout2elf.c label.c target.c md.c mbr.c aout2elf.c sizemultname.c
fdisk.o md.o: menu_defs.h msg_defs.h fdisk.o md.o: menu_defs.h msg_defs.h

View File

@ -1,4 +1,4 @@
/* $NetBSD: label.c,v 1.24 2003/01/10 20:00:28 christos Exp $ */ /* $NetBSD: label.c,v 1.25 2003/01/11 19:44:04 christos Exp $ */
/* /*
* Copyright 1997 Jonathan Stone * Copyright 1997 Jonathan Stone
@ -36,7 +36,7 @@
#include <sys/cdefs.h> #include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint) #if defined(LIBC_SCCS) && !defined(lint)
__RCSID("$NetBSD: label.c,v 1.24 2003/01/10 20:00:28 christos Exp $"); __RCSID("$NetBSD: label.c,v 1.25 2003/01/11 19:44:04 christos Exp $");
#endif #endif
#include <sys/types.h> #include <sys/types.h>
@ -198,61 +198,6 @@ emptylabel(lp)
} }
} }
#ifdef notdef
int
/*ARGSUSED*/
savenewlabel(lp, nparts)
partinfo *lp;
int nparts;
{
FILE *f;
int i;
#ifdef DEBUG
f = fopen("/tmp/disktab", "a");
#else
/* Create the disktab.preinstall */
f = fopen("/etc/disktab", "w");
#endif
if (logging)
(void)fprintf(logfp, "Creating disklabel %s\n", bsddiskname);
scripting_fprintf(NULL, "cat <<EOF >>/etc/disktab\n");
if (f == NULL) {
endwin();
(void)fprintf(stderr, "Could not open /etc/disktab");
if (logging)
(void)fprintf(logfp,
"Failed to open /etc/diskabel for appending.\n");
exit (1);
}
scripting_fprintf(f, "%s|NetBSD installation generated:\\\n", bsddiskname);
scripting_fprintf(f, "\t:dt=%s:ty=winchester:\\\n", disktype);
scripting_fprintf(f, "\t:nc#%d:nt#%d:ns#%d:\\\n", dlcyl, dlhead, dlsec);
scripting_fprintf(f, "\t:sc#%d:su#%d:\\\n", dlhead*dlsec, dlsize);
scripting_fprintf(f, "\t:se#%d:%s\\\n", sectorsize, doessf);
for (i = 0; i < nparts; i++) {
scripting_fprintf(f, "\t:p%c#%d:o%c#%d:t%c=%s:",
'a'+i, bsdlabel[i].pi_size,
'a'+i, bsdlabel[i].pi_offset,
'a'+i, fstypenames[bsdlabel[i].pi_fstype]);
if (PI_ISBSDFS(&bsdlabel[i]))
scripting_fprintf (f, "b%c#%d:f%c#%d:ta=4.2BSD:",
'a'+i, bsdlabel[i].pi_bsize,
'a'+i, bsdlabel[i].pi_fsize);
if (i < nparts - 1)
scripting_fprintf(f, "\\\n");
else
scripting_fprintf(f, "\n");
}
fclose (f);
scripting_fprintf(NULL, "EOF\n");
fflush(NULL);
return(0);
}
#endif
/* /*
* XXX MSDOS? * XXX MSDOS?
*/ */

View File

@ -0,0 +1,107 @@
/* $NetBSD: savenewlabel.c,v 1.1 2003/01/11 19:44:05 christos Exp $ */
/*
* Copyright 1997 Jonathan Stone
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* 3. All advertising materials mentioning features or use of this software
* must display the following acknowledgement:
* This product includes software developed for the NetBSD Project by
* Jonathan Stone.
* 4. The name of Jonathan Stone may not be used to endorse
* or promote products derived from this software without specific prior
* written permission.
*
* THIS SOFTWARE IS PROVIDED BY JONATHAN STONE ``AS IS''
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL PIERMONT INFORMATION SYSTEMS INC. BE
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
* THE POSSIBILITY OF SUCH DAMAGE.
*
*/
#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
__RCSID("$NetBSD: savenewlabel.c,v 1.1 2003/01/11 19:44:05 christos Exp $");
#endif
#include <sys/types.h>
#include <errno.h>
#include <stdio.h>
#include <fcntl.h>
#include <util.h>
#include <unistd.h>
#include <sys/dkio.h>
#include <sys/ioctl.h>
#define FSTYPENAMES
#include <sys/disklabel.h>
#include "defs.h"
#include "msg_defs.h"
#include "menu_defs.h"
int
/*ARGSUSED*/
savenewlabel(lp, nparts)
partinfo *lp;
int nparts;
{
FILE *f;
int i;
#ifdef DEBUG
f = fopen("/tmp/disktab", "a");
#else
/* Create the disktab.preinstall */
f = fopen("/etc/disktab", "w");
#endif
if (logging)
(void)fprintf(logfp, "Creating disklabel %s\n", bsddiskname);
scripting_fprintf(NULL, "cat <<EOF >>/etc/disktab\n");
if (f == NULL) {
endwin();
(void)fprintf(stderr, "Could not open /etc/disktab");
if (logging)
(void)fprintf(logfp,
"Failed to open /etc/diskabel for appending.\n");
exit (1);
}
scripting_fprintf(f, "%s|NetBSD installation generated:\\\n", bsddiskname);
scripting_fprintf(f, "\t:dt=%s:ty=winchester:\\\n", disktype);
scripting_fprintf(f, "\t:nc#%d:nt#%d:ns#%d:\\\n", dlcyl, dlhead, dlsec);
scripting_fprintf(f, "\t:sc#%d:su#%d:\\\n", dlhead*dlsec, dlsize);
scripting_fprintf(f, "\t:se#%d:%s\\\n", sectorsize, doessf);
for (i = 0; i < nparts; i++) {
scripting_fprintf(f, "\t:p%c#%d:o%c#%d:t%c=%s:",
'a'+i, bsdlabel[i].pi_size,
'a'+i, bsdlabel[i].pi_offset,
'a'+i, fstypenames[bsdlabel[i].pi_fstype]);
if (PI_ISBSDFS(&bsdlabel[i]))
scripting_fprintf (f, "b%c#%d:f%c#%d:ta=4.2BSD:",
'a'+i, bsdlabel[i].pi_bsize,
'a'+i, bsdlabel[i].pi_fsize);
if (i < nparts - 1)
scripting_fprintf(f, "\\\n");
else
scripting_fprintf(f, "\n");
}
fclose (f);
scripting_fprintf(NULL, "EOF\n");
fflush(NULL);
return(0);
}

View File

@ -0,0 +1,86 @@
/* $NetBSD: sizemultname.c,v 1.1 2003/01/11 19:44:05 christos Exp $ */
/*
* Copyright 1997 Piermont Information Systems Inc.
* All rights reserved.
*
* Written by Philip A. Nelson for Piermont Information Systems Inc.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* 3. All advertising materials mentioning features or use of this software
* must display the following acknowledgement:
* This product includes software developed for the NetBSD Project by
* Piermont Information Systems Inc.
* 4. The name of Piermont Information Systems Inc. may not be used to endorse
* or promote products derived from this software without specific prior
* written permission.
*
* THIS SOFTWARE IS PROVIDED BY PIERMONT INFORMATION SYSTEMS INC. ``AS IS''
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL PIERMONT INFORMATION SYSTEMS INC. BE
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
* THE POSSIBILITY OF SUCH DAMAGE.
*
*/
#include <stdio.h>
#include <stdarg.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/param.h>
#include <sys/sysctl.h>
#include <sys/stat.h>
#include <curses.h>
#include <errno.h>
#include <fts.h>
#include <util.h>
#include "defs.h"
#include "md.h"
#include "msg_defs.h"
#include "menu_defs.h"
/*
* check that there is at least a / somewhere.
*/
int
check_partitions()
{
int i;
for (i = 0; i < getmaxpartitions(); i++)
if (PI_ISBSDFS(&bsdlabel[i]) &&
fsmount[i][0] == '/' && fsmount[i][1] == '\0')
return 1;
msg_display(MSG_no_root_fs);
getchar();
return 0;
}
void
set_sizemultname_cyl()
{
sizemult = dlcylsize;
multname = msg_string(MSG_cylname);
}
void
set_sizemultname_meg()
{
sizemult = MEG / sectorsize;
multname = msg_string(MSG_megname);
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: util.c,v 1.78 2003/01/10 20:00:28 christos Exp $ */ /* $NetBSD: util.c,v 1.79 2003/01/11 19:44:05 christos Exp $ */
/* /*
* Copyright 1997 Piermont Information Systems Inc. * Copyright 1997 Piermont Information Systems Inc.
@ -1156,41 +1156,6 @@ add_rc_conf(const char *fmt, ...)
va_end(ap); va_end(ap);
} }
#ifdef notdef
/*
* check that there is at least a / somewhere.
*/
int
check_partitions()
{
int i;
for (i = 0; i < getmaxpartitions(); i++)
if (PI_ISBSDFS(&bsdlabel[i]) &&
fsmount[i][0] == '/' && fsmount[i][1] == '\0')
return 1;
msg_display(MSG_no_root_fs);
getchar();
return 0;
}
void
set_sizemultname_cyl()
{
sizemult = dlcylsize;
multname = msg_string(MSG_cylname);
}
void
set_sizemultname_meg()
{
sizemult = MEG / sectorsize;
multname = msg_string(MSG_megname);
}
#endif
int int
check_lfs_progs() check_lfs_progs()
{ {