blob: 4f8a0f0ff5d48197a72d10100d552e819c4872da [file] [log] [blame]
lh9ed821d2023-04-07 01:36:19 -07001################################################################################
2# yes = ¿ªÔ´
3# no = ±ÕÔ´
4################################################################################
5LIB_GMAC = yes
6LIB_GPIO = yes
7LIB_I2C = yes
8LIB_MISC = yes
9LIB_MMC = yes
10LIB_MTD = yes
11LIB_NAND = yes
12LIB_PARTITION = yes
13LIB_POWER = yes
14LIB_SERIAL = yes
15LIB_SPI = yes
16LIB_USB_DWC = yes
17LIB_SDIO = yes
18LIB_LED = yes
19LIB_LCD = yes
20LIB_PERIPHERAL = yes
21LIB_CHARGER = yes
22LIB_HASH = yes
23LIB_RSA = yes
24LIB_DMA = yes
25LIB_EFUSE = yes
26LIB_WDT = yes
27
28################################################################################
29#¸ø¶¥²ãMakefileʹÓõÄÇý¶¯.o¿âÎļþ£¬Õⲿ·Ö¿ªÔ´
30################################################################################
31DRIVEROBJS :=
32
33################################################################################
34#¸øÍ¬¼¶Ä¿Â¼MakefileʹÓõÄÇý¶¯.o¿âÎļþ£¬Õⲿ·Ö±ÕÔ´
35################################################################################
36DRIVERLIBS :=
37
38################################################################################
39#¸øÍ¬¼¶Ä¿Â¼MakefileʹÓÃɾ³ý±ÕÔ´´úÂë
40################################################################################
41DRIVERSRC :=
42
43################################################################################
44################################################################################
45ifeq ($(LIB_GMAC),yes)
46DRIVEROBJS += drivers/gmac/libgmac.o
47else
48DRIVERLIBS += gmac/libgmac.o
49DRIVERSRC += gmac/*.c
50endif
51
52ifeq ($(LIB_GPIO),yes)
53DRIVEROBJS += drivers/gpio/libgpio.o
54else
55DRIVERLIBS += gpio/libgpio.o
56DRIVERSRC += gpio/*.c
57endif
58
59ifeq ($(LIB_I2C),yes)
60DRIVEROBJS += drivers/i2c/libi2c.o
61else
62DRIVERLIBS += i2c/libi2c.o
63DRIVERSRC += i2c/*.c
64endif
65
66ifeq ($(LIB_MISC),yes)
67DRIVEROBJS += drivers/misc/libmisc.o
68else
69DRIVERLIBS += misc/libmisc.o
70DRIVERSRC += misc/*.c
71endif
72
73ifeq ($(LIB_MMC),yes)
74DRIVEROBJS += drivers/mmc/libmmc.o
75else
76DRIVERLIBS += mmc/libmmc.o
77DRIVERSRC += mmc/*.c
78endif
79
80ifeq ($(LIB_MTD),yes)
81DRIVEROBJS += drivers/mtd/libmtd.o
82else
83DRIVERLIBS += mtd/libmtd.o
84DRIVERSRC += mtd/*.c
85endif
86
87ifeq ($(LIB_NAND),yes)
88DRIVEROBJS += drivers/mtd/nand/libnand.o
89else
90DRIVERLIBS += mtd/nand/libnand.o
91DRIVERSRC += mtd/nand/*.c
92endif
93
94ifeq ($(LIB_PARTITION),yes)
95DRIVEROBJS += drivers/mtd/partition/libpartition.o
96else
97DRIVERLIBS += mtd/partition/libpartition.o
98DRIVERSRC += mtd/partition/*.c
99endif
100
101ifeq ($(LIB_POWER),yes)
102DRIVEROBJS += drivers/power/libpower.o
103else
104DRIVERLIBS += power/libpower.o
105DRIVERSRC += power/*.c
106endif
107
108ifeq ($(LIB_SERIAL),yes)
109DRIVEROBJS += drivers/serial/libserial.o
110else
111DRIVERLIBS += serial/libserial.o
112DRIVERSRC += serial/*.c
113endif
114
115ifeq ($(LIB_SPI),yes)
116DRIVEROBJS += drivers/spi/libspi.o
117else
118DRIVERLIBS += spi/libspi.o
119DRIVERSRC += spi/*.c
120endif
121
122ifeq ($(LIB_USB_DWC),yes)
123DRIVEROBJS += drivers/usb_drv/libusb_dwc.o
124else
125DRIVERLIBS += usb_drv/libusb_dwc.o
126DRIVERSRC += usb_drv/*.c
127endif
128
129ifeq ($(LIB_SDIO),yes)
130DRIVEROBJS += drivers/sdio/libsdio.o
131else
132DRIVERLIBS += sdio/libsdio.o
133DRIVERSRC += sdio/*.c
134endif
135
136ifeq ($(LIB_LED),yes)
137DRIVEROBJS += drivers/led/libled.o
138else
139DRIVERLIBS += led/libled.o
140DRIVERSRC += led/*.c
141endif
142
143ifeq ($(LIB_LCD),yes)
144DRIVEROBJS += drivers/lcd/liblcd.o
145else
146DRIVERLIBS += lcd/liblcd.o
147DRIVERSRC += lcd/*.c
148endif
149
150ifeq ($(LIB_PERIPHERAL),yes)
151DRIVEROBJS += drivers/peripheral/libperipheral.o
152else
153DRIVERLIBS += peripheral/libperipheral.o
154DRIVERSRC += peripheral/*.c
155endif
156
157ifeq ($(LIB_CHARGER),yes)
158DRIVEROBJS += drivers/charger/libcharger.o
159else
160DRIVERLIBS += charger/libcharger.o
161DRIVERSRC += charger/*.c
162endif
163
164ifeq ($(LIB_HASH),yes)
165DRIVEROBJS += drivers/hash/libdrv_hash.o
166else
167DRIVERLIBS += hash/libdrv_hash.o
168DRIVERSRC += hash/*.c
169endif
170
171ifeq ($(LIB_RSA),yes)
172DRIVEROBJS += drivers/rsa/libdrv_rsa.o
173else
174DRIVERLIBS += rsa/libdrv_rsa.o
175DRIVERSRC += rsa/*.c
176endif
177
178ifeq ($(LIB_DMA),yes)
179DRIVEROBJS += drivers/dma/libdma.o
180else
181DRIVERLIBS += dma/libdma.o
182DRIVERSRC += dma/*.c
183endif
184
185ifeq ($(LIB_EFUSE),yes)
186DRIVEROBJS += drivers/efuse/libefuse.o
187else
188DRIVERLIBS += efuse/libefuse.o
189DRIVERSRC += efuse/*.c
190endif
191
192ifeq ($(LIB_WDT),yes)
193DRIVEROBJS += drivers/wdt/libwdt.o
194else
195DRIVERLIBS += wdt/libwdt.o
196DRIVERSRC += wdt/*.c
197endif