recipes/src/base-hw-muen: add static ACPI ROM

As we don't execute the acpi_drv on Muen, we have to supply a static
'acpi' info as boot module. This is normally done by the
base/run/platform.inc include. However, when using base-hw-muen kernel
from a depot archive - as done by modern run scripts like
depot_download.run - the platform.inc magic is not applied.

This patch enhances the src archive of base-hw-muen with a mechanism
that creates a pre-defined acpi info at the bin directory via an
artificial src/acpi/target.mk file. This way, the static acpi ROM ends
up as boot module when importing the base-hw-muen archive into a
run script.
This commit is contained in:
Norman Feske 2019-02-05 15:29:44 +01:00
parent 03da438fa4
commit 2e1e7b8270
2 changed files with 13 additions and 0 deletions

View File

@ -0,0 +1,7 @@
ifneq ($(INSTALL_DIR),)
all: $(INSTALL_DIR)/acpi
endif
$(INSTALL_DIR)/acpi:
echo "<acpi><bdf start=\"0\" count=\"16384\" base=\"0xf8000000\"/><drhd/></acpi>" > $@

View File

@ -3,3 +3,9 @@ include $(GENODE_DIR)/repos/base-hw/recipes/src/base-hw_content.inc
content: enable_board_spec
enable_board_spec: etc/specs.conf
echo "SPECS += muen" >> etc/specs.conf
content: src/acpi/target.mk
src/acpi/target.mk:
mkdir $(dir $@)
cp $(REP_DIR)/recipes/src/base-hw-muen/acpi_target_mk $@