Makefile 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. # ==================================
  2. # Start ----- Mali T6xx device -----
  3. ifneq ($(CONFIG_MODULES),y)
  4. $(error CONFIG_MODULES. This module won't work. Please enable CONFIG_MODULES in kernel config.)
  5. endif
  6. obj-m := gpu_sysfs.o
  7. # Common files.
  8. gpu_sysfs-y := gpu_sysfs_main.o \
  9. gpu_sysfs_util.o
  10. # Platform specific files.
  11. # ==================================
  12. # Start --------- Qualcomm ---------
  13. ifeq ($(CONFIG_MSM_KGSL),y)
  14. gpu_sysfs-y += gpu_sysfs_target_kgsl.o
  15. # Verify: target specific file is defined.
  16. GPU_SYSFS_TARGET_FILE_DEFINED=1
  17. endif
  18. # End ---------- Qualcomm ----------
  19. # ==================================
  20. # ==================================
  21. # Generate error if the TARGET
  22. # specific file is not defined OR
  23. # picked using the PLATFORM configs.
  24. ifndef GPU_SYSFS_TARGET_FILE_DEFINED
  25. $(warning **** Make sure target file is defined. \
  26. Check the TARGET and GPU configs in Makefile and Kernel Config. \
  27. Module won't work without target file. ****)
  28. endif
  29. clean:
  30. rm -f *.o .*.cmd modules.order Module.symvers gpu_sysfs.ko gpu_sysfs.mod.c
  31. rm -rf .tmp_versions