1f08c3bdfSopenharmony_ci# 2f08c3bdfSopenharmony_ci# Makefile for GCOV profiling kernel module 3f08c3bdfSopenharmony_ci# 4f08c3bdfSopenharmony_ciCFLAGS := $(CFLAGS) -Wall 5f08c3bdfSopenharmony_ciifneq ($(KERNELRELEASE),) 6f08c3bdfSopenharmony_ciCFLAGS += -Idrivers/char/drm 7f08c3bdfSopenharmony_ciobj-m := tdrm.o 8f08c3bdfSopenharmony_ci 9f08c3bdfSopenharmony_cielse 10f08c3bdfSopenharmony_ciKDIR := /lib/modules/$(shell uname -r)/build 11f08c3bdfSopenharmony_ciPWD := $(shell pwd) 12f08c3bdfSopenharmony_ci 13f08c3bdfSopenharmony_cidefault: 14f08c3bdfSopenharmony_ci $(MAKE) -C $(KDIR) M=$(PWD) modules 15f08c3bdfSopenharmony_ciendif 16f08c3bdfSopenharmony_ci 17f08c3bdfSopenharmony_ciclean: 18f08c3bdfSopenharmony_ci rm -f tdrm.o 2>/dev/null || true 19f08c3bdfSopenharmony_ci 20