dev.mk 1.16 KB
Newer Older
1 2 3 4

# Those hardware-specific files should not be built for the host, even if
# most of them give no error no warning. The host has different implementations
obj-$(CONFIG_EMBEDDED_NODE) += \
5 6 7 8 9 10
	dev/endpoint.o \
	dev/ep_pfilter.o \
	dev/i2c.o \
	dev/minic.o \
	dev/syscon.o \
	dev/sfp.o \
11
	dev/devicelist.o \
12 13
	dev/rxts_calibrator.o \
	dev/flash.o
14

15
obj-$(CONFIG_WR_NODE) += \
16
	dev/temperature.o \
17 18
	dev/pps_gen.o

19 20
obj-$(CONFIG_WR_SWITCH) += dev/timer-wrs.o dev/ad9516.o

21
obj-$(CONFIG_LEGACY_EEPROM) += dev/eeprom.o
22
obj-$(CONFIG_SDB_STORAGE) += dev/sdb-storage.o
23

24
obj-$(CONFIG_W1) +=		dev/w1.o	dev/w1-hw.o	dev/w1-shell.o
25
obj-$(CONFIG_W1) +=		dev/w1-temp.o	dev/w1-eeprom.o
26
obj-$(CONFIG_W1) +=		dev/temp-w1.o
27 28
obj-$(CONFIG_UART) +=		dev/uart.o
obj-$(CONFIG_UART_SW) +=	dev/uart-sw.o
29

30 31
obj-$(CONFIG_FAKE_TEMPERATURES) += dev/fake-temp.o

32 33 34 35 36 37
# Filter rules are selected according to configuration, but we may
# have more than one. Note: the filename is reflected in symbol names,
# so they are hardwired in ../Makefile (and ../tools/pfilter-builder too)
obj-y += $(pfilter-y:.bin=.o)

rules-%.o: rules-%.bin
38
	$(OBJCOPY) -I binary  $(OBJCOPY-TARGET-y) $< $@
39

40 41
$(pfilter-y): tools
	tools/pfilter-builder