]> git.saurik.com Git - apple/xnu.git/blame - security/conf/Makefile
xnu-1699.22.73.tar.gz
[apple/xnu.git] / security / conf / Makefile
CommitLineData
2d21ac55
A
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
6d2010ae 10SETUP_SUBDIRS =
2d21ac55
A
11
12COMP_SUBDIRS =
13
14INST_SUBDIRS =
15
16ifndef SECURITY_KERNEL_CONFIG
17export SECURITY_KERNEL_CONFIG = $(KERNEL_CONFIG)
18endif
19
20ifneq ($(MACHINE_CONFIG), DEFAULT)
21export COMPOBJROOT=$(OBJROOT)/$(KERNEL_CONFIG)_$(ARCH_CONFIG)_$(MACHINE_CONFIG)/$(COMPONENT)
22else
23export COMPOBJROOT=$(OBJROOT)/$(KERNEL_CONFIG)_$(ARCH_CONFIG)/$(COMPONENT)
24endif
25
6d2010ae 26MASTER_CPU_PER_SOC = $(SOURCE)/MASTER.$(ARCH_CONFIG_LC).$(MACHINE_CONFIG_LC)
2d21ac55
A
27
28$(COMPOBJROOT)/$(SECURITY_KERNEL_CONFIG)/Makefile : $(SOURCE)/MASTER \
29 $(SOURCE)/MASTER.$(ARCH_CONFIG_LC) \
30 $(SOURCE)/Makefile.template \
31 $(SOURCE)/Makefile.$(ARCH_CONFIG_LC) \
32 $(SOURCE)/files \
6d2010ae 33 $(SOURCE)/files.$(ARCH_CONFIG_LC)
2d21ac55 34 $(_v)(doconf_target=$(addsuffix /conf, $(TARGET)); \
2d21ac55
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)/$(SECURITY_KERNEL_CONFIG) $(SECURITY_KERNEL_CONFIG); \
2d21ac55
A
41 );
42
6d2010ae 43do_all: $(COMPOBJROOT)/$(SECURITY_KERNEL_CONFIG)/Makefile
2d21ac55
A
44 $(_v)next_source=$(subst conf/,,$(SOURCE)); \
45 ${MAKE} -C $(COMPOBJROOT)/$(SECURITY_KERNEL_CONFIG) \
46 MAKEFILES=$(TARGET)/$(SECURITY_KERNEL_CONFIG)/Makefile \
47 SOURCE=$${next_source} \
48 TARGET=$(TARGET) \
49 INCL_MAKEDEP=FALSE \
50 KERNEL_CONFIG=$(SECURITY_KERNEL_CONFIG) \
51 build_all;
52
53do_build_all: do_all
54
55include $(MakeInc_rule)
56include $(MakeInc_dir)