Kbuild 804 B

123456789101112131415161718192021222324252627282930313233
  1. obj-y := gpu_sysfs.o
  2. # Common files.
  3. gpu_sysfs-y := gpu_sysfs_main.o \
  4. gpu_sysfs_util.o
  5. # Platform specific files.
  6. # ==================================
  7. # Start --------- Qualcomm ---------
  8. ifeq ($(CONFIG_MSM_KGSL),y)
  9. gpu_sysfs-y += gpu_sysfs_target_kgsl.o
  10. # Verify: target specific file is defined.
  11. GPU_SYSFS_TARGET_FILE_DEFINED=1
  12. endif
  13. # End ---------- Qualcomm ----------
  14. # ==================================
  15. # ==================================
  16. # Generate error if the TARGET
  17. # specific file is not defined OR
  18. # picked using the PLATFORM configs.
  19. ifndef GPU_SYSFS_TARGET_FILE_DEFINED
  20. $(warning **** Make sure target file is defined. \
  21. Check the TARGET and GPU configs in Makefile and Kernel Config. \
  22. Module won't work without target file. ****)
  23. endif