Only build and link the pccard module on architectures that support it (and
that have room for pccardd on mfsroot.flp).
This commit is contained in:
parent
e27cdad86b
commit
41b83afa56
@ -6,10 +6,14 @@ SRCS= anonFTP.c cdrom.c command.c config.c devices.c dhcp.c \
|
||||
disks.c dispatch.c dist.c dmenu.c doc.c dos.c floppy.c \
|
||||
ftp.c globals.c http.c index.c install.c installUpgrade.c keymap.c \
|
||||
label.c main.c makedevs.c media.c menus.c misc.c modules.c \
|
||||
mouse.c msg.c network.c nfs.c options.c package.c pccard.c \
|
||||
mouse.c msg.c network.c nfs.c options.c package.c \
|
||||
system.c tape.c tcpip.c termcap.c ttys.c ufs.c usb.c user.c \
|
||||
variable.c wizard.c keymap.h
|
||||
|
||||
.if ${MACHINE_ARCH} == "i386"
|
||||
SRCS+= pccard.c
|
||||
.endif
|
||||
|
||||
CFLAGS+= -I${.CURDIR}/../../gnu/lib/libdialog -I.
|
||||
.if ${MACHINE} == "pc98"
|
||||
CFLAGS+= -DPC98
|
||||
|
@ -111,10 +111,12 @@ main(int argc, char **argv)
|
||||
}
|
||||
|
||||
/* Initialize PC-card, if we haven't already done so. */
|
||||
#ifdef PCCARD_ARCH
|
||||
if (!pvariable_get("pccardInitialize")) {
|
||||
pccardInitialize();
|
||||
pvariable_set("pccardInitialize=1");
|
||||
}
|
||||
#endif
|
||||
|
||||
/* Initialize USB, if we haven't already done so. */
|
||||
if (!pvariable_get("usbInitialize")) {
|
||||
|
@ -1292,12 +1292,14 @@ DMenu MenuStartup = {
|
||||
checkTrue, dmenuExit, NULL, NULL, '<', '<', '<' },
|
||||
{ " APM", "Auto-power management services (typically laptops)",
|
||||
dmenuVarCheck, dmenuToggleVariable, NULL, "apm_enable=YES" },
|
||||
#ifdef PCCARD_ARCH
|
||||
{ " pccard", "Enable PCCARD (AKA PCMCIA) services (also laptops)",
|
||||
dmenuVarCheck, dmenuToggleVariable, NULL, "pccard_enable=YES" },
|
||||
{ " pccard mem", "Set PCCARD memory address (if enabled)",
|
||||
dmenuVarCheck, dmenuISetVariable, NULL, "pccard_mem" },
|
||||
{ " pccard ifconfig", "List of PCCARD ethernet devices to configure",
|
||||
dmenuVarCheck, dmenuISetVariable, NULL, "pccard_ifconfig" },
|
||||
#endif
|
||||
{ " usbd", "Enable USB daemon (detect USB attach / detach)",
|
||||
dmenuVarCheck, dmenuToggleVariable, NULL, "usbd_enable=YES" },
|
||||
{ " usbd flags", "Set default flags to usbd (if enabled)",
|
||||
|
@ -54,6 +54,9 @@
|
||||
|
||||
/*** Defines ***/
|
||||
|
||||
#if defined(__i386__) || defined(PC98)
|
||||
#define PCCARD_ARCH 1 /* Support PCCARD installations */
|
||||
#endif
|
||||
/* device limits */
|
||||
#define DEV_NAME_MAX 64 /* The maximum length of a device name */
|
||||
#define DEV_MAX 100 /* The maximum number of devices we'll deal with */
|
||||
|
@ -6,10 +6,14 @@ SRCS= anonFTP.c cdrom.c command.c config.c devices.c dhcp.c \
|
||||
disks.c dispatch.c dist.c dmenu.c doc.c dos.c floppy.c \
|
||||
ftp.c globals.c http.c index.c install.c installUpgrade.c keymap.c \
|
||||
label.c main.c makedevs.c media.c menus.c misc.c modules.c \
|
||||
mouse.c msg.c network.c nfs.c options.c package.c pccard.c \
|
||||
mouse.c msg.c network.c nfs.c options.c package.c \
|
||||
system.c tape.c tcpip.c termcap.c ttys.c ufs.c usb.c user.c \
|
||||
variable.c wizard.c keymap.h
|
||||
|
||||
.if ${MACHINE_ARCH} == "i386"
|
||||
SRCS+= pccard.c
|
||||
.endif
|
||||
|
||||
CFLAGS+= -I${.CURDIR}/../../gnu/lib/libdialog -I.
|
||||
.if ${MACHINE} == "pc98"
|
||||
CFLAGS+= -DPC98
|
||||
|
@ -111,10 +111,12 @@ main(int argc, char **argv)
|
||||
}
|
||||
|
||||
/* Initialize PC-card, if we haven't already done so. */
|
||||
#ifdef PCCARD_ARCH
|
||||
if (!pvariable_get("pccardInitialize")) {
|
||||
pccardInitialize();
|
||||
pvariable_set("pccardInitialize=1");
|
||||
}
|
||||
#endif
|
||||
|
||||
/* Initialize USB, if we haven't already done so. */
|
||||
if (!pvariable_get("usbInitialize")) {
|
||||
|
@ -1292,12 +1292,14 @@ DMenu MenuStartup = {
|
||||
checkTrue, dmenuExit, NULL, NULL, '<', '<', '<' },
|
||||
{ " APM", "Auto-power management services (typically laptops)",
|
||||
dmenuVarCheck, dmenuToggleVariable, NULL, "apm_enable=YES" },
|
||||
#ifdef PCCARD_ARCH
|
||||
{ " pccard", "Enable PCCARD (AKA PCMCIA) services (also laptops)",
|
||||
dmenuVarCheck, dmenuToggleVariable, NULL, "pccard_enable=YES" },
|
||||
{ " pccard mem", "Set PCCARD memory address (if enabled)",
|
||||
dmenuVarCheck, dmenuISetVariable, NULL, "pccard_mem" },
|
||||
{ " pccard ifconfig", "List of PCCARD ethernet devices to configure",
|
||||
dmenuVarCheck, dmenuISetVariable, NULL, "pccard_ifconfig" },
|
||||
#endif
|
||||
{ " usbd", "Enable USB daemon (detect USB attach / detach)",
|
||||
dmenuVarCheck, dmenuToggleVariable, NULL, "usbd_enable=YES" },
|
||||
{ " usbd flags", "Set default flags to usbd (if enabled)",
|
||||
|
@ -54,6 +54,9 @@
|
||||
|
||||
/*** Defines ***/
|
||||
|
||||
#if defined(__i386__) || defined(PC98)
|
||||
#define PCCARD_ARCH 1 /* Support PCCARD installations */
|
||||
#endif
|
||||
/* device limits */
|
||||
#define DEV_NAME_MAX 64 /* The maximum length of a device name */
|
||||
#define DEV_MAX 100 /* The maximum number of devices we'll deal with */
|
||||
|
@ -575,10 +575,12 @@ tcpOpenDialog(Device *devp)
|
||||
ipaddr, extras, netmask);
|
||||
variable_set2(ifn, temp, 1);
|
||||
}
|
||||
#ifdef PCCARD_ARCH
|
||||
pccard = variable_get("_pccard_install");
|
||||
if (pccard && strcmp(pccard, "YES") == 0 && ipv4_enable) {
|
||||
variable_set2("pccard_ifconfig", temp, 1);
|
||||
}
|
||||
#endif
|
||||
if (use_rtsol)
|
||||
variable_set2(VAR_IPV6_ENABLE, "YES", 1);
|
||||
if (!use_dhcp)
|
||||
|
Loading…
Reference in New Issue
Block a user