forked from RevolutionPi/piControl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
55 lines (38 loc) · 1.19 KB
/
Makefile
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
#CC=/usr/bin/arm-linux-gnueabihf-gcc
obj-m := piControl.o
#add other objects e.g. test.o
piControl-objs = piControlMain.o
piControl-objs += piIOComm.o
piControl-objs += piDIOComm.o
piControl-objs += piAIOComm.o
piControl-objs += RevPiDevice.o
piControl-objs += json.o
piControl-objs += piConfig.o
piControl-objs += RS485FwuCommand.o
piControl-objs += piFirmwareUpdate.o
piControl-objs += PiBridgeMaster.o
piControl-objs += kbUtilities.o
piControl-objs += systick.o
piControl-objs += revpi_common.o
piControl-objs += revpi_compact.o
piControl-objs += revpi_core.o
piControl-objs += revpi_gate.o
piControl-objs += revpi_flat.o
piControl-objs += pt100.o
piControl-objs += revpi_mio.o
ccflags-y := -O2
ccflags-$(_ACPI_DEBUG) += -DACPI_DEBUG_OUTPUT
#KDIR := /home/md/pi/kernelbakery/kbuild7
KBUILD_CFLAGS += -g
PWD := $(shell pwd)
EXTRA_CFLAGS = -I$(src)/
EXTRA_CFLAGS += -D__KUNBUSPI_KERNEL__
CROSS_COMPILE += arm-linux-gnueabihf-
.PHONY: compiletime.h
all: compiletime.h
$(MAKE) ARCH=arm CROSS_COMPILE="$(CROSS_COMPILE)" -C $(KDIR) M=$(PWD) modules
compiletime.h:
echo "#define COMPILETIME \""`date`"\"" > compiletime.h
clean:
$(MAKE) ARCH=arm -C $(KDIR) M=$(PWD) clean
rm -f $(piControl-objs)