1export MakeInc_cmd=${SRCROOT}/makedefs/MakeInc.cmd 2export MakeInc_def=${SRCROOT}/makedefs/MakeInc.def 3export MakeInc_rule=${SRCROOT}/makedefs/MakeInc.rule 4export MakeInc_dir=${SRCROOT}/makedefs/MakeInc.dir 5 6 7include $(MakeInc_cmd) 8include $(MakeInc_def) 9 10ifneq ($(MACHINE_CONFIG), DEFAULT) 11export COMPOBJROOT=$(OBJROOT)/$(KERNEL_CONFIG)_$(ARCH_CONFIG)_$(MACHINE_CONFIG)/$(COMPONENT) 12else 13export COMPOBJROOT=$(OBJROOT)/$(KERNEL_CONFIG)_$(ARCH_CONFIG)/$(COMPONENT) 14endif 15 16do_all: 17 @echo "[ $(SOURCE) ] Starting do_all $(COMPONENT) $(KERNEL_CONFIG) $(ARCH_CONFIG) $(TARGET)"; \ 18 ($(MKDIR) $(COMPOBJROOT)/kmod; \ 19 cd $(COMPOBJROOT)/kmod; \ 20 ${MAKE} MAKEFILES=$(SOURCE)/Makefile.kmod \ 21 TARGET=$(TARGET) \ 22 do_build_all \ 23 ); \ 24 echo "[ $(SOURCE) ] Returning do_all $(COMPONENT) $(KERNEL_CONFIG) $(ARCH_CONFIG) $(TARGET)"; 25 26do_build_all: do_all 27 28do_install: 29 @echo "[ $(SOURCE) ] Starting do_install $(COMPONENT) $(KERNEL_CONFIG) $(ARCH_CONFIG) $(TARGET)"; \ 30 ($(MKDIR) $(COMPOBJROOT)/kmod; \ 31 cd $(COMPOBJROOT)/kmod; \ 32 ${MAKE} MAKEFILES=$(SOURCE)/Makefile.kmod \ 33 TARGET=$(TARGET) \ 34 do_build_install \ 35 ); \ 36 echo "[ $(SOURCE) ] Returning do_install $(COMPONENT) $(KERNEL_CONFIG) $(ARCH_CONFIG) $(TARGET)"; 37 38do_build_install: do_install 39 40include $(MakeInc_rule) 41include $(MakeInc_dir) 42