[PATCH 11/16] zImage wrapper for Ebony
Geoff Levand
geoffrey.levand at am.sony.com
Wed Feb 14 04:05:00 EST 2007
David Gibson wrote:
> This patch adds support for building a zImage wrapper suitable for the
> Ebony (440GP) evaluation board. This supports booting both from uboot
> (old versions which don't supply a flattened device tree) and IBM
> Openbios (aka "treeboot").
> +++ working-2.6/arch/powerpc/boot/Makefile 2007-02-12 14:22:17.000000000 +1100
> -src-plat := of.c
> +src-plat := of.c ebony.c
> src-boot := crt0.S $(src-wlib) $(src-plat) empty.c
Could this be better as:
src-plat-$(CONFIG_44x) += ebony.c
src-plat := of.c $(src-plat-y)
> src-boot := $(addprefix $(obj)/, $(src-boot))
> @@ -94,6 +94,12 @@ $(patsubst %.S,%.o, $(filter %.S, $(src-
> $(obj)/wrapper.a: $(obj-wlib)
> $(call cmd,bootar)
>
> +quiet_cmd_dtc = DTC $@
> + cmd_dtc = $(dtc) -O dtb -o $@ -b 0 -V 16 $<
> +
> +$(obj)/%.dtb: $(srctree)/$(src)/dts/%.dts
> + $(call if_changed,dtc)
> +
If dtc is not installed will this create an empty dtb file that ends
up getting used? If so, try something like this:
cmd_dtc = $(dtc) -O dtb -o $@ -b 0 -V 16 $< $@.tmp && mv $@.tmp $@
I think you need to clean your dtb, so something like this also:
clean-files += $(obj)/%.dtb
-Geoff
More information about the Linuxppc-dev
mailing list