+ifeq ($(RC_ProjectName),xnu_debug)
+ $(_v)$(MKDIR) $(DSTROOT)/$(DEVELOPER_EXTRAS_DIR)
+ $(_v)$(MV) $(DSTROOT)/mach_kernel* $(DSTROOT)/$(DEVELOPER_EXTRAS_DIR)
+ $(_v)$(CP) $(SYMROOT)/kgmacros $(DSTROOT)/$(DEVELOPER_EXTRAS_DIR)
+ $(_v)$(CP) -r $(SYMROOT)/System.kext $(DSTROOT)/$(DEVELOPER_EXTRAS_DIR)
+ $(_v)$(CP) -r $(SYMROOT)/mach_kernel.dSYM $(DSTROOT)/$(DEVELOPER_EXTRAS_DIR)
+ $(_v)$(CP) $(SRCROOT)/config/README.DEBUG-kernel.txt $(DSTROOT)/$(DEVELOPER_EXTRAS_DIR)
+ $(_v)$(MV) $(DSTROOT)/System $(DSTROOT)/usr $(OBJROOT)/
+endif
+endif
+
+.PHONY: install_embedded install_devicemap
+install_embedded install_devicemap: install
+
+installmachinekernels:
+ @echo "[ $(SOURCE) ] make installmachinekernels"; \
+ my_counter=1; \
+ for my_config in $(TARGET_CONFIGS_UC); \
+ do \
+ if [ $${my_counter} -eq 1 ] ; then \
+ my_counter=2; \
+ kernel_config=$${my_config}; \
+ if [ $${kernel_config} = DEFAULT ] ; then \
+ kernel_config=$(DEFAULT_KERNEL_CONFIG); \
+ fi; \
+ elif [ $${my_counter} -eq 2 ] ; then \
+ my_counter=3; \
+ arch_config=$${my_config}; \
+ if [ $${arch_config} = DEFAULT ] ; then \
+ arch_config=`arch | $(TR) a-z A-Z`; \
+ fi; \
+ else \
+ my_counter=1; \
+ machine_config=$${my_config}; \
+ if [ $${machine_config} != DEFAULT ] ; then \
+ build_subdir=${OBJROOT}/$${kernel_config}_$${arch_config}_$${machine_config}; \
+ install_kernel_file=mach.`printf "%s" "$${kernel_config}" | $(TR) A-Z a-z`.`printf "%s" "$${machine_config}" | $(TR) A-Z a-z`; \
+ [ -d $${build_subdir} ] || $(MKDIR) $${build_subdir}; \
+ ${MAKE} ${MAKEJOBS} -C $${build_subdir} \
+ INSTALL_KERNEL_FILE=$${install_kernel_file} \
+ KERNEL_CONFIG=$${kernel_config} \
+ ARCH_CONFIG=$${arch_config} \
+ MACHINE_CONFIG=$${machine_config} \
+ MAKEFILES=${SOURCE}/Makefile \
+ SOURCE=${SOURCE}/ \
+ RELATIVE_SOURCE_PATH=${RELATIVE_SOURCE_PATH} \
+ TARGET=$${build_subdir}/ \
+ do_build_install; \
+ fi; \
+ fi; \
+ done;