1 export MakeInc_cmd=${SRCROOT}/makedefs/MakeInc.cmd
2 export MakeInc_def=${SRCROOT}/makedefs/MakeInc.def
3 export MakeInc_rule=${SRCROOT}/makedefs/MakeInc.rule
4 export MakeInc_dir=${SRCROOT}/makedefs/MakeInc.dir
9 .PHONY: lldbmacros_install
11 do_config_all:: lldbmacros_install
13 LLDBMACROS_SOURCE:=$(SRCROOT)/tools/lldbmacros/
14 LLDBMACROS_BOOTSTRAP_DEST:=$(OBJPATH)/$(KERNEL_FILE_NAME).dSYM/$(DSYMLLDBMACROSDIR)
15 LLDBMACROS_DEST:=$(LLDBMACROS_BOOTSTRAP_DEST)/lldbmacros/
16 LLDBMACROS_USERDEBUG_FILES=
17 ifeq ($(BUILD_STATIC_LINK),1)
18 KERNEL_STATIC_DSYM_LLDBMACROS := $(OBJPATH)/$(KERNEL_FILE_NAME).link/$(KERNEL_FILE_NAME).dSYM/$(DSYMLLDBMACROSDIR)/lldbmacros/
21 LLDBMACROS_USERDEBUG_FILES:= \
22 usertaskdebugging/__init__.py \
23 usertaskdebugging/gdbserver.py \
24 usertaskdebugging/interface.py \
25 usertaskdebugging/rsprotocol.py \
26 usertaskdebugging/target.py \
27 usertaskdebugging/userprocess.py
29 LLDBMACROS_PYTHON_FILES = $(LLDBMACROS_USERDEBUG_FILES) \
33 core/configuration.py \
37 core/operating_system.py \
38 core/xnu_lldb_init.py \
40 plugins/zprint_perf_log.py \
41 sysregdoc/AArch64-esr_el1.xml \
57 ipcimportancedetail.py \
76 usertaskgdbserver.py \
83 ifneq ($(PLATFORM),MacOSX)
84 LLDBMACROS_PYTHON_FILES+= \
85 plugins/iosspeedtracer.py \
86 plugins/iosspeedtracer.sh
89 include $(MakeInc_rule)
90 include $(MakeInc_dir)
92 INSTALL_LLDBMACROS_PYTHON_FILES=$(addprefix $(LLDBMACROS_DEST), $(LLDBMACROS_PYTHON_FILES))
93 $(eval $(call INSTALLPYTHON_RULE_template,$(INSTALL_LLDBMACROS_PYTHON_FILES),$(LLDBMACROS_SOURCE)%,pydir,$(DATA_UNIFDEF),$(LLDBMACROS_DEST)))
94 $(eval $(call INSTALLPYTHON_RULE_template,$(LLDBMACROS_BOOTSTRAP_DEST)/$(KERNEL_LLDBBOOTSTRAP_NAME),$(LLDBMACROS_SOURCE)/core/xnu_lldb_init.py,kbpydir,$(DATA_UNIFDEF),$(LLDBMACROS_BOOTSTRAP_DEST)/))
96 ifeq ($(BUILD_STATIC_LINK),1)
97 INSTALL_STATIC_DSYM_LLDBMACROS_PYTHON_FILES=$(addprefix $(KERNEL_STATIC_DSYM_LLDBMACROS), $(LLDBMACROS_PYTHON_FILES))
98 $(eval $(call INSTALLPYTHON_RULE_template,$(INSTALL_STATIC_DSYM_LLDBMACROS_PYTHON_FILES),$(LLDBMACROS_SOURCE)%,sdpydir,$(DATA_UNIFDEF),$(KERNEL_STATIC_DSYM_LLDBMACROS)))
99 $(eval $(call INSTALLPYTHON_RULE_template,$(KERNEL_STATIC_DSYM_LLDBMACROS)/../$(KERNEL_LLDBBOOTSTRAP_NAME),$(LLDBMACROS_SOURCE)/core/xnu_lldb_init.py,kbsdpydir,$(DATA_UNIFDEF),$(KERNEL_STATIC_DSYM_LLDBMACROS)/../))
102 ifeq ($(BUILD_STATIC_LINK),1)
103 STATIC_DSYM_LLDBMACROS_INSTALL_TARGETS := \
104 $(INSTALL_STATIC_DSYM_LLDBMACROS_PYTHON_FILES) \
105 $(KERNEL_STATIC_DSYM_LLDBMACROS)/../$(KERNEL_LLDBBOOTSTRAP_NAME)
108 lldbmacros_install: $(INSTALL_LLDBMACROS_PYTHON_FILES) $(LLDBMACROS_BOOTSTRAP_DEST)/$(KERNEL_LLDBBOOTSTRAP_NAME) $(STATIC_DSYM_LLDBMACROS_INSTALL_TARGETS)
109 $(_v)$(MKDIR) $(LLDBMACROS_DEST)/builtinkexts
110 ifeq ($(BUILD_STATIC_LINK),1)
111 $(_v)$(MKDIR) $(KERNEL_STATIC_DSYM_LLDBMACROS)/builtinkexts