]>
Commit | Line | Data |
---|---|---|
2d21ac55 A |
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 | |
5 | ||
2d21ac55 A |
6 | include $(MakeInc_cmd) |
7 | include $(MakeInc_def) | |
8 | ||
39236c6e | 9 | MASTER_CPU_PER_SOC = $(SOURCE)/MASTER.$(CURRENT_ARCH_CONFIG_LC).$(CURRENT_MACHINE_CONFIG_LC) |
2d21ac55 | 10 | |
39236c6e A |
11 | $(TARGET)/$(CURRENT_KERNEL_CONFIG)/Makefile : $(SOURCE)/MASTER \ |
12 | $(SOURCE)/MASTER.$(CURRENT_ARCH_CONFIG_LC) \ | |
13 | $(SOURCE)/Makefile.template \ | |
14 | $(SOURCE)/Makefile.$(CURRENT_ARCH_CONFIG_LC) \ | |
15 | $(SOURCE)/files \ | |
16 | $(SOURCE)/files.$(CURRENT_ARCH_CONFIG_LC) | |
17 | $(_v)$(MKDIR) $(addsuffix /conf, $(TARGET)); \ | |
18 | cd $(addsuffix /conf, $(TARGET)); \ | |
2d21ac55 | 19 | rm -f $(notdir $?); \ |
39236c6e A |
20 | cp $? .; \ |
21 | if [ $(MASTER_CPU_PER_SOC) -nt $@ ]; then cp $(MASTER_CPU_PER_SOC) .; fi; \ | |
22 | $(SRCROOT)/SETUP/config/doconf -c -cpu $(CURRENT_ARCH_CONFIG_LC) -soc $(CURRENT_MACHINE_CONFIG_LC) -d $(TARGET)/$(CURRENT_KERNEL_CONFIG) $(CURRENT_KERNEL_CONFIG); | |
23 | ||
24 | do_all: $(TARGET)/$(CURRENT_KERNEL_CONFIG)/Makefile | |
25 | $(_v)${MAKE} \ | |
26 | -C $(TARGET)/$(CURRENT_KERNEL_CONFIG) \ | |
27 | -f $(TARGET)/$(CURRENT_KERNEL_CONFIG)/Makefile \ | |
28 | CURRENT_KERNEL_CONFIG=${CURRENT_KERNEL_CONFIG} \ | |
29 | CURRENT_ARCH_CONFIG=${CURRENT_ARCH_CONFIG} \ | |
30 | CURRENT_MACHINE_CONFIG=${CURRENT_MACHINE_CONFIG} \ | |
31 | SOURCE=$(subst conf/,,$(SOURCE)) \ | |
32 | TARGET=${TARGET} \ | |
33 | OBJPATH=${OBJPATH} \ | |
2d21ac55 A |
34 | build_all; |
35 | ||
39236c6e | 36 | do_build_all:: do_all |
2d21ac55 A |
37 | |
38 | include $(MakeInc_rule) | |
39 | include $(MakeInc_dir) |