diff options
author | David 'Digit' Turner <digit@google.com> | 2009-10-07 13:43:33 -0700 |
---|---|---|
committer | David 'Digit' Turner <digit@google.com> | 2009-10-07 13:43:33 -0700 |
commit | 065242de51ba1e18387ce22a99eb091a859990f7 (patch) | |
tree | 7d53cb54f3f68805de82a5ab48ee6040bcf25d80 /Makefile.android | |
parent | 48ed3267dfffedb65385b0a1f1462fdd46d049bb (diff) | |
download | external_qemu-065242de51ba1e18387ce22a99eb091a859990f7.zip external_qemu-065242de51ba1e18387ce22a99eb091a859990f7.tar.gz external_qemu-065242de51ba1e18387ce22a99eb091a859990f7.tar.bz2 |
Ensure android/avd/hw-config-defs.h is properly regenerated as needed.
This modifies the emulator's build system to ensure that the file at
android/avd/hw-config-defs.h is regenerated automatically each time that
android/avd/hardware-properties.ini is itself changed.
Tested with both the Android build system, and the standalone one.
Diffstat (limited to 'Makefile.android')
-rw-r--r-- | Makefile.android | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Makefile.android b/Makefile.android index 6a8e3fd..b0d3cea 100644 --- a/Makefile.android +++ b/Makefile.android @@ -637,6 +637,20 @@ $(intermediates)/vl-android.o: $(QEMU_GDBSTUB_XML_C) LOCAL_GENERATED_SOURCES += $(QEMU_GDBSTUB_XML_C) +# hw-config-defs.h is generated from android/avd/hardware-properties.ini +# +QEMU_HARDWARE_PROPERTIES_INI := android/avd/hardware-properties.ini +QEMU_HW_CONFIG_DEFS_H := $(LOCAL_PATH)/android/avd/hw-config-defs.h +$(QEMU_HW_CONFIG_DEFS_H): PRIVATE_PATH := $(LOCAL_PATH) +$(QEMU_HW_CONFIG_DEFS_H): PRIVATE_SOURCES := $(LOCAL_PATH)/$(QEMU_HARDWARE_PROPERTIES_INI) +$(QEMU_HW_CONFIG_DEFS_H): PRIVATE_CUSTOM_TOOL = $(PRIVATE_PATH)/android/tools/gen-hw-config.py $(LOCAL_PATH)/$(QEMU_HARDWARE_PROPERTIES_INI) $@ +$(QEMU_HW_CONFIG_DEFS_H): $(LOCAL_PATH)/$(QEMU_HARDWARE_PROPERTIES_INI) $(LOCAL_PATH)/android/tools/gen-hw-config.py + $(hide) rm -f $@ + $(transform-generated-source) + +$(LOCAL_PATH)/android/avd/hw-config.h: $(QEMU_HW_CONFIG_DEFS_H) + +LOCAL_GENERATED_SOURCES += $(QEMU_HW_CONFIG_DEFS_H) # this is already done by the Android build system, but is done for the # benefit of the stand-alone one. |