Only have the pci component compiled if pci is specified at config.

Remove #if NPCI > 0 as a result.
This commit is contained in:
Peter Wemm 1999-07-03 18:34:04 +00:00
parent dae36f142b
commit 0634d7115f
4 changed files with 8 additions and 16 deletions

View File

@ -1,7 +1,7 @@
# This file tells config what files go into building a kernel,
# files marked standard are always included.
#
# $Id: files.i386,v 1.250 1999/06/29 21:53:59 peter Exp $
# $Id: files.i386,v 1.251 1999/07/03 18:26:22 peter Exp $
#
# The long compile-with and dependency lines are required because of
# limitations in config: backslash-newline doesn't work in strings, and
@ -382,5 +382,5 @@ libkern/strncmp.c standard
libkern/strncpy.c standard
libkern/udivdi3.c standard
libkern/umoddi3.c standard
pci/es1370.c optional pcm device-driver
pci/ide_pci.c optional wd device-driver
pci/es1370.c optional pcm pci device-driver
pci/ide_pci.c optional wd pci device-driver

View File

@ -1,7 +1,7 @@
# This file tells config what files go into building a kernel,
# files marked standard are always included.
#
# $Id: files.i386,v 1.250 1999/06/29 21:53:59 peter Exp $
# $Id: files.i386,v 1.251 1999/07/03 18:26:22 peter Exp $
#
# The long compile-with and dependency lines are required because of
# limitations in config: backslash-newline doesn't work in strings, and
@ -382,5 +382,5 @@ libkern/strncmp.c standard
libkern/strncpy.c standard
libkern/udivdi3.c standard
libkern/umoddi3.c standard
pci/es1370.c optional pcm device-driver
pci/ide_pci.c optional wd device-driver
pci/es1370.c optional pcm pci device-driver
pci/ide_pci.c optional wd pci device-driver

View File

@ -36,10 +36,9 @@
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
* OF THE POSSIBILITY OF SUCH DAMAGE.
*
* $Id: es1370.c,v 1.4 1999/05/09 17:06:45 peter Exp $
* $Id: es1370.c,v 1.5 1999/06/15 00:00:10 newton Exp $
*/
#include "pci.h"
#include "pcm.h"
#include <sys/param.h>
@ -56,8 +55,6 @@
#define DSP_ULAW_NOT_WANTED
#include <i386/isa/snd/ulaw.h>
#if NPCI != 0
/* -------------------------------------------------------------------- */
@ -1124,5 +1121,3 @@ es_pci_attach(pcici_t config_id, int unit)
return;
}
#endif /* NPCI != 0 */

View File

@ -26,11 +26,9 @@
* OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id: ide_pci.c,v 1.33 1999/04/24 20:13:58 peter Exp $
* $Id: ide_pci.c,v 1.34 1999/05/09 17:06:47 peter Exp $
*/
#include "pci.h"
#if NPCI > 0
#include "wd.h"
#if NWDC > 0
@ -1935,4 +1933,3 @@ ide_pci_iobase(void *xcp)
}
#endif
#endif /* NPCI > 0 */