Commit ca61dc3c authored by Pavel Pisa's avatar Pavel Pisa
Browse files

driver: Linux driver Makefile example lines for native x86 build.


Signed-off-by: Pavel Pisa's avatarPavel Pisa <pisa@cmp.felk.cvut.cz>
parent 60a7226e
CROSS_COMPILE= arm-linux-gnueabihf-
KDIR ?= /home/mjerabek/projects/kernel/linux-4.15-build/zynq KDIR ?= /home/mjerabek/projects/kernel/linux-4.15-build/zynq
ARCH=arm
#KDIR ?= /lib/modules/$(shell uname -r)/build
#ARCH ?= x86_64
default: default:
$(MAKE) -C $(KDIR) ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- M=$$PWD $(MAKE) -C $(KDIR) ARCH=$(ARCH) CROSS_COMPILE=$(CROSS_COMPILE) M=$$PWD
ifeq ($(shell hostname),hathi) ifeq ($(shell hostname),hathi)
-rm -f /srv/nfs4/debian-armhf-devel/ctucanfd.ko -rm -f /srv/nfs4/debian-armhf-devel/ctucanfd.ko
cp ctucanfd.ko /srv/nfs4/debian-armhf-devel/ cp ctucanfd.ko /srv/nfs4/debian-armhf-devel/
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment