]>
Commit | Line | Data |
---|---|---|
1c79356b 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 | ||
6 | ||
7 | include $(MakeInc_cmd) | |
8 | include $(MakeInc_def) | |
9 | ||
10 | SETUP_SUBDIRS = \ | |
11 | tools | |
12 | ||
13 | COMP_SUBDIRS = | |
14 | ||
15 | INST_SUBDIRS = | |
16 | ||
55e303ae A |
17 | ifndef LIBSA_KERNEL_CONFIG |
18 | export LIBSA_KERNEL_CONFIG = $(KERNEL_CONFIG) | |
1c79356b A |
19 | endif |
20 | ||
55e303ae | 21 | export COMPOBJROOT=$(OBJROOT)/$(KERNEL_CONFIG)_$(ARCH_CONFIG)/$(COMPONENT) |
1c79356b A |
22 | |
23 | $(OBJROOT)/$(KERNEL_CONFIG)_$(ARCH_CONFIG)/$(COMPONENT)/doconf: | |
24 | make build_setup | |
25 | ||
55e303ae | 26 | $(COMPOBJROOT)/$(LIBSA_KERNEL_CONFIG)/Makefile : $(SOURCE)/MASTER \ |
0b4e3aa0 | 27 | $(SOURCE)/MASTER.$(ARCH_CONFIG_LC) \ |
1c79356b | 28 | $(SOURCE)/Makefile.template \ |
0b4e3aa0 | 29 | $(SOURCE)/Makefile.$(ARCH_CONFIG_LC) \ |
1c79356b | 30 | $(SOURCE)/files \ |
0b4e3aa0 | 31 | $(SOURCE)/files.$(ARCH_CONFIG_LC) \ |
1c79356b | 32 | $(OBJROOT)/$(KERNEL_CONFIG)_$(ARCH_CONFIG)/$(COMPONENT)/doconf |
55e303ae | 33 | @echo "Running doconf for $(LIBSA_KERNEL_CONFIG)"; |
1c79356b A |
34 | (doconf_target=$(addsuffix /conf, $(TARGET)); \ |
35 | echo $${doconf_target};\ | |
36 | $(MKDIR) $${doconf_target}; \ | |
37 | cd $${doconf_target}; \ | |
38 | rm -f $(notdir $?); \ | |
39 | cp $? $${doconf_target}; \ | |
55e303ae | 40 | $(OBJROOT)/$(KERNEL_CONFIG)_$(ARCH_CONFIG)/$(COMPONENT)/doconf -c -cpu $(ARCH_CONFIG_LC) -d $(TARGET)/$(LIBSA_KERNEL_CONFIG) $(LIBSA_KERNEL_CONFIG); \ |
1c79356b A |
41 | ); |
42 | ||
55e303ae | 43 | .ORDER: $(COMPOBJROOT)/$(LIBSA_KERNEL_CONFIG)/Makefile |
1c79356b A |
44 | |
45 | do_setup_conf: $(OBJROOT)/$(KERNEL_CONFIG)_$(ARCH_CONFIG)/$(COMPONENT)/doconf \ | |
55e303ae | 46 | $(COMPOBJROOT)/$(LIBSA_KERNEL_CONFIG)/Makefile |
1c79356b A |
47 | |
48 | do_all: do_setup_conf | |
55e303ae | 49 | @echo "[ $(SOURCE) ] Starting do_all $(COMPONENT) $(LIBSA_KERNEL_CONFIG) $(ARCH_CONFIG) $(TARGET)"; \ |
1c79356b | 50 | next_source=$(subst conf/,,$(SOURCE)); \ |
55e303ae A |
51 | ${MAKE} -C $(COMPOBJROOT)/$(LIBSA_KERNEL_CONFIG) \ |
52 | MAKEFILES=$(TARGET)/$(LIBSA_KERNEL_CONFIG)/Makefile \ | |
1c79356b A |
53 | SOURCE=$${next_source} \ |
54 | TARGET=$(TARGET) \ | |
0b4e3aa0 | 55 | INCL_MAKEDEP=FALSE \ |
55e303ae | 56 | KERNEL_CONFIG=$(LIBSA_KERNEL_CONFIG) \ |
9bccf70c | 57 | build_all; \ |
55e303ae | 58 | echo "[ $(SOURCE) ] Returning do_all $(COMPONENT) $(LIBSA_KERNEL_CONFIG) $(ARCH_CONFIG) $(TARGET)"; |
1c79356b A |
59 | |
60 | do_build_all: do_all | |
61 | ||
62 | include $(MakeInc_rule) | |
63 | include $(MakeInc_dir) | |
64 |