Skip to contentSkip to conversation

drivers: hwtracing: Adds Makefile to enable building from directory.

PATCH Superseded Leonardo Brás 1 participant 1 message Sep 28, 2018 Hardware tracing facilities

lore
Share & tools
lore
#0 lore raw

PATCH v3 7/7 drivers: hwtracing: Adds Makefile to enable building from directory.

Adds Makefile to enable building the driver using
'make drivers/hwtracing/'.
Changes drivers/Makefile to call the new Makefile directly. It enables user building this driver without building the whole drivers/ subtree.

---
 drivers/Makefile           | 4 +---
 drivers/hwtracing/Makefile | 3 +++
 2 files changed, 4 insertions(+), 3 deletions(-)
 create mode 100644 drivers/hwtracing/Makefile
drivers/Makefile +1 -3
index 578f469f72fb..a237be6b602f 100644
@@ -174,9 +174,7 @@ obj-$(CONFIG_MCB)		+= mcb/
 obj-$(CONFIG_PERF_EVENTS)	+= perf/
 obj-$(CONFIG_RAS)		+= ras/
 obj-$(CONFIG_THUNDERBOLT)	+= thunderbolt/
-obj-$(CONFIG_CORESIGHT)		+= hwtracing/coresight/
-obj-y				+= hwtracing/intel_th/
-obj-$(CONFIG_STM)		+= hwtracing/stm/
+obj-y				+= hwtracing/
 obj-$(CONFIG_ANDROID)		+= android/
 obj-$(CONFIG_NVMEM)		+= nvmem/
 obj-$(CONFIG_FPGA)		+= fpga/
drivers/hwtracing/Makefile new file +3 -0
new file mode 100644
index 000000000000..fe5773caec49
@@ -0,0 +1,3 @@
+obj-$(CONFIG_CORESIGHT)		+= coresight/
+obj-y				+= intel_th/
+obj-$(CONFIG_STM)		+= stm/
Signature · 1 line
2.19.0