blob: efdf21d32668411f7a409cca8171c054ce282b46 [file] [log] [blame]
Nico Huber5e9b1b52016-10-08 22:09:33 +02001hw-y += hw.ads
2hw-y += hw-mmio_range.ads
3hw-y += hw-mmio_regs.adb
4hw-y += hw-mmio_regs.ads
Nico Huberef4545a2017-06-18 02:58:40 +02005hw-y += hw-pci.ads
6hw-y += hw-pci-mmconf.adb
7hw-y += hw-pci-mmconf.ads
Nico Huber5e9b1b52016-10-08 22:09:33 +02008hw-y += hw-port_io.adb
9hw-y += hw-port_io.ads
10hw-y += hw-sub_regs.ads
11hw-y += hw-time.ads
12hw-y += hw-time.adb
13hw-y += hw-time-timer.ads
Nico Huberf03ef4f2017-03-04 13:57:09 +010014
15hw-$(CONFIG_HWBASE_POSIX_FILE) += hw-file.ads
Nico Huber359e3142017-07-09 19:03:06 +020016
Nico Huberae9b8552017-07-09 15:25:41 +020017hw-$(CONFIG_HWBASE_DIRECT_PCIDEV) += direct/hw-pci-dev.adb
18hw-$(CONFIG_HWBASE_DIRECT_PCIDEV) += hw-pci-dev.ads
Nico Huberff3240b2017-07-09 16:23:04 +020019hw-$(CONFIG_HWBASE_LINUX_PCIDEV) += linux/hw-pci-dev.adb
20hw-$(CONFIG_HWBASE_LINUX_PCIDEV) += hw-pci-dev.ads
Nico Huberae9b8552017-07-09 15:25:41 +020021
Nico Huber359e3142017-07-09 19:03:06 +020022hw-config-ads := $(subst //,/,$(call src-to-obj,,$(dir)/hw-config).ads)
23$(hw-config-ads): $(dir)/hw-config.ads.template $(cnf)
24 printf " GENERATE $(patsubst /%,%,$(subst $(obj)/,,$@))\n"
25 sed \
Nico Huberef4545a2017-06-18 02:58:40 +020026 -e's/<<DEFAULT_MMCONF_BASE>>/$(CONFIG_HWBASE_DEFAULT_MMCONF)/' \
Nico Huber359e3142017-07-09 19:03:06 +020027 -e's/<<DYNAMIC_MMIO>>/$(if $(filter y,$(CONFIG_HWBASE_DYNAMIC_MMIO)),True,False)/' \
28 $< >$@
29hw-gen-y += $(hw-config-ads)