mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2025-01-11 00:41:30 +01:00
Eliminate PC-card installation floppy and add PC-card support for
generic installation floppy.
This commit is contained in:
parent
4c645f4852
commit
cb4ec7028b
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=55942
@ -25,15 +25,6 @@ BUILDNAME?=${BASE}-${DATE}-SNAP
|
||||
# If this is a -stable snapshot, then set
|
||||
#RELEASETAG=RELENG_3
|
||||
|
||||
PCCARD?=NO
|
||||
|
||||
.if ${PCCARD} == "YES"
|
||||
CARDDEV=card0 card1 card2 card3
|
||||
.else
|
||||
CARDDEV=
|
||||
.endif
|
||||
|
||||
# We now use GENERIC for the pccard kernel.
|
||||
KERNCONF=GENERIC
|
||||
|
||||
# If you are using a local CVS repository with components stored in
|
||||
@ -278,9 +269,6 @@ release.1:
|
||||
rm -rf ${_R}/*
|
||||
mkdir ${RD}
|
||||
mkdir ${RD}/floppies
|
||||
.if ${MACHINE_ARCH} == "i386"
|
||||
mkdir ${RD}/floppies/pccard
|
||||
.endif
|
||||
mkdir ${RD}/trees
|
||||
mkdir ${RD}/dists
|
||||
mkdir ${RD}/kernels
|
||||
@ -330,11 +318,7 @@ release.3:
|
||||
# Tcl and Perl APIs. See also /usr/src/usr.bin/vi/Makefile.
|
||||
release.4:
|
||||
@mkdir -p /stand
|
||||
.if ${PCCARD} == "YES"
|
||||
cp ${.CURDIR}/boot_crunch.conf.pccard ${.OBJDIR}/boot_crunch.conf
|
||||
.else
|
||||
cp ${.CURDIR}/boot_crunch.conf.generic ${.OBJDIR}/boot_crunch.conf
|
||||
.endif
|
||||
cd ${.CURDIR}/sysinstall && make obj depend all install
|
||||
rm -rf ${RD}/crunch
|
||||
mkdir -p ${RD}/crunch
|
||||
@ -464,14 +448,12 @@ release.8: write_mfs_in_kernel
|
||||
@cd ${.CURDIR} && $(MAKE) installCRUNCH CRUNCH=boot \
|
||||
DIR=${RD}/mfsfd/stand ZIP=false
|
||||
( cd ${RD}/trees/bin/dev && \
|
||||
ls console tty bpf0 ttyv0 ttyv1 ttyv2 ttyv3 null zero ${CARDDEV} | \
|
||||
ls console tty bpf0 ttyv0 ttyv1 ttyv2 ttyv3 null zero card0 card1 card2 card3 | \
|
||||
cpio -dump ${RD}/mfsfd/dev )
|
||||
( cd ${RD}/mfsfd/dev && rm -f *[swo]d*[bdefgh] )
|
||||
( cd ${RD}/mfsfd && mkdir -p bin sbin && ln -s /stand/sh bin/sh )
|
||||
cp /sbin/dhclient-script ${RD}/mfsfd/sbin
|
||||
.if ${PCCARD} == "YES"
|
||||
cp ${.CURDIR}/../etc/pccard.conf.sample ${RD}/mfsfd/etc/pccard.conf
|
||||
.endif
|
||||
cd ${RD}/trees/bin && ls ${BOOT1} | cpio -dump ${RD}/mfsfd/stand
|
||||
echo "nameserver 42/tcp name" > ${RD}/mfsfd/stand/etc/services
|
||||
echo "ftp 21/tcp" >> ${RD}/mfsfd/stand/etc/services
|
||||
@ -535,10 +517,6 @@ release.9:
|
||||
# Do our last minute floppies directory setup in a convenient place.
|
||||
@cp ${.CURDIR}/texts/FLOPPIES.TXT ${RD}/floppies/README.TXT
|
||||
@(cd ${RD}/floppies; md5 README.TXT *.flp > CHECKSUM.MD5)
|
||||
.if ${MACHINE_ARCH} == "i386"
|
||||
@cp ${.CURDIR}/texts/PCCARD.TXT ${RD}/floppies/pccard/README.TXT
|
||||
@(cd ${RD}/floppies/pccard; md5 *.flp > CHECKSUM.MD5)
|
||||
.endif
|
||||
touch release.9
|
||||
|
||||
#
|
||||
@ -648,11 +626,6 @@ doRELEASE: release.1 release.2 ${DOCREL} release.3 release.4 release.5 \
|
||||
@echo "Release done"
|
||||
|
||||
floppies:
|
||||
.if ${MACHINE_ARCH} == "i386"
|
||||
@cd ${.CURDIR} && ${MAKE} PCCARD=YES boot.flp
|
||||
mv ${RD}/floppies/boot.flp ${RD}/floppies/kern.flp \
|
||||
${RD}/floppies/mfsroot.flp ${RD}/floppies/pccard
|
||||
.endif
|
||||
@cd ${.CURDIR} && ${MAKE} boot.flp
|
||||
@cd ${.CURDIR} && ${MAKE} fixit.flp
|
||||
@cd ${RD} && find floppies -print | cpio -dumpl ${FD}
|
||||
|
@ -2,12 +2,14 @@
|
||||
|
||||
srcdirs /usr/src/bin /usr/src/sbin /usr/src/release /usr/src/usr.bin
|
||||
srcdirs /usr/src/gnu/usr.bin /usr/src/usr.sbin /usr/src/sbin/i386
|
||||
srcdirs /usr/src/usr.sbin/pccard
|
||||
|
||||
progs sh find sed test
|
||||
progs sh find sed test rm
|
||||
progs pwd ppp
|
||||
progs sysinstall newfs minigzip cpio fsck ifconfig route slattach
|
||||
progs mount_nfs
|
||||
progs dhclient arp hostname
|
||||
progs pccardc pccardd wicontrol
|
||||
ln minigzip gzip
|
||||
ln minigzip gunzip
|
||||
ln minigzip zcat
|
||||
|
@ -1,22 +0,0 @@
|
||||
# $FreeBSD$
|
||||
|
||||
srcdirs /usr/src/bin /usr/src/sbin /usr/src/release /usr/src/usr.bin
|
||||
srcdirs /usr/src/gnu/usr.bin /usr/src/usr.sbin /usr/src/sbin/i386
|
||||
srcdirs /usr/src/usr.sbin/pccard
|
||||
|
||||
progs sh find sed test rm
|
||||
progs pwd ppp
|
||||
progs sysinstall newfs minigzip cpio fsck ifconfig route slattach
|
||||
progs mount_nfs
|
||||
progs dhclient arp hostname
|
||||
progs pccardc pccardd
|
||||
progs wicontrol
|
||||
ln minigzip gzip
|
||||
ln minigzip gunzip
|
||||
ln minigzip zcat
|
||||
ln sh -sh
|
||||
ln test [
|
||||
ln newfs mount_mfs
|
||||
|
||||
libs -ll -ledit -lutil -lkvm -lmd -lcrypt -lftpio -lz -lnetgraph
|
||||
libs -ldialog -lncurses -lmytinfo -L/usr/src/release/libdisk/obj -ldisk -lipx
|
@ -5,7 +5,7 @@ BINDIR=/stand
|
||||
NOSHARED=YES
|
||||
|
||||
CLEANFILES+= makedevs.c rtermcap rtermcap.tmp dumpnlist
|
||||
CLEANFILES+= keymap.tmp keymap.h pccard_conf.h
|
||||
CLEANFILES+= keymap.tmp keymap.h
|
||||
|
||||
.PATH: ${.CURDIR}/../disklabel ${.CURDIR}/../../usr.bin/cksum
|
||||
|
||||
@ -15,23 +15,14 @@ SRCS= anonFTP.c cdrom.c command.c config.c devices.c dhcp.c kget.c \
|
||||
label.c lndir.c main.c makedevs.c media.c menus.c misc.c mouse.c \
|
||||
msg.c network.c nfs.c options.c package.c pccard.c \
|
||||
system.c tape.c tcpip.c termcap.c ufs.c user.c variable.c wizard.c \
|
||||
keymap.h pccard_conf.h
|
||||
keymap.h
|
||||
|
||||
CFLAGS+= -Wall -I${.CURDIR}/../../gnu/lib/libdialog -I${.OBJDIR}
|
||||
CFLAGS+= -I${.CURDIR}/../../sys
|
||||
|
||||
PCCARD?= NO
|
||||
|
||||
DPADD= ${LIBDIALOG} ${LIBNCURSES} ${LIBMYTINFO} ${LIBUTIL} ${LIBDISK} ${LIBFTPIO}
|
||||
LDADD= -ldialog -lncurses -lmytinfo -lutil -ldisk -lftpio
|
||||
|
||||
pccard_conf.h:
|
||||
.if ${PCCARD} == "YES"
|
||||
echo "#define PCCARD 1" > pccard_conf.h
|
||||
.else
|
||||
echo "#undef PCCARD" > pccard_conf.h
|
||||
.endif
|
||||
|
||||
makedevs.c: Makefile rtermcap keymap.h
|
||||
rm -f makedevs.tmp
|
||||
echo '#include <sys/types.h>' > makedevs.tmp
|
||||
|
@ -35,7 +35,6 @@
|
||||
*/
|
||||
|
||||
#include "sysinstall.h"
|
||||
#include "pccard_conf.h"
|
||||
#include <sys/signal.h>
|
||||
#include <sys/fcntl.h>
|
||||
|
||||
@ -88,10 +87,8 @@ main(int argc, char **argv)
|
||||
if (DebugFD)
|
||||
dup2(DebugFD, 2);
|
||||
|
||||
#ifdef PCCARD
|
||||
/* Initialize PC-card */
|
||||
pccardInitialize();
|
||||
#endif
|
||||
|
||||
/* Probe for all relevant devices on the system */
|
||||
deviceGetAll();
|
||||
|
@ -15,13 +15,10 @@
|
||||
*/
|
||||
|
||||
#include "sysinstall.h"
|
||||
#include "pccard_conf.h"
|
||||
#include <sys/fcntl.h>
|
||||
#include <sys/time.h>
|
||||
#include <pccard/cardinfo.h>
|
||||
|
||||
#ifdef PCCARD
|
||||
|
||||
int pccard_mode = 0;
|
||||
|
||||
DMenu MenuPCICMem = {
|
||||
@ -83,6 +80,19 @@ pccardInitialize(void)
|
||||
return;
|
||||
}
|
||||
|
||||
sprintf(card_device, CARD_DEVICE, 0);
|
||||
|
||||
if ((fd = open(card_device, O_RDWR)) < 0) {
|
||||
msgDebug("Can't open PC-card controller %s.\n",
|
||||
card_device);
|
||||
return;
|
||||
}
|
||||
else if (msgYesNo("Found PC-card slot(s).\n"
|
||||
"Use PC-card device as installation media?\n")) {
|
||||
return;
|
||||
}
|
||||
close(fd);
|
||||
|
||||
dmenuOpenSimple(&MenuPCICMem, FALSE);
|
||||
spcic_mem = variable_get("_pcicmem");
|
||||
dmenuOpenSimple(&MenuCardIRQ, FALSE);
|
||||
@ -122,8 +132,6 @@ pccardInitialize(void)
|
||||
break;
|
||||
}
|
||||
|
||||
sprintf(card_device, CARD_DEVICE, 0);
|
||||
|
||||
w = savescr();
|
||||
dialog_clear_norefresh();
|
||||
msgConfirm("Now we start initializing PC-card controller and cards.\n"
|
||||
@ -163,7 +171,3 @@ pccardInitialize(void)
|
||||
vsystem(pccardd_cmd);
|
||||
restorescr(w);
|
||||
}
|
||||
|
||||
#endif /* PCCARD */
|
||||
|
||||
|
||||
|
@ -691,6 +691,9 @@ extern int package_add(char *name);
|
||||
extern int package_extract(Device *dev, char *name, Boolean depended);
|
||||
extern Boolean package_exists(char *name);
|
||||
|
||||
/* pccard.c */
|
||||
extern void pccardInitialize(void);
|
||||
|
||||
/* system.c */
|
||||
extern void systemInitialize(int argc, char **argv);
|
||||
extern void systemShutdown(int status);
|
||||
|
@ -5,7 +5,7 @@ BINDIR=/stand
|
||||
NOSHARED=YES
|
||||
|
||||
CLEANFILES+= makedevs.c rtermcap rtermcap.tmp dumpnlist
|
||||
CLEANFILES+= keymap.tmp keymap.h pccard_conf.h
|
||||
CLEANFILES+= keymap.tmp keymap.h
|
||||
|
||||
.PATH: ${.CURDIR}/../disklabel ${.CURDIR}/../../usr.bin/cksum
|
||||
|
||||
@ -15,23 +15,14 @@ SRCS= anonFTP.c cdrom.c command.c config.c devices.c dhcp.c kget.c \
|
||||
label.c lndir.c main.c makedevs.c media.c menus.c misc.c mouse.c \
|
||||
msg.c network.c nfs.c options.c package.c pccard.c \
|
||||
system.c tape.c tcpip.c termcap.c ufs.c user.c variable.c wizard.c \
|
||||
keymap.h pccard_conf.h
|
||||
keymap.h
|
||||
|
||||
CFLAGS+= -Wall -I${.CURDIR}/../../gnu/lib/libdialog -I${.OBJDIR}
|
||||
CFLAGS+= -I${.CURDIR}/../../sys
|
||||
|
||||
PCCARD?= NO
|
||||
|
||||
DPADD= ${LIBDIALOG} ${LIBNCURSES} ${LIBMYTINFO} ${LIBUTIL} ${LIBDISK} ${LIBFTPIO}
|
||||
LDADD= -ldialog -lncurses -lmytinfo -lutil -ldisk -lftpio
|
||||
|
||||
pccard_conf.h:
|
||||
.if ${PCCARD} == "YES"
|
||||
echo "#define PCCARD 1" > pccard_conf.h
|
||||
.else
|
||||
echo "#undef PCCARD" > pccard_conf.h
|
||||
.endif
|
||||
|
||||
makedevs.c: Makefile rtermcap keymap.h
|
||||
rm -f makedevs.tmp
|
||||
echo '#include <sys/types.h>' > makedevs.tmp
|
||||
|
@ -35,7 +35,6 @@
|
||||
*/
|
||||
|
||||
#include "sysinstall.h"
|
||||
#include "pccard_conf.h"
|
||||
#include <sys/signal.h>
|
||||
#include <sys/fcntl.h>
|
||||
|
||||
@ -88,10 +87,8 @@ main(int argc, char **argv)
|
||||
if (DebugFD)
|
||||
dup2(DebugFD, 2);
|
||||
|
||||
#ifdef PCCARD
|
||||
/* Initialize PC-card */
|
||||
pccardInitialize();
|
||||
#endif
|
||||
|
||||
/* Probe for all relevant devices on the system */
|
||||
deviceGetAll();
|
||||
|
@ -691,6 +691,9 @@ extern int package_add(char *name);
|
||||
extern int package_extract(Device *dev, char *name, Boolean depended);
|
||||
extern Boolean package_exists(char *name);
|
||||
|
||||
/* pccard.c */
|
||||
extern void pccardInitialize(void);
|
||||
|
||||
/* system.c */
|
||||
extern void systemInitialize(int argc, char **argv);
|
||||
extern void systemShutdown(int status);
|
||||
|
@ -5,7 +5,7 @@ BINDIR=/stand
|
||||
NOSHARED=YES
|
||||
|
||||
CLEANFILES+= makedevs.c rtermcap rtermcap.tmp dumpnlist
|
||||
CLEANFILES+= keymap.tmp keymap.h pccard_conf.h
|
||||
CLEANFILES+= keymap.tmp keymap.h
|
||||
|
||||
.PATH: ${.CURDIR}/../disklabel ${.CURDIR}/../../usr.bin/cksum
|
||||
|
||||
@ -15,23 +15,14 @@ SRCS= anonFTP.c cdrom.c command.c config.c devices.c dhcp.c kget.c \
|
||||
label.c lndir.c main.c makedevs.c media.c menus.c misc.c mouse.c \
|
||||
msg.c network.c nfs.c options.c package.c pccard.c \
|
||||
system.c tape.c tcpip.c termcap.c ufs.c user.c variable.c wizard.c \
|
||||
keymap.h pccard_conf.h
|
||||
keymap.h
|
||||
|
||||
CFLAGS+= -Wall -I${.CURDIR}/../../gnu/lib/libdialog -I${.OBJDIR}
|
||||
CFLAGS+= -I${.CURDIR}/../../sys
|
||||
|
||||
PCCARD?= NO
|
||||
|
||||
DPADD= ${LIBDIALOG} ${LIBNCURSES} ${LIBMYTINFO} ${LIBUTIL} ${LIBDISK} ${LIBFTPIO}
|
||||
LDADD= -ldialog -lncurses -lmytinfo -lutil -ldisk -lftpio
|
||||
|
||||
pccard_conf.h:
|
||||
.if ${PCCARD} == "YES"
|
||||
echo "#define PCCARD 1" > pccard_conf.h
|
||||
.else
|
||||
echo "#undef PCCARD" > pccard_conf.h
|
||||
.endif
|
||||
|
||||
makedevs.c: Makefile rtermcap keymap.h
|
||||
rm -f makedevs.tmp
|
||||
echo '#include <sys/types.h>' > makedevs.tmp
|
||||
|
@ -35,7 +35,6 @@
|
||||
*/
|
||||
|
||||
#include "sysinstall.h"
|
||||
#include "pccard_conf.h"
|
||||
#include <sys/signal.h>
|
||||
#include <sys/fcntl.h>
|
||||
|
||||
@ -88,10 +87,8 @@ main(int argc, char **argv)
|
||||
if (DebugFD)
|
||||
dup2(DebugFD, 2);
|
||||
|
||||
#ifdef PCCARD
|
||||
/* Initialize PC-card */
|
||||
pccardInitialize();
|
||||
#endif
|
||||
|
||||
/* Probe for all relevant devices on the system */
|
||||
deviceGetAll();
|
||||
|
@ -15,13 +15,10 @@
|
||||
*/
|
||||
|
||||
#include "sysinstall.h"
|
||||
#include "pccard_conf.h"
|
||||
#include <sys/fcntl.h>
|
||||
#include <sys/time.h>
|
||||
#include <pccard/cardinfo.h>
|
||||
|
||||
#ifdef PCCARD
|
||||
|
||||
int pccard_mode = 0;
|
||||
|
||||
DMenu MenuPCICMem = {
|
||||
@ -83,6 +80,19 @@ pccardInitialize(void)
|
||||
return;
|
||||
}
|
||||
|
||||
sprintf(card_device, CARD_DEVICE, 0);
|
||||
|
||||
if ((fd = open(card_device, O_RDWR)) < 0) {
|
||||
msgDebug("Can't open PC-card controller %s.\n",
|
||||
card_device);
|
||||
return;
|
||||
}
|
||||
else if (msgYesNo("Found PC-card slot(s).\n"
|
||||
"Use PC-card device as installation media?\n")) {
|
||||
return;
|
||||
}
|
||||
close(fd);
|
||||
|
||||
dmenuOpenSimple(&MenuPCICMem, FALSE);
|
||||
spcic_mem = variable_get("_pcicmem");
|
||||
dmenuOpenSimple(&MenuCardIRQ, FALSE);
|
||||
@ -122,8 +132,6 @@ pccardInitialize(void)
|
||||
break;
|
||||
}
|
||||
|
||||
sprintf(card_device, CARD_DEVICE, 0);
|
||||
|
||||
w = savescr();
|
||||
dialog_clear_norefresh();
|
||||
msgConfirm("Now we start initializing PC-card controller and cards.\n"
|
||||
@ -163,7 +171,3 @@ pccardInitialize(void)
|
||||
vsystem(pccardd_cmd);
|
||||
restorescr(w);
|
||||
}
|
||||
|
||||
#endif /* PCCARD */
|
||||
|
||||
|
||||
|
@ -691,6 +691,9 @@ extern int package_add(char *name);
|
||||
extern int package_extract(Device *dev, char *name, Boolean depended);
|
||||
extern Boolean package_exists(char *name);
|
||||
|
||||
/* pccard.c */
|
||||
extern void pccardInitialize(void);
|
||||
|
||||
/* system.c */
|
||||
extern void systemInitialize(int argc, char **argv);
|
||||
extern void systemShutdown(int status);
|
||||
|
Loading…
Reference in New Issue
Block a user