Skip to content
Snippets Groups Projects
Commit d0f45000 authored by Stephen Warren's avatar Stephen Warren Committed by Tom Warren
Browse files

ARM: tegra: unify Tegra186 Makefile a bit


Many files in arch/arm/mach-tegra are compiled conditionally based on
Kconfig variables, or applicable to all platforms. We can let the main
Tegra Makefile handle compiling (or not) those files to avoid each SoC-
specific Makefile needing to duplicate entries for those files. This
leaves the SoC-specific Makefiles to compile truly SoC-specific code.

In the future, we'll hopefully add Kconfig variables for all the other
files, and refactor those files, and so reduce the need for SoC-specific
Makefiles and/or ifdefs in the Makefiles.

Signed-off-by: default avatarStephen Warren <swarren@nvidia.com>
Signed-off-by: default avatarTom Warren <twarren@nvidia.com>
parent 1f60f073
No related branches found
No related tags found
No related merge requests found
...@@ -15,23 +15,23 @@ else ...@@ -15,23 +15,23 @@ else
obj-$(CONFIG_CMD_ENTERRCM) += cmd_enterrcm.o obj-$(CONFIG_CMD_ENTERRCM) += cmd_enterrcm.o
endif endif
obj-$(CONFIG_ARM64) += arm64-mmu.o
obj-y += ap.o obj-y += ap.o
obj-y += board.o board2.o obj-y += board.o board2.o
obj-y += cache.o obj-y += cache.o
obj-y += clock.o obj-y += clock.o
obj-y += lowlevel_init.o
obj-y += pinmux-common.o obj-y += pinmux-common.o
obj-y += powergate.o obj-y += powergate.o
obj-y += xusb-padctl-dummy.o obj-y += xusb-padctl-dummy.o
obj-$(CONFIG_DISPLAY_CPUINFO) += sys_info.o endif
obj-$(CONFIG_TEGRA_GPU) += gpu.o
obj-$(CONFIG_TEGRA_CLOCK_SCALING) += emc.o
obj-$(CONFIG_ARM64) += arm64-mmu.o
obj-$(CONFIG_TEGRA_CLOCK_SCALING) += emc.o
obj-$(CONFIG_TEGRA_GPU) += gpu.o
obj-y += lowlevel_init.o
ifndef CONFIG_SPL_BUILD ifndef CONFIG_SPL_BUILD
obj-$(CONFIG_ARMV7_PSCI) += psci.o obj-$(CONFIG_ARMV7_PSCI) += psci.o
endif endif
endif obj-$(CONFIG_DISPLAY_CPUINFO) += sys_info.o
obj-$(CONFIG_TEGRA20) += tegra20/ obj-$(CONFIG_TEGRA20) += tegra20/
obj-$(CONFIG_TEGRA30) += tegra30/ obj-$(CONFIG_TEGRA30) += tegra30/
......
...@@ -2,7 +2,4 @@ ...@@ -2,7 +2,4 @@
# #
# SPDX-License-Identifier: GPL-2.0 # SPDX-License-Identifier: GPL-2.0
obj-y += ../arm64-mmu.o
obj-y += ../board186.o obj-y += ../board186.o
obj-y += ../lowlevel_init.o
obj-$(CONFIG_DISPLAY_CPUINFO) += ../sys_info.o
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment