u-boot-brain/arch/powerpc/cpu/mpc8xxx
Masahiro Yamada 06c14117c4 powerpc: convert makefiles to Kbuild style
Note:
arch/powerpc/cpu/mpc8260/Makefile is originally like follows:

    ---<snip>---
    START   = start.o kgdb.o
    COBJS   = traps.o serial_smc.o serial_scc.o cpu.o cpu_init.o speed.o \
    ---<snip>---
    COBJS-$(CONFIG_ETHER_ON_SCC) = ether_scc.o
    ---<snip>---
    $(LIB): $(OBJS)
            $(call cmd_link_o_target, $(OBJS) $(obj)kgdb.o)

The link rule `$(call cmd_link_o_target, $(OBJS) $(obj)kgdb.o)'
is weird.
kbdg.o is not included in $(OBJS) but linked into $(LIB)
and $(LIB) is not dependent on kgdb.o.
(Broken dependency tracking)

So,
    START   = start.o kgdb.o
shoud have been
    START   = start.o
    SOBJS   = kgdb.o

That is why this commit adds kgdb.o to obj-y, not to extra-y.

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Cc: Wolfgang Denk <wd@denx.de>
Cc: Stefan Roese <sr@denx.de>
2013-10-31 13:26:44 -04:00
..
ddr powerpc: convert makefiles to Kbuild style 2013-10-31 13:26:44 -04:00
cpu.c powerpc/85xx: Add C29x SoC support 2013-08-09 12:41:42 -07:00
fdt.c powerpc/usb:Define CONFIG_USB_MAX_CONTROLLER_COUNT for all 85xx socs 2013-10-24 09:35:03 -07:00
fsl_ifc.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
fsl_lbc.c arch/powerpc/cpu/mpc8xxx/: sparse fixes 2012-11-04 11:00:36 -07:00
law.c powerpc: deleted unused symbol CONFIG_SPL_NAND_MINIMAL and enabled some functionality for common SPL 2013-08-20 09:47:15 -07:00
Makefile powerpc: convert makefiles to Kbuild style 2013-10-31 13:26:44 -04:00
srio.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00