blob: cc88032989dac05d8354196c97c118be272e8373 [file] [log] [blame]
Nico Hubera5c8ba22017-02-09 16:35:33 +01001hw-y += hw.adb
Nico Huber5e9b1b52016-10-08 22:09:33 +02002hw-y += hw.ads
3hw-y += hw-mmio_range.ads
4hw-y += hw-mmio_regs.adb
5hw-y += hw-mmio_regs.ads
Nico Huberef4545a2017-06-18 02:58:40 +02006hw-y += hw-pci.ads
7hw-y += hw-pci-mmconf.adb
8hw-y += hw-pci-mmconf.ads
Nico Huber5e9b1b52016-10-08 22:09:33 +02009hw-y += hw-port_io.adb
10hw-y += hw-port_io.ads
11hw-y += hw-sub_regs.ads
12hw-y += hw-time.ads
13hw-y += hw-time.adb
14hw-y += hw-time-timer.ads
Nico Huberf03ef4f2017-03-04 13:57:09 +010015
16hw-$(CONFIG_HWBASE_POSIX_FILE) += hw-file.ads
Nico Huber359e3142017-07-09 19:03:06 +020017
18hw-config-ads := $(subst //,/,$(call src-to-obj,,$(dir)/hw-config).ads)
19$(hw-config-ads): $(dir)/hw-config.ads.template $(cnf)
20 printf " GENERATE $(patsubst /%,%,$(subst $(obj)/,,$@))\n"
21 sed \
Nico Huberef4545a2017-06-18 02:58:40 +020022 -e's/<<DEFAULT_MMCONF_BASE>>/$(CONFIG_HWBASE_DEFAULT_MMCONF)/' \
Nico Huber359e3142017-07-09 19:03:06 +020023 -e's/<<DYNAMIC_MMIO>>/$(if $(filter y,$(CONFIG_HWBASE_DYNAMIC_MMIO)),True,False)/' \
24 $< >$@
25hw-gen-y += $(hw-config-ads)