blob: 998e8b4444f35e90d7b863dbf5167efb0e0f94f8 [file] [log] [blame]
Ben Skeggs6ee73862009-12-11 19:24:15 +10001#
2# Makefile for the drm device driver. This driver provides support for the
3# Direct Rendering Infrastructure (DRI) in XFree86 4.1.0 and higher.
4
Ben Skeggs59999332012-08-03 14:58:10 +10005ccflags-y := -Iinclude/drm
Ben Skeggs02a841d2012-07-04 23:44:54 +10006ccflags-y += -I$(src)/core/include
Ben Skeggsebb945a2012-07-20 08:17:34 +10007ccflags-y += -I$(src)/core
Ben Skeggs02a841d2012-07-04 23:44:54 +10008ccflags-y += -I$(src)
9
Ben Skeggs9274f4a2012-07-06 07:36:43 +100010nouveau-y := core/core/client.o
Ben Skeggsebb945a2012-07-20 08:17:34 +100011nouveau-y += core/core/engctx.o
Ben Skeggs9274f4a2012-07-06 07:36:43 +100012nouveau-y += core/core/engine.o
Ben Skeggs861d2102012-07-11 19:05:01 +100013nouveau-y += core/core/enum.o
Ben Skeggs51fa0252013-01-31 00:38:22 +100014nouveau-y += core/core/event.o
Ben Skeggse3aaa942012-11-21 21:02:32 +100015nouveau-y += core/core/falcon.o
Ben Skeggs3863c9b2012-07-14 19:09:17 +100016nouveau-y += core/core/gpuobj.o
Ben Skeggs9274f4a2012-07-06 07:36:43 +100017nouveau-y += core/core/handle.o
18nouveau-y += core/core/mm.o
19nouveau-y += core/core/namedb.o
20nouveau-y += core/core/object.o
21nouveau-y += core/core/option.o
22nouveau-y += core/core/parent.o
23nouveau-y += core/core/printk.o
Ben Skeggs02a841d2012-07-04 23:44:54 +100024nouveau-y += core/core/ramht.o
Ben Skeggs9274f4a2012-07-06 07:36:43 +100025nouveau-y += core/core/subdev.o
Ben Skeggs02a841d2012-07-04 23:44:54 +100026
Ben Skeggs3863c9b2012-07-14 19:09:17 +100027nouveau-y += core/subdev/bar/base.o
28nouveau-y += core/subdev/bar/nv50.o
29nouveau-y += core/subdev/bar/nvc0.o
Ben Skeggs70c0f262012-07-10 10:49:22 +100030nouveau-y += core/subdev/bios/base.o
31nouveau-y += core/subdev/bios/bit.o
Ben Skeggscb75d972012-07-11 10:44:20 +100032nouveau-y += core/subdev/bios/conn.o
Ben Skeggse0996ae2012-07-10 12:20:17 +100033nouveau-y += core/subdev/bios/dcb.o
Ben Skeggsb6caea52012-11-02 11:02:47 +100034nouveau-y += core/subdev/bios/disp.o
Ben Skeggscb75d972012-07-11 10:44:20 +100035nouveau-y += core/subdev/bios/dp.o
Martin Peres32334cc2012-08-18 16:33:53 +020036nouveau-y += core/subdev/bios/extdev.o
Ben Skeggse0996ae2012-07-10 12:20:17 +100037nouveau-y += core/subdev/bios/gpio.o
Ben Skeggs4196faa2012-07-10 14:36:38 +100038nouveau-y += core/subdev/bios/i2c.o
Ben Skeggscb75d972012-07-11 10:44:20 +100039nouveau-y += core/subdev/bios/init.o
Ben Skeggsd38ac522012-07-22 16:41:26 +100040nouveau-y += core/subdev/bios/mxm.o
Martin Peresd46497d2012-08-30 02:31:59 +020041nouveau-y += core/subdev/bios/perf.o
Ben Skeggs70790f42012-07-10 17:26:46 +100042nouveau-y += core/subdev/bios/pll.o
Martin Peres7d70e9c2012-08-16 11:00:55 +020043nouveau-y += core/subdev/bios/therm.o
Ben Skeggs112a12a2012-12-07 10:31:09 +100044nouveau-y += core/subdev/bios/xpio.o
Martin Peresa10220b2012-11-04 01:01:53 +010045nouveau-y += core/subdev/bus/nv04.o
46nouveau-y += core/subdev/bus/nv31.o
47nouveau-y += core/subdev/bus/nv50.o
48nouveau-y += core/subdev/bus/nvc0.o
Ben Skeggs8aceb7d2012-07-10 16:45:24 +100049nouveau-y += core/subdev/clock/nv04.o
50nouveau-y += core/subdev/clock/nv40.o
51nouveau-y += core/subdev/clock/nv50.o
52nouveau-y += core/subdev/clock/nva3.o
53nouveau-y += core/subdev/clock/nvc0.o
Ben Skeggs70790f42012-07-10 17:26:46 +100054nouveau-y += core/subdev/clock/pllnv04.o
55nouveau-y += core/subdev/clock/pllnva3.o
Ben Skeggscb75d972012-07-11 10:44:20 +100056nouveau-y += core/subdev/devinit/base.o
57nouveau-y += core/subdev/devinit/nv04.o
58nouveau-y += core/subdev/devinit/nv05.o
59nouveau-y += core/subdev/devinit/nv10.o
60nouveau-y += core/subdev/devinit/nv1a.o
61nouveau-y += core/subdev/devinit/nv20.o
62nouveau-y += core/subdev/devinit/nv50.o
Ben Skeggs861d2102012-07-11 19:05:01 +100063nouveau-y += core/subdev/fb/base.o
Ben Skeggs02a841d2012-07-04 23:44:54 +100064nouveau-y += core/subdev/fb/nv04.o
65nouveau-y += core/subdev/fb/nv10.o
Ben Skeggsdac15582012-10-10 11:31:11 +100066nouveau-y += core/subdev/fb/nv1a.o
Ben Skeggs02a841d2012-07-04 23:44:54 +100067nouveau-y += core/subdev/fb/nv20.o
Ben Skeggsa8749af2012-10-09 15:48:11 +100068nouveau-y += core/subdev/fb/nv25.o
Ben Skeggs02a841d2012-07-04 23:44:54 +100069nouveau-y += core/subdev/fb/nv30.o
Ben Skeggs11bac402012-10-09 15:56:16 +100070nouveau-y += core/subdev/fb/nv35.o
Ben Skeggsd7da6282012-10-11 15:46:30 +100071nouveau-y += core/subdev/fb/nv36.o
Ben Skeggs02a841d2012-07-04 23:44:54 +100072nouveau-y += core/subdev/fb/nv40.o
Ben Skeggs4ae20742012-10-09 16:03:23 +100073nouveau-y += core/subdev/fb/nv41.o
74nouveau-y += core/subdev/fb/nv44.o
75nouveau-y += core/subdev/fb/nv46.o
76nouveau-y += core/subdev/fb/nv47.o
77nouveau-y += core/subdev/fb/nv49.o
78nouveau-y += core/subdev/fb/nv4e.o
Ben Skeggs02a841d2012-07-04 23:44:54 +100079nouveau-y += core/subdev/fb/nv50.o
80nouveau-y += core/subdev/fb/nvc0.o
Ben Skeggs02a841d2012-07-04 23:44:54 +100081nouveau-y += core/subdev/gpio/base.o
82nouveau-y += core/subdev/gpio/nv10.o
83nouveau-y += core/subdev/gpio/nv50.o
Ben Skeggse0996ae2012-07-10 12:20:17 +100084nouveau-y += core/subdev/gpio/nvd0.o
Ben Skeggsfa531bc2013-02-13 13:34:39 +100085nouveau-y += core/subdev/gpio/nve0.o
Ben Skeggs02a841d2012-07-04 23:44:54 +100086nouveau-y += core/subdev/i2c/base.o
Ben Skeggs5effecd2013-02-14 17:48:58 -050087nouveau-y += core/subdev/i2c/anx9805.o
Ben Skeggs4196faa2012-07-10 14:36:38 +100088nouveau-y += core/subdev/i2c/aux.o
89nouveau-y += core/subdev/i2c/bit.o
Ben Skeggs7dcd060c2013-02-16 15:21:58 +100090nouveau-y += core/subdev/i2c/nv04.o
91nouveau-y += core/subdev/i2c/nv4e.o
92nouveau-y += core/subdev/i2c/nv50.o
Ben Skeggs31a34aa2013-02-14 20:59:41 -050093nouveau-y += core/subdev/i2c/nv94.o
Ben Skeggs7dcd060c2013-02-16 15:21:58 +100094nouveau-y += core/subdev/i2c/nvd0.o
Ben Skeggsc0abf5c2012-09-26 13:05:01 +100095nouveau-y += core/subdev/ibus/nvc0.o
Ben Skeggs2c1a4252012-08-22 23:55:42 -040096nouveau-y += core/subdev/ibus/nve0.o
Ben Skeggs3863c9b2012-07-14 19:09:17 +100097nouveau-y += core/subdev/instmem/base.o
Ben Skeggs02a841d2012-07-04 23:44:54 +100098nouveau-y += core/subdev/instmem/nv04.o
Ben Skeggsaf7afbd2012-07-13 16:14:25 +100099nouveau-y += core/subdev/instmem/nv40.o
Ben Skeggs02a841d2012-07-04 23:44:54 +1000100nouveau-y += core/subdev/instmem/nv50.o
Ben Skeggs861d2102012-07-11 19:05:01 +1000101nouveau-y += core/subdev/ltcg/nvc0.o
Ben Skeggs7d9115d2012-07-11 15:58:56 +1000102nouveau-y += core/subdev/mc/base.o
Ben Skeggs02a841d2012-07-04 23:44:54 +1000103nouveau-y += core/subdev/mc/nv04.o
Ben Skeggs7d9115d2012-07-11 15:58:56 +1000104nouveau-y += core/subdev/mc/nv44.o
Ben Skeggs02a841d2012-07-04 23:44:54 +1000105nouveau-y += core/subdev/mc/nv50.o
Ben Skeggs7d9115d2012-07-11 15:58:56 +1000106nouveau-y += core/subdev/mc/nv98.o
107nouveau-y += core/subdev/mc/nvc0.o
Ben Skeggsd38ac522012-07-22 16:41:26 +1000108nouveau-y += core/subdev/mxm/base.o
109nouveau-y += core/subdev/mxm/mxms.o
110nouveau-y += core/subdev/mxm/nv50.o
Martin Peresaa1b9b42012-09-02 02:55:58 +0200111nouveau-y += core/subdev/therm/base.o
112nouveau-y += core/subdev/therm/fan.o
Ben Skeggs9c3bd3a2012-12-05 16:21:59 +1000113nouveau-y += core/subdev/therm/fannil.o
114nouveau-y += core/subdev/therm/fanpwm.o
Martin Peres0cbf83b2012-09-03 01:37:02 +0200115nouveau-y += core/subdev/therm/fantog.o
Martin Peresaa1b9b42012-09-02 02:55:58 +0200116nouveau-y += core/subdev/therm/ic.o
Ben Skeggs5f066c32012-12-04 11:35:40 +1000117nouveau-y += core/subdev/therm/temp.o
Martin Peresaa1b9b42012-09-02 02:55:58 +0200118nouveau-y += core/subdev/therm/nv40.o
119nouveau-y += core/subdev/therm/nv50.o
Martin Peres2f457362013-02-23 16:45:51 +0100120nouveau-y += core/subdev/therm/nv84.o
Ben Skeggs7b49bd62012-12-04 12:18:59 +1000121nouveau-y += core/subdev/therm/nva3.o
Ben Skeggsbc792022012-12-04 09:50:33 +1000122nouveau-y += core/subdev/therm/nvd0.o
Ben Skeggs5a5c7432012-07-11 16:08:25 +1000123nouveau-y += core/subdev/timer/base.o
Ben Skeggs02a841d2012-07-04 23:44:54 +1000124nouveau-y += core/subdev/timer/nv04.o
125nouveau-y += core/subdev/vm/base.o
Ben Skeggs3863c9b2012-07-14 19:09:17 +1000126nouveau-y += core/subdev/vm/nv04.o
127nouveau-y += core/subdev/vm/nv41.o
128nouveau-y += core/subdev/vm/nv44.o
Ben Skeggs02a841d2012-07-04 23:44:54 +1000129nouveau-y += core/subdev/vm/nv50.o
130nouveau-y += core/subdev/vm/nvc0.o
131
Ben Skeggsebb945a2012-07-20 08:17:34 +1000132nouveau-y += core/engine/dmaobj/base.o
133nouveau-y += core/engine/dmaobj/nv04.o
134nouveau-y += core/engine/dmaobj/nv50.o
135nouveau-y += core/engine/dmaobj/nvc0.o
Ben Skeggs344e1072012-10-08 14:11:35 +1000136nouveau-y += core/engine/dmaobj/nvd0.o
Ben Skeggs02a841d2012-07-04 23:44:54 +1000137nouveau-y += core/engine/bsp/nv84.o
Maarten Lankhorst23c14ed2012-11-23 11:08:23 +1000138nouveau-y += core/engine/bsp/nvc0.o
Ben Skeggsb2f04fc2012-11-22 15:42:23 +1000139nouveau-y += core/engine/bsp/nve0.o
Ben Skeggs02a841d2012-07-04 23:44:54 +1000140nouveau-y += core/engine/copy/nva3.o
141nouveau-y += core/engine/copy/nvc0.o
Ben Skeggs4f326562012-08-06 19:28:02 +1000142nouveau-y += core/engine/copy/nve0.o
Ben Skeggs02a841d2012-07-04 23:44:54 +1000143nouveau-y += core/engine/crypt/nv84.o
144nouveau-y += core/engine/crypt/nv98.o
Ben Skeggsdded35d2013-04-25 17:23:43 +1000145nouveau-y += core/engine/device/base.o
146nouveau-y += core/engine/device/nv04.o
147nouveau-y += core/engine/device/nv10.o
148nouveau-y += core/engine/device/nv20.o
149nouveau-y += core/engine/device/nv30.o
150nouveau-y += core/engine/device/nv40.o
151nouveau-y += core/engine/device/nv50.o
152nouveau-y += core/engine/device/nvc0.o
153nouveau-y += core/engine/device/nve0.o
Ben Skeggs1d7c71a2013-01-31 09:23:34 +1000154nouveau-y += core/engine/disp/base.o
Ben Skeggsebb945a2012-07-20 08:17:34 +1000155nouveau-y += core/engine/disp/nv04.o
156nouveau-y += core/engine/disp/nv50.o
Ben Skeggs70cabe42012-08-14 10:04:04 +1000157nouveau-y += core/engine/disp/nv84.o
158nouveau-y += core/engine/disp/nv94.o
159nouveau-y += core/engine/disp/nva0.o
160nouveau-y += core/engine/disp/nva3.o
Ben Skeggsebb945a2012-07-20 08:17:34 +1000161nouveau-y += core/engine/disp/nvd0.o
Ben Skeggs46654062012-08-28 14:10:39 +1000162nouveau-y += core/engine/disp/nve0.o
Ben Skeggse5398b22013-03-30 22:31:25 +1000163nouveau-y += core/engine/disp/nvf0.o
Ben Skeggs35b21d32012-11-08 12:08:55 +1000164nouveau-y += core/engine/disp/dacnv50.o
Ben Skeggs0a0afd22013-02-18 23:17:53 -0500165nouveau-y += core/engine/disp/dport.o
Ben Skeggsa4feaf42012-11-09 10:38:10 +1000166nouveau-y += core/engine/disp/hdanva3.o
Ben Skeggs0a9e2b952012-11-08 14:03:56 +1000167nouveau-y += core/engine/disp/hdanvd0.o
Ben Skeggs8e9e3d22012-11-09 10:54:38 +1000168nouveau-y += core/engine/disp/hdminv84.o
169nouveau-y += core/engine/disp/hdminva3.o
Ben Skeggs1c30cd02012-11-08 14:22:28 +1000170nouveau-y += core/engine/disp/hdminvd0.o
Ben Skeggsa2bc2832013-02-11 09:11:08 +1000171nouveau-y += core/engine/disp/piornv50.o
Ben Skeggs6c5a0422012-11-07 16:43:00 +1000172nouveau-y += core/engine/disp/sornv50.o
Ben Skeggsf7960732012-11-09 09:53:28 +1000173nouveau-y += core/engine/disp/sornv94.o
Ben Skeggs6c5a0422012-11-07 16:43:00 +1000174nouveau-y += core/engine/disp/sornvd0.o
Ben Skeggs4196faa2012-07-10 14:36:38 +1000175nouveau-y += core/engine/disp/vga.o
Ben Skeggsebb945a2012-07-20 08:17:34 +1000176nouveau-y += core/engine/fifo/base.o
Ben Skeggs02a841d2012-07-04 23:44:54 +1000177nouveau-y += core/engine/fifo/nv04.o
178nouveau-y += core/engine/fifo/nv10.o
179nouveau-y += core/engine/fifo/nv17.o
180nouveau-y += core/engine/fifo/nv40.o
181nouveau-y += core/engine/fifo/nv50.o
182nouveau-y += core/engine/fifo/nv84.o
183nouveau-y += core/engine/fifo/nvc0.o
184nouveau-y += core/engine/fifo/nve0.o
185nouveau-y += core/engine/graph/ctxnv40.o
186nouveau-y += core/engine/graph/ctxnv50.o
187nouveau-y += core/engine/graph/ctxnvc0.o
188nouveau-y += core/engine/graph/ctxnve0.o
189nouveau-y += core/engine/graph/nv04.o
190nouveau-y += core/engine/graph/nv10.o
191nouveau-y += core/engine/graph/nv20.o
Ben Skeggsebb945a2012-07-20 08:17:34 +1000192nouveau-y += core/engine/graph/nv25.o
193nouveau-y += core/engine/graph/nv2a.o
194nouveau-y += core/engine/graph/nv30.o
195nouveau-y += core/engine/graph/nv34.o
196nouveau-y += core/engine/graph/nv35.o
Ben Skeggs02a841d2012-07-04 23:44:54 +1000197nouveau-y += core/engine/graph/nv40.o
198nouveau-y += core/engine/graph/nv50.o
199nouveau-y += core/engine/graph/nvc0.o
200nouveau-y += core/engine/graph/nve0.o
201nouveau-y += core/engine/mpeg/nv31.o
Ben Skeggsebb945a2012-07-20 08:17:34 +1000202nouveau-y += core/engine/mpeg/nv40.o
Ben Skeggs02a841d2012-07-04 23:44:54 +1000203nouveau-y += core/engine/mpeg/nv50.o
Ben Skeggsebb945a2012-07-20 08:17:34 +1000204nouveau-y += core/engine/mpeg/nv84.o
Ben Skeggs02a841d2012-07-04 23:44:54 +1000205nouveau-y += core/engine/ppp/nv98.o
Maarten Lankhorst4a795012012-11-23 11:13:36 +1000206nouveau-y += core/engine/ppp/nvc0.o
Ben Skeggsebb945a2012-07-20 08:17:34 +1000207nouveau-y += core/engine/software/nv04.o
208nouveau-y += core/engine/software/nv10.o
209nouveau-y += core/engine/software/nv50.o
210nouveau-y += core/engine/software/nvc0.o
Ben Skeggs02a841d2012-07-04 23:44:54 +1000211nouveau-y += core/engine/vp/nv84.o
Maarten Lankhorst7d8bd912012-11-23 11:10:45 +1000212nouveau-y += core/engine/vp/nvc0.o
Ben Skeggsa7416d02012-11-22 15:48:41 +1000213nouveau-y += core/engine/vp/nve0.o
Ben Skeggs02a841d2012-07-04 23:44:54 +1000214
Ben Skeggsebb945a2012-07-20 08:17:34 +1000215# drm/core
216nouveau-y += nouveau_drm.o nouveau_chan.o nouveau_dma.o nouveau_fence.o
Ben Skeggs0fa90612013-03-22 10:05:03 +1000217nouveau-y += nouveau_vga.o nouveau_agp.o
Ben Skeggsebb945a2012-07-20 08:17:34 +1000218nouveau-y += nouveau_ttm.o nouveau_sgdma.o nouveau_bo.o nouveau_gem.o
Ben Skeggs77145f12012-07-31 16:16:21 +1000219nouveau-y += nouveau_prime.o nouveau_abi16.o
Ben Skeggs60e5cb72013-02-14 12:59:36 +1000220nouveau-y += nv04_fence.o nv10_fence.o nv17_fence.o
221nouveau-y += nv50_fence.o nv84_fence.o nvc0_fence.o
Ben Skeggsebb945a2012-07-20 08:17:34 +1000222
Ben Skeggs77145f12012-07-31 16:16:21 +1000223# drm/kms
224nouveau-y += nouveau_bios.o nouveau_fbcon.o nouveau_display.o
Ben Skeggs4f6029d2012-11-16 11:54:31 +1000225nouveau-y += nouveau_connector.o nouveau_dp.o
Ben Skeggs77145f12012-07-31 16:16:21 +1000226nouveau-y += nv04_fbcon.o nv50_fbcon.o nvc0_fbcon.o
Ben Skeggsebb945a2012-07-20 08:17:34 +1000227
228# drm/kms/nv04:nv50
Ben Skeggs1a646342013-03-21 15:45:11 +1000229include $(src)/dispnv04/Makefile
Ben Skeggsebb945a2012-07-20 08:17:34 +1000230
231# drm/kms/nv50-
Ben Skeggse225f442012-11-21 14:40:21 +1000232nouveau-y += nv50_display.o
Ben Skeggsebb945a2012-07-20 08:17:34 +1000233
234# drm/pm
Martin Peresaa1b9b42012-09-02 02:55:58 +0200235nouveau-y += nouveau_pm.o nouveau_volt.o nouveau_perf.o
Ben Skeggsebb945a2012-07-20 08:17:34 +1000236nouveau-y += nv04_pm.o nv40_pm.o nv50_pm.o nva3_pm.o nvc0_pm.o
237nouveau-y += nouveau_mem.o
238
Ben Skeggs77145f12012-07-31 16:16:21 +1000239# other random bits
240nouveau-$(CONFIG_COMPAT) += nouveau_ioc32.o
Ben Hutchingsa91ed422013-02-20 02:57:32 +0000241ifdef CONFIG_X86
Ben Skeggs77145f12012-07-31 16:16:21 +1000242nouveau-$(CONFIG_ACPI) += nouveau_acpi.o
Ben Hutchingsa91ed422013-02-20 02:57:32 +0000243endif
Ben Skeggs77145f12012-07-31 16:16:21 +1000244nouveau-$(CONFIG_DRM_NOUVEAU_BACKLIGHT) += nouveau_backlight.o
Marcin Slusarz33b903e2013-02-08 21:42:13 +0100245nouveau-$(CONFIG_DEBUG_FS) += nouveau_debugfs.o
Ben Skeggs77145f12012-07-31 16:16:21 +1000246
Ben Skeggs6ee73862009-12-11 19:24:15 +1000247obj-$(CONFIG_DRM_NOUVEAU)+= nouveau.o