blob: 4d487759ed95464128797873017b790a4185c753 [file] [log] [blame]
lh9ed821d2023-04-07 01:36:19 -07001#***********************************************************************
2# °æÈ¨ËùÓÐ (C)2001,ÖÐÐËͨѶ¹É·ÝÓÐÏÞ¹«Ë¾¡£
3#
4# ÎļþÃû³Æ£º makefile
5# Îļþ±êʶ£º ±àÒëdal lib
6# ÄÚÈÝÕªÒª£º
7#
8# ÐÞ¸ÄÈÕÆÚ °æ±¾ºÅ Ð޸ıê¼Ç ÐÞ¸ÄÈË ÐÞ¸ÄÄÚÈÝ
9# ---------------------------------------------------------------------
10# 2008/11/17 V1.0 huji create
11#***********************************************************************/
12
13include $(PRJ_PATH)/config/project.mk
14include $(DRV_PATH)/ws/drv_cfg.mk
15
16
17#===============================================
18#
19#===============================================
20_SUBSYS_NAME = chip
21
22_SUBSYS_LIB_PATH = $(DRV_LIB_PATH)
23
24export CHIP_SRC_PATH = $(CHIP_PATH)/src
25export CHIP_INC_PATH = $(CHIP_PATH)/inc -I$(DRV_INC_PATH)
26export CHIP_OBJ_PATH = $(DRV_OBJ_PATH)
27
28#===============================================
29# bsp
30#===============================================
31ifeq ($(USE_BSP),yes)
32bsp:
33 @$(GNUMAKE) --no-print-directory $(MAKEOPTS) -C $(CHIP_SRC_PATH)/bsp/$(CHIP_BSP)
34bspclean:
35 @$(GNUMAKE) --no-print-directory $(MAKEOPTS) -C $(CHIP_SRC_PATH)/bsp/$(CHIP_BSP) clean
36ifeq ($(USE_BSP_SDK),yes)
37ifeq ($(USE_SDK_COMPILE),yes)
38_ALL_MDLS_SDK += bsp
39_ALL_OBJECTS_SDK += $(wildcard $(CHIP_OBJ_PATH)/bsp/*.o)
40endif
41else
42_ALL_MDLS += bsp
43_ALL_OBJECTS += $(wildcard $(CHIP_OBJ_PATH)/bsp/*.o)
44endif
45endif
46
47#===============================================
48# int
49#===============================================
50ifeq ($(USE_INT),yes)
51int:
52 @$(GNUMAKE) --no-print-directory $(MAKEOPTS) -C $(CHIP_SRC_PATH)/int/$(CHIP_INT)
53intclean:
54 @$(GNUMAKE) --no-print-directory $(MAKEOPTS) -C $(CHIP_SRC_PATH)/int/$(CHIP_INT) clean
55ifeq ($(USE_INT_SDK),yes)
56ifeq ($(USE_SDK_COMPILE),yes)
57_ALL_MDLS_SDK += int
58_ALL_OBJECTS_SDK += $(wildcard $(CHIP_OBJ_PATH)/int/*.o)
59endif
60else
61_ALL_MDLS += int
62_ALL_OBJECTS += $(wildcard $(CHIP_OBJ_PATH)/int/*.o)
63endif
64endif
65
66#===============================================
67# timer
68#===============================================
69ifeq ($(USE_TIMER),yes)
70timer:
71 @$(GNUMAKE) --no-print-directory $(MAKEOPTS) -C $(CHIP_SRC_PATH)/timer/$(CHIP_TIMER)
72timerclean:
73 @$(GNUMAKE) --no-print-directory $(MAKEOPTS) -C $(CHIP_SRC_PATH)/timer/$(CHIP_TIMER) clean
74ifeq ($(USE_TIMER_SDK),yes)
75ifeq ($(USE_SDK_COMPILE),yes)
76_ALL_MDLS_SDK += timer
77_ALL_OBJECTS_SDK += $(wildcard $(CHIP_OBJ_PATH)/timer/*.o)
78endif
79else
80_ALL_MDLS += timer
81_ALL_OBJECTS += $(wildcard $(CHIP_OBJ_PATH)/timer/*.o)
82endif
83endif
84
85#===============================================
86# sys
87#===============================================
88ifeq ($(USE_SYS),yes)
89sys:
90 @$(GNUMAKE) --no-print-directory $(MAKEOPTS) -C $(CHIP_SRC_PATH)/sys/$(CHIP_SYS)
91sysclean:
92 @$(GNUMAKE) --no-print-directory $(MAKEOPTS) -C $(CHIP_SRC_PATH)/sys/$(CHIP_SYS) clean
93
94ifeq ($(USE_SYS_SDK),yes)
95ifeq ($(USE_SDK_COMPILE),yes)
96_ALL_MDLS_SDK += sys
97_ALL_OBJECTS_SDK += $(wildcard $(CHIP_OBJ_PATH)/sys/*.o)
98endif
99else
100_ALL_MDLS += sys
101_ALL_OBJECTS += $(wildcard $(CHIP_OBJ_PATH)/sys/*.o)
102endif
103endif
104
105#===============================================
106# icp
107#===============================================
108ifeq ($(USE_ICP),yes)
109icp:
110 @$(GNUMAKE) --no-print-directory $(MAKEOPTS) -C $(CHIP_SRC_PATH)/icp/$(CHIP_ICP)
111icpclean:
112 @$(GNUMAKE) --no-print-directory $(MAKEOPTS) -C $(CHIP_SRC_PATH)/icp/$(CHIP_ICP) clean
113
114ifeq ($(USE_ICP_SDK),yes)
115ifeq ($(USE_SDK_COMPILE),yes)
116_ALL_MDLS_SDK += icp
117_ALL_OBJECTS_SDK += $(wildcard $(CHIP_OBJ_PATH)/icp/*.o)
118endif
119else
120_ALL_MDLS += icp
121_ALL_OBJECTS += $(wildcard $(CHIP_OBJ_PATH)/icp/*.o)
122endif
123endif
124
125#===============================================
126# lpm
127#===============================================
128ifeq ($(USE_LPM),yes)
129lpm:
130 @$(GNUMAKE) --no-print-directory $(MAKEOPTS) -C $(CHIP_SRC_PATH)/lpm/$(CHIP_LPM)
131lpmclean:
132 @$(GNUMAKE) --no-print-directory $(MAKEOPTS) -C $(CHIP_SRC_PATH)/lpm/$(CHIP_LPM) clean
133
134ifeq ($(USE_LPM_SDK),yes)
135ifeq ($(USE_SDK_COMPILE),yes)
136_ALL_MDLS_SDK += lpm
137_ALL_OBJECTS_SDK += $(wildcard $(CHIP_OBJ_PATH)/lpm/*.o)
138endif
139else
140_ALL_MDLS += lpm
141_ALL_OBJECTS += $(wildcard $(CHIP_OBJ_PATH)/lpm/*.o)
142endif
143endif
144
145#===============================================
146# gpio
147#===============================================
148ifeq ($(USE_GPIO),yes)
149gpio:
150 @$(GNUMAKE) --no-print-directory $(MAKEOPTS) -C $(CHIP_SRC_PATH)/gpio/$(CHIP_GPIO)
151gpioclean:
152 @$(GNUMAKE) --no-print-directory $(MAKEOPTS) -C $(CHIP_SRC_PATH)/gpio/$(CHIP_GPIO) clean
153
154ifeq ($(USE_GPIO_SDK),yes)
155ifeq ($(USE_SDK_COMPILE),yes)
156_ALL_MDLS_SDK += gpio
157_ALL_OBJECTS_SDK += $(wildcard $(CHIP_OBJ_PATH)/gpio/*.o)
158endif
159else
160_ALL_MDLS += gpio
161_ALL_OBJECTS += $(wildcard $(CHIP_OBJ_PATH)/gpio/*.o)
162endif
163endif
164
165#===============================================
166# spi
167#===============================================
168
169ifeq ($(USE_SPI),yes)
170spi:
171 @$(GNUMAKE) --no-print-directory $(MAKEOPTS) -C $(CHIP_SRC_PATH)/spi/$(CHIP_SPI)
172spiclean:
173 @$(GNUMAKE) --no-print-directory $(MAKEOPTS) -C $(CHIP_SRC_PATH)/spi/$(CHIP_SPI) clean
174
175ifeq ($(USE_SPI_SDK),yes)
176ifeq ($(USE_SDK_COMPILE),yes)
177_ALL_MDLS_SDK += spi
178_ALL_OBJECTS_SDK += $(wildcard $(CHIP_OBJ_PATH)/spi/*.o)
179endif
180else
181_ALL_MDLS += spi
182_ALL_OBJECTS += $(wildcard $(CHIP_OBJ_PATH)/spi/*.o)
183endif
184endif
185
186#===============================================
187# spicc
188#===============================================
189
190ifeq ($(USE_SPICC),yes)
191spicc:
192 @$(GNUMAKE) --no-print-directory $(MAKEOPTS) -C $(CHIP_SRC_PATH)/spicc/$(CHIP_SPICC)
193spiccclean:
194 @$(GNUMAKE) --no-print-directory $(MAKEOPTS) -C $(CHIP_SRC_PATH)/spicc/$(CHIP_SPICC) clean
195
196ifeq ($(USE_SPICC_SDK),yes)
197ifeq ($(USE_SDK_COMPILE),yes)
198_ALL_MDLS_SDK += spicc
199_ALL_OBJECTS_SDK += $(wildcard $(CHIP_OBJ_PATH)/spicc/*.o)
200endif
201else
202_ALL_MDLS += spicc
203_ALL_OBJECTS += $(wildcard $(CHIP_OBJ_PATH)/spicc/*.o)
204endif
205endif
206
207#===============================================
208# vou
209#===============================================
210
211ifeq ($(USE_VOU),yes)
212vou:
213 @$(GNUMAKE) --no-print-directory $(MAKEOPTS) -C $(CHIP_SRC_PATH)/vou/$(CHIP_VOU)
214vouclean:
215 @$(GNUMAKE) --no-print-directory $(MAKEOPTS) -C $(CHIP_SRC_PATH)/vou/$(CHIP_VOU) clean
216
217ifeq ($(USE_VOU_SDK),yes)
218ifeq ($(USE_SDK_COMPILE),yes)
219_ALL_MDLS_SDK += vou
220_ALL_OBJECTS_SDK += $(wildcard $(CHIP_OBJ_PATH)/vou/*.o)
221endif
222else
223_ALL_MDLS += vou
224_ALL_OBJECTS += $(wildcard $(CHIP_OBJ_PATH)/vou/*.o)
225endif
226endif
227
228#===============================================
229# camera
230#===============================================
231
232ifeq ($(USE_CAMERA),yes)
233camera:
234 @$(GNUMAKE) --no-print-directory $(MAKEOPTS) -C $(CHIP_SRC_PATH)/camera
235cameraclean:
236 @$(GNUMAKE) --no-print-directory $(MAKEOPTS) -C $(CHIP_SRC_PATH)/camera clean
237
238ifeq ($(USE_CAMERA_SDK),yes)
239ifeq ($(USE_SDK_COMPILE),yes)
240_ALL_MDLS_SDK += camera
241_ALL_OBJECTS_SDK += $(wildcard $(CHIP_OBJ_PATH)/camera/*.o)
242endif
243else
244_ALL_MDLS += camera
245_ALL_OBJECTS += $(wildcard $(CHIP_OBJ_PATH)/camera/*.o)
246endif
247endif
248#===============================================
249# mmc
250#===============================================
251ifeq ($(USE_MMC_HOST),yes)
252mmcHost:
253 @$(GNUMAKE) --no-print-directory $(MAKEOPTS) -C $(CHIP_SRC_PATH)/mmc/$(CHIP_MMC_HOST)/ws
254mmcHostclean:
255 @$(GNUMAKE) --no-print-directory $(MAKEOPTS) -C $(CHIP_SRC_PATH)/mmc/$(CHIP_MMC_HOST)/ws clean
256
257ifeq ($(USE_MMC_SDK),yes)
258ifeq ($(USE_SDK_COMPILE),yes)
259_ALL_MDLS_SDK += mmcHost
260_ALL_OBJECTS_SDK += $(wildcard $(CHIP_OBJ_PATH)/mmc/*.o)
261endif
262else
263_ALL_MDLS += mmcHost
264_ALL_OBJECTS += $(wildcard $(CHIP_OBJ_PATH)/mmc/*.o)
265endif
266endif
267
268ifeq ($(USE_MMC_SLAVE),yes)
269mmcSlave:
270 @$(GNUMAKE) --no-print-directory $(MAKEOPTS) -C $(CHIP_SRC_PATH)/mmc/$(CHIP_MMC_SLAVE)/ws
271mmcSlaveclean:
272 @$(GNUMAKE) --no-print-directory $(MAKEOPTS) -C $(CHIP_SRC_PATH)/mmc/$(CHIP_MMC_SLAVE)/ws clean
273
274ifeq ($(USE_MMC_SDK),yes)
275ifeq ($(USE_SDK_COMPILE),yes)
276_ALL_MDLS_SDK += mmcSlave
277_ALL_OBJECTS_SDK += $(wildcard $(CHIP_OBJ_PATH)/mmc/*.o)
278endif
279else
280_ALL_MDLS += mmcSlave
281_ALL_OBJECTS += $(wildcard $(CHIP_OBJ_PATH)/mmc/*.o)
282endif
283endif
284
285#===============================================
286# uart
287#===============================================
288ifeq ($(USE_UART),yes)
289uart:
290 @$(GNUMAKE) --no-print-directory $(MAKEOPTS) -C $(CHIP_SRC_PATH)/uart/$(CHIP_UART)
291uartclean:
292 @$(GNUMAKE) --no-print-directory $(MAKEOPTS) -C $(CHIP_SRC_PATH)/uart/$(CHIP_UART) clean
293
294ifeq ($(USE_UART_SDK),yes)
295ifeq ($(USE_SDK_COMPILE),yes)
296_ALL_MDLS_SDK += uart
297_ALL_OBJECTS_SDK += $(wildcard $(CHIP_OBJ_PATH)/uart/*.o)
298endif
299else
300_ALL_MDLS += uart
301_ALL_OBJECTS += $(wildcard $(CHIP_OBJ_PATH)/uart/*.o)
302endif
303
304endif
305
306#===============================================
307# rtc
308#===============================================
309
310ifeq ($(USE_RTC),yes)
311rtc:
312 @$(GNUMAKE) --no-print-directory $(MAKEOPTS) -C $(CHIP_SRC_PATH)/rtc/$(CHIP_RTC)
313rtcclean:
314 @$(GNUMAKE) --no-print-directory $(MAKEOPTS) -C $(CHIP_SRC_PATH)/rtc/$(CHIP_RTC) clean
315
316ifeq ($(USE_RTC_SDK),yes)
317ifeq ($(USE_SDK_COMPILE),yes)
318_ALL_MDLS_SDK += rtc
319_ALL_OBJECTS_SDK += $(wildcard $(CHIP_OBJ_PATH)/rtc/*.o)
320endif
321else
322_ALL_MDLS += rtc
323_ALL_OBJECTS += $(wildcard $(CHIP_OBJ_PATH)/rtc/*.o)
324endif
325endif
326
327
328#===============================================
329# dma
330#===============================================
331
332ifeq ($(USE_DMA),yes)
333dma:
334 @$(GNUMAKE) --no-print-directory $(MAKEOPTS) -C $(CHIP_SRC_PATH)/dma/$(CHIP_DMA)
335dmaclean:
336 @$(GNUMAKE) --no-print-directory $(MAKEOPTS) -C $(CHIP_SRC_PATH)/dma/$(CHIP_DMA) clean
337
338ifeq ($(USE_DMA_SDK),yes)
339ifeq ($(USE_SDK_COMPILE),yes)
340_ALL_MDLS_SDK += dma
341_ALL_OBJECTS_SDK += $(wildcard $(CHIP_OBJ_PATH)/dma/*.o)
342endif
343else
344_ALL_MDLS += dma
345_ALL_OBJECTS += $(wildcard $(CHIP_OBJ_PATH)/dma/*.o)
346endif
347endif
348
349#===============================================
350# edcp
351#===============================================
352
353ifeq ($(USE_EDCP),yes)
354edcp:
355 @$(GNUMAKE) --no-print-directory $(MAKEOPTS) -C $(CHIP_SRC_PATH)/edcp/$(CHIP_EDCP)
356edcpclean:
357 @$(GNUMAKE) --no-print-directory $(MAKEOPTS) -C $(CHIP_SRC_PATH)/edcp/$(CHIP_EDCP) clean
358
359ifeq ($(USE_EDCP_SDK),yes)
360ifeq ($(USE_SDK_COMPILE),yes)
361_ALL_MDLS_SDK += edcp
362_ALL_OBJECTS_SDK += $(wildcard $(CHIP_OBJ_PATH)/edcp/*.o)
363endif
364else
365_ALL_MDLS += edcp
366_ALL_OBJECTS += $(wildcard $(CHIP_OBJ_PATH)/edcp/*.o)
367endif
368endif
369
370#===============================================
371# uicc
372#===============================================
373
374ifeq ($(USE_UICC),yes)
375uicc:
376 @$(GNUMAKE) --no-print-directory $(MAKEOPTS) -C $(CHIP_SRC_PATH)/uicc/$(CHIP_UICC)
377 @$(GNUMAKE) --no-print-directory $(MAKEOPTS) -C $(CHIP_SRC_PATH)/uicc/DD
378 @$(GNUMAKE) --no-print-directory $(MAKEOPTS) -C $(CHIP_SRC_PATH)/uicc/agent
379uiccclean:
380 @$(GNUMAKE) --no-print-directory $(MAKEOPTS) -C $(CHIP_SRC_PATH)/uicc/$(CHIP_UICC) clean
381 @$(GNUMAKE) --no-print-directory $(MAKEOPTS) -C $(CHIP_SRC_PATH)/uicc/DD clean
382 @$(GNUMAKE) --no-print-directory $(MAKEOPTS) -C $(CHIP_SRC_PATH)/uicc/agent clean
383
384ifeq ($(USE_UICC_SDK),yes)
385ifeq ($(USE_SDK_COMPILE),yes)
386_ALL_MDLS_SDK += uicc
387_ALL_OBJECTS_SDK += $(wildcard $(CHIP_OBJ_PATH)/uicc/*.o)
388endif
389else
390_ALL_MDLS += uicc
391_ALL_OBJECTS += $(wildcard $(CHIP_OBJ_PATH)/uicc/*.o)
392endif
393endif
394
395#===============================================
396# dpram
397#===============================================
398
399ifeq ($(USE_DPRAM),yes)
400dpram:
401 @$(GNUMAKE) --no-print-directory $(MAKEOPTS) -C $(CHIP_SRC_PATH)/dpram/$(CHIP_DPRAM)
402dpramclean:
403 @$(GNUMAKE) --no-print-directory $(MAKEOPTS) -C $(CHIP_SRC_PATH)/dpram/$(CHIP_DPRAM) clean
404
405ifeq ($(USE_DPRAM_SDK),yes)
406ifeq ($(USE_SDK_COMPILE),yes)
407_ALL_MDLS_SDK += dpram
408_ALL_OBJECTS_SDK += $(wildcard $(CHIP_OBJ_PATH)/dpram/*.o)
409endif
410else
411_ALL_MDLS += dpram
412_ALL_OBJECTS += $(wildcard $(CHIP_OBJ_PATH)/dpram/*.o)
413endif
414endif
415
416
417#===============================================
418# pow
419#===============================================
420
421ifeq ($(USE_POW),yes)
422pow:
423 @$(GNUMAKE) --no-print-directory $(MAKEOPTS) -C $(CHIP_SRC_PATH)/pow/$(CHIP_POW)/Ws
424powclean:
425 @$(GNUMAKE) --no-print-directory $(MAKEOPTS) -C $(CHIP_SRC_PATH)/pow/$(CHIP_POW)/Ws clean
426
427ifeq ($(USE_POW_SDK),yes)
428ifeq ($(USE_SDK_COMPILE),yes)
429_ALL_MDLS_SDK += pow
430_ALL_OBJECTS_SDK += $(wildcard $(CHIP_OBJ_PATH)/pow/*.o)
431endif
432else
433_ALL_MDLS += pow
434_ALL_OBJECTS += $(wildcard $(CHIP_OBJ_PATH)/pow/*.o)
435endif
436endif
437
438#===============================================
439# cipher
440#===============================================
441
442ifeq ($(USE_CIPHER),yes)
443cipher:
444 @$(GNUMAKE) --no-print-directory $(MAKEOPTS) -C $(CHIP_SRC_PATH)/cipher/$(CHIP_CIPHER)
445cipherclean:
446
447 @$(GNUMAKE) --no-print-directory $(MAKEOPTS) -C $(CHIP_SRC_PATH)/cipher/$(CHIP_CIPHER) clean
448
449ifeq ($(USE_CIPHER_SDK),yes)
450ifeq ($(USE_SDK_COMPILE),yes)
451_ALL_MDLS_SDK += cipher
452_ALL_OBJECTS_SDK += $(wildcard $(CHIP_OBJ_PATH)/cipher/*.o)
453endif
454else
455_ALL_MDLS += cipher
456_ALL_OBJECTS += $(wildcard $(CHIP_OBJ_PATH)/cipher/*.o)
457endif
458endif
459
460
461
462#===============================================
463# dsp
464#===============================================
465
466#ifeq ($(USE_DSP),yes)
467#dsp:
468# @$(GNUMAKE) --no-print-directory $(MAKEOPTS) -C $(CHIP_SRC_PATH)/dsp/$(CHIP_DSP)
469#dspclean:
470# @$(GNUMAKE) --no-print-directory $(MAKEOPTS) -C $(CHIP_SRC_PATH)/dsp/$(CHIP_DSP) clean
471#
472#_ALL_MDLS += dsp
473#_ALL_OBJECTS += $(wildcard $(OBJ_PATH)/drv/hal/dsp/*.o)
474
475#endif
476
477
478#===============================================
479# i2c
480#===============================================
481
482ifeq ($(USE_I2C),yes)
483i2c:
484 @$(GNUMAKE) --no-print-directory $(MAKEOPTS) -C $(CHIP_SRC_PATH)/i2c/$(CHIP_I2C)
485i2cclean:
486 @$(GNUMAKE) --no-print-directory $(MAKEOPTS) -C $(CHIP_SRC_PATH)/i2c/$(CHIP_I2C) clean
487
488ifeq ($(USE_I2C_SDK),yes)
489ifeq ($(USE_SDK_COMPILE),yes)
490_ALL_MDLS_SDK += i2c
491_ALL_OBJECTS_SDK += $(wildcard $(CHIP_OBJ_PATH)/i2c/*.o)
492endif
493else
494_ALL_MDLS += i2c
495_ALL_OBJECTS += $(wildcard $(CHIP_OBJ_PATH)/i2c/*.o)
496endif
497endif
498
499#===============================================
500# efuse
501#===============================================
502
503ifeq ($(USE_EFUSE),yes)
504efuse:
505 @$(GNUMAKE) --no-print-directory $(MAKEOPTS) -C $(CHIP_SRC_PATH)/efuse/$(CHIP_EFUSE)
506efuseclean:
507 @$(GNUMAKE) --no-print-directory $(MAKEOPTS) -C $(CHIP_SRC_PATH)/efuse/$(CHIP_EFUSE) clean
508
509ifeq ($(USE_EFUSE_SDK),yes)
510ifeq ($(USE_SDK_COMPILE),yes)
511_ALL_MDLS_SDK += efuse
512_ALL_OBJECTS_SDK += $(wildcard $(CHIP_OBJ_PATH)/efuse/*.o)
513endif
514else
515_ALL_MDLS += efuse
516_ALL_OBJECTS += $(wildcard $(CHIP_OBJ_PATH)/efuse/*.o)
517endif
518endif
519
520#===============================================
521# watchdog
522#===============================================
523ifeq ($(USE_WDT),yes)
524wdt:
525 @$(GNUMAKE) --no-print-directory $(MAKEOPTS) -C $(CHIP_SRC_PATH)/wdt/$(CHIP_WDT)
526wdtclean:
527 @$(GNUMAKE) --no-print-directory $(MAKEOPTS) -C $(CHIP_SRC_PATH)/wdt/$(CHIP_WDT) clean
528
529ifeq ($(USE_WDT_SDK),yes)
530ifeq ($(USE_SDK_COMPILE),yes)
531_ALL_MDLS_SDK += wdt
532_ALL_OBJECTS_SDK += $(wildcard $(CHIP_OBJ_PATH)/wdt/*.o)
533endif
534else
535_ALL_MDLS += wdt
536_ALL_OBJECTS += $(wildcard $(CHIP_OBJ_PATH)/wdt/*.o)
537endif
538endif
539
540#===============================================
541# common
542#===============================================
543ifeq ($(USE_COMM),yes)
544comm:
545 @$(GNUMAKE) --no-print-directory $(MAKEOPTS) -C $(CHIP_SRC_PATH)/comm
546commclean:
547 @$(GNUMAKE) --no-print-directory $(MAKEOPTS) -C $(CHIP_SRC_PATH)/comm clean
548
549ifeq ($(USE_COMM_SDK),yes)
550ifeq ($(USE_SDK_COMPILE),yes)
551_ALL_MDLS_SDK += comm
552_ALL_OBJECTS_SDK += $(wildcard $(CHIP_OBJ_PATH)/comm/*.o)
553endif
554else
555_ALL_MDLS += comm
556_ALL_OBJECTS += $(wildcard $(CHIP_OBJ_PATH)/comm/*.o)
557endif
558endif
559
560
561#===============================================
562# disk
563#===============================================
564ifeq ($(USE_DISK),yes)
565disk:
566 @$(GNUMAKE) --no-print-directory $(MAKEOPTS) -C $(CHIP_SRC_PATH)/disk
567diskclean:
568 @$(GNUMAKE) --no-print-directory $(MAKEOPTS) -C $(CHIP_SRC_PATH)/disk clean
569
570ifeq ($(USE_DISK_SDK),yes)
571ifeq ($(USE_SDK_COMPILE),yes)
572_ALL_MDLS_SDK += disk
573_ALL_OBJECTS_SDK += $(wildcard $(CHIP_OBJ_PATH)/disk/*.o)
574endif
575else
576_ALL_MDLS += disk
577_ALL_OBJECTS += $(wildcard $(CHIP_OBJ_PATH)/disk/*.o)
578endif
579endif
580
581
582#===============================================
583# ddrnet
584#===============================================
585ifeq ($(USE_DDRNET),yes)
586ddrnet:
587 @$(GNUMAKE) --no-print-directory $(MAKEOPTS) -C $(CHIP_SRC_PATH)/ddrnet
588ddrnetclean:
589 @$(GNUMAKE) --no-print-directory $(MAKEOPTS) -C $(CHIP_SRC_PATH)/ddrnet clean
590
591ifeq ($(USE_DDRNET_SDK),yes)
592ifeq ($(USE_SDK_COMPILE),yes)
593_ALL_MDLS_SDK += ddrnet
594_ALL_OBJECTS_SDK += $(wildcard $(CHIP_OBJ_PATH)/ddrnet/*.o)
595endif
596else
597_ALL_MDLS += ddrnet
598_ALL_OBJECTS += $(wildcard $(CHIP_OBJ_PATH)/ddrnet/*.o)
599endif
600endif
601#===============================================
602# pmic
603#===============================================
604
605ifeq ($(USE_PMIC),yes)
606pmic:
607 @$(GNUMAKE) --no-print-directory $(MAKEOPTS) -C $(CHIP_SRC_PATH)/pmic/$(CHIP_PMIC)
608# @$(GNUMAKE) --no-print-directory $(MAKEOPTS) -C $(CHIP_SRC_PATH)/pmic/$(CHIP_PM)
609pmicclean:
610 @$(GNUMAKE) --no-print-directory $(MAKEOPTS) -C $(CHIP_SRC_PATH)/pmic/$(CHIP_PMIC) clean
611# @$(GNUMAKE) --no-print-directory $(MAKEOPTS) -C $(CHIP_SRC_PATH)/pmic/$(CHIP_PM) clean
612
613ifeq ($(USE_PMIC_SDK),yes)
614ifeq ($(USE_SDK_COMPILE),yes)
615_ALL_MDLS_SDK += pmic
616_ALL_OBJECTS_SDK += $(wildcard $(CHIP_OBJ_PATH)/pmic/*.o)
617endif
618else
619_ALL_MDLS += pmic
620_ALL_OBJECTS += $(wildcard $(CHIP_OBJ_PATH)/pmic/*.o)
621endif
622endif
623
624
625ifeq ($(USE_USBHOST),yes)
626usbhost:
627 @$(ECHO) "---Usb Host Drv"
628# @$(GNUMAKE) --no-print-directory -C $(CHIP_SRC_PATH)/usb/host/core
629# @$(GNUMAKE) --no-print-directory -C $(CHIP_SRC_PATH)/usb/host/serial
630# @$(GNUMAKE) --no-print-directory -C $(CHIP_SRC_PATH)/usb/host/hal/$(CHIP_USBHOST)
631 @$(GNUMAKE) --no-print-directory -C $(CHIP_SRC_PATH)/usb/host/ws
632usbhostclean:
633# @$(GNUMAKE) --no-print-directory -C $(CHIP_SRC_PATH)/usb/host/core clean
634# @$(GNUMAKE) --no-print-directory -C $(CHIP_SRC_PATH)/usb/host/serial clean
635# @$(GNUMAKE) --no-print-directory -C $(CHIP_SRC_PATH)/usb/host/hal/$(CHIP_USBHOST) clean
636 @$(GNUMAKE) --no-print-directory -C $(CHIP_SRC_PATH)/usb/host/ws clean
637
638ifeq ($(USE_USBHOST_SDK),yes)
639ifeq ($(USE_SDK_COMPILE),yes)
640_ALL_MDLS_SDK += usbhost
641_ALL_OBJECTS_SDK += $(wildcard $(CHIP_OBJ_PATH)/usbhost/*.o)
642endif
643else
644_ALL_MDLS += usbhost
645#_ALL_OBJECTS += $(wildcard $(OBJ_PATH)/drv/hal/usb/host/core/*.o)
646#_ALL_OBJECTS += $(wildcard $(OBJ_PATH)/drv/hal/usb/host/serial/*.o)
647#_ALL_OBJECTS += $(wildcard $(OBJ_PATH)/drv/hal/usb/host/hal/$(CHIP_USBHOST)/*.o)
648_ALL_OBJECTS += $(wildcard $(OBJ_PATH)/drv/hal/usb/host/*.o)
649endif
650endif
651
652#===============================================
653# tsc
654#===============================================
655
656ifeq ($(USE_TSC),yes)
657tsc:
658 @$(GNUMAKE) --no-print-directory $(MAKEOPTS) -C $(CHIP_SRC_PATH)/tsc/$(CHIP_TSC)
659# @$(GNUMAKE) --no-print-directory $(MAKEOPTS) -C $(CHIP_SRC_PATH)/pmic/$(CHIP_PM)
660tscclean:
661 @$(GNUMAKE) --no-print-directory $(MAKEOPTS) -C $(CHIP_SRC_PATH)/tsc/$(CHIP_TSC) clean
662# @$(GNUMAKE) --no-print-directory $(MAKEOPTS) -C $(CHIP_SRC_PATH)/pmic/$(CHIP_PM) clean
663
664ifeq ($(USE_TSC_SDK),yes)
665ifeq ($(USE_SDK_COMPILE),yes)
666_ALL_MDLS_SDK += tsc
667_ALL_OBJECTS_SDK += $(wildcard $(CHIP_OBJ_PATH)/tsc/*.o)
668endif
669else
670_ALL_MDLS += tsc
671_ALL_OBJECTS += $(wildcard $(CHIP_OBJ_PATH)/tsc/*.o)
672endif
673endif
674
675#===============================================
676# aud base
677#===============================================
678ifeq ($(USE_AUDIO_BASE),yes)
679audio_base:
680 #$(ECHO) audio_base $(USE_AUDIO_BASE)
681 #$(ECHO) use_amt $(USE_AMT)
682 @$(GNUMAKE) --no-print-directory $(MAKEOPTS) -C $(CHIP_SRC_PATH)/audio_base/ws lib
683audio_baseclean:
684 @$(GNUMAKE) --no-print-directory $(MAKEOPTS) -C $(CHIP_SRC_PATH)/audio_base/ws clean
685
686ifeq ($(USE_AUDIO_BASE_SDK),yes)
687ifeq ($(USE_SDK_COMPILE),yes)
688_ALL_MDLS_SDK += audio_base
689endif
690else
691_ALL_MDLS += audio_base
692endif
693endif
694
695#===============================================
696# charger
697#===============================================
698
699ifeq ($(USE_CHG),yes)
700charger:
701 @$(GNUMAKE) --no-print-directory $(MAKEOPTS) -C $(CHIP_SRC_PATH)/charger/$(CHIP_CHG)
702chargerclean:
703 @$(GNUMAKE) --no-print-directory $(MAKEOPTS) -C $(CHIP_SRC_PATH)/charger/$(CHIP_CHG) clean
704
705ifeq ($(USE_CHG_SDK),yes)
706ifeq ($(USE_SDK_COMPILE),yes)
707_ALL_MDLS_SDK += charger
708_ALL_OBJECTS_SDK += $(wildcard $(CHIP_OBJ_PATH)/charger/*.o)
709endif
710else
711_ALL_MDLS += charger
712_ALL_OBJECTS += $(wildcard $(CHIP_OBJ_PATH)/charger/*.o)
713endif
714endif
715
716#===============================================
717# LCD
718#===============================================
719
720ifeq ($(USE_LCD),yes)
721lcd:
722 $(GNUMAKE) --no-print-directory $(MAKEOPTS) -C $(CHIP_SRC_PATH)/lcd/$(CHIP_LCD)
723lcdclean:
724 $(GNUMAKE) --no-print-directory $(MAKEOPTS) -C $(CHIP_SRC_PATH)/lcd/$(CHIP_LCD) clean
725
726ifeq ($(USE_LCD_SDK),yes)
727ifeq ($(USE_SDK_COMPILE),yes)
728_ALL_MDLS_SDK += lcd
729_ALL_OBJECTS_SDK += $(wildcard $(CHIP_OBJ_PATH)/lcd/*.o)
730endif
731else
732_ALL_MDLS += lcd
733_ALL_OBJECTS += $(wildcard $(CHIP_OBJ_PATH)/lcd/*.o)
734endif
735endif
736
737#===============================================
738# LED
739#===============================================
740
741ifeq ($(USE_LED),yes)
742led:
743 @$(GNUMAKE) --no-print-directory $(MAKEOPTS) -C $(CHIP_SRC_PATH)/led/$(CHIP_LED)
744ledclean:
745 @$(GNUMAKE) --no-print-directory $(MAKEOPTS) -C $(CHIP_SRC_PATH)/led/$(CHIP_LED) clean
746
747ifeq ($(USE_LED_SDK),yes)
748ifeq ($(USE_SDK_COMPILE),yes)
749_ALL_MDLS_SDK += led
750_ALL_OBJECTS_SDK += $(wildcard $(CHIP_OBJ_PATH)/led/*.o)
751endif
752else
753_ALL_MDLS += led
754_ALL_OBJECTS += $(wildcard $(CHIP_OBJ_PATH)/led/*.o)
755endif
756endif
757
758#===============================================
759# KPD
760#===============================================
761
762ifeq ($(USE_KPD),yes)
763kpd:
764 @$(GNUMAKE) --no-print-directory $(MAKEOPTS) -C $(CHIP_SRC_PATH)/kpd/$(CHIP_KPD)
765kpdclean:
766 @$(GNUMAKE) --no-print-directory $(MAKEOPTS) -C $(CHIP_SRC_PATH)/kpd/$(CHIP_KPD) clean
767
768ifeq ($(USE_KPD_SDK),yes)
769ifeq ($(USE_SDK_COMPILE),yes)
770_ALL_MDLS_SDK += kpd
771_ALL_OBJECTS_SDK += $(wildcard $(CHIP_OBJ_PATH)/kpd/*.o)
772endif
773else
774_ALL_MDLS += kpd
775_ALL_OBJECTS += $(wildcard $(CHIP_OBJ_PATH)/kpd/*.o)
776endif
777endif
778
779#===============================================
780# FM
781#===============================================
782
783ifeq ($(USE_FM),yes)
784fm:
785 @$(GNUMAKE) --no-print-directory $(MAKEOPTS) -C $(CHIP_SRC_PATH)/fm/$(CHIP_FM)
786fmclean:
787 @$(GNUMAKE) --no-print-directory $(MAKEOPTS) -C $(CHIP_SRC_PATH)/fm/$(CHIP_FM) clean
788
789ifeq ($(USE_FM_SDK),yes)
790ifeq ($(USE_SDK_COMPILE),yes)
791_ALL_MDLS_SDK += fm
792_ALL_OBJECTS_SDK += $(wildcard $(CHIP_OBJ_PATH)/fm/*.o)
793endif
794else
795_ALL_MDLS += fm
796_ALL_OBJECTS += $(wildcard $(CHIP_OBJ_PATH)/fm/*.o)
797endif
798endif
799
800#===============================================
801# Flashlight
802#===============================================
803
804ifeq ($(USE_FLASHLIGHT),yes)
805flashlight:
806 @$(GNUMAKE) --no-print-directory $(MAKEOPTS) -C $(CHIP_SRC_PATH)/flashlight/$(CHIP_FLASHLIGHT)
807flashlightclean:
808 @$(GNUMAKE) --no-print-directory $(MAKEOPTS) -C $(CHIP_SRC_PATH)/flashlight/$(CHIP_FLASHLIGHT) clean
809
810ifeq ($(USE_FLASHLIGHT_SDK),yes)
811ifeq ($(USE_SDK_COMPILE),yes)
812_ALL_MDLS_SDK += flashlight
813_ALL_OBJECTS_SDK += $(wildcard $(CHIP_OBJ_PATH)/flashlight/*.o)
814endif
815else
816_ALL_MDLS += flashlight
817_ALL_OBJECTS += $(wildcard $(CHIP_OBJ_PATH)/flashlight/*.o)
818endif
819endif
820#============================================
821# ±àÒë¹æÔò
822#============================================
823include $(FRAME_PATH)/rules/lib_rules.mk
824
825#============================================
826# sdk ·â¿â±àÒë¹æÔò
827#============================================
828_SUBSYS_SDK_NAME = drv_sdk
829_SUBSYS_SDK_LIB_PATH = $(DRV_LIB_PATH)
830include $(DRV_PATH)/ws/drv_sdk_lib_rules.mk
831#============================================
832# sdk Ä£¿é·â¿â±àÒë¹æÔò
833#============================================
834#_SUBSYS_SDK_MODULE_NAME = drv_module_sdk
835#include $(DRV_PATH)/ws/drv_sdk_module_lib_rules.mk