kv2: initialize memory manager, early pci devices
Signed-off-by: Michael Shaw <spencershawiscool@gmail.com>
This commit is contained in:
parent
e5b55a6ba5
commit
a252a3f8e9
58 changed files with 1270 additions and 505 deletions
|
|
@ -19,10 +19,9 @@ subdir-y :=
|
|||
real-objs-y :=
|
||||
subdir-y := $(patsubst %/,%,$(filter %/, $(obj-y)))
|
||||
real-objs-y := $(addprefix $(obj)/, $(filter-out %/, $(obj-y)))
|
||||
subdir-objs-y := $(foreach d,$(subdir-y),$(obj)/$(d)/built-in.o)
|
||||
deps := $(real-objs-y:.o=.d)
|
||||
|
||||
-include $(deps)
|
||||
|
||||
_all: $(obj)/built-in.o
|
||||
|
||||
$(obj)/%.o: $(obj)/%.c
|
||||
|
|
@ -33,10 +32,11 @@ $(obj)/%.o: $(obj)/%.S
|
|||
$(Q)echo " CC $@"
|
||||
$(Q)$(CC) $(CFLAGS) -c $< -o $@
|
||||
|
||||
$(obj)/built-in.o: $(real-objs-y) $(subdir-y)
|
||||
$(obj)/built-in.o: $(real-objs-y) $(subdir-objs-y)
|
||||
$(Q)echo " LD $@"
|
||||
$(Q)$(LD) -r -o $@ $(real-objs-y) $(foreach d,$(subdir-y),$(obj)/$(d)/built-in.o)
|
||||
|
||||
|
||||
.PHONY: _clean
|
||||
_clean: $(subdir-y)
|
||||
$(Q)echo " CLEAN $(obj)"
|
||||
|
|
@ -45,6 +45,10 @@ _clean: $(subdir-y)
|
|||
$(subdir-y): FORCE
|
||||
$(Q)$(MAKE) --no-print-directory -f scripts/Makefile.build $(MAKECMDGOALS) obj=$(obj)/$@
|
||||
|
||||
$(obj)/%/built-in.o: FORCE
|
||||
$(Q)$(MAKE) --no-print-directory -f scripts/Makefile.build obj=$(patsubst %/,%,$(dir $@))
|
||||
|
||||
FORCE:
|
||||
|
||||
-include $(deps)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue