1*42e22086SApple OSS Distributionsexport MakeInc_cmd=${SRCROOT}/makedefs/MakeInc.cmd 2*42e22086SApple OSS Distributionsexport MakeInc_def=${SRCROOT}/makedefs/MakeInc.def 3*42e22086SApple OSS Distributionsexport MakeInc_rule=${SRCROOT}/makedefs/MakeInc.rule 4*42e22086SApple OSS Distributionsexport MakeInc_dir=${SRCROOT}/makedefs/MakeInc.dir 5*42e22086SApple OSS Distributions 6*42e22086SApple OSS Distributionsinclude $(MakeInc_cmd) 7*42e22086SApple OSS Distributionsinclude $(MakeInc_def) 8*42e22086SApple OSS Distributions 9*42e22086SApple OSS Distributions.PHONY: lldbmacros_install 10*42e22086SApple OSS Distributions 11*42e22086SApple OSS Distributionsdo_config_all:: lldbmacros_install 12*42e22086SApple OSS Distributions 13*42e22086SApple OSS DistributionsLLDBMACROS_SOURCE:=$(SRCROOT)/tools/lldbmacros/ 14*42e22086SApple OSS DistributionsLLDBMACROS_BOOTSTRAP_DEST:=$(OBJPATH)/$(KERNEL_FILE_NAME).dSYM/$(DSYMLLDBMACROSDIR) 15*42e22086SApple OSS DistributionsLLDBMACROS_DEST:=$(LLDBMACROS_BOOTSTRAP_DEST)/lldbmacros/ 16*42e22086SApple OSS DistributionsLLDBMACROS_USERDEBUG_FILES= 17*42e22086SApple OSS Distributionsifeq ($(BUILD_STATIC_LINK),1) 18*42e22086SApple OSS Distributionsifneq ($(BUILD_XNU_LIBRARY),1) 19*42e22086SApple OSS DistributionsKERNEL_STATIC_DSYM_LLDBMACROS := $(OBJPATH)/$(KERNEL_FILE_NAME).link/$(KERNEL_FILE_NAME).dSYM/$(DSYMLLDBMACROSDIR)/lldbmacros/ 20*42e22086SApple OSS Distributionsendif 21*42e22086SApple OSS Distributionsendif 22*42e22086SApple OSS Distributions 23*42e22086SApple OSS DistributionsLLDBMACROS_USERDEBUG_FILES:= \ 24*42e22086SApple OSS Distributions usertaskdebugging/__init__.py \ 25*42e22086SApple OSS Distributions usertaskdebugging/gdbserver.py \ 26*42e22086SApple OSS Distributions usertaskdebugging/interface.py \ 27*42e22086SApple OSS Distributions usertaskdebugging/rsprotocol.py \ 28*42e22086SApple OSS Distributions usertaskdebugging/target.py \ 29*42e22086SApple OSS Distributions usertaskdebugging/userprocess.py 30*42e22086SApple OSS Distributions 31*42e22086SApple OSS DistributionsLLDBMACROS_PYTHON_FILES = $(LLDBMACROS_USERDEBUG_FILES) \ 32*42e22086SApple OSS Distributions core/standard.py \ 33*42e22086SApple OSS Distributions core/compat.py \ 34*42e22086SApple OSS Distributions core/cvalue.py \ 35*42e22086SApple OSS Distributions core/__init__.py \ 36*42e22086SApple OSS Distributions core/configuration.py \ 37*42e22086SApple OSS Distributions core/caching.py \ 38*42e22086SApple OSS Distributions core/io.py \ 39*42e22086SApple OSS Distributions core/lazytarget.py \ 40*42e22086SApple OSS Distributions core/kernelcore.py \ 41*42e22086SApple OSS Distributions core/operating_system.py \ 42*42e22086SApple OSS Distributions core/xnu_lldb_init.py \ 43*42e22086SApple OSS Distributions plugins/__init__.py \ 44*42e22086SApple OSS Distributions plugins/zprint_perf_log.py \ 45*42e22086SApple OSS Distributions sysregdoc/AArch64-esr_el1.xml \ 46*42e22086SApple OSS Distributions bank.py \ 47*42e22086SApple OSS Distributions turnstile.py \ 48*42e22086SApple OSS Distributions kevent.py \ 49*42e22086SApple OSS Distributions workqueue.py \ 50*42e22086SApple OSS Distributions ulock.py \ 51*42e22086SApple OSS Distributions xnu.py \ 52*42e22086SApple OSS Distributions xnudefines.py \ 53*42e22086SApple OSS Distributions ktrace.py \ 54*42e22086SApple OSS Distributions macho.py \ 55*42e22086SApple OSS Distributions mbufdefines.py \ 56*42e22086SApple OSS Distributions netdefines.py \ 57*42e22086SApple OSS Distributions ntstat.py \ 58*42e22086SApple OSS Distributions routedefines.py \ 59*42e22086SApple OSS Distributions ipc.py \ 60*42e22086SApple OSS Distributions ipcimportancedetail.py \ 61*42e22086SApple OSS Distributions kcdata.py \ 62*42e22086SApple OSS Distributions scheduler.py \ 63*42e22086SApple OSS Distributions structanalyze.py \ 64*42e22086SApple OSS Distributions pmap.py \ 65*42e22086SApple OSS Distributions memory.py \ 66*42e22086SApple OSS Distributions mbufs.py \ 67*42e22086SApple OSS Distributions net.py \ 68*42e22086SApple OSS Distributions skywalk.py \ 69*42e22086SApple OSS Distributions ioreg.py \ 70*42e22086SApple OSS Distributions utils.py \ 71*42e22086SApple OSS Distributions kdp.py \ 72*42e22086SApple OSS Distributions process.py \ 73*42e22086SApple OSS Distributions userspace.py \ 74*42e22086SApple OSS Distributions pci.py \ 75*42e22086SApple OSS Distributions misc.py \ 76*42e22086SApple OSS Distributions apic.py \ 77*42e22086SApple OSS Distributions kasan.py \ 78*42e22086SApple OSS Distributions kauth.py \ 79*42e22086SApple OSS Distributions usertaskgdbserver.py \ 80*42e22086SApple OSS Distributions waitq.py \ 81*42e22086SApple OSS Distributions xnutriage.py \ 82*42e22086SApple OSS Distributions zonetriage.py \ 83*42e22086SApple OSS Distributions recount.py \ 84*42e22086SApple OSS Distributions sysreg.py \ 85*42e22086SApple OSS Distributions counter.py \ 86*42e22086SApple OSS Distributions btlog.py \ 87*42e22086SApple OSS Distributions refgrp.py \ 88*42e22086SApple OSS Distributions workload.py \ 89*42e22086SApple OSS Distributions log.py \ 90*42e22086SApple OSS Distributions kext.py 91*42e22086SApple OSS Distributions 92*42e22086SApple OSS Distributionsifneq ($(PLATFORM),MacOSX) 93*42e22086SApple OSS Distributions LLDBMACROS_PYTHON_FILES+= \ 94*42e22086SApple OSS Distributions plugins/iosspeedtracer.py \ 95*42e22086SApple OSS Distributions plugins/iosspeedtracer.sh 96*42e22086SApple OSS Distributionsendif 97*42e22086SApple OSS Distributions 98*42e22086SApple OSS Distributionsinclude $(MakeInc_rule) 99*42e22086SApple OSS Distributionsinclude $(MakeInc_dir) 100*42e22086SApple OSS Distributions 101*42e22086SApple OSS DistributionsINSTALL_LLDBMACROS_PYTHON_FILES=$(addprefix $(LLDBMACROS_DEST), $(LLDBMACROS_PYTHON_FILES)) 102*42e22086SApple OSS Distributions$(eval $(call INSTALLPYTHON_RULE_template,$(INSTALL_LLDBMACROS_PYTHON_FILES),$(LLDBMACROS_SOURCE)%,pydir,$(DATA_UNIFDEF),$(LLDBMACROS_DEST))) 103*42e22086SApple OSS Distributions$(eval $(call INSTALLPYTHON_RULE_template,$(LLDBMACROS_BOOTSTRAP_DEST)/$(KERNEL_LLDBBOOTSTRAP_NAME),$(LLDBMACROS_SOURCE)/core/xnu_lldb_init.py,kbpydir,$(DATA_UNIFDEF),$(LLDBMACROS_BOOTSTRAP_DEST)/)) 104*42e22086SApple OSS Distributions 105*42e22086SApple OSS Distributionsifeq ($(BUILD_STATIC_LINK),1) 106*42e22086SApple OSS Distributionsifneq ($(BUILD_XNU_LIBRARY),1) 107*42e22086SApple OSS DistributionsINSTALL_STATIC_DSYM_LLDBMACROS_PYTHON_FILES=$(addprefix $(KERNEL_STATIC_DSYM_LLDBMACROS), $(LLDBMACROS_PYTHON_FILES)) 108*42e22086SApple OSS Distributions$(eval $(call INSTALLPYTHON_RULE_template,$(INSTALL_STATIC_DSYM_LLDBMACROS_PYTHON_FILES),$(LLDBMACROS_SOURCE)%,sdpydir,$(DATA_UNIFDEF),$(KERNEL_STATIC_DSYM_LLDBMACROS))) 109*42e22086SApple OSS Distributions$(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)/../)) 110*42e22086SApple OSS Distributionsendif 111*42e22086SApple OSS Distributionsendif 112*42e22086SApple OSS Distributions 113*42e22086SApple OSS Distributionsifeq ($(BUILD_STATIC_LINK),1) 114*42e22086SApple OSS Distributionsifneq ($(BUILD_XNU_LIBRARY),1) 115*42e22086SApple OSS DistributionsSTATIC_DSYM_LLDBMACROS_INSTALL_TARGETS := \ 116*42e22086SApple OSS Distributions $(INSTALL_STATIC_DSYM_LLDBMACROS_PYTHON_FILES) \ 117*42e22086SApple OSS Distributions $(KERNEL_STATIC_DSYM_LLDBMACROS)/../$(KERNEL_LLDBBOOTSTRAP_NAME) 118*42e22086SApple OSS Distributionsendif 119*42e22086SApple OSS Distributionsendif 120*42e22086SApple OSS Distributions 121*42e22086SApple OSS Distributionslldbmacros_install: $(INSTALL_LLDBMACROS_PYTHON_FILES) $(LLDBMACROS_BOOTSTRAP_DEST)/$(KERNEL_LLDBBOOTSTRAP_NAME) $(STATIC_DSYM_LLDBMACROS_INSTALL_TARGETS) 122*42e22086SApple OSS Distributions $(_v)$(MKDIR) $(LLDBMACROS_DEST)/builtinkexts 123*42e22086SApple OSS Distributionsifeq ($(BUILD_STATIC_LINK),1) 124*42e22086SApple OSS Distributionsifneq ($(BUILD_XNU_LIBRARY),1) 125*42e22086SApple OSS Distributions $(_v)$(MKDIR) $(KERNEL_STATIC_DSYM_LLDBMACROS)/builtinkexts 126*42e22086SApple OSS Distributionsendif 127*42e22086SApple OSS Distributionsendif 128