blob: e1144bb301adec27b37c1a638eab9d9dcd1955f2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
|
#PATH := $(PREBUILD)/bin:$(PATH)
obj-$(CONFIG_CGX_DRIVER) := cgxdrv.o
# C Object Files:
cgxdrv-c-objs += CgxDriverLinux.o
cgxdrv-c-objs += CgxDriverCore.o
cgxdrv-c-objs += CgxDriverCoreCommon.o
cgxdrv-c-objs += CgCpuLinux.o
cgxdrv-c-objs += CgCpu.o
cgxdrv-c-objs += platform.o
#cgxdrv-c-objs += SPRD_FPGA_CPU.o
#cgxdrv-c-objs += SPRD_FPGA_GPIO.o
#cgxdrv-c-objs += SPRD_FPGA_DMA.o
#cgxdrv-c-objs += SPRD_FPGA_CLK.o
#cgxdrv-c-objs += SPRD_FPGA_INT.o
#cgxdrv-c-objs += SPRD_FPGA_RF.o
#cgxdrv-c-objs += gpsspi.o
cgxdrv-c-objs += gps_gpio.o
cgxdrv-c-objs += gps_dma.o
#bxd
ifeq ($(CONFIG_CGX_GE_GPS),y)
cgxdrv-objs += gpsspi.o
EXTRA_CFLAGS += -DCGCORE_ACCESS_VIA_SPI
endif
cgxdrv-objs += $(cgxdrv-c-objs)
#LOCAL_CFLAGS := \
#-DCGCORE_ACCESS_VIA_SPI
# Headers:
# Unused: CgFeatures.h pkfuncs.h toolhelp.h
cgxdrv-hdrs += CgBuildNumber.h
cgxdrv-hdrs += CgReturnCodes.h
cgxdrv-hdrs += CgTypes.h
cgxdrv-hdrs += CgVersion.h
cgxdrv-hdrs += CgCpu.h
cgxdrv-hdrs += CgCpuOs.h
cgxdrv-hdrs += SPRD_FPGA_CPU.h
cgxdrv-hdrs += SPRD_FPGA_CLK.h
cgxdrv-hdrs += SPRD_FPGA_DMA.h
cgxdrv-hdrs += SPRD_FPGA_GPIO.h
cgxdrv-hdrs += SPRD_FPGA_INT.h
cgxdrv-hdrs += CgxDriverCoreCommon.h
cgxdrv-hdrs += CgxDriverApi.h
cgxdrv-hdrs += CgxDriverCore.h
cgxdrv-hdrs += CgxDriverOs.h
cgxdrv-hdrs += CgxDriverPlatform.h
cgxdrv-hdrs += platform.h
#EXTRA_CFLAGS += \
# -I. \
# -I. \
# -I. \
# -I. \
# -I. \
# -I. \
# -D__LINUX__ \
# -D$(MODE) \
# $(CG_CPPFLAGS)
ifeq ($(KERNELRELEASE),)
# on first call from remote location we get into this path
# whilst on second call all is managed by the embedding kernel makefile
cgxdrv-cfiles = ${cgxdrv-c-objs:.o=.c}
#default:: kmod_build
#kmod_build:: $(cgxdrv-cfiles) $(cgxdrv-hdrs)
# distclean:: clean
#grep::
# grep $(G) $(cgxdrv-cfiles)
#hgrep::
# grep $(G) $(cgxdrv-hdrs)
#clean::
# rm -f *.o *.ko .*.cmd cgxdrv.mod.c $(cgxdrv-c-objs) $(obj-m)
# rm -rf .tmp_versions
#tags::
# $(MAKE) -C $(CG_KERNEL_DIR) SUBDIRS=$(CURDIR) tags
endif
# ### EOF ###
|