diff options
author | David Gibson <david@gibson.dropbear.id.au> | 2007-12-09 22:28:39 -0500 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2007-12-10 21:46:14 -0500 |
commit | 2f0dfeaa84a8eea56218b77ffc61ed3dd7181847 (patch) | |
tree | fe17563bf38c2cc92df7ae997f70ff788eb9fa6b /arch/powerpc/boot/Makefile | |
parent | 1cade99497c881a8c719df561d1bdc96831ff040 (diff) |
[POWERPC] Use embedded libfdt in the bootwrapper
This incorporates libfdt (from the source embedded in an earlier
commit) into the wrapper.a library used by the bootwrapper. This
includes adding a libfdt_env.h file, which the libfdt sources need in
order to integrate into the bootwrapper environment, and a
libfdt-wrapper.c which provides glue to connect the bootwrapper's
abstract device tree callbacks to the libfdt functions.
In addition, this changes the various wrapper and platform files to
use libfdt functions instead of the older flatdevtree.c library.
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/boot/Makefile')
-rw-r--r-- | arch/powerpc/boot/Makefile | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/arch/powerpc/boot/Makefile b/arch/powerpc/boot/Makefile index e1c73e9afa59..2d2c9843ce93 100644 --- a/arch/powerpc/boot/Makefile +++ b/arch/powerpc/boot/Makefile | |||
@@ -33,7 +33,7 @@ ifeq ($(call cc-option-yn, -fstack-protector),y) | |||
33 | BOOTCFLAGS += -fno-stack-protector | 33 | BOOTCFLAGS += -fno-stack-protector |
34 | endif | 34 | endif |
35 | 35 | ||
36 | BOOTCFLAGS += -I$(obj) -I$(srctree)/$(obj) | 36 | BOOTCFLAGS += -I$(obj) -I$(srctree)/$(obj) -I$(srctree)/$(src)/libfdt |
37 | 37 | ||
38 | $(obj)/4xx.o: BOOTCFLAGS += -mcpu=440 | 38 | $(obj)/4xx.o: BOOTCFLAGS += -mcpu=440 |
39 | $(obj)/ebony.o: BOOTCFLAGS += -mcpu=440 | 39 | $(obj)/ebony.o: BOOTCFLAGS += -mcpu=440 |
@@ -46,7 +46,9 @@ zliblinuxheader := zlib.h zconf.h zutil.h | |||
46 | $(addprefix $(obj)/,$(zlib) gunzip_util.o main.o): \ | 46 | $(addprefix $(obj)/,$(zlib) gunzip_util.o main.o): \ |
47 | $(addprefix $(obj)/,$(zliblinuxheader)) $(addprefix $(obj)/,$(zlibheader)) | 47 | $(addprefix $(obj)/,$(zliblinuxheader)) $(addprefix $(obj)/,$(zlibheader)) |
48 | 48 | ||
49 | src-libfdt := fdt.c fdt_ro.c fdt_wip.c fdt_sw.c fdt_rw.c fdt_strerror.c | ||
49 | src-wlib := string.S crt0.S stdio.c main.c flatdevtree.c flatdevtree_misc.c \ | 50 | src-wlib := string.S crt0.S stdio.c main.c flatdevtree.c flatdevtree_misc.c \ |
51 | $(addprefix libfdt/,$(src-libfdt)) libfdt-wrapper.c \ | ||
50 | ns16550.c serial.c simple_alloc.c div64.S util.S \ | 52 | ns16550.c serial.c simple_alloc.c div64.S util.S \ |
51 | gunzip_util.c elf_util.c $(zlib) devtree.c oflib.c ofconsole.c \ | 53 | gunzip_util.c elf_util.c $(zlib) devtree.c oflib.c ofconsole.c \ |
52 | 4xx.c ebony.c mv64x60.c mpsc.c mv64x60_i2c.c cuboot.c bamboo.c \ | 54 | 4xx.c ebony.c mv64x60.c mpsc.c mv64x60_i2c.c cuboot.c bamboo.c \ |
@@ -101,8 +103,10 @@ quiet_cmd_bootar = BOOTAR $@ | |||
101 | cmd_bootar = $(CROSS32AR) -cr $@.$$$$ $(filter-out FORCE,$^); mv $@.$$$$ $@ | 103 | cmd_bootar = $(CROSS32AR) -cr $@.$$$$ $(filter-out FORCE,$^); mv $@.$$$$ $@ |
102 | 104 | ||
103 | $(patsubst %.c,%.o, $(filter %.c, $(src-boot))): %.o: %.c FORCE | 105 | $(patsubst %.c,%.o, $(filter %.c, $(src-boot))): %.o: %.c FORCE |
106 | $(Q)mkdir -p $(dir $@) | ||
104 | $(call if_changed_dep,bootcc) | 107 | $(call if_changed_dep,bootcc) |
105 | $(patsubst %.S,%.o, $(filter %.S, $(src-boot))): %.o: %.S FORCE | 108 | $(patsubst %.S,%.o, $(filter %.S, $(src-boot))): %.o: %.S FORCE |
109 | $(Q)mkdir -p $(dir $@) | ||
106 | $(call if_changed_dep,bootas) | 110 | $(call if_changed_dep,bootas) |
107 | 111 | ||
108 | $(obj)/wrapper.a: $(obj-wlib) FORCE | 112 | $(obj)/wrapper.a: $(obj-wlib) FORCE |