[BACK]Return to Makefile CVS log [TXT][DIR] Up to [local] / prex-old / dev / core

File: [local] / prex-old / dev / core / Makefile (download)

Revision 1.2, Fri Aug 8 12:37:11 2008 UTC (15 years, 8 months ago) by nbrk
Branch point for: PREX_0_8_BASE, MAIN
Changes since 1.1: +3 -0 lines

Heads up! Implement universal device attachment and autoconfiguration machinery.
This is somewhat similar to traditional BSD autoconf but much more simple.
Three basic data structures involved in autoconfiguration process are:
struct device, which represents abstract device and its private (driver softc) data;
struct driver, which holds {attach,match,detach} entries, name and softc size;
struct attachment, which tells us how drivers are interacted with each other.
Attachment basically describes how to attach devices in system.
Machine specified part should export arrays config_table[] and *drivers[] for config.

This might have broken i386 & gba tree, but there is only a question of time.

TARGET=	core.o
TYPE=	OBJECT
OBJS-y=	main.o dev_conf.o

#OBJS-$(CONFIG_AUTOCONF)+= config_rootdev.o config_alloc.o config_search.o
OBJS-y+= config_rootdev.o config_alloc.o config_search.o

include $(SRCDIR)/mk/dev.mk