xref: /openbmc/linux/drivers/misc/Makefile (revision 1c2dd16a)
1#
2# Makefile for misc devices that really don't fit anywhere else.
3#
4
5obj-$(CONFIG_IBM_ASM)		+= ibmasm/
6obj-$(CONFIG_AD525X_DPOT)	+= ad525x_dpot.o
7obj-$(CONFIG_AD525X_DPOT_I2C)	+= ad525x_dpot-i2c.o
8obj-$(CONFIG_AD525X_DPOT_SPI)	+= ad525x_dpot-spi.o
9obj-$(CONFIG_INTEL_MID_PTI)	+= pti.o
10obj-$(CONFIG_ATMEL_SSC)		+= atmel-ssc.o
11obj-$(CONFIG_ATMEL_TCLIB)	+= atmel_tclib.o
12obj-$(CONFIG_DUMMY_IRQ)		+= dummy-irq.o
13obj-$(CONFIG_ICS932S401)	+= ics932s401.o
14obj-$(CONFIG_LKDTM)		+= lkdtm.o
15obj-$(CONFIG_TIFM_CORE)       	+= tifm_core.o
16obj-$(CONFIG_TIFM_7XX1)       	+= tifm_7xx1.o
17obj-$(CONFIG_PHANTOM)		+= phantom.o
18obj-$(CONFIG_QCOM_COINCELL)	+= qcom-coincell.o
19obj-$(CONFIG_SENSORS_BH1770)	+= bh1770glc.o
20obj-$(CONFIG_SENSORS_APDS990X)	+= apds990x.o
21obj-$(CONFIG_SGI_IOC4)		+= ioc4.o
22obj-$(CONFIG_ENCLOSURE_SERVICES) += enclosure.o
23obj-$(CONFIG_KGDB_TESTS)	+= kgdbts.o
24obj-$(CONFIG_SGI_XP)		+= sgi-xp/
25obj-$(CONFIG_SGI_GRU)		+= sgi-gru/
26obj-$(CONFIG_CS5535_MFGPT)	+= cs5535-mfgpt.o
27obj-$(CONFIG_HP_ILO)		+= hpilo.o
28obj-$(CONFIG_APDS9802ALS)	+= apds9802als.o
29obj-$(CONFIG_ISL29003)		+= isl29003.o
30obj-$(CONFIG_ISL29020)		+= isl29020.o
31obj-$(CONFIG_SENSORS_TSL2550)	+= tsl2550.o
32obj-$(CONFIG_DS1682)		+= ds1682.o
33obj-$(CONFIG_TI_DAC7512)	+= ti_dac7512.o
34obj-$(CONFIG_C2PORT)		+= c2port/
35obj-$(CONFIG_HMC6352)		+= hmc6352.o
36obj-y				+= eeprom/
37obj-y				+= cb710/
38obj-$(CONFIG_SPEAR13XX_PCIE_GADGET)	+= spear13xx_pcie_gadget.o
39obj-$(CONFIG_VMWARE_BALLOON)	+= vmw_balloon.o
40obj-$(CONFIG_ARM_CHARLCD)	+= arm-charlcd.o
41obj-$(CONFIG_PCH_PHUB)		+= pch_phub.o
42obj-y				+= ti-st/
43obj-y				+= lis3lv02d/
44obj-$(CONFIG_USB_SWITCH_FSA9480) += fsa9480.o
45obj-$(CONFIG_ALTERA_STAPL)	+=altera-stapl/
46obj-$(CONFIG_INTEL_MEI)		+= mei/
47obj-$(CONFIG_VMWARE_VMCI)	+= vmw_vmci/
48obj-$(CONFIG_LATTICE_ECP3_CONFIG)	+= lattice-ecp3-config.o
49obj-$(CONFIG_SRAM)		+= sram.o
50obj-$(CONFIG_SRAM_EXEC)		+= sram-exec.o
51obj-y				+= mic/
52obj-$(CONFIG_GENWQE)		+= genwqe/
53obj-$(CONFIG_ECHO)		+= echo/
54obj-$(CONFIG_VEXPRESS_SYSCFG)	+= vexpress-syscfg.o
55obj-$(CONFIG_CXL_BASE)		+= cxl/
56obj-$(CONFIG_PANEL)             += panel.o
57
58lkdtm-$(CONFIG_LKDTM)		+= lkdtm_core.o
59lkdtm-$(CONFIG_LKDTM)		+= lkdtm_bugs.o
60lkdtm-$(CONFIG_LKDTM)		+= lkdtm_heap.o
61lkdtm-$(CONFIG_LKDTM)		+= lkdtm_perms.o
62lkdtm-$(CONFIG_LKDTM)		+= lkdtm_rodata_objcopy.o
63lkdtm-$(CONFIG_LKDTM)		+= lkdtm_usercopy.o
64
65OBJCOPYFLAGS :=
66OBJCOPYFLAGS_lkdtm_rodata_objcopy.o := \
67			--set-section-flags .text=alloc,readonly \
68			--rename-section .text=.rodata
69targets += lkdtm_rodata.o lkdtm_rodata_objcopy.o
70$(obj)/lkdtm_rodata_objcopy.o: $(obj)/lkdtm_rodata.o FORCE
71	$(call if_changed,objcopy)
72