]> git.saurik.com Git - apple/xnu.git/blobdiff - bsd/dev/dtrace/scripts/Makefile
xnu-6153.11.26.tar.gz
[apple/xnu.git] / bsd / dev / dtrace / scripts / Makefile
index 3e55851a93c15e230eb5dc5d95461e1b891ac9fe..58fc8b3046eae407520226c835b9a8d74a2d233d 100644 (file)
@@ -11,28 +11,46 @@ INSTALL_DTRACE_SCRIPTS_LIST =       \
        errno.d \
        io.d \
        ip.d \
-       regs_x86_64.d \
        sched.d \
        signal.d \
        socket.d \
        tcp.d \
        unistd.d
 
+INSTALL_DTRACE_LIBEXEC_LIST = \
+       log_unnest_badness.d \
+       vm_map_delete_permanent.d
+
 ifneq ($(filter $(SUPPORTED_EMBEDDED_PLATFORMS),$(PLATFORM)),)
 INSTALL_DTRACE_SCRIPTS_LIST += mptcp.d
 endif
 
+
+ifeq ($(CURRENT_ARCH_CONFIG),ARM64)
+INSTALL_DTRACE_SCRIPTS_LIST += regs_arm64.d ptrauth_arm64.d
+else ifeq ($(CURRENT_ARCH_CONFIG),ARM)
+INSTALL_DTRACE_SCRIPTS_LIST += regs_arm.d
+else
+INSTALL_DTRACE_SCRIPTS_LIST += regs_x86_64.d
+endif
+
 INSTALL_DTRACE_SCRIPTS_FILES = \
        $(addprefix $(DSTROOT)/$(INSTALL_DTRACE_SCRIPTS_DIR)/, $(INSTALL_DTRACE_SCRIPTS_LIST))
 
 $(INSTALL_DTRACE_SCRIPTS_FILES): $(DSTROOT)/$(INSTALL_DTRACE_SCRIPTS_DIR)/% : %
        $(_v)$(MKDIR) $(DSTROOT)/$(INSTALL_DTRACE_SCRIPTS_DIR)
-       @echo INSTALL $(@F)
+       $(call makelog,INSTALL $(@F))
        $(_v)$(INSTALL) $(DATA_INSTALL_FLAGS) $< $@
 
-do_textfiles_install:: $(INSTALL_DTRACE_SCRIPTS_FILES)
+INSTALL_DTRACE_LIBEXEC_FILES = \
+       $(addprefix $(DSTROOT)/$(INSTALL_DTRACE_LIBEXEC_DIR)/, $(INSTALL_DTRACE_LIBEXEC_LIST))
 
-include $(MakeInc_rule)
-include $(MakeInc_dir)
+$(INSTALL_DTRACE_LIBEXEC_FILES): $(DSTROOT)/$(INSTALL_DTRACE_LIBEXEC_DIR)/% : %
+       $(_v)$(MKDIR) $(DSTROOT)/$(INSTALL_DTRACE_LIBEXEC_DIR)
+       $(call makelog,INSTALL $(@F))
+       $(_v)$(INSTALL) $(EXEC_INSTALL_FLAGS) $< $@
 
+do_textfiles_install:: $(INSTALL_DTRACE_SCRIPTS_FILES) $(INSTALL_DTRACE_LIBEXEC_FILES)
 
+include $(MakeInc_rule)
+include $(MakeInc_dir)