OSDN Git Service

Build qemu-android script in debug mode
authorChih-Wei Huang <cwhuang@linux.org.tw>
Mon, 9 Oct 2017 16:39:44 +0000 (00:39 +0800)
committerChih-Wei Huang <cwhuang@linux.org.tw>
Thu, 26 Oct 2017 06:54:14 +0000 (14:54 +0800)
After building you can run the qemu-android script to test the images
in QEMU directly.

Android.mk

index ad4866b..48db9e2 100644 (file)
@@ -23,6 +23,15 @@ LOCAL_STATIC_LIBRARIES := libdiskconfig_host libcutils liblog
 edit_mbr := $(HOST_OUT_EXECUTABLES)/$(LOCAL_MODULE)
 include $(BUILD_HOST_EXECUTABLE)
 
+include $(CLEAR_VARS)
+LOCAL_IS_HOST_MODULE := true
+LOCAL_SRC_FILES := rpm/qemu-android
+LOCAL_MODULE := $(notdir $(LOCAL_SRC_FILES))
+LOCAL_MODULE_TAGS := debug
+LOCAL_MODULE_CLASS := EXECUTABLES
+LOCAL_POST_INSTALL_CMD := $(hide) sed -i "s|CMDLINE|$(BOARD_KERNEL_CMDLINE)|" $(HOST_OUT_EXECUTABLES)/$(LOCAL_MODULE)
+include $(BUILD_PREBUILT)
+
 VER ?= $$(date +"%F")
 
 # use squashfs for iso, unless explictly disabled