[U-Boot] [PATCH 32/60] ARM: tegra: add SoC-specific include directory

Stephen Warren swarren at wwwdotorg.org
Tue Apr 19 22:59:12 CEST 2016


From: Stephen Warren <swarren at nvidia.com>

Add arch/arm/mach-tegra/tegraNNN/include. We'll use this to house headers
that must vary between SoCs (e.g. clock lists, register layouts that
aren't static across chip versions, etc.) in a <soc/> name-space. This
will allow code in mach-tegra/ to access those register definitions without
polluting the more public <asm/> or <mach/> namespaces or the directories
they map to.

Signed-off-by: Stephen Warren <swarren at nvidia.com>
---
 arch/arm/mach-tegra/config.mk | 13 +++++++++++++
 1 file changed, 13 insertions(+)
 create mode 100644 arch/arm/mach-tegra/config.mk

diff --git a/arch/arm/mach-tegra/config.mk b/arch/arm/mach-tegra/config.mk
new file mode 100644
index 000000000000..cc16451987e9
--- /dev/null
+++ b/arch/arm/mach-tegra/config.mk
@@ -0,0 +1,13 @@
+# Copyright (c) 2016, NVIDIA CORPORATION. All rights reserved.
+#
+# SPDX-License-Identifier: GPL-2.0
+
+socdirs-$(CONFIG_TEGRA20)	+= tegra20
+socdirs-$(CONFIG_TEGRA30)	+= tegra30
+socdirs-$(CONFIG_TEGRA114)	+= tegra114
+socdirs-$(CONFIG_TEGRA124)	+= tegra124
+socdirs-$(CONFIG_TEGRA210)	+= tegra210
+
+#$(warning PLATFORM_CPPFLAGS pre  $(PLATFORM_CPPFLAGS))
+PLATFORM_CPPFLAGS += $(patsubst %,-I$(srctree)/arch/arm/mach-tegra/%/include,$(socdirs-y))
+#$(warning PLATFORM_CPPFLAGS post $(PLATFORM_CPPFLAGS))
-- 
2.8.1



More information about the U-Boot mailing list