blob: a8e77125f881f6fe35f0204a0eb97c6f1234231d [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
19
Nico Huber359e3142017-07-09 19:03:06 +020020hw-config-ads := $(subst //,/,$(call src-to-obj,,$(dir)/hw-config).ads)
21$(hw-config-ads): $(dir)/hw-config.ads.template $(cnf)
22 printf " GENERATE $(patsubst /%,%,$(subst $(obj)/,,$@))\n"
23 sed \
Nico Huberef4545a2017-06-18 02:58:40 +020024 -e's/<<DEFAULT_MMCONF_BASE>>/$(CONFIG_HWBASE_DEFAULT_MMCONF)/' \
Nico Huber359e3142017-07-09 19:03:06 +020025 -e's/<<DYNAMIC_MMIO>>/$(if $(filter y,$(CONFIG_HWBASE_DYNAMIC_MMIO)),True,False)/' \
26 $< >$@
27hw-gen-y += $(hw-config-ads)