1 export MakeInc_cmd=${SRCROOT}/makedefs/MakeInc.cmd
2 export MakeInc_def=${SRCROOT}/makedefs/MakeInc.def
3 export MakeInc_rule=${SRCROOT}/makedefs/MakeInc.rule
4 export MakeInc_dir=${SRCROOT}/makedefs/MakeInc.dir
17 ifndef IOKIT_KERNEL_CONFIG
18 export IOKIT_KERNEL_CONFIG = $(KERNEL_CONFIG)
21 COMPOBJROOT=$(OBJROOT)/$(KERNEL_CONFIG)_$(ARCH_CONFIG)/$(COMPONENT)
23 $(OBJROOT)/$(KERNEL_CONFIG)_$(ARCH_CONFIG)/$(COMPONENT)/doconf:
26 $(COMPOBJROOT)/$(IOKIT_KERNEL_CONFIG)/Makefile : $(SOURCE)/MASTER \
27 $(SOURCE)/MASTER.$(ARCH_CONFIG_LC) \
28 $(SOURCE)/Makefile.template \
29 $(SOURCE)/Makefile.$(ARCH_CONFIG_LC) \
31 $(SOURCE)/files.$(ARCH_CONFIG_LC) \
32 $(OBJROOT)/$(KERNEL_CONFIG)_$(ARCH_CONFIG)/$(COMPONENT)/doconf
33 @echo "Running doconf for $(IOKIT_KERNEL_CONFIG)";
34 (doconf_target=$(addsuffix /conf, $(TARGET)); \
35 echo $${doconf_target};\
36 $(MKDIR) $${doconf_target}; \
37 cd $${doconf_target}; \
39 cp $? $${doconf_target}; \
40 $(OBJROOT)/$(KERNEL_CONFIG)_$(ARCH_CONFIG)/$(COMPONENT)/doconf -c -cpu $(ARCH_CONFIG_LC) -d $(TARGET)/$(IOKIT_KERNEL_CONFIG) $(IOKIT_KERNEL_CONFIG); \
43 .ORDER: $(COMPOBJROOT)/$(IOKIT_KERNEL_CONFIG)/Makefile
45 do_setup_conf: $(OBJROOT)/$(KERNEL_CONFIG)_$(ARCH_CONFIG)/$(COMPONENT)/doconf \
46 $(COMPOBJROOT)/$(IOKIT_KERNEL_CONFIG)/Makefile
49 @echo "[ $(SOURCE) ] Starting do_all $(COMPONENT) $(IOKIT_KERNEL_CONFIG) $(ARCH_CONFIG) $(TARGET)"; \
50 next_source=$(subst conf/,,$(SOURCE)); \
51 ${MAKE} -C $(COMPOBJROOT)/$(IOKIT_KERNEL_CONFIG) \
52 MAKEFILES=$(TARGET)/$(IOKIT_KERNEL_CONFIG)/Makefile \
53 SOURCE=$${next_source} \
57 echo "[ $(SOURCE) ] Returning do_all $(COMPONENT) $(IOKIT_KERNEL_CONFIG) $(ARCH_CONFIG) $(TARGET)";
61 include $(MakeInc_rule)
62 include $(MakeInc_dir)