mirror of
https://github.com/Fred78290/nct6687d.git
synced 2025-07-22 14:40:34 +02:00
Makefile: silence errors from git
git commands are run during build of the module by DKMS when there is no git repository, that error output look confusing.
This commit is contained in:
4
Makefile
4
Makefile
@@ -2,8 +2,8 @@ obj-m += nct6687.o
|
||||
|
||||
curpwd := $(shell pwd)
|
||||
kver ?= $(shell uname -r)
|
||||
commitcount := $(shell git rev-list --all --count)
|
||||
commithash := $(shell git rev-parse --short HEAD)
|
||||
commitcount := $(shell git rev-list --all --count 2>/dev/null)
|
||||
commithash := $(shell git rev-parse --short HEAD 2>/dev/null)
|
||||
fedoraver := $(shell sed -n 's/.*Fedora release \([^ ]*\).*/\1/p' /etc/fedora-release 2>/dev/null || echo 0)
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user