rjw | 1f88458 | 2022-01-06 17:20:42 +0800 | [diff] [blame^] | 1 | # SPDX-License-Identifier: GPL-2.0 |
| 2 | # |
| 3 | # Makefile for misc devices that really don't fit anywhere else. |
| 4 | # |
| 5 | |
| 6 | obj-$(CONFIG_IBM_ASM) += ibmasm/ |
| 7 | obj-$(CONFIG_AD525X_DPOT) += ad525x_dpot.o |
| 8 | obj-$(CONFIG_AD525X_DPOT_I2C) += ad525x_dpot-i2c.o |
| 9 | obj-$(CONFIG_AD525X_DPOT_SPI) += ad525x_dpot-spi.o |
| 10 | obj-$(CONFIG_INTEL_MID_PTI) += pti.o |
| 11 | obj-$(CONFIG_ATMEL_SSC) += atmel-ssc.o |
| 12 | obj-$(CONFIG_ATMEL_TCLIB) += atmel_tclib.o |
| 13 | obj-$(CONFIG_DUMMY_IRQ) += dummy-irq.o |
| 14 | obj-$(CONFIG_ICS932S401) += ics932s401.o |
| 15 | obj-$(CONFIG_LKDTM) += lkdtm.o |
| 16 | obj-$(CONFIG_TIFM_CORE) += tifm_core.o |
| 17 | obj-$(CONFIG_TIFM_7XX1) += tifm_7xx1.o |
| 18 | obj-$(CONFIG_PHANTOM) += phantom.o |
| 19 | obj-$(CONFIG_QCOM_COINCELL) += qcom-coincell.o |
| 20 | obj-$(CONFIG_SENSORS_BH1770) += bh1770glc.o |
| 21 | obj-$(CONFIG_SENSORS_APDS990X) += apds990x.o |
| 22 | obj-$(CONFIG_SGI_IOC4) += ioc4.o |
| 23 | obj-$(CONFIG_ENCLOSURE_SERVICES) += enclosure.o |
| 24 | obj-$(CONFIG_KGDB_TESTS) += kgdbts.o |
| 25 | obj-$(CONFIG_SGI_XP) += sgi-xp/ |
| 26 | obj-$(CONFIG_SGI_GRU) += sgi-gru/ |
| 27 | obj-$(CONFIG_CS5535_MFGPT) += cs5535-mfgpt.o |
| 28 | obj-$(CONFIG_HP_ILO) += hpilo.o |
| 29 | obj-$(CONFIG_APDS9802ALS) += apds9802als.o |
| 30 | obj-$(CONFIG_ISL29003) += isl29003.o |
| 31 | obj-$(CONFIG_ISL29020) += isl29020.o |
| 32 | obj-$(CONFIG_SENSORS_TSL2550) += tsl2550.o |
| 33 | obj-$(CONFIG_DS1682) += ds1682.o |
| 34 | obj-$(CONFIG_TI_DAC7512) += ti_dac7512.o |
| 35 | obj-$(CONFIG_C2PORT) += c2port/ |
| 36 | obj-$(CONFIG_HMC6352) += hmc6352.o |
| 37 | obj-y += eeprom/ |
| 38 | obj-y += cb710/ |
| 39 | obj-$(CONFIG_SPEAR13XX_PCIE_GADGET) += spear13xx_pcie_gadget.o |
| 40 | obj-$(CONFIG_VMWARE_BALLOON) += vmw_balloon.o |
| 41 | obj-$(CONFIG_PCH_PHUB) += pch_phub.o |
| 42 | obj-y += ti-st/ |
| 43 | obj-y += lis3lv02d/ |
| 44 | obj-$(CONFIG_USB_SWITCH_FSA9480) += fsa9480.o |
| 45 | obj-$(CONFIG_ALTERA_STAPL) +=altera-stapl/ |
| 46 | obj-$(CONFIG_INTEL_MEI) += mei/ |
| 47 | obj-$(CONFIG_VMWARE_VMCI) += vmw_vmci/ |
| 48 | obj-$(CONFIG_LATTICE_ECP3_CONFIG) += lattice-ecp3-config.o |
| 49 | obj-$(CONFIG_SRAM) += sram.o |
| 50 | obj-$(CONFIG_SRAM_EXEC) += sram-exec.o |
| 51 | obj-y += mic/ |
| 52 | obj-$(CONFIG_GENWQE) += genwqe/ |
| 53 | obj-$(CONFIG_ECHO) += echo/ |
| 54 | obj-$(CONFIG_VEXPRESS_SYSCFG) += vexpress-syscfg.o |
| 55 | obj-$(CONFIG_CXL_BASE) += cxl/ |
| 56 | obj-$(CONFIG_ASPEED_LPC_CTRL) += aspeed-lpc-ctrl.o |
| 57 | obj-$(CONFIG_ASPEED_LPC_SNOOP) += aspeed-lpc-snoop.o |
| 58 | obj-$(CONFIG_PCI_ENDPOINT_TEST) += pci_endpoint_test.o |
| 59 | |
| 60 | obj-$(CONFIG_UID_SYS_STATS) += uid_sys_stats.o |
| 61 | obj-$(CONFIG_MEMORY_STATE_TIME) += memory_state_time.o |
| 62 | |
| 63 | lkdtm-$(CONFIG_LKDTM) += lkdtm_core.o |
| 64 | lkdtm-$(CONFIG_LKDTM) += lkdtm_bugs.o |
| 65 | lkdtm-$(CONFIG_LKDTM) += lkdtm_heap.o |
| 66 | lkdtm-$(CONFIG_LKDTM) += lkdtm_perms.o |
| 67 | lkdtm-$(CONFIG_LKDTM) += lkdtm_refcount.o |
| 68 | lkdtm-$(CONFIG_LKDTM) += lkdtm_rodata_objcopy.o |
| 69 | lkdtm-$(CONFIG_LKDTM) += lkdtm_usercopy.o |
| 70 | |
| 71 | obj-$(CONFIG_ARCH_MEDIATEK) += mediatek/ |
| 72 | |
| 73 | KCOV_INSTRUMENT_lkdtm_rodata.o := n |
| 74 | CFLAGS_lkdtm_rodata.o += $(DISABLE_LTO) |
| 75 | |
| 76 | OBJCOPYFLAGS := |
| 77 | OBJCOPYFLAGS_lkdtm_rodata_objcopy.o := \ |
| 78 | --rename-section .text=.rodata,alloc,readonly,load |
| 79 | targets += lkdtm_rodata.o lkdtm_rodata_objcopy.o |
| 80 | $(obj)/lkdtm_rodata_objcopy.o: $(obj)/lkdtm_rodata.o FORCE |
| 81 | $(call if_changed,objcopy) |