xref: /freebsd/sys/conf/files.arm64 (revision d08b8680e12ad692736c84238dcf45c70c228914)
1# $FreeBSD$
2
3##
4## Kernel
5##
6
7kern/msi_if.m					optional intrng
8kern/pic_if.m					optional intrng
9kern/subr_devmap.c				standard
10kern/subr_intr.c				optional intrng
11kern/subr_physmem.c				standard
12libkern/bcmp.c					standard
13libkern/memcmp.c				standard	\
14	compile-with "${NORMAL_C:N-fsanitize*}"
15libkern/memset.c				standard	\
16	compile-with "${NORMAL_C:N-fsanitize*}"
17libkern/strlen.c		standard
18libkern/arm64/crc32c_armv8.S			standard
19
20arm/arm/generic_timer.c				standard
21arm/arm/gic.c					standard
22arm/arm/gic_acpi.c				optional acpi
23arm/arm/gic_fdt.c				optional fdt
24arm/arm/pmu.c					standard
25arm/arm/pmu_fdt.c				optional fdt
26arm64/acpica/acpi_iort.c			optional acpi
27arm64/acpica/acpi_machdep.c			optional acpi
28arm64/acpica/OsdEnvironment.c			optional acpi
29arm64/acpica/acpi_wakeup.c			optional acpi
30arm64/acpica/pci_cfgreg.c			optional acpi pci
31arm64/arm64/autoconf.c				standard
32arm64/arm64/bus_machdep.c			standard
33arm64/arm64/bus_space_asm.S			standard
34arm64/arm64/busdma_bounce.c			standard
35arm64/arm64/busdma_machdep.c			standard
36arm64/arm64/bzero.S				standard
37arm64/arm64/clock.c				standard
38arm64/arm64/copyinout.S				standard
39arm64/arm64/cpu_errata.c			standard
40arm64/arm64/cpufunc_asm.S			standard
41arm64/arm64/db_disasm.c				optional ddb
42arm64/arm64/db_interface.c			optional ddb
43arm64/arm64/db_trace.c				optional ddb
44arm64/arm64/debug_monitor.c			standard
45arm64/arm64/disassem.c				optional ddb
46arm64/arm64/dump_machdep.c			standard
47arm64/arm64/efirt_machdep.c			optional efirt
48arm64/arm64/elf32_machdep.c			optional compat_freebsd32
49arm64/arm64/elf_machdep.c			standard
50arm64/arm64/exception.S				standard
51arm64/arm64/freebsd32_machdep.c			optional compat_freebsd32
52arm64/arm64/gdb_machdep.c			optional gdb
53arm64/arm64/gicv3_its.c				optional intrng fdt
54arm64/arm64/gic_v3.c				standard
55arm64/arm64/gic_v3_acpi.c			optional acpi
56arm64/arm64/gic_v3_fdt.c			optional fdt
57arm64/arm64/identcpu.c				standard
58arm64/arm64/in_cksum.c				optional inet | inet6
59arm64/arm64/locore.S				standard no-obj
60arm64/arm64/machdep.c				standard
61arm64/arm64/machdep_boot.c			standard
62arm64/arm64/mem.c				standard
63arm64/arm64/memcpy.S				standard
64arm64/arm64/memmove.S				standard
65arm64/arm64/minidump_machdep.c			standard
66arm64/arm64/mp_machdep.c			optional smp
67arm64/arm64/nexus.c				standard
68arm64/arm64/ofw_machdep.c			optional fdt
69arm64/arm64/pmap.c				standard
70arm64/arm64/stack_machdep.c			optional ddb | stack
71arm64/arm64/support.S				standard
72arm64/arm64/swtch.S				standard
73arm64/arm64/sys_machdep.c			standard
74arm64/arm64/trap.c				standard
75arm64/arm64/uio_machdep.c			standard
76arm64/arm64/uma_machdep.c			standard
77arm64/arm64/undefined.c				standard
78arm64/arm64/unwind.c				optional ddb | kdtrace_hooks | stack
79arm64/arm64/vfp.c				standard
80arm64/arm64/vm_machdep.c			standard
81
82arm64/coresight/coresight.c			standard
83arm64/coresight/coresight_acpi.c		optional acpi
84arm64/coresight/coresight_fdt.c			optional fdt
85arm64/coresight/coresight_if.m			standard
86arm64/coresight/coresight_cmd.c			standard
87arm64/coresight/coresight_cpu_debug.c		standard
88arm64/coresight/coresight_etm4x.c		standard
89arm64/coresight/coresight_etm4x_acpi.c		optional acpi
90arm64/coresight/coresight_etm4x_fdt.c		optional fdt
91arm64/coresight/coresight_funnel.c		standard
92arm64/coresight/coresight_funnel_acpi.c		optional acpi
93arm64/coresight/coresight_funnel_fdt.c		optional fdt
94arm64/coresight/coresight_replicator.c		standard
95arm64/coresight/coresight_replicator_acpi.c	optional acpi
96arm64/coresight/coresight_replicator_fdt.c	optional fdt
97arm64/coresight/coresight_tmc.c			standard
98arm64/coresight/coresight_tmc_acpi.c		optional acpi
99arm64/coresight/coresight_tmc_fdt.c		optional fdt
100
101arm64/iommu/iommu.c				optional iommu
102arm64/iommu/iommu_if.m				optional iommu
103arm64/iommu/smmu.c				optional iommu
104arm64/iommu/smmu_acpi.c				optional acpi iommu
105arm64/iommu/smmu_quirks.c			optional iommu
106dev/iommu/busdma_iommu.c			optional iommu
107dev/iommu/iommu_gas.c				optional iommu
108
109crypto/armv8/armv8_crypto.c			optional armv8crypto
110armv8_crypto_wrap.o				optional armv8crypto	\
111	dependency	"$S/crypto/armv8/armv8_crypto_wrap.c"		\
112	compile-with	"${CC} -c ${CFLAGS:C/^-O2$/-O3/:N-nostdinc:N-mgeneral-regs-only} -I$S/crypto/armv8/ ${WERROR} ${NO_WCAST_QUAL} ${PROF} -march=armv8-a+crypto ${.IMPSRC}" \
113	no-implicit-rule						\
114	clean		"armv8_crypto_wrap.o"
115aesv8-armx.o					optional armv8crypto	\
116	dependency	"$S/crypto/openssl/aarch64/aesv8-armx.S"	\
117	compile-with	"${CC} -c ${CFLAGS:C/^-O2$/-O3/:N-nostdinc:N-mgeneral-regs-only} -I$S/crypto/armv8/ -I$S/crypto/openssl/crypto ${WERROR} ${NO_WCAST_QUAL} ${PROF} -march=armv8-a+crypto ${.IMPSRC}" \
118	no-implicit-rule						\
119	clean		"aesv8-armx.o"
120ghashv8-armx.o					optional armv8crypto	\
121	dependency	"$S/crypto/openssl/aarch64/ghashv8-armx.S"	\
122	compile-with	"${CC} -c ${CFLAGS:C/^-O2$/-O3/:N-nostdinc:N-mgeneral-regs-only} -I$S/crypto/armv8/ -I$S/crypto/openssl/crypto ${WERROR} ${NO_WCAST_QUAL} ${PROF} -march=armv8-a+crypto ${.IMPSRC}" \
123	no-implicit-rule						\
124	clean		"ghashv8-armx.o"
125
126crypto/des/des_enc.c				optional netsmb
127crypto/openssl/ossl_aarch64.c			optional ossl
128crypto/openssl/aarch64/chacha-armv8.S		optional ossl		\
129	compile-with	"${CC} -c ${CFLAGS:N-mgeneral-regs-only} ${WERROR} ${PROF} ${.IMPSRC}"
130crypto/openssl/aarch64/poly1305-armv8.S		optional ossl		\
131	compile-with	"${CC} -c ${CFLAGS:N-mgeneral-regs-only} ${WERROR} ${PROF} ${.IMPSRC}"
132crypto/openssl/aarch64/sha1-armv8.S		optional ossl		\
133	compile-with	"${CC} -c ${CFLAGS:N-mgeneral-regs-only} ${WERROR} ${PROF} ${.IMPSRC}"
134crypto/openssl/aarch64/sha256-armv8.S		optional ossl		\
135	compile-with	"${CC} -c ${CFLAGS:N-mgeneral-regs-only} ${WERROR} ${PROF} ${.IMPSRC}"
136crypto/openssl/aarch64/sha512-armv8.S		optional ossl		\
137	compile-with	"${CC} -c ${CFLAGS:N-mgeneral-regs-only} ${WERROR} ${PROF} ${.IMPSRC}"
138
139dev/acpica/acpi_bus_if.m			optional acpi
140dev/acpica/acpi_if.m				optional acpi
141dev/acpica/acpi_pci_link.c			optional acpi pci
142dev/acpica/acpi_pcib.c				optional acpi pci
143dev/acpica/acpi_pxm.c				optional acpi
144dev/ahci/ahci_generic.c				optional ahci
145
146cddl/dev/dtrace/aarch64/dtrace_asm.S		optional dtrace compile-with "${DTRACE_S}"
147cddl/dev/dtrace/aarch64/dtrace_subr.c		optional dtrace compile-with "${DTRACE_C}"
148cddl/dev/fbt/aarch64/fbt_isa.c			optional dtrace_fbt | dtraceall compile-with "${FBT_C}"
149
150##
151## Device drivers
152##
153
154dev/axgbe/if_axgbe.c				optional axa
155dev/axgbe/xgbe-desc.c				optional axa
156dev/axgbe/xgbe-dev.c				optional axa
157dev/axgbe/xgbe-drv.c				optional axa
158dev/axgbe/xgbe-mdio.c				optional axa
159dev/axgbe/xgbe-sysctl.c				optional axa
160dev/axgbe/xgbe-txrx.c				optional axa
161dev/axgbe/xgbe_osdep.c				optional axa
162dev/axgbe/xgbe-phy-v1.c				optional axa
163
164dev/cpufreq/cpufreq_dt.c			optional cpufreq fdt
165
166dev/dwc/if_dwc.c				optional fdt dwc_rk soc_rockchip_rk3328 | fdt dwc_rk soc_rockchip_rk3399 | fdt dwc_socfpga soc_intel_stratix10
167dev/dwc/if_dwc_if.m				optional fdt dwc_rk soc_rockchip_rk3328 | fdt dwc_rk soc_rockchip_rk3399 | fdt dwc_socfpga soc_intel_stratix10
168
169dev/gpio/pl061.c				optional pl061 gpio
170dev/gpio/pl061_acpi.c				optional pl061 gpio acpi
171dev/gpio/pl061_fdt.c				optional pl061 gpio fdt
172
173dev/hwpmc/hwpmc_arm64.c				optional hwpmc
174dev/hwpmc/hwpmc_arm64_md.c			optional hwpmc
175
176dev/ice/if_ice_iflib.c				optional ice pci \
177	compile-with "${NORMAL_C} -I$S/dev/ice"
178dev/ice/ice_lib.c				optional ice pci \
179	compile-with "${NORMAL_C} -I$S/dev/ice"
180dev/ice/ice_osdep.c				optional ice pci \
181	compile-with "${NORMAL_C} -I$S/dev/ice"
182dev/ice/ice_resmgr.c				optional ice pci \
183	compile-with "${NORMAL_C} -I$S/dev/ice"
184dev/ice/ice_strings.c				optional ice pci \
185	compile-with "${NORMAL_C} -I$S/dev/ice"
186dev/ice/ice_iflib_recovery_txrx.c		optional ice pci \
187	compile-with "${NORMAL_C} -I$S/dev/ice"
188dev/ice/ice_iflib_txrx.c			optional ice pci \
189	compile-with "${NORMAL_C} -I$S/dev/ice"
190dev/ice/ice_common.c				optional ice pci \
191	compile-with "${NORMAL_C} -I$S/dev/ice"
192dev/ice/ice_controlq.c				optional ice pci \
193	compile-with "${NORMAL_C} -I$S/dev/ice"
194dev/ice/ice_dcb.c				optional ice pci \
195	compile-with "${NORMAL_C} -I$S/dev/ice"
196dev/ice/ice_flex_pipe.c				optional ice pci \
197	compile-with "${NORMAL_C} -I$S/dev/ice"
198dev/ice/ice_flow.c				optional ice pci \
199	compile-with "${NORMAL_C} -I$S/dev/ice"
200dev/ice/ice_nvm.c				optional ice pci \
201	compile-with "${NORMAL_C} -I$S/dev/ice"
202dev/ice/ice_sched.c				optional ice pci \
203	compile-with "${NORMAL_C} -I$S/dev/ice"
204dev/ice/ice_sriov.c				optional ice pci \
205	compile-with "${NORMAL_C} -I$S/dev/ice"
206dev/ice/ice_switch.c				optional ice pci \
207	compile-with "${NORMAL_C} -I$S/dev/ice"
208dev/ice/ice_vlan_mode.c		optional	ice pci \
209	compile-with "${NORMAL_C} -I$S/dev/ice"
210ice_ddp.c					optional ice_ddp	\
211	compile-with	"${AWK} -f $S/tools/fw_stub.awk ice_ddp.fw:ice_ddp:0x01031300 -mice_ddp -c${.TARGET}"	\
212	no-ctfconvert no-implicit-rule before-depend local	\
213	clean		"ice_ddp.c"
214ice_ddp.fwo					optional ice_ddp	\
215	dependency	"ice_ddp.fw"			\
216	compile-with	"${NORMAL_FWO}"			\
217	no-implicit-rule				\
218	clean		"ice_ddp.fwo"
219ice_ddp.fw					optional ice_ddp	\
220	dependency	"$S/contrib/dev/ice/ice-1.3.19.0.pkg" \
221	compile-with	"${CP} $S/contrib/dev/ice/ice-1.3.19.0.pkg ice_ddp.fw" \
222	no-obj no-implicit-rule				\
223	clean		"ice_ddp.fw"
224
225dev/iicbus/sy8106a.c				optional sy8106a fdt
226dev/iicbus/twsi/mv_twsi.c			optional twsi fdt
227dev/iicbus/twsi/a10_twsi.c			optional twsi fdt
228dev/iicbus/twsi/twsi.c				optional twsi fdt
229
230dev/ipmi/ipmi.c					optional ipmi
231dev/ipmi/ipmi_acpi.c				optional ipmi acpi
232dev/ipmi/ipmi_kcs.c				optional ipmi
233dev/ipmi/ipmi_smic.c				optional ipmi
234
235dev/mbox/mbox_if.m				optional soc_brcm_bcm2837
236
237dev/mmc/host/dwmmc.c				optional dwmmc fdt
238dev/mmc/host/dwmmc_altera.c			optional dwmmc dwmmc_altera fdt
239dev/mmc/host/dwmmc_hisi.c			optional dwmmc dwmmc_hisi fdt
240dev/mmc/host/dwmmc_rockchip.c			optional dwmmc rk_dwmmc fdt
241
242dev/neta/if_mvneta_fdt.c			optional neta fdt
243dev/neta/if_mvneta.c				optional neta mdio mii
244
245dev/ofw/ofw_cpu.c				optional fdt
246dev/ofw/ofwpci.c				optional fdt pci
247
248dev/pci/controller/pci_n1sdp.c			optional pci_n1sdp acpi
249dev/pci/pci_host_generic.c			optional pci
250dev/pci/pci_host_generic_acpi.c			optional pci acpi
251dev/pci/pci_host_generic_fdt.c			optional pci fdt
252dev/pci/pci_dw_mv.c				optional pci fdt
253dev/pci/pci_dw.c				optional pci fdt
254dev/pci/pci_dw_if.m				optional pci fdt
255
256dev/psci/psci.c					standard
257dev/psci/smccc_arm64.S				standard
258dev/psci/smccc.c				standard
259
260dev/safexcel/safexcel.c				optional safexcel fdt
261
262dev/sdhci/sdhci_xenon.c				optional sdhci_xenon sdhci fdt
263
264dev/uart/uart_cpu_arm64.c			optional uart
265dev/uart/uart_dev_mu.c				optional uart uart_mu
266dev/uart/uart_dev_pl011.c			optional uart pl011
267
268dev/usb/controller/dwc_otg_hisi.c		optional dwcotg fdt soc_hisi_hi6220
269dev/usb/controller/dwc3.c			optional fdt dwc3
270dev/usb/controller/ehci_mv.c			optional ehci_mv fdt
271dev/usb/controller/generic_ehci.c		optional ehci
272dev/usb/controller/generic_ehci_acpi.c		optional ehci acpi
273dev/usb/controller/generic_ehci_fdt.c		optional ehci fdt
274dev/usb/controller/generic_ohci.c		optional ohci fdt
275dev/usb/controller/generic_usb_if.m		optional ohci fdt
276dev/usb/controller/musb_otg_allwinner.c		optional musb fdt soc_allwinner_a64
277dev/usb/controller/usb_nop_xceiv.c		optional fdt ext_resources
278dev/usb/controller/generic_xhci.c		optional xhci
279dev/usb/controller/generic_xhci_acpi.c		optional xhci acpi
280dev/usb/controller/generic_xhci_fdt.c		optional xhci fdt
281
282dev/vnic/mrml_bridge.c				optional vnic fdt
283dev/vnic/nic_main.c				optional vnic pci
284dev/vnic/nicvf_main.c				optional vnic pci pci_iov
285dev/vnic/nicvf_queues.c				optional vnic pci pci_iov
286dev/vnic/thunder_bgx_fdt.c			optional soc_cavm_thunderx pci vnic fdt
287dev/vnic/thunder_bgx.c				optional soc_cavm_thunderx pci vnic pci
288dev/vnic/thunder_mdio_fdt.c			optional soc_cavm_thunderx pci vnic fdt
289dev/vnic/thunder_mdio.c				optional soc_cavm_thunderx pci vnic
290dev/vnic/lmac_if.m				optional inet | inet6 | vnic
291
292##
293## SoC Support
294##
295
296# Allwinner common files
297arm/allwinner/a10_timer.c			optional a10_timer fdt
298arm/allwinner/a10_codec.c			optional sound a10_codec
299arm/allwinner/a31_dmac.c			optional a31_dmac
300arm/allwinner/sunxi_dma_if.m			optional a31_dmac
301arm/allwinner/aw_cir.c				optional evdev aw_cir fdt
302arm/allwinner/aw_dwc3.c				optional aw_dwc3 fdt
303arm/allwinner/aw_gpio.c				optional gpio aw_gpio fdt
304arm/allwinner/aw_mmc.c				optional mmc aw_mmc fdt | mmccam aw_mmc fdt
305arm/allwinner/aw_nmi.c				optional aw_nmi fdt \
306	compile-with "${NORMAL_C} -I$S/contrib/device-tree/include"
307arm/allwinner/aw_pwm.c				optional aw_pwm fdt
308arm/allwinner/aw_rsb.c				optional aw_rsb fdt
309arm/allwinner/aw_rtc.c				optional aw_rtc fdt
310arm/allwinner/aw_sid.c				optional aw_sid nvmem fdt
311arm/allwinner/aw_spi.c				optional aw_spi fdt
312arm/allwinner/aw_syscon.c			optional aw_syscon ext_resources syscon fdt
313arm/allwinner/aw_thermal.c			optional aw_thermal nvmem fdt
314arm/allwinner/aw_usbphy.c			optional ehci aw_usbphy fdt
315arm/allwinner/aw_usb3phy.c			optional xhci aw_usbphy fdt
316arm/allwinner/aw_wdog.c				optional aw_wdog fdt
317arm/allwinner/axp81x.c				optional axp81x fdt
318arm/allwinner/if_awg.c				optional awg ext_resources syscon aw_sid nvmem fdt
319
320# Allwinner clock driver
321arm/allwinner/clkng/aw_ccung.c			optional aw_ccu fdt
322arm/allwinner/clkng/aw_clk_frac.c		optional aw_ccu fdt
323arm/allwinner/clkng/aw_clk_m.c			optional aw_ccu fdt
324arm/allwinner/clkng/aw_clk_mipi.c		optional aw_ccu fdt
325arm/allwinner/clkng/aw_clk_nkmp.c		optional aw_ccu fdt
326arm/allwinner/clkng/aw_clk_nm.c			optional aw_ccu fdt
327arm/allwinner/clkng/aw_clk_nmm.c		optional aw_ccu fdt
328arm/allwinner/clkng/aw_clk_np.c			optional aw_ccu fdt
329arm/allwinner/clkng/aw_clk_prediv_mux.c		optional aw_ccu fdt
330arm/allwinner/clkng/ccu_a64.c			optional soc_allwinner_a64 aw_ccu fdt
331arm/allwinner/clkng/ccu_h3.c			optional soc_allwinner_h5 aw_ccu fdt
332arm/allwinner/clkng/ccu_h6.c			optional soc_allwinner_h6 aw_ccu fdt
333arm/allwinner/clkng/ccu_h6_r.c			optional soc_allwinner_h6 aw_ccu fdt
334arm/allwinner/clkng/ccu_sun8i_r.c		optional aw_ccu fdt
335arm/allwinner/clkng/ccu_de2.c			optional aw_ccu fdt
336
337# Allwinner padconf files
338arm/allwinner/a64/a64_padconf.c			optional soc_allwinner_a64 fdt
339arm/allwinner/a64/a64_r_padconf.c		optional soc_allwinner_a64 fdt
340arm/allwinner/h3/h3_padconf.c			optional soc_allwinner_h5 fdt
341arm/allwinner/h3/h3_r_padconf.c			optional soc_allwinner_h5 fdt
342arm/allwinner/h6/h6_padconf.c			optional soc_allwinner_h6 fdt
343arm/allwinner/h6/h6_r_padconf.c			optional soc_allwinner_h6 fdt
344
345# Altera/Intel
346dev/altera/dwc/if_dwc_socfpga.c			optional fdt dwc_socfpga
347arm64/intel/firmware.c				optional soc_intel_stratix10
348arm64/intel/stratix10-soc-fpga-mgr.c		optional soc_intel_stratix10
349arm64/intel/stratix10-svc.c			optional soc_intel_stratix10
350
351# Annapurna
352arm/annapurna/alpine/alpine_ccu.c		optional al_ccu fdt
353arm/annapurna/alpine/alpine_nb_service.c	optional al_nb_service fdt
354arm/annapurna/alpine/alpine_pci.c		optional al_pci fdt
355arm/annapurna/alpine/alpine_pci_msix.c		optional al_pci fdt
356arm/annapurna/alpine/alpine_serdes.c		optional al_serdes fdt		\
357	no-depend	\
358	compile-with "${CC} -c -o ${.TARGET} ${CFLAGS} -I$S/contrib/alpine-hal -I$S/contrib/alpine-hal/eth ${PROF} ${.IMPSRC}"
359
360# Broadcom
361arm64/broadcom/brcmmdio/mdio_mux_iproc.c		optional soc_brcm_ns2 fdt
362arm64/broadcom/brcmmdio/mdio_nexus_iproc.c		optional soc_brcm_ns2 fdt
363arm64/broadcom/brcmmdio/mdio_ns2_pcie_phy.c		optional soc_brcm_ns2 fdt pci
364arm64/broadcom/genet/if_genet.c				optional SOC_BRCM_BCM2838 fdt genet
365arm/broadcom/bcm2835/bcm2835_audio.c			optional sound vchiq fdt \
366	compile-with "${NORMAL_C} -DUSE_VCHIQ_ARM -D__VCCOREVER__=0x04000000 -I$S/contrib/vchiq"
367arm/broadcom/bcm2835/bcm2835_bsc.c			optional bcm2835_bsc fdt
368arm/broadcom/bcm2835/bcm2835_clkman.c			optional soc_brcm_bcm2837 fdt | soc_brcm_bcm2838 fdt
369arm/broadcom/bcm2835/bcm2835_cpufreq.c			optional soc_brcm_bcm2837 fdt | soc_brcm_bcm2838 fdt
370arm/broadcom/bcm2835/bcm2835_dma.c			optional soc_brcm_bcm2837 fdt | soc_brcm_bcm2838 fdt
371arm/broadcom/bcm2835/bcm2835_fbd.c			optional vt soc_brcm_bcm2837 fdt | vt soc_brcm_bcm2838 fdt
372arm/broadcom/bcm2835/bcm2835_firmware.c			optional soc_brcm_bcm2837 fdt | soc_brcm_bcm2838 fdt
373arm/broadcom/bcm2835/bcm2835_ft5406.c			optional evdev bcm2835_ft5406 fdt
374arm/broadcom/bcm2835/bcm2835_gpio.c			optional gpio soc_brcm_bcm2837 fdt | gpio soc_brcm_bcm2838 fdt
375arm/broadcom/bcm2835/bcm2835_intr.c			optional soc_brcm_bcm2837 fdt | soc_brcm_bcm2838 fdt
376arm/broadcom/bcm2835/bcm2835_mbox.c			optional soc_brcm_bcm2837 fdt | soc_brcm_bcm2838 fdt
377arm/broadcom/bcm2835/bcm2835_rng.c			optional !random_loadable soc_brcm_bcm2837 fdt | !random_loadable soc_brcm_bcm2838 fdt
378arm/broadcom/bcm2835/bcm2835_sdhci.c			optional sdhci soc_brcm_bcm2837 fdt | sdhci soc_brcm_bcm2838 fdt
379arm/broadcom/bcm2835/bcm2835_sdhost.c			optional sdhci soc_brcm_bcm2837 fdt | sdhci soc_brcm_bcm2838 fdt
380arm/broadcom/bcm2835/bcm2835_spi.c			optional bcm2835_spi fdt
381arm/broadcom/bcm2835/bcm2835_vcbus.c			optional soc_brcm_bcm2837 fdt | soc_brcm_bcm2838 fdt
382arm/broadcom/bcm2835/bcm2835_vcio.c			optional soc_brcm_bcm2837 fdt | soc_brcm_bcm2838 fdt
383arm/broadcom/bcm2835/bcm2835_wdog.c			optional soc_brcm_bcm2837 fdt | soc_brcm_bcm2838 fdt
384arm/broadcom/bcm2835/bcm2836.c				optional soc_brcm_bcm2837 fdt | soc_brcm_bcm2838 fdt
385arm/broadcom/bcm2835/bcm283x_dwc_fdt.c			optional dwcotg fdt soc_brcm_bcm2837 | dwcotg fdt soc_brcm_bcm2838
386arm/broadcom/bcm2835/bcm2838_pci.c			optional soc_brcm_bcm2838 fdt pci
387arm/broadcom/bcm2835/bcm2838_xhci.c			optional soc_brcm_bcm2838 fdt pci xhci
388arm/broadcom/bcm2835/raspberrypi_gpio.c			optional soc_brcm_bcm2837 gpio | soc_brcm_bcm2838 gpio
389contrib/vchiq/interface/compat/vchi_bsd.c		optional vchiq soc_brcm_bcm2837 \
390	compile-with "${NORMAL_C} -DUSE_VCHIQ_ARM -D__VCCOREVER__=0x04000000 -I$S/contrib/vchiq"
391contrib/vchiq/interface/vchiq_arm/vchiq_2835_arm.c	optional vchiq soc_brcm_bcm2837 \
392	compile-with "${NORMAL_C} -Wno-unused -DUSE_VCHIQ_ARM -D__VCCOREVER__=0x04000000 -I$S/contrib/vchiq"
393contrib/vchiq/interface/vchiq_arm/vchiq_arm.c		optional vchiq soc_brcm_bcm2837 \
394	compile-with "${NORMAL_C} -Wno-unused -DUSE_VCHIQ_ARM -D__VCCOREVER__=0x04000000 -I$S/contrib/vchiq"
395contrib/vchiq/interface/vchiq_arm/vchiq_connected.c	optional vchiq soc_brcm_bcm2837 \
396	compile-with "${NORMAL_C} -DUSE_VCHIQ_ARM -D__VCCOREVER__=0x04000000 -I$S/contrib/vchiq"
397contrib/vchiq/interface/vchiq_arm/vchiq_core.c		optional vchiq soc_brcm_bcm2837 \
398	compile-with "${NORMAL_C} -DUSE_VCHIQ_ARM -D__VCCOREVER__=0x04000000 -I$S/contrib/vchiq"
399contrib/vchiq/interface/vchiq_arm/vchiq_kern_lib.c	optional vchiq soc_brcm_bcm2837 \
400	compile-with "${NORMAL_C} -DUSE_VCHIQ_ARM -D__VCCOREVER__=0x04000000 -I$S/contrib/vchiq"
401contrib/vchiq/interface/vchiq_arm/vchiq_kmod.c		optional vchiq soc_brcm_bcm2837 \
402	compile-with "${NORMAL_C} -DUSE_VCHIQ_ARM -D__VCCOREVER__=0x04000000 -I$S/contrib/vchiq"
403contrib/vchiq/interface/vchiq_arm/vchiq_shim.c		optional vchiq soc_brcm_bcm2837 \
404	compile-with "${NORMAL_C} -DUSE_VCHIQ_ARM -D__VCCOREVER__=0x04000000 -I$S/contrib/vchiq"
405contrib/vchiq/interface/vchiq_arm/vchiq_util.c		optional vchiq soc_brcm_bcm2837 \
406	compile-with "${NORMAL_C} -DUSE_VCHIQ_ARM -D__VCCOREVER__=0x04000000 -I$S/contrib/vchiq"
407
408# Cavium
409arm64/cavium/thunder_pcie_fdt.c			optional soc_cavm_thunderx pci fdt
410arm64/cavium/thunder_pcie_pem.c			optional soc_cavm_thunderx pci
411arm64/cavium/thunder_pcie_pem_fdt.c		optional soc_cavm_thunderx pci fdt
412arm64/cavium/thunder_pcie_common.c		optional soc_cavm_thunderx pci
413
414# i.MX8 Clock support
415arm64/freescale/imx/imx8mq_ccm.c		optional fdt soc_freescale_imx8
416arm64/freescale/imx/clk/imx_clk_gate.c		optional fdt soc_freescale_imx8
417arm64/freescale/imx/clk/imx_clk_mux.c		optional fdt soc_freescale_imx8
418arm64/freescale/imx/clk/imx_clk_composite.c	optional fdt soc_freescale_imx8
419arm64/freescale/imx/clk/imx_clk_sscg_pll.c	optional fdt soc_freescale_imx8
420arm64/freescale/imx/clk/imx_clk_frac_pll.c	optional fdt soc_freescale_imx8
421
422# iMX drivers
423arm/freescale/imx/imx_gpio.c			optional gpio soc_freescale_imx8
424arm/freescale/imx/imx_i2c.c			optional fsliic
425arm/freescale/imx/imx_machdep.c			optional fdt soc_freescale_imx8
426arm64/freescale/imx/imx7gpc.c			optional fdt soc_freescale_imx8
427dev/ffec/if_ffec.c				optional ffec
428
429# Marvell
430arm/mv/a37x0_gpio.c				optional a37x0_gpio gpio fdt
431arm/mv/a37x0_iic.c				optional a37x0_iic iicbus fdt
432arm/mv/a37x0_spi.c				optional a37x0_spi spibus fdt
433arm/mv/armada38x/armada38x_rtc.c		optional mv_rtc fdt
434arm/mv/gpio.c					optional mv_gpio fdt
435arm/mv/mvebu_gpio.c				optional mv_gpio fdt
436arm/mv/mvebu_pinctrl.c				optional mvebu_pinctrl fdt
437arm/mv/mv_ap806_clock.c				optional SOC_MARVELL_8K fdt
438arm/mv/mv_ap806_gicp.c				optional mv_ap806_gicp fdt
439arm/mv/mv_ap806_sei.c				optional mv_ap806_sei fdt
440arm/mv/mv_cp110_clock.c				optional SOC_MARVELL_8K fdt
441arm/mv/mv_cp110_icu.c				optional mv_cp110_icu fdt
442arm/mv/mv_cp110_icu_bus.c			optional mv_cp110_icu fdt
443arm/mv/mv_thermal.c				optional SOC_MARVELL_8K mv_thermal fdt
444arm/mv/armada38x/armada38x_rtc.c		optional mv_rtc fdt
445
446# NVidia
447arm/nvidia/tegra_abpmisc.c			optional fdt soc_nvidia_tegra210
448arm/nvidia/tegra_ahci.c				optional fdt soc_nvidia_tegra210
449arm/nvidia/tegra_efuse.c			optional fdt soc_nvidia_tegra210
450arm/nvidia/tegra_ehci.c				optional fdt soc_nvidia_tegra210
451arm/nvidia/tegra_gpio.c				optional fdt soc_nvidia_tegra210
452arm/nvidia/tegra_i2c.c				optional fdt soc_nvidia_tegra210
453arm/nvidia/tegra_lic.c				optional fdt soc_nvidia_tegra210
454arm/nvidia/tegra_mc.c				optional fdt soc_nvidia_tegra210
455arm/nvidia/tegra_pcie.c				optional fdt soc_nvidia_tegra210
456arm/nvidia/tegra_sdhci.c			optional fdt soc_nvidia_tegra210
457arm/nvidia/tegra_soctherm_if.m			optional fdt soc_nvidia_tegra210
458arm/nvidia/tegra_soctherm.c			optional fdt soc_nvidia_tegra210
459arm/nvidia/tegra_uart.c				optional fdt soc_nvidia_tegra210
460arm/nvidia/tegra_usbphy.c			optional fdt soc_nvidia_tegra210
461arm/nvidia/tegra_xhci.c				optional fdt soc_nvidia_tegra210
462arm64/nvidia/tegra210/max77620.c		optional fdt soc_nvidia_tegra210
463arm64/nvidia/tegra210/max77620_gpio.c		optional fdt soc_nvidia_tegra210
464arm64/nvidia/tegra210/max77620_regulators.c	optional fdt soc_nvidia_tegra210
465arm64/nvidia/tegra210/max77620_rtc.c		optional fdt soc_nvidia_tegra210
466arm64/nvidia/tegra210/tegra210_car.c		optional fdt soc_nvidia_tegra210
467arm64/nvidia/tegra210/tegra210_clk_per.c	optional fdt soc_nvidia_tegra210
468arm64/nvidia/tegra210/tegra210_clk_pll.c	optional fdt soc_nvidia_tegra210
469arm64/nvidia/tegra210/tegra210_clk_super.c	optional fdt soc_nvidia_tegra210
470arm64/nvidia/tegra210/tegra210_coretemp.c	optional fdt soc_nvidia_tegra210
471arm64/nvidia/tegra210/tegra210_cpufreq.c	optional fdt soc_nvidia_tegra210
472arm64/nvidia/tegra210/tegra210_pinmux.c		optional fdt soc_nvidia_tegra210
473arm64/nvidia/tegra210/tegra210_pmc.c		optional fdt soc_nvidia_tegra210
474arm64/nvidia/tegra210/tegra210_xusbpadctl.c	optional fdt soc_nvidia_tegra210
475
476# Nvidia firmware for Tegra
477tegra210_xusb_fw.c				optional tegra210_xusb_fw	\
478	dependency	"$S/conf/files.arm64"					\
479	compile-with	"${AWK} -f $S/tools/fw_stub.awk tegra210_xusb.fw:tegra210_xusb_fw -mtegra210_xusb_fw -c${.TARGET}" \
480	no-ctfconvert no-implicit-rule before-depend local			\
481	clean		"tegra210_xusb_fw.c"
482
483tegra210_xusb.fwo				optional tegra210_xusb_fw	\
484	dependency	"tegra210_xusb.fw"					\
485	compile-with	"${NORMAL_FWO}"						\
486	no-implicit-rule							\
487	clean		"tegra210_xusb.fwo"
488
489tegra210_xusb.fw				optional tegra210_xusb_fw	\
490	dependency	"$S/contrib/dev/nvidia/tegra210_xusb.bin.uu"		\
491	compile-with	"${NORMAL_FW}"						\
492	no-obj no-implicit-rule							\
493	clean		"tegra210_xusb.fw"
494
495# NXP
496arm/freescale/vybrid/vf_i2c.c			optional vf_i2c iicbus SOC_NXP_LS
497arm64/qoriq/ls1046_gpio.c			optional ls1046_gpio gpio fdt SOC_NXP_LS
498arm64/qoriq/qoriq_dw_pci.c			optional pci fdt SOC_NXP_LS
499arm64/qoriq/qoriq_therm.c			optional pci fdt SOC_NXP_LS
500arm64/qoriq/qoriq_therm_if.m			optional pci fdt SOC_NXP_LS
501arm64/qoriq/clk/ls1046a_clkgen.c		optional clk SOC_NXP_LS
502arm64/qoriq/clk/lx2160a_clkgen.c		optional clk SOC_NXP_LS
503arm64/qoriq/clk/qoriq_clk_pll.c			optional clk SOC_NXP_LS
504arm64/qoriq/clk/qoriq_clkgen.c			optional clk SOC_NXP_LS
505dev/ahci/ahci_fsl_fdt.c				optional SOC_NXP_LS ahci fdt
506
507# Qualcomm
508arm64/qualcomm/qcom_gcc.c			optional qcom_gcc fdt
509
510# RockChip Drivers
511arm64/rockchip/rk3399_emmcphy.c			optional fdt rk_emmcphy soc_rockchip_rk3399
512arm64/rockchip/rk_dwc3.c			optional fdt rk_dwc3 soc_rockchip_rk3399
513arm64/rockchip/rk_i2c.c				optional fdt rk_i2c soc_rockchip_rk3328 | fdt rk_i2c soc_rockchip_rk3399
514arm64/rockchip/rk805.c				optional fdt rk805 soc_rockchip_rk3328 | fdt rk805 soc_rockchip_rk3399
515arm64/rockchip/rk_grf.c				optional fdt soc_rockchip_rk3328 | fdt soc_rockchip_rk3399
516arm64/rockchip/rk_pinctrl.c			optional fdt rk_pinctrl soc_rockchip_rk3328 | fdt rk_pinctrl soc_rockchip_rk3399
517arm64/rockchip/rk_gpio.c			optional fdt rk_gpio soc_rockchip_rk3328 | fdt rk_gpio soc_rockchip_rk3399
518arm64/rockchip/rk_iodomain.c			optional fdt rk_iodomain
519arm64/rockchip/rk_spi.c				optional fdt rk_spi
520arm64/rockchip/rk_usb2phy.c			optional fdt rk_usb2phy soc_rockchip_rk3328 | soc_rockchip_rk3399
521arm64/rockchip/rk_typec_phy.c			optional fdt rk_typec_phy soc_rockchip_rk3399
522arm64/rockchip/if_dwc_rk.c			optional fdt dwc_rk soc_rockchip_rk3328 | fdt dwc_rk soc_rockchip_rk3399
523arm64/rockchip/rk_tsadc_if.m			optional fdt soc_rockchip_rk3399
524arm64/rockchip/rk_tsadc.c			optional fdt soc_rockchip_rk3399
525arm64/rockchip/rk_pwm.c				optional fdt rk_pwm
526arm64/rockchip/rk_pcie.c			optional fdt pci soc_rockchip_rk3399
527arm64/rockchip/rk_pcie_phy.c			optional fdt pci soc_rockchip_rk3399
528
529# RockChip Clock support
530arm64/rockchip/clk/rk_cru.c			optional fdt soc_rockchip_rk3328 | fdt soc_rockchip_rk3399
531arm64/rockchip/clk/rk_clk_armclk.c		optional fdt soc_rockchip_rk3328 | fdt soc_rockchip_rk3399
532arm64/rockchip/clk/rk_clk_composite.c		optional fdt soc_rockchip_rk3328 | fdt soc_rockchip_rk3399
533arm64/rockchip/clk/rk_clk_fract.c		optional fdt soc_rockchip_rk3328 | fdt soc_rockchip_rk3399
534arm64/rockchip/clk/rk_clk_gate.c		optional fdt soc_rockchip_rk3328 | fdt soc_rockchip_rk3399
535arm64/rockchip/clk/rk_clk_mux.c			optional fdt soc_rockchip_rk3328 | fdt soc_rockchip_rk3399
536arm64/rockchip/clk/rk_clk_pll.c			optional fdt soc_rockchip_rk3328 | fdt soc_rockchip_rk3399
537arm64/rockchip/clk/rk3328_cru.c			optional fdt soc_rockchip_rk3328
538arm64/rockchip/clk/rk3399_cru.c			optional fdt soc_rockchip_rk3399
539arm64/rockchip/clk/rk3399_pmucru.c		optional fdt soc_rockchip_rk3399
540
541# Xilinx
542arm/xilinx/uart_dev_cdnc.c			optional uart soc_xilinx_zynq
543
544# Linuxkpi
545compat/linuxkpi/common/src/linux_fpu.c		optional compat_linuxkpi \
546	compile-with "${LINUXKPI_C}"
547
548# Cloudabi
549arm64/cloudabi32/cloudabi32_sysvec.c		optional compat_cloudabi32
550arm64/cloudabi64/cloudabi64_sysvec.c		optional compat_cloudabi64
551
552cloudabi32_vdso.o				optional compat_cloudabi32	\
553	dependency	"$S/contrib/cloudabi/cloudabi_vdso_armv6_on_64bit.S"	\
554	compile-with	"${CC} -x assembler-with-cpp -m32 -shared -nostdinc -nostdlib -Wl,-T$S/compat/cloudabi/cloudabi_vdso.lds $S/contrib/cloudabi/cloudabi_vdso_armv6_on_64bit.S -o ${.TARGET}" \
555	no-obj no-implicit-rule						\
556	clean		"cloudabi32_vdso.o"
557cloudabi32_vdso_blob.o				optional compat_cloudabi32	\
558	dependency 	"cloudabi32_vdso.o"			\
559	compile-with	"${OBJCOPY} --input-target binary --output-target elf64-littleaarch64 --binary-architecture aarch64 cloudabi32_vdso.o ${.TARGET}" \
560	no-implicit-rule						\
561	clean		"cloudabi32_vdso_blob.o"
562cloudabi64_vdso.o				optional compat_cloudabi64	\
563	dependency	"$S/contrib/cloudabi/cloudabi_vdso_aarch64.S"	\
564	compile-with	"${CC} -x assembler-with-cpp -shared -nostdinc -nostdlib -Wl,-T$S/compat/cloudabi/cloudabi_vdso.lds $S/contrib/cloudabi/cloudabi_vdso_aarch64.S -o ${.TARGET}" \
565	no-obj no-implicit-rule						\
566	clean		"cloudabi64_vdso.o"
567cloudabi64_vdso_blob.o				optional compat_cloudabi64	\
568	dependency 	"cloudabi64_vdso.o"			\
569	compile-with	"${OBJCOPY} --input-target binary --output-target elf64-littleaarch64 --binary-architecture aarch64 cloudabi64_vdso.o ${.TARGET}" \
570	no-implicit-rule						\
571	clean		"cloudabi64_vdso_blob.o"
572