]>
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 | ||
6d2010ae | 10 | SETUP_SUBDIRS = |
1c79356b A |
11 | |
12 | COMP_SUBDIRS = | |
13 | ||
14 | INST_SUBDIRS = | |
15 | ||
55e303ae A |
16 | ifndef LIBSA_KERNEL_CONFIG |
17 | export LIBSA_KERNEL_CONFIG = $(KERNEL_CONFIG) | |
1c79356b A |
18 | endif |
19 | ||
2d21ac55 A |
20 | ifneq ($(MACHINE_CONFIG), DEFAULT) |
21 | export COMPOBJROOT=$(OBJROOT)/$(KERNEL_CONFIG)_$(ARCH_CONFIG)_$(MACHINE_CONFIG)/$(COMPONENT) | |
22 | else | |
55e303ae | 23 | export COMPOBJROOT=$(OBJROOT)/$(KERNEL_CONFIG)_$(ARCH_CONFIG)/$(COMPONENT) |
2d21ac55 | 24 | endif |
1c79356b | 25 | |
6d2010ae | 26 | MASTER_CPU_PER_SOC = $(SOURCE)/MASTER.$(ARCH_CONFIG_LC).$(MACHINE_CONFIG_LC) |
1c79356b | 27 | |
55e303ae | 28 | $(COMPOBJROOT)/$(LIBSA_KERNEL_CONFIG)/Makefile : $(SOURCE)/MASTER \ |
0b4e3aa0 | 29 | $(SOURCE)/MASTER.$(ARCH_CONFIG_LC) \ |
1c79356b | 30 | $(SOURCE)/Makefile.template \ |
0b4e3aa0 | 31 | $(SOURCE)/Makefile.$(ARCH_CONFIG_LC) \ |
1c79356b | 32 | $(SOURCE)/files \ |
6d2010ae | 33 | $(SOURCE)/files.$(ARCH_CONFIG_LC) |
2d21ac55 | 34 | $(_v)(doconf_target=$(addsuffix /conf, $(TARGET)); \ |
1c79356b A |
35 | $(MKDIR) $${doconf_target}; \ |
36 | cd $${doconf_target}; \ | |
37 | rm -f $(notdir $?); \ | |
38 | cp $? $${doconf_target}; \ | |
6d2010ae A |
39 | if [ -f $(MASTER_CPU_PER_SOC) ]; then cp $(MASTER_CPU_PER_SOC) $${doconf_target}; fi; \ |
40 | $(SRCROOT)/SETUP/config/doconf -c -cpu $(ARCH_CONFIG_LC) -soc $(MACHINE_CONFIG_LC) -d $(TARGET)/$(LIBSA_KERNEL_CONFIG) $(LIBSA_KERNEL_CONFIG); \ | |
1c79356b A |
41 | ); |
42 | ||
6d2010ae | 43 | do_all: $(COMPOBJROOT)/$(LIBSA_KERNEL_CONFIG)/Makefile |
2d21ac55 | 44 | $(_v)next_source=$(subst conf/,,$(SOURCE)); \ |
316670eb | 45 | next_relsource=$(subst conf/,,$(RELATIVE_SOURCE_PATH)); \ |
55e303ae A |
46 | ${MAKE} -C $(COMPOBJROOT)/$(LIBSA_KERNEL_CONFIG) \ |
47 | MAKEFILES=$(TARGET)/$(LIBSA_KERNEL_CONFIG)/Makefile \ | |
1c79356b | 48 | SOURCE=$${next_source} \ |
316670eb | 49 | RELATIVE_SOURCE_PATH=$${next_relsource} \ |
1c79356b | 50 | TARGET=$(TARGET) \ |
0b4e3aa0 | 51 | INCL_MAKEDEP=FALSE \ |
55e303ae | 52 | KERNEL_CONFIG=$(LIBSA_KERNEL_CONFIG) \ |
2d21ac55 | 53 | build_all; |
1c79356b A |
54 | |
55 | do_build_all: do_all | |
56 | ||
57 | include $(MakeInc_rule) | |
58 | include $(MakeInc_dir) | |
59 |