1*8d741a5dSApple OSS Distributionsexport MakeInc_cmd=${SRCROOT}/makedefs/MakeInc.cmd 2*8d741a5dSApple OSS Distributionsexport MakeInc_def=${SRCROOT}/makedefs/MakeInc.def 3*8d741a5dSApple OSS Distributionsexport MakeInc_rule=${SRCROOT}/makedefs/MakeInc.rule 4*8d741a5dSApple OSS Distributionsexport MakeInc_dir=${SRCROOT}/makedefs/MakeInc.dir 5*8d741a5dSApple OSS Distributions 6*8d741a5dSApple OSS Distributionsinclude $(MakeInc_cmd) 7*8d741a5dSApple OSS Distributionsinclude $(MakeInc_def) 8*8d741a5dSApple OSS Distributions 9*8d741a5dSApple OSS Distributions# Special handling for x86_64h which shares a MASTER config file with x86_64: 10*8d741a5dSApple OSS Distributionsifeq ($(CURRENT_ARCH_CONFIG_LC),x86_64h) 11*8d741a5dSApple OSS DistributionsDOCONF_ARCH_CONFIG_LC = x86_64 12*8d741a5dSApple OSS Distributionselse 13*8d741a5dSApple OSS DistributionsDOCONF_ARCH_CONFIG_LC = $(CURRENT_ARCH_CONFIG_LC) 14*8d741a5dSApple OSS Distributionsendif 15*8d741a5dSApple OSS Distributions 16*8d741a5dSApple OSS DistributionsMASTERCONFDIR = $(SRCROOT)/config 17*8d741a5dSApple OSS DistributionsDOCONFDEPS = $(addprefix $(MASTERCONFDIR)/, MASTER MASTER.$(DOCONF_ARCH_CONFIG_LC)) \ 18*8d741a5dSApple OSS Distributions $(addprefix $(SOURCE)/, Makefile.template Makefile.$(DOCONF_ARCH_CONFIG_LC) files files.$(DOCONF_ARCH_CONFIG_LC)) 19*8d741a5dSApple OSS Distributions 20*8d741a5dSApple OSS Distributionsifneq (,$(wildcard $(MASTERCONFDIR)/MASTER.$(DOCONF_ARCH_CONFIG_LC).$(CURRENT_MACHINE_CONFIG_LC))) 21*8d741a5dSApple OSS DistributionsDOCONFDEPS += $(MASTERCONFDIR)/MASTER.$(DOCONF_ARCH_CONFIG_LC).$(CURRENT_MACHINE_CONFIG_LC) 22*8d741a5dSApple OSS Distributionsendif 23*8d741a5dSApple OSS Distributions 24*8d741a5dSApple OSS Distributions$(TARGET)/$(CURRENT_KERNEL_CONFIG)/Makefile: $(SRCROOT)/SETUP/config/doconf $(OBJROOT)/SETUP/config $(DOCONFDEPS) 25*8d741a5dSApple OSS Distributions $(_v)$(MKDIR) $(TARGET)/$(CURRENT_KERNEL_CONFIG) 26*8d741a5dSApple OSS Distributions $(_v)$(SRCROOT)/SETUP/config/doconf -c -cpu $(DOCONF_ARCH_CONFIG_LC) -soc $(CURRENT_MACHINE_CONFIG_LC) -platform $(PLATFORM) -d $(TARGET)/$(CURRENT_KERNEL_CONFIG) -s $(SOURCE) -m $(MASTERCONFDIR) $(DOCONF_SEEF) $(CURRENT_KERNEL_CONFIG) 27*8d741a5dSApple OSS Distributions 28*8d741a5dSApple OSS Distributionsdo_all: $(TARGET)/$(CURRENT_KERNEL_CONFIG)/Makefile 29*8d741a5dSApple OSS Distributions $(_v)${MAKE} \ 30*8d741a5dSApple OSS Distributions -C $(TARGET)/$(CURRENT_KERNEL_CONFIG) \ 31*8d741a5dSApple OSS Distributions -f $(TARGET)/$(CURRENT_KERNEL_CONFIG)/Makefile \ 32*8d741a5dSApple OSS Distributions CURRENT_KERNEL_CONFIG=${CURRENT_KERNEL_CONFIG} \ 33*8d741a5dSApple OSS Distributions CURRENT_ARCH_CONFIG=${CURRENT_ARCH_CONFIG} \ 34*8d741a5dSApple OSS Distributions CURRENT_MACHINE_CONFIG=${CURRENT_MACHINE_CONFIG} \ 35*8d741a5dSApple OSS Distributions SOURCE=$(subst conf/,,$(SOURCE)) \ 36*8d741a5dSApple OSS Distributions TARGET=${TARGET} \ 37*8d741a5dSApple OSS Distributions OBJPATH=${OBJPATH} \ 38*8d741a5dSApple OSS Distributions build_all 39*8d741a5dSApple OSS Distributions 40*8d741a5dSApple OSS Distributionsdo_build_all:: do_all 41*8d741a5dSApple OSS Distributions 42*8d741a5dSApple OSS Distributionsinclude $(MakeInc_rule) 43*8d741a5dSApple OSS Distributionsinclude $(MakeInc_dir) 44