diff options
author | David 'Digit' Turner <digit@android.com> | 2010-06-15 17:43:06 -0700 |
---|---|---|
committer | David 'Digit' Turner <digit@android.com> | 2010-06-15 17:43:06 -0700 |
commit | e3c83b5e03f7c7af930b2e954a8a44a21f115fc9 (patch) | |
tree | 11675fd09fe62c9718075f3b355f1f02bb1aa949 | |
parent | 45d6d6dfb066398789c0b067be3aaac099699030 (diff) | |
download | external_qemu-e3c83b5e03f7c7af930b2e954a8a44a21f115fc9.zip external_qemu-e3c83b5e03f7c7af930b2e954a8a44a21f115fc9.tar.gz external_qemu-e3c83b5e03f7c7af930b2e954a8a44a21f115fc9.tar.bz2 |
Fix -sdcard option by reverting previous commit.
Unfortunately, the use of __attribute__((constructor)) to initialize modules
means we cannot easily put core files into a static library without playing
horrible linker tricks.
Revert the patch for now, another solution will be provided later.
Change-Id: Iae761611f3122aafd0ef50c225e73a0910c1a3e7
-rw-r--r-- | Makefile.android | 43 |
1 files changed, 16 insertions, 27 deletions
diff --git a/Makefile.android b/Makefile.android index 01e7de3..58fc4ff 100644 --- a/Makefile.android +++ b/Makefile.android @@ -157,7 +157,6 @@ LOCAL_CFLAGS += $(ZLIB_CFLAGS) -I$(LOCAL_PATH)/$(ZLIB_DIR) HW_SOURCES := \ android_arm.c \ - arm_boot.c \ arm_pic.c \ bt.c \ bt-hci.c \ @@ -509,29 +508,6 @@ TELEPHONY_SOURCES := android_modem.c modem_driver.c gsm.c sim_card.c sysdeps_qem LOCAL_SRC_FILES += $(TELEPHONY_SOURCES:%=telephony/%) EMULATOR_CORE_CFLAGS += -I$(LOCAL_PATH)/telephony -# include block sources -# -BLOCK_SOURCES := \ - block.c \ - block/qcow.c \ - block/qcow2.c \ - block/qcow2-refcount.c \ - block/qcow2-snapshot.c \ - block/qcow2-cluster.c \ - block/cloop.c \ - block/dmg.c \ - block/vvfat.c \ - -ifeq ($(HOST_OS),windows) - BLOCK_SOURCES += block/raw-win32.c -else - BLOCK_SOURCES += block/raw-posix.c -endif - -# ZLIB is required by "block" on Windows -LOCAL_CFLAGS += $(ZLIB_CFLAGS) -I$(LOCAL_PATH)/$(ZLIB_DIR) -LOCAL_SRC_FILES += $(BLOCK_SOURCES) - LOCAL_CFLAGS := $(MY_CFLAGS) $(LOCAL_CFLAGS) $(EMULATOR_CORE_CFLAGS) include $(BUILD_HOST_STATIC_LIBRARY) @@ -651,8 +627,16 @@ endif # include other sources # VL_SOURCES := vl-android.c osdep.c cutils.c \ - readline.c monitor.c console.c loader.c sockets.c \ + block.c readline.c monitor.c console.c loader.c sockets.c \ aes.c d3des.c \ + block/qcow.c \ + block/qcow2.c \ + block/qcow2-refcount.c \ + block/qcow2-snapshot.c \ + block/qcow2-cluster.c \ + block/cloop.c \ + block/dmg.c \ + block/vvfat.c \ buffered_file.c \ cbuffer.c \ gdbstub.c \ @@ -720,11 +704,16 @@ VL_SOURCES := vl-android.c osdep.c cutils.c \ android/avd/hw-config.c \ android/avd/info.c \ +VL_SOURCES += hw/arm_boot.c \ + hw/android_arm.c \ + ifeq ($(HOST_OS),windows) - VL_SOURCES += migration-dummy-android.c \ + VL_SOURCES += block/raw-win32.c \ + migration-dummy-android.c \ iolooper-select.c else - VL_SOURCES += migration.c \ + VL_SOURCES += block/raw-posix.c \ + migration.c \ migration-exec.c \ migration-tcp-android.c \ iolooper-select.c |