[U-Boot] [PATCH] powerpc/p1022ds: boot from SD card/SPI flash with SPL

Zhang Ying-B40530 B40530 at freescale.com
Mon May 13 12:17:40 CEST 2013


> diff --git a/spl/Makefile b/spl/Makefile
> index b5a8de7..3a3b868 100644
> --- a/spl/Makefile
> +++ b/spl/Makefile
> @@ -51,6 +51,9 @@ LIBS-y += arch/powerpc/cpu/mpc8xxx/lib8xxx.o
>  endif
>  ifeq ($(CPU),mpc85xx)
>  LIBS-y += arch/powerpc/cpu/mpc8xxx/lib8xxx.o
> +ifdef CONFIG_SPL_INIT_DDR_SUPPORT
> +LIBS-y += arch/powerpc/cpu/mpc8xxx/ddr/libddr.o
> +endif

Why isn't this handled as part of lib8xxx.o?  We should avoid putting
hardware-specific things in generic Makefiles.  There ones that are
already there should be fixed at some point.
[Zhang Ying] 
Do you mean that all things of the directory " arch/powerpc/cpu/mpc8xxx/ddr "
will be moved to the directory "arch/powerpc/cpu/mpc8xxx/"?



More information about the U-Boot mailing list