Advertisement
GilchristT

Makefile

Jul 4th, 2021
1,155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Make 4.07 KB | None | 0 0
  1. EXTRA_CFLAGS += -I$(SRC)/xxxxx/managers/linxker -I$(SRC)/xxxxx/common -I$(SRC)/xxxxx/codec -I$(SRC)/xxxxx/peripheral
  2. EXTRA_CFLAGS += -I$(SRC)/xxxxx/buses/usb -I$(SRC)/xxxxx/buses/pcie -I$(SRC)/xxxxx/api/linux/inc
  3.  
  4. CCOPT   += -DQP_LINXKER
  5. CCOPT   += -DQP_EVENT_TIME_DEBUG
  6. CCOPT   += -DAME_xxxx1_xxxx2_xxxx3_xxxx4
  7.  
  8.  
  9. CCOPT   += -DAME_xxxxx
  10. obj-m := xxxxx.o
  11. xxxxx-objs := LINUXV4L2.o property.o tw6805.o tw5864.o ite6603.o mst3367.o tlv320adc3101.o xxxxx.o it1412.o
  12.  
  13. xxxxx-objs += xxxxx/codec/qlcodeclib.o
  14. xxxxx-objs += xxxxx/codec/cqlcodeclib.o
  15. xxxxx-objs += xxxxx/codec/peripherals.o
  16. xxxxx-objs += xxxxx/codec/cqlcodec.o
  17. xxxxx-objs += xxxxx/codec/hci.o
  18. xxxxx-objs += xxxxx/codec/fwencapi.o
  19. xxxxx-objs += xxxxx/codec/ctask.o
  20. xxxxx-objs += xxxxx/codec/cmpgcodec.o
  21. xxxxx-objs += xxxxx/codec/cdecodertask.o
  22. xxxxx-objs += xxxxx/codec/cencodertask.o
  23. xxxxx-objs += xxxxx/codec/fwcodecapi.o
  24. xxxxx-objs += xxxxx/codec/cchannel.o
  25. xxxxx-objs += xxxxx/codec/fwapi.o
  26. xxxxx-objs += xxxxx/codec/fwdecapi.o
  27. xxxxx-objs += xxxxx/codec/irq.o
  28.  
  29. xxxxx-objs += xxxxx/peripheral/ctvaudio.o
  30. #xxxxx-objs += xxxxx/peripheral/cov10633.o
  31. #xxxxx-objs += xxxxx/peripheral/cov7720.o
  32. #xxxxx-objs += xxxxx/peripheral/cadv7614.o
  33. #xxxxx-objs += xxxxx/peripheral/csil9011.o
  34. xxxxx-objs += xxxxx/peripheral/ci2c.o
  35. xxxxx-objs += xxxxx/peripheral/ctuner.o
  36. xxxxx-objs += xxxxx/peripheral/cvidencoder.o
  37. #xxxxx-objs += xxxxx/peripheral/cpe1005.o
  38. #xxxxx-objs += xxxxx/peripheral/cvidinputusbfw.o
  39. #xxxxx-objs += xxxxx/peripheral/cadi7393.o
  40. #xxxxx-objs += xxxxx/peripheral/cit6603.o
  41. #xxxxx-objs += xxxxx/peripheral/csil9030.o
  42. #xxxxx-objs += xxxxx/peripheral/csil9025.o
  43. #xxxxx-objs += xxxxx/peripheral/csaa7128.o
  44. #xxxxx-objs += xxxxx/peripheral/cvidinputauto1.o
  45. #xxxxx-objs += xxxxx/peripheral/ctvp7002.o
  46. #xxxxx-objs += xxxxx/peripheral/cadi9889.o
  47. xxxxx-objs += xxxxx/peripheral/caudcodec.o
  48. xxxxx-objs += xxxxx/peripheral/cviddecoder.o
  49. #xxxxx-objs += xxxxx/peripheral/cov5642.o
  50. #xxxxx-objs += xxxxx/peripheral/cadi7441.o
  51. #xxxxx-objs += xxxxx/peripheral/cadi7401.o
  52. #xxxxx-objs += xxxxx/peripheral/cmt9v112.o
  53. #xxxxx-objs += xxxxx/peripheral/cmi2010.o
  54. #xxxxx-objs += xxxxx/peripheral/csil9034.o
  55. #xxxxx-objs += xxxxx/peripheral/csaa7115.o
  56. #xxxxx-objs += xxxxx/peripheral/cfm31.o
  57. #xxxxx-objs += xxxxx/peripheral/ctvp7002vh.o
  58. #xxxxx-objs += xxxxx/peripheral/ctw9910.o
  59.  
  60. xxxxx-objs += xxxxx/buses/usb/cusbcntl.o
  61. xxxxx-objs += xxxxx/buses/usb/linux/cqpusbintf.o
  62.  
  63. xxxxx-objs += xxxxx/buses/pcie/linux/cpciecntl.o
  64. xxxxx-objs += xxxxx/buses/pcie/linux/qlpciintf.o
  65.  
  66. xxxxx-objs += xxxxx/managers/qposmgr.o
  67. xxxxx-objs += xxxxx/managers/qposmgrlinxker.o
  68. xxxxx-objs += xxxxx/managers/qppfmgr.o
  69. xxxxx-objs += xxxxx/managers/qpmemmgr.o
  70. xxxxx-objs += xxxxx/managers/qpmemmgrlinxker.o
  71. xxxxx-objs += xxxxx/managers/qpmgrspriv.o
  72. xxxxx-objs += xxxxx/managers/audiofwstonegatedummy.o
  73. xxxxx-objs += xxxxx/managers/qpdbgmgr.o
  74. xxxxx-objs += xxxxx/managers/qptimemgrlinxker.o
  75. xxxxx-objs += xxxxx/managers/videofwdummy.o
  76. xxxxx-objs += xxxxx/managers/qptimemgr.o
  77. xxxxx-objs += xxxxx/managers/videofwartesadummy.o
  78. xxxxx-objs += xxxxx/managers/audiofwdummy.o
  79. xxxxx-objs += xxxxx/managers/videofwstonegatedummy.o
  80. xxxxx-objs += xxxxx/managers/audiofwartesadummy.o
  81.  
  82.  
  83. xxxxx-objs += xxxxx/util/cfifo.o
  84. xxxxx-objs += xxxxx/util/util.o
  85. xxxxx-objs += xxxxx/util/cqueue.o
  86. xxxxx-objs += xxxxx/util/cobject.o
  87. xxxxx-objs += xxxxx/util/cobjectmgr.o
  88. xxxxx-objs += xxxxx/util/cthread.o
  89.  
  90. xxxxx-objs += xxxxx/api/linux/plv4ldev/qplinuxkermap.o
  91.  
  92. endif
  93.  
  94. EXTRA_CFLAGS    += $(CCOPT)
  95. EXTRA_LDFLAGS += -S
  96. KERNEL_VERSION := $(shell uname -r)
  97.  
  98. #KERNEL_DIR ?= /lib/modules/$(shell uname -r)/build
  99. PWD := $(shell pwd)
  100.  
  101. all: install
  102.  
  103. version.h: version.h.in
  104. ifndef VERSION
  105.     sed "s/@VERSION@/1/" version.h.in > version.h
  106. else
  107.     sed "s/@VERSION@/$(VERSION)/" version.h.in > version.h
  108. endif
  109.  
  110. install:
  111.  
  112.     @echo "Linux V4L2 Device Driver - Installing ..."
  113.     @echo $(KERNEL_SRC)
  114.     @echo $(KERNEL_DIR)
  115.     @echo $(PWD)
  116.  
  117.     $(MAKE) -C $(KERNEL_SRC) M=$(PWD) modules_install
  118.  
  119. clean:
  120.  
  121.     @echo "     Linux V4L2 Device Driver - Cleaning ..."
  122.     $(MAKE) -C $(KERNEL_DIR) M=$(PWD) clean
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement