]>
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 | ||
2d21ac55 A |
10 | ifneq ($(MACHINE_CONFIG), DEFAULT) |
11 | export COMPOBJROOT=$(OBJROOT)/$(KERNEL_CONFIG)_$(ARCH_CONFIG)_$(MACHINE_CONFIG)/$(COMPONENT) | |
12 | else | |
13 | export COMPOBJROOT=$(OBJROOT)/$(KERNEL_CONFIG)_$(ARCH_CONFIG)/$(COMPONENT) | |
14 | endif | |
1c79356b A |
15 | |
16 | do_all: | |
b0d623f7 | 17 | $(_v)($(MKDIR) $(COMPOBJROOT)/kmod; \ |
1c79356b A |
18 | cd $(COMPOBJROOT)/kmod; \ |
19 | ${MAKE} MAKEFILES=$(SOURCE)/Makefile.kmod \ | |
20 | TARGET=$(TARGET) \ | |
21 | do_build_all \ | |
b0d623f7 | 22 | ) |
1c79356b A |
23 | |
24 | do_build_all: do_all | |
25 | ||
26 | do_install: | |
b0d623f7 | 27 | @echo "[ $(SOURCE) ] make do_install $(COMPONENT) $(KERNEL_CONFIG) $(ARCH_CONFIG) $(TARGET)"; \ |
1c79356b A |
28 | ($(MKDIR) $(COMPOBJROOT)/kmod; \ |
29 | cd $(COMPOBJROOT)/kmod; \ | |
30 | ${MAKE} MAKEFILES=$(SOURCE)/Makefile.kmod \ | |
31 | TARGET=$(TARGET) \ | |
32 | do_build_install \ | |
b0d623f7 | 33 | ) |
1c79356b A |
34 | |
35 | do_build_install: do_install | |
36 | ||
37 | include $(MakeInc_rule) | |
38 | include $(MakeInc_dir) |