]> git.saurik.com Git - apple/xnu.git/blobdiff - config/Makefile
xnu-7195.60.75.tar.gz
[apple/xnu.git] / config / Makefile
index 201cbee6c054db6ed7df13734c7b5ef30c1ffa6f..e5a5fb5c9bccd60f6ba01c85f0a8a02c1293f35e 100644 (file)
@@ -3,233 +3,173 @@ export MakeInc_def=${SRCROOT}/makedefs/MakeInc.def
 export MakeInc_rule=${SRCROOT}/makedefs/MakeInc.rule
 export MakeInc_dir=${SRCROOT}/makedefs/MakeInc.dir
 
-
 include $(MakeInc_cmd)
 include $(MakeInc_def)
 
-ALL_SUBDIRS = 
-
-INSTINC_SUBDIRS = 
-INSTINC_SUBDIRS_I386 = 
-INSTINC_SUBDIRS_X86_64 = 
-INSTINC_SUBDIRS_ARM = 
-
-EXPINC_SUBDIRS = 
-EXPINC_SUBDIRS_I386 = 
-EXPINC_SUBDIRS_X86_64 = 
-EXPINC_SUBDIRS_ARM = 
-
+MD_SUPPORTED_KPI_FILENAME = SupportedKPIs-${CURRENT_ARCH_CONFIG_LC}.txt
+MI_SUPPORTED_KPI_FILENAME = SupportedKPIs-all-archs.txt
 
-COMP_SUBDIRS = 
+INSTALL_KEXT_DIR = $(DSTROOT)$(INSTALL_EXTENSIONS_DIR)
 
-INST_SUBDIRS = 
-
-
-INSTALL_KEXT_PLIST_LIST= \
+KEXT_PLIST_LIST = \
        System.kext/Info.plist \
-       System.kext/PlugIns/Libkern.kext/Info.plist \
-       System.kext/PlugIns/Mach.kext/Info.plist \
-       System.kext/PlugIns/BSDKernel.kext/Info.plist \
-       System.kext/PlugIns/MACFramework.kext/Info.plist \
-       System.kext/PlugIns/IOKit.kext/Info.plist \
+       System.kext/PlugIns/Kasan.kext/Info.plist \
        System.kext/PlugIns/AppleNMI.kext/Info.plist \
        System.kext/PlugIns/ApplePlatformFamily.kext/Info.plist \
        System.kext/PlugIns/IONVRAMFamily.kext/Info.plist \
-       System.kext/PlugIns/IOSystemManagement.kext/Info.plist \
-       System.kext/PlugIns/Unsupported.kext/Info.plist \
-       System.kext/PlugIns/Private.kext/Info.plist
-
-INSTALL_KEXT_DIR = /System/Library/Extensions/
+       System.kext/PlugIns/IOSystemManagement.kext/Info.plist
 
+SYMBOL_COMPONENT_LIST =        \
+        BSDKernel      \
+        IOKit          \
+        Libkern                \
+        Mach           \
+        MACFramework   \
+        Unsupported    \
+        Private
 
-MD_SUPPORTED_KPI_FILENAME="SupportedKPIs-${ARCH_CONFIG_LC}.txt"
-MI_SUPPORTED_KPI_FILENAME="SupportedKPIs-all-archs.txt"
+SYMBOL_SET_PLIST_COMPONENT_LIST := $(SYMBOL_COMPONENT_LIST) Kasan
 
-ifneq ($(MACHINE_CONFIG), DEFAULT)
-OBJPATH = $(OBJROOT)/$(KERNEL_CONFIG)_$(ARCH_CONFIG)_$(MACHINE_CONFIG)
+# In general you want it to be possible to have a CPU sub-type's symbol exports
+# alias to the parent type's exports. This is a special-case way to handle it
+# for now:
+ifeq ($(CURRENT_ARCH_CONFIG_LC),x86_64h)
+EXPORT_SOURCE_ARCH_CONFIG_LC = x86_64
 else
-OBJPATH = $(OBJROOT)/$(KERNEL_CONFIG)_$(ARCH_CONFIG)
+EXPORT_SOURCE_ARCH_CONFIG_LC = $(CURRENT_ARCH_CONFIG_LC)
 endif
 
-ifeq ($(ARCH_CONFIG),I386)
-SUPPORT_SYSTEM60_KEXT  = 1
-else
-SUPPORT_SYSTEM60_KEXT  = 0
+KEXT_MACHO_LIST = $(foreach symbolset,$(filter-out Dummy,$(SYMBOL_COMPONENT_LIST)),System.kext/PlugIns/$(symbolset).kext/$(symbolset))
+KEXT_PLIST_LIST += $(foreach symbolset,$(filter-out Dummy,$(SYMBOL_COMPONENT_LIST)),System.kext/PlugIns/$(symbolset).kext/Info.plist)
+
+SYMROOT_INSTALL_KEXT_MACHO_FILES = $(addprefix $(SYMROOT)/,$(KEXT_MACHO_LIST))
+DSTROOT_INSTALL_KEXT_MACHO_FILES = $(addprefix $(INSTALL_KEXT_DIR)/,$(KEXT_MACHO_LIST))
+
+SYMROOT_INSTALL_KEXT_PLISTS = $(addprefix $(SYMROOT)/,$(KEXT_PLIST_LIST))
+DSTROOT_INSTALL_KEXT_PLISTS = $(addprefix $(INSTALL_KEXT_DIR)/,$(KEXT_PLIST_LIST))
+
+EXPORTS_FILES = $(foreach symbolset,$(SYMBOL_COMPONENT_LIST),$(symbolset).exports $(symbolset).$(EXPORT_SOURCE_ARCH_CONFIG_LC).exports $(notdir $(wildcard $(SOURCE)/$(symbolset).$(EXPORT_SOURCE_ARCH_CONFIG_LC).$(PLATFORM).exports))) Unused.exports
+
+Kasan_EXPORTS := $(SRCROOT)/san/Kasan.exports
+ifeq ($(KASAN),1)
+Kasan_EXPORTS := $(SRCROOT)/san/Kasan_kasan.exports
 endif
 
-ifeq ($(SUPPORT_SYSTEM60_KEXT),1)
-INSTALL_KEXT_PLIST_LIST += \
-       System.kext/PlugIns/System6.0.kext/Info.plist \
-       System.kext/PlugIns/Libkern6.0.kext/Info.plist \
-       System.kext/PlugIns/Mach6.0.kext/Info.plist \
-       System.kext/PlugIns/BSDKernel6.0.kext/Info.plist \
-       System.kext/PlugIns/IOKit6.0.kext/Info.plist
+SYMBOL_SET_BUILD = $(foreach symbolset, $(SYMBOL_COMPONENT_LIST), $(OBJPATH)/$(symbolset).symbolset)
+SYMBOL_SET_PLIST_BUILD = $(foreach symbolset, $(SYMBOL_SET_PLIST_COMPONENT_LIST), $(OBJPATH)/$(symbolset).symbolset.plist)
+
+define symbol_set_rule
+$(1)_EXPORTS := $(addprefix $(SOURCE)/,$(filter $(1)%,$(EXPORTS_FILES)))
+$(OBJPATH)/$(1).symbolset: MY_EXPORTS_ARGS := $$(foreach file,$$($(1)_EXPORTS),-export $$(file))
+$(OBJPATH)/$(1).symbolset: $$($(1)_EXPORTS) $(OBJPATH)/allsymbols $(KEXT_CREATE_SYMBOL_SET)
+       @$$(LOG_SYMBOLSET) "$(ColorF)$(1)$(Color0) ($(ColorLF)$(CURRENT_ARCH_CONFIG_LC)$(Color0))"
+       $(_v)$(KEXT_CREATE_SYMBOL_SET)                  \
+               $(ARCH_FLAGS_$(CURRENT_ARCH_CONFIG))    \
+               -import $(OBJPATH)/allsymbols           \
+               $$(MY_EXPORTS_ARGS)                     \
+               -output $$@ $(_vstdout)
+endef
+
+define symbol_set_plist_rule
+$(1)_KEXT_PLIST := $$(filter %/$(1).kext/Info.plist,$$(SYMROOT_INSTALL_KEXT_PLISTS))
+$(OBJPATH)/$(1).symbolset.plist: $$($(1)_KEXT_PLIST) $$($(1)_EXPORTS)
+       @$$(LOG_SYMBOLSETPLIST) "$(ColorF)$(1)$(Color0) ($(ColorLF)$(CURRENT_ARCH_CONFIG_LC)$(Color0))"
+       $(_v)$(SOURCE)/generate_symbolset_plist.sh      $$@ $$+ $(_vstdout)
+       $(_v)$(PLUTIL) -lint -s $$@
+endef
+
+$(foreach symbolset,$(SYMBOL_COMPONENT_LIST),$(eval $(call symbol_set_rule,$(symbolset))))
+$(foreach symbolset,$(SYMBOL_SET_PLIST_COMPONENT_LIST),$(eval $(call symbol_set_plist_rule,$(symbolset))))
+
+$(OBJPATH)/symbolsets.plist: $(SYMBOL_SET_PLIST_BUILD)
+       $(_v)$(SOURCE)/generate_combined_symbolsets_plist.sh $@ $^ $(_vstdout)
+       $(_v)$(PLUTIL) -convert binary1 -s $@
+
+$(OBJPATH)/allsymbols: $(OBJPATH)/$(KERNEL_FILE_NAME)
+       $(_v)$(NM) -gj $< | sort -u > $@
+
+.PHONY: check_all_exports
+
+check_all_exports: $(OBJPATH)/allsymbols $(KEXT_CREATE_SYMBOL_SET)
+       $(_v)$(KEXT_CREATE_SYMBOL_SET)                                  \
+               $(ARCH_FLAGS_$(CURRENT_ARCH_CONFIG))                    \
+               -import $(OBJPATH)/allsymbols                           \
+               $(foreach symbolset,$(filter-out Private,$(SYMBOL_COMPONENT_LIST)),     \
+                       -export $(SOURCE)/$(symbolset).exports          \
+                       -export $(SOURCE)/$(symbolset).$(EXPORT_SOURCE_ARCH_CONFIG_LC).exports) \
+               -output /dev/null $(_vstdout)
+       $(_v)$(KEXT_CREATE_SYMBOL_SET)                                  \
+               $(ARCH_FLAGS_$(CURRENT_ARCH_CONFIG))                    \
+               -import $(OBJPATH)/allsymbols                           \
+               $(foreach symbolset,$(filter-out Unsupported,$(SYMBOL_COMPONENT_LIST)), \
+                       -export $(SOURCE)/$(symbolset).exports          \
+                       -export $(SOURCE)/$(symbolset).$(EXPORT_SOURCE_ARCH_CONFIG_LC).exports) \
+               -output /dev/null $(_vstdout)
+
+$(OBJPATH)/$(MD_SUPPORTED_KPI_FILENAME): $(EXPORTS_FILES)
+       @$(LOG_SUPPORTED_KPI) "$(CURRENT_ARCH_CONFIG_LC)"
+       $(_v)$(SRCROOT)/config/list_supported.sh $(SOURCE) $(EXPORT_SOURCE_ARCH_CONFIG_LC) $@
+
+$(OBJPATH)/$(MI_SUPPORTED_KPI_FILENAME): $(EXPORTS_FILES)
+       @$(LOG_SUPPORTED_KPI) "all"
+       $(_v)$(SRCROOT)/config/list_supported.sh $(SOURCE) all $@
+
+build_symbol_sets: check_all_exports $(SYMBOL_SET_BUILD) $(OBJPATH)/allsymbols \
+                       $(OBJPATH)/$(MD_SUPPORTED_KPI_FILENAME) \
+                       $(OBJPATH)/$(MI_SUPPORTED_KPI_FILENAME)
+
+do_config_all::        build_symbol_sets
+
+# There's no simple static pattern rule for these paths, so hardcode dependencies in the command list
+$(SYMROOT_INSTALL_KEXT_MACHO_FILES): ALWAYS
+       $(_v)$(MKDIR) $(dir $@)
+       @$(LOG_INSTALLSYM) "symbolset $(notdir $@)$(Color0) ($(ColorLF)$(CURRENT_ARCH_CONFIG_LC)$(Color0))"
+       $(_v)if [ $(OBJROOT)/.symbolset.timestamp -nt $@ ]; then                \
+               $(INSTALL) $(EXEC_INSTALL_FLAGS) $(OBJPATH)/$(@F).symbolset $@; \
+               cmdstatus=$$?;                                                  \
+       else                                                                    \
+               $(LIPO) -create $@ $(OBJPATH)/$(@F).symbolset -output $@ 2>/dev/null || true;   \
+               cmdstatus=$$?;                                                  \
+       fi;                                                                     \
+       exit $$cmdstatus
+
+$(SYMROOT_INSTALL_KEXT_PLISTS): $(SYMROOT)/% : $(SOURCE)/%
+       $(_v)$(MKDIR) $(dir $@)
+       @$(LOG_INSTALLSYM) "kextplist$(Color0) $(ColorF)$*"
+       $(_v)$(INSTALL) $(DATA_INSTALL_FLAGS) $< $@
+       $(_v)$(NEWVERS) $@ $(_vstdout)
+
+$(DSTROOT_INSTALL_KEXT_PLISTS): $(INSTALL_KEXT_DIR)/% : $(SYMROOT)/%
+       $(_v)$(MKDIR) $(dir $@)
+       @$(LOG_INSTALLSYM) "kextplist$(Color0) $(ColorF)$*"
+       $(_v)$(INSTALL) $(DATA_INSTALL_FLAGS) $< $@
+
+$(DSTROOT_INSTALL_KEXT_MACHO_FILES): $(INSTALL_KEXT_DIR)/% : $(SYMROOT)/% ALWAYS
+       $(_v)$(MKDIR) $(dir $@)
+       @$(LOG_INSTALL) "$(notdir $@)$(Color0) ($(ColorLF)$(CURRENT_ARCH_CONFIG_LC)$(Color0))"
+       $(_v)$(INSTALL) $(EXEC_INSTALL_FLAGS) $< $@
+
+$(DSTROOT)/$(KRESDIR)/$(MD_SUPPORTED_KPI_FILENAME) $(DSTROOT)/$(KRESDIR)/$(MI_SUPPORTED_KPI_FILENAME): $(DSTROOT)/$(KRESDIR)/% : $(OBJPATH)/%
+       $(_v)$(MKDIR) $(dir $@)
+       @$(LOG_INSTALL) "$*"
+       $(_v)$(INSTALL) $(INSTALL_FLAGS) $< $@
+
+ifneq ($(INSTALL_KASAN_ONLY),1)
+do_config_install::    $(SYMROOT_INSTALL_KEXT_MACHO_FILES) \
+                               $(SYMROOT_INSTALL_KEXT_PLISTS) \
+                               $(DSTROOT_INSTALL_KEXT_MACHO_FILES) \
+                               $(DSTROOT_INSTALL_KEXT_PLISTS) \
+                               $(DSTROOT)/$(KRESDIR)/$(MD_SUPPORTED_KPI_FILENAME) \
+                               $(DSTROOT)/$(KRESDIR)/$(MI_SUPPORTED_KPI_FILENAME)
 endif
 
-SYMBOL_COMPONENT_LIST =        \
-        System6.0      \
-        BSDKernel      \
-        IOKit          \
-        Libkern                \
-        Mach           \
-        MACFramework   \
-        Unsupported    \
-        Private
+$(OBJPATH)/all-kpi.exp: $(EXPORTS_FILES)
+       $(_v)$(SOURCE)/generate_linker_exports.sh $@ $+ $(Kasan_EXPORTS)
+
+$(OBJPATH)/all-alias.exp: $(EXPORTS_FILES)
+       $(_v)$(SOURCE)/generate_linker_aliases.sh $@ $+ $(Kasan_EXPORTS)
 
-SYMBOL_SET_BUILD = $(foreach set, $(SYMBOL_COMPONENT_LIST), $(OBJPATH)/$(set).symbolset)
-SYMBOL_SET_FAT = $(foreach set, $(SYMBOL_COMPONENT_LIST), $(OBJROOT)/$(set).symbolset)
-
-INSTALL_KEXT_PLISTS = $(addprefix $(DSTROOT)$(INSTALL_KEXT_DIR), $(INSTALL_KEXT_PLIST_LIST))
-
-$(INSTALL_KEXT_PLISTS): $(DSTROOT)$(INSTALL_KEXT_DIR)% : $(SOURCE)/%
-       @echo Install $< in $@
-       $(_v)$(MKDIR) $(dir $@);                                \
-       $(RM) $(RMFLAGS) $@;                                    \
-       $(INSTALL) $(DATA_INSTALL_FLAGS) $< $(dir $@)
-
-$(OBJPATH)/allsymbols: $(OBJPATH)/mach_kernel
-       $(_v)$(NM) -gj $< > $@
-
-$(SYMBOL_SET_BUILD): $(OBJPATH)/%.symbolset :  %.exports %.$(ARCH_CONFIG_LC).exports $(OBJPATH)/allsymbols
-       $(_v)if [ "$*" != System6.0 -o $(SUPPORT_SYSTEM60_KEXT) -eq 1 ]; then   \
-               $(KEXT_CREATE_SYMBOL_SET) \
-               $($(addsuffix $(ARCH_CONFIG),ARCH_FLAGS_)) \
-               -import $(OBJPATH)/allsymbols \
-               -export $*.exports \
-               -export $*.$(ARCH_CONFIG_LC).exports \
-               -output $@ $(_vstdout); \
-       fi
-       $(_v)if [ ! -e $@ ]; then       \
-               printf "" > $@;         \
-       fi
-
-# When building the top-level install target for all architectures, aggregate the per-arch
-# symbolsets for the primary machine configuration for each kernel/arch config
-$(SYMBOL_SET_FAT): $(OBJROOT)/%.symbolset :
-       $(_v)per_arch_symbolsets="";                    \
-       for arch_config in $(INSTALL_ARCHS);            \
-       do                                              \
-                                                       \
-       my_counter=1;                                   \
-       found_arch=0;                                   \
-       for my_config in $(TARGET_CONFIGS_UC);          \
-       do                                              \
-               if [ $${my_counter} -eq 1 ] ; then      \
-                       kernel_config=$${my_config};    \
-               elif [ $${my_counter} -eq 2 ] ; then    \
-                       if [ $${my_config} = $${arch_config} ]; then \
-                               found_arch=1;           \
-                       fi;                             \
-               else                                    \
-                       if [ $${found_arch} -eq 1 ]; then \
-                               machine_config=$${my_config};\
-                               break;                  \
-                       fi;                             \
-                       my_counter=0;                   \
-               fi;                                     \
-               my_counter=$$((my_counter + 1));        \
-       done;                                           \
-                                                       \
-       if [ $${arch_config} = ARM ] ; then             \
-               if [ $${machine_config} = DEFAULT ] ; then              \
-                       machine_config=$(DEFAULT_ARM_MACHINE_CONFIG);   \
-               fi;                                                     \
-       fi;                                             \
-       if [ $${arch_config} = L4_ARM ] ; then          \
-               if [ $${machine_config} = DEFAULT ] ; then              \
-                       machine_config=$(DEFAULT_L4_ARM_MACHINE_CONFIG);        \
-               fi;                                                     \
-       fi;                                             \
-       if [ $${machine_config} = DEFAULT ] ; then      \
-               objpath=${OBJROOT}/$${kernel_config}_$${arch_config};   \
-       else            \
-               objpath=${OBJROOT}/$${kernel_config}_$${arch_config}_$${machine_config};        \
-       fi;             \
-       if [ -s "$${objpath}/$*.symbolset" ]; then                      \
-               per_arch_symbolsets="$${per_arch_symbolsets} $${objpath}/$*.symbolset";         \
-       fi;             \
-       done;           \
-       if [ -n "$${per_arch_symbolsets}" ]; then                       \
-               $(LIPO) $${per_arch_symbolsets} -create -output $@;     \
-       else            \
-               printf "" > $@;                                         \
-       fi
-
-build_symbol_sets:     $(SYMBOL_SET_BUILD) $(OBJPATH)/allsymbols
-       $(_v)$(KEXT_CREATE_SYMBOL_SET) \
-               $($(addsuffix $(ARCH_CONFIG),ARCH_FLAGS_)) \
-               $(foreach comp,$(filter-out System6.0 Private,$(SYMBOL_COMPONENT_LIST)), \
-                       -export $(SRCROOT)/$(COMPONENT)/$(comp).exports \
-                       -export $(SRCROOT)/$(COMPONENT)/$(comp).$(ARCH_CONFIG_LC).exports) \
-               -import $(OBJPATH)/allsymbols \
-               -output /dev/null $(_vstdout);
-       $(_v)$(KEXT_CREATE_SYMBOL_SET) \
-               $($(addsuffix $(ARCH_CONFIG),ARCH_FLAGS_)) \
-               $(foreach comp,$(filter-out System6.0 Unsupported,$(SYMBOL_COMPONENT_LIST)), \
-                       -export $(SRCROOT)/$(COMPONENT)/$(comp).exports \
-                       -export $(SRCROOT)/$(COMPONENT)/$(comp).$(ARCH_CONFIG_LC).exports) \
-               -import $(OBJPATH)/allsymbols \
-               -output /dev/null $(_vstdout);
-       $(_v) $(SRCROOT)/$(COMPONENT)/list_supported.sh $(SRCROOT)/$(COMPONENT) $(ARCH_CONFIG_LC) $(OBJPATH)/${MD_SUPPORTED_KPI_FILENAME};
-       $(_v)if [ -n `echo $${ARCH_CONFIGS%%\ *} | grep -i  $(ARCH_CONFIG)` ]; \
-       then \
-               $(SRCROOT)/$(COMPONENT)/list_supported.sh $(SRCROOT)/$(COMPONENT) "ALL"  $(OBJROOT)/${MI_SUPPORTED_KPI_FILENAME}; \
-       fi
-
-
-install_symbol_sets:   $(SYMBOL_SET_FAT) $(SRCROOT)/config/MasterVersion $(INSTALL_KEXT_PLISTS)
-       $(_v)if [ -s "$(OBJROOT)/System6.0.symbolset" -a $(SUPPORT_SYSTEM60_KEXT) -eq 1 ]; then \
-               install $(INSTALL_FLAGS) $(OBJROOT)/System6.0.symbolset    $(DSTROOT)/$(INSTALL_KEXT_DIR)/System.kext/PlugIns/System6.0.kext/kernel.6.0;        \
-               install $(INSTALL_FLAGS) $(OBJROOT)/System6.0.symbolset    $(DSTROOT)/$(INSTALL_KEXT_DIR)/System.kext/PlugIns/Mach6.0.kext/Mach6.0;     \
-               install $(INSTALL_FLAGS) $(OBJROOT)/System6.0.symbolset    $(DSTROOT)/$(INSTALL_KEXT_DIR)/System.kext/PlugIns/BSDKernel6.0.kext/BSDKernel6.0;   \
-               install $(INSTALL_FLAGS) $(OBJROOT)/System6.0.symbolset    $(DSTROOT)/$(INSTALL_KEXT_DIR)/System.kext/PlugIns/Libkern6.0.kext/Libkern6.0;       \
-               install $(INSTALL_FLAGS) $(OBJROOT)/System6.0.symbolset    $(DSTROOT)/$(INSTALL_KEXT_DIR)/System.kext/PlugIns/IOKit6.0.kext/IOKit6.0;   \
-       fi
-       $(_v)if [ -s "$(OBJROOT)/BSDKernel.symbolset" ]; then \
-               install $(INSTALL_FLAGS) $(OBJROOT)/BSDKernel.symbolset    $(DSTROOT)/$(INSTALL_KEXT_DIR)/System.kext/PlugIns/BSDKernel.kext/BSDKernel;                 \
-               install $(INSTALL_FLAGS) $(OBJROOT)/IOKit.symbolset        $(DSTROOT)/$(INSTALL_KEXT_DIR)/System.kext/PlugIns/IOKit.kext/IOKit;                         \
-               install $(INSTALL_FLAGS) $(OBJROOT)/Libkern.symbolset      $(DSTROOT)/$(INSTALL_KEXT_DIR)/System.kext/PlugIns/Libkern.kext/Libkern;                     \
-               install $(INSTALL_FLAGS) $(OBJROOT)/Mach.symbolset         $(DSTROOT)/$(INSTALL_KEXT_DIR)/System.kext/PlugIns/Mach.kext/Mach;                           \
-               install $(INSTALL_FLAGS) $(OBJROOT)/MACFramework.symbolset $(DSTROOT)/$(INSTALL_KEXT_DIR)/System.kext/PlugIns/MACFramework.kext/MACFramework;           \
-               install $(INSTALL_FLAGS) $(OBJROOT)/Unsupported.symbolset  $(DSTROOT)/$(INSTALL_KEXT_DIR)/System.kext/PlugIns/Unsupported.kext/Unsupported;             \
-               install $(INSTALL_FLAGS) $(OBJROOT)/Private.symbolset      $(DSTROOT)/$(INSTALL_KEXT_DIR)/System.kext/PlugIns/Private.kext/Private;                     \
-       fi
-       $(_v)$(NEWVERS) $(DSTROOT)/$(INSTALL_KEXT_DIR)/System.kext/Info.plist \
-               $(DSTROOT)/$(INSTALL_KEXT_DIR)/System.kext/PlugIns/AppleNMI.kext/Info.plist \
-               $(DSTROOT)/$(INSTALL_KEXT_DIR)/System.kext/PlugIns/ApplePlatformFamily.kext/Info.plist \
-               $(DSTROOT)/$(INSTALL_KEXT_DIR)/System.kext/PlugIns/BSDKernel.kext/Info.plist \
-               $(DSTROOT)/$(INSTALL_KEXT_DIR)/System.kext/PlugIns/IOKit.kext/Info.plist \
-               $(DSTROOT)/$(INSTALL_KEXT_DIR)/System.kext/PlugIns/IONVRAMFamily.kext/Info.plist \
-               $(DSTROOT)/$(INSTALL_KEXT_DIR)/System.kext/PlugIns/IOSystemManagement.kext/Info.plist \
-               $(DSTROOT)/$(INSTALL_KEXT_DIR)/System.kext/PlugIns/Libkern.kext/Info.plist \
-               $(DSTROOT)/$(INSTALL_KEXT_DIR)/System.kext/PlugIns/Mach.kext/Info.plist \
-               $(DSTROOT)/$(INSTALL_KEXT_DIR)/System.kext/PlugIns/MACFramework.kext/Info.plist \
-               $(DSTROOT)/$(INSTALL_KEXT_DIR)/System.kext/PlugIns/Unsupported.kext/Info.plist \
-               $(DSTROOT)/$(INSTALL_KEXT_DIR)/System.kext/PlugIns/Private.kext/Info.plist;
-       $(_v)$(MKDIR) $(DSTROOT)/$(KRESDIR);
-       $(_v)install $(INSTALL_FLAGS) $(OBJPATH)/$(MD_SUPPORTED_KPI_FILENAME) $(DSTROOT)/$(KRESDIR);
-       $(_v)if [ -n `echo $${ARCH_CONFIGS%%\ *} | grep -i  $(ARCH_CONFIG)` ]; then \
-               install $(INSTALL_FLAGS) $(OBJROOT)/$(MI_SUPPORTED_KPI_FILENAME) $(DSTROOT)/$(KRESDIR); \
-       fi
-       $(_v)$(MKDIR) $(SYMROOT)
-       $(_v)$(CP) -rf $(DSTROOT)/$(INSTALL_KEXT_DIR)/System.kext $(SYMROOT)
-
-do_build_all:  build_symbol_sets
-
-do_build_install:      install_symbol_sets 
-
-EXPORTS_FILE_LIST = $(addprefix $(SOURCE)/,$(foreach set,$(SYMBOL_COMPONENT_LIST), $(set).exports $(set).$(ARCH_CONFIG_LC).exports))
-EXPORTS_FILE_LIST_NOSYSTEM60 = $(addprefix $(SOURCE)/,$(foreach set, $(filter-out System6.0,$(SYMBOL_COMPONENT_LIST)), $(set).exports $(set).$(ARCH_CONFIG_LC).exports))
-
-# Does not include "whole-kernel" clients
-build_mach_kernel_exports:
-       $(_v)if [ $(SUPPORT_SYSTEM60_KEXT) -eq 1 ]; then \
-               $(SOURCE)/generate_linker_exports.sh $(OBJPATH)/kernel-kpi.exp \
-                        $(EXPORTS_FILE_LIST) || exit 1; \
-       else \
-               $(SOURCE)/generate_linker_exports.sh $(OBJPATH)/kernel-kpi.exp \
-                        $(EXPORTS_FILE_LIST_NOSYSTEM60) || exit 1; \
-       fi;
+do_build_all:: $(OBJPATH)/all-kpi.exp $(OBJPATH)/all-alias.exp $(OBJPATH)/symbolsets.plist
 
 include $(MakeInc_rule)
 include $(MakeInc_dir)