Commit 0b6c0480 authored by Martin Jeřábek's avatar Martin Jeřábek

Merge branch '162-ci-test-linux-driver-build' into 'master'

Resolve "ci: test linux driver build"

Closes #162

See merge request illeondr/CAN_FD_IP_Core!145
parents 62f9dc0e 5f9a8e35
Pipeline #2002 passed with stages
in 5 minutes and 50 seconds
...@@ -27,6 +27,14 @@ build_driver: ...@@ -27,6 +27,14 @@ build_driver:
- cd driver - cd driver
- "make -j`nproc`" - "make -j`nproc`"
stage: build
only: *only
- cd driver/linux
- "make -j`nproc` KDIR=/linux/build"
test_ip_fast: test_ip_fast:
stage: test stage: test
only: *only only: *only
KDIR ?= /home/mjerabek/projects/kernel/linux-4.9-build/zynq KDIR ?= /home/mjerabek/projects/kernel/linux-4.15-build/zynq
default: default:
$(MAKE) -C $(KDIR) M=$$PWD $(MAKE) -C $(KDIR) ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- M=$$PWD
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/
clean: clean:
$(MAKE) -C $(KDIR) M=$$PWD clean $(MAKE) -C $(KDIR) M=$$PWD ARCH=arm clean
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