memory: tegra: Enable building of mc-<soc>

The copied source files for driver in linux-<soc> repo need to proper
Makefile to be built. Add required Makefile to build MC driver from
linux-<soc> repo.

Bug 3960743

Change-Id: If47a799c9ac6be7f52a55fb0d715a09a797501d8
Signed-off-by: Ashish Mhetre <amhetre@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2914094
Reviewed-by: Ketan Patil <ketanp@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
This commit is contained in:
Ashish Mhetre
2023-06-01 11:52:47 +00:00
committed by mobile promotions
parent 6475ddcf3d
commit 9797a3c1e2
4 changed files with 22 additions and 0 deletions

View File

@@ -30,6 +30,9 @@ ifdef CONFIG_I2C
obj-m += i2c/busses/ obj-m += i2c/busses/
obj-m += mfd/ obj-m += mfd/
endif endif
ifdef CONFIG_MEMORY
obj-m += memory/
endif
ifdef CONFIG_MTD ifdef CONFIG_MTD
obj-m += mtd/devices/ obj-m += mtd/devices/
endif endif

5
drivers/memory/Makefile Normal file
View File

@@ -0,0 +1,5 @@
# SPDX-License-Identifier: GPL-2.0-only
# Copyright (c) 2023, NVIDIA CORPORATION. All rights reserved.
obj-m += tegra/

View File

@@ -0,0 +1,4 @@
# SPDX-License-Identifier: GPL-2.0-only
# Copyright (c) 2023, NVIDIA CORPORATION. All rights reserved.
obj-m += private-soc/

View File

@@ -0,0 +1,10 @@
# SPDX-License-Identifier: GPL-2.0-only
# Copyright (c) 2023, NVIDIA CORPORATION. All rights reserved.
# Empty Makefile
# NOTE: Do not change or add anything in this Makefile.
# The source code and Makefile rules are copied from the
# kernel/nvidia-$soc/drivers/memory/tegra/private-soc. This
# file is just place-holder for empty Makefile to avoid any build
# issue when copy is not done from command line and building
# the tree independent of source copy.