/alps/pcitool

To get this branch, use:
bzr branch http://suren.me/webbzr/alps/pcitool

« back to all changes in this revision

Viewing changes to driver/Makefile

  • Committer: Vasilii Chernov
  • Date: 2016-03-02 07:48:24 UTC
  • mfrom: (359 pcitool)
  • mto: This revision was merged to the branch mainline in revision 367.
  • Revision ID: vchernov@inr.ru-20160302074824-gcpwar3f33n5353q
1. Merge with http://ufo.kit.edu/ufo/log/csa/pcitool 359 revision
2. Move api_server to html server

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
CONFIG_MODULE_SIG=n
1
2
 
2
3
obj-m := pciDriver.o
3
4
pciDriver-objs := base.o int.o umem.o kmem.o sysfs.o ioctl.o compat.o
8
9
 
9
10
EXTRA_CFLAGS += -I$(M)/..
10
11
 
 
12
ifdef DUMMY_DEVICE
 
13
ifneq ($(DUMMY_DEVICE), 0)
 
14
    EXTRA_CFLAGS += -DPCIDRIVER_DUMMY_DEVICE
 
15
endif
 
16
endif
 
17
 
11
18
default:
12
19
        @KERNEL_GCC_VERSION=`cat /proc/version | head -n1 | cut -d " " -f 7` ;\
13
20
        GCC_VERSION=`$(CC) --version | head -n 1 | tr ' ' '\n' | grep -e "[0-9]\+\.[0-9]" | tail -n 1` ;\
39
46
        build_date=`date "+%Y/%m/%d %H:%M:%S"` ;\
40
47
        build="Built at $$build_date by $$build_user" ;\
41
48
        revision="Revision $$build_revision from $$build_branch by $$build_author at $$build_path, last modification from $$build_lastmod" ;\
42
 
        echo -e "#define PCIDRIVER_BUILD \"$$build\"\\n#define PCIDRIVER_REVISION \"$$revision\"\\n#define PCIDRIVER_CHANGES \"$$build_changes\"\\n" > build.h ;\
 
49
        /bin/echo -e "#define PCIDRIVER_BUILD \"$$build\"\\n#define PCIDRIVER_REVISION \"$$revision\"\\n#define PCIDRIVER_CHANGES \"$$build_changes\"\\n" > build.h ;\
43
50
        $(MAKE) $(CFLAGS) -C $(KERNELDIR) M=$(PWD) CC=$$CC modules
44
51
 
45
52
install: