board: powerpc: convert more makefiles to Kbuild style

Cc: Masahiro Yamada <yamada.m@jp.panasonic.com>
Cc: Wolfgang Denk <wd@denx.de>
Cc: Kim Phillips <kim.phillips@freescale.com>
Cc: York Sun <yorksun@freescale.com>
Signed-off-by: Tom Rini <trini@ti.com>
master
Tom Rini 11 years ago
parent 3bddafaab4
commit 8cbbb1098d
  1. 36
      board/freescale/t1040qds/Makefile
  2. 21
      board/keymile/kmp204x/Makefile

@ -4,34 +4,8 @@
# SPDX-License-Identifier: GPL-2.0+ # SPDX-License-Identifier: GPL-2.0+
# #
include $(TOPDIR)/config.mk obj-y += $(BOARD).o
obj-y += ddr.o
LIB = $(obj)lib$(BOARD).o obj-$(CONFIG_PCI) += pci.o
obj-y += law.o
COBJS-y += $(BOARD).o obj-y += tlb.o
COBJS-y += ddr.o
COBJS-$(CONFIG_PCI) += pci.o
COBJS-y += law.o
COBJS-y += tlb.o
SRCS := $(SOBJS:.o=.S) $(COBJS-y:.o=.c)
OBJS := $(addprefix $(obj),$(COBJS-y))
SOBJS := $(addprefix $(obj),$(SOBJS))
$(LIB): $(obj).depend $(OBJS) $(SOBJS)
$(call cmd_link_o_target, $(OBJS))
clean:
rm -f $(OBJS) $(SOBJS)
distclean: clean
rm -f $(LIB) core *.bak .depend
#########################################################################
# defines $(obj).depend target
include $(SRCTREE)/rules.mk
sinclude $(obj).depend
#########################################################################

@ -21,28 +21,9 @@
# MA 02111-1307 USA # MA 02111-1307 USA
# #
include $(TOPDIR)/config.mk
ifneq ($(OBJTREE),$(SRCTREE)) ifneq ($(OBJTREE),$(SRCTREE))
$(shell mkdir -p $(obj)../common) $(shell mkdir -p $(obj)../common)
endif endif
LIB = $(obj)lib$(BOARD).o obj-y := $(BOARD).o ddr.o eth.o tlb.o pci.o law.o \
COBJS := $(BOARD).o ddr.o eth.o tlb.o pci.o law.o \
../common/common.o ../common/ivm.o ../common/common.o ../common/ivm.o
SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
OBJS := $(addprefix $(obj),$(COBJS))
SOBJS := $(addprefix $(obj),$(SOBJS))
$(LIB): $(obj).depend $(OBJS)
$(call cmd_link_o_target, $(OBJS))
#########################################################################
# defines $(obj).depend target
include $(SRCTREE)/rules.mk
sinclude $(obj).depend
#########################################################################

Loading…
Cancel
Save