X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/d9a64523371fa019c4575bb400cbbc3a50ac9903..HEAD:/tools/lldbmacros/Makefile diff --git a/tools/lldbmacros/Makefile b/tools/lldbmacros/Makefile index 26e79ffb4..f20f231da 100644 --- a/tools/lldbmacros/Makefile +++ b/tools/lldbmacros/Makefile @@ -15,7 +15,9 @@ LLDBMACROS_BOOTSTRAP_DEST:=$(OBJPATH)/$(KERNEL_FILE_NAME).dSYM/$(DSYMLLDBMACROSD LLDBMACROS_DEST:=$(LLDBMACROS_BOOTSTRAP_DEST)/lldbmacros/ LLDBMACROS_USERDEBUG_FILES= ifeq ($(BUILD_STATIC_LINK),1) -KERNEL_STATIC_DSYM_LLDBMACROS := $(OBJPATH)/$(KERNEL_FILE_NAME).link/$(KERNEL_FILE_NAME).dSYM/$(DSYMLLDBMACROSDIR)/lldbmacros +ifneq ($(BUILD_XNU_LIBRARY),1) +KERNEL_STATIC_DSYM_LLDBMACROS := $(OBJPATH)/$(KERNEL_FILE_NAME).link/$(KERNEL_FILE_NAME).dSYM/$(DSYMLLDBMACROSDIR)/lldbmacros/ +endif endif LLDBMACROS_USERDEBUG_FILES:= \ @@ -38,11 +40,12 @@ LLDBMACROS_PYTHON_FILES = $(LLDBMACROS_USERDEBUG_FILES) \ core/xnu_lldb_init.py \ plugins/__init__.py \ plugins/zprint_perf_log.py \ - atm.py \ + sysregdoc/AArch64-esr_el1.xml \ bank.py \ turnstile.py \ kevent.py \ workqueue.py \ + ulock.py \ xnu.py \ xnudefines.py \ ktrace.py \ @@ -75,7 +78,9 @@ LLDBMACROS_PYTHON_FILES = $(LLDBMACROS_USERDEBUG_FILES) \ waitq.py \ pgtrace.py \ xnutriage.py \ - zonetriage.py + zonetriage.py \ + sysreg.py \ + counter.py ifneq ($(PLATFORM),MacOSX) LLDBMACROS_PYTHON_FILES+= \ @@ -91,13 +96,25 @@ $(eval $(call INSTALLPYTHON_RULE_template,$(INSTALL_LLDBMACROS_PYTHON_FILES),$(L $(eval $(call INSTALLPYTHON_RULE_template,$(LLDBMACROS_BOOTSTRAP_DEST)/$(KERNEL_LLDBBOOTSTRAP_NAME),$(LLDBMACROS_SOURCE)/core/xnu_lldb_init.py,kbpydir,$(DATA_UNIFDEF),$(LLDBMACROS_BOOTSTRAP_DEST)/)) ifeq ($(BUILD_STATIC_LINK),1) +ifneq ($(BUILD_XNU_LIBRARY),1) INSTALL_STATIC_DSYM_LLDBMACROS_PYTHON_FILES=$(addprefix $(KERNEL_STATIC_DSYM_LLDBMACROS), $(LLDBMACROS_PYTHON_FILES)) $(eval $(call INSTALLPYTHON_RULE_template,$(INSTALL_STATIC_DSYM_LLDBMACROS_PYTHON_FILES),$(LLDBMACROS_SOURCE)%,sdpydir,$(DATA_UNIFDEF),$(KERNEL_STATIC_DSYM_LLDBMACROS))) $(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)/../)) endif +endif -lldbmacros_install: $(INSTALL_LLDBMACROS_PYTHON_FILES) $(LLDBMACROS_BOOTSTRAP_DEST)/$(KERNEL_LLDBBOOTSTRAP_NAME) +ifeq ($(BUILD_STATIC_LINK),1) +ifneq ($(BUILD_XNU_LIBRARY),1) +STATIC_DSYM_LLDBMACROS_INSTALL_TARGETS := \ + $(INSTALL_STATIC_DSYM_LLDBMACROS_PYTHON_FILES) \ + $(KERNEL_STATIC_DSYM_LLDBMACROS)/../$(KERNEL_LLDBBOOTSTRAP_NAME) +endif +endif + +lldbmacros_install: $(INSTALL_LLDBMACROS_PYTHON_FILES) $(LLDBMACROS_BOOTSTRAP_DEST)/$(KERNEL_LLDBBOOTSTRAP_NAME) $(STATIC_DSYM_LLDBMACROS_INSTALL_TARGETS) $(_v)$(MKDIR) $(LLDBMACROS_DEST)/builtinkexts ifeq ($(BUILD_STATIC_LINK),1) +ifneq ($(BUILD_XNU_LIBRARY),1) $(_v)$(MKDIR) $(KERNEL_STATIC_DSYM_LLDBMACROS)/builtinkexts endif +endif