tegra: move common features to a common makefile

For Non-Nvidia boards to include newly added features (like emc clock
scaling) it would be necessary to add each feature to their own board
Makefile. This is because currently the top Makefile automaticly includes
these features only for Nvidia boards.

This patch adds a simple Makefile include so all new features become
available for non-Nvidia board vendors.

Cc: Stephen Warren <swarren@wwwdotorg.org>
Cc: Tom Warren <twarren@nvidia.com>
Cc: Thierry Reding <thierry.reding@avionic-design.de>
Cc: Lucas Stach <dev@lynxeye.de>
Signed-off-by: Marc Dietrich <marvin24@gmx.de>
Acked-by: Stephen Warren <swarren@nvidia.com>
Acked-by: Thierry Reding <thierry.reding@avionic-design.de>
Signed-off-by: Tom Warren <twarren@nvidia.com>
master
Marc Dietrich 12 years ago committed by Tom Warren
parent f04821a8ca
commit 73286d8729
  1. 6
      board/avionic-design/medcom-wide/Makefile
  2. 6
      board/avionic-design/plutux/Makefile
  3. 6
      board/avionic-design/tec/Makefile
  4. 6
      board/compal/paz00/Makefile
  5. 6
      board/compulab/trimslice/Makefile
  6. 4
      board/nvidia/common/Makefile
  7. 4
      board/nvidia/common/common.mk

@ -29,9 +29,11 @@ $(shell mkdir -p $(obj)../common $(obj)../../nvidia/common)
LIB = $(obj)lib$(BOARD).o
COBJS := ../../nvidia/common/board.o
COBJS += ../common/tamonten.o
COBJS-y := ../common/tamonten.o
include ../../nvidia/common/common.mk
COBJS := $(COBJS-y)
SRCS := $(COBJS:.o=.c)
OBJS := $(addprefix $(obj),$(COBJS))

@ -29,9 +29,11 @@ $(shell mkdir -p $(obj)../common $(obj)../../nvidia/common)
LIB = $(obj)lib$(BOARD).o
COBJS := ../../nvidia/common/board.o
COBJS += ../common/tamonten.o
COBJS-y := ../common/tamonten.o
include ../../nvidia/common/common.mk
COBJS := $(COBJS-y)
SRCS := $(COBJS:.o=.c)
OBJS := $(addprefix $(obj),$(COBJS))

@ -29,9 +29,11 @@ $(shell mkdir -p $(obj)../common $(obj)../../nvidia/common)
LIB = $(obj)lib$(BOARD).o
COBJS := ../../nvidia/common/board.o
COBJS += ../common/tamonten.o
COBJS-y := ../common/tamonten.o
include ../../nvidia/common/common.mk
COBJS := $(COBJS-y)
SRCS := $(COBJS:.o=.c)
OBJS := $(addprefix $(obj),$(COBJS))

@ -20,9 +20,11 @@ $(shell mkdir -p $(obj)../../nvidia/common)
LIB = $(obj)lib$(BOARD).o
COBJS := $(BOARD).o
COBJS += ../../nvidia/common/board.o
COBJS-y := $(BOARD).o
include ../../nvidia/common/common.mk
COBJS := $(COBJS-y)
SRCS := $(COBJS:.o=.c)
OBJS := $(addprefix $(obj),$(COBJS))

@ -28,9 +28,11 @@ $(shell mkdir -p $(obj)../../nvidia/common)
LIB = $(obj)lib$(BOARD).o
COBJS := $(BOARD).o
COBJS += ../../nvidia/common/board.o
COBJS-y := $(BOARD).o
include ../../nvidia/common/common.mk
COBJS := $(COBJS-y)
SRCS := $(COBJS:.o=.c)
OBJS := $(addprefix $(obj),$(COBJS))

@ -25,9 +25,7 @@ endif
LIB = $(obj)lib$(VENDOR).o
COBJS-y += board.o
COBJS-$(CONFIG_SPI_UART_SWITCH) += uart-spi-switch.o
COBJS-$(CONFIG_TEGRA_CLOCK_SCALING) += emc.o
include common.mk
COBJS := $(COBJS-y)
SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)

@ -0,0 +1,4 @@
# common options for all tegra boards
COBJS-y += ../../nvidia/common/board.o
COBJS-$(CONFIG_SPI_UART_SWITCH) += ../../nvidia/common/uart-spi-switch.o
COBJS-$(CONFIG_TEGRA_CLOCK_SCALING) += ../../nvidia/common/emc.o
Loading…
Cancel
Save