diff options
Diffstat (limited to 'cmds/dumpstate/Android.mk')
-rw-r--r-- | cmds/dumpstate/Android.mk | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/cmds/dumpstate/Android.mk b/cmds/dumpstate/Android.mk index e101aeb..f61d7ec 100644 --- a/cmds/dumpstate/Android.mk +++ b/cmds/dumpstate/Android.mk @@ -1,11 +1,18 @@ +ifneq ($(TARGET_SIMULATOR),true) + LOCAL_PATH:= $(call my-dir) include $(CLEAR_VARS) -ALL_PREBUILT += $(TARGET_OUT)/bin/dumpstate -$(TARGET_OUT)/bin/dumpstate : $(LOCAL_PATH)/dumpstate | $(ACP) - $(transform-prebuilt-to-target) +LOCAL_SRC_FILES:= dumpstate.c utils.c + +LOCAL_MODULE:= dumpstate + +LOCAL_SHARED_LIBRARIES := libcutils -SYMLINKS := $(TARGET_OUT_EXECUTABLES)/dumpcrash +include $(BUILD_EXECUTABLE) + +COMMANDS = dumpcrash bugreport +SYMLINKS := $(addprefix $(TARGET_OUT_EXECUTABLES)/,$(COMMANDS)) $(SYMLINKS): DUMPSTATE_BINARY := dumpstate $(SYMLINKS): $(LOCAL_INSTALLED_MODULE) $(LOCAL_PATH)/Android.mk @echo "Symlink: $@ -> $(DUMPSTATE_BINARY)" @@ -14,3 +21,5 @@ $(SYMLINKS): $(LOCAL_INSTALLED_MODULE) $(LOCAL_PATH)/Android.mk $(hide) ln -sf $(DUMPSTATE_BINARY) $@ ALL_DEFAULT_INSTALLED_MODULES += $(SYMLINKS) + +endif |