X-Git-Url: http://rtime.felk.cvut.cz/gitweb/can-benchmark.git/blobdiff_plain/fffee64566d056a28ac914fd8832acc8718c46d1..859a3e3e90a687e99d2d56e74c8ec432c4bd3408:/kernel/build/glab-2.6.36/GNUmakefile diff --git a/kernel/build/glab-2.6.36/GNUmakefile b/kernel/build/glab-2.6.36/GNUmakefile index 48e0a51..d0c3269 100644 --- a/kernel/build/glab-2.6.36/GNUmakefile +++ b/kernel/build/glab-2.6.36/GNUmakefile @@ -15,11 +15,14 @@ MAKEFLAGS += --no-print-directory all := $(filter-out all Makefile,$(MAKECMDGOALS)) +KERNELRELEASE = $(shell cat include/config/kernel.release 2> /dev/null) + + all: $(MAKE) $(MAKEARGS) $(all) ARCH=i386 ifeq ($(all),targz-pkg) - scp linux-2.6.36.1.tar.gz root@glab: - ssh root@glab 'tar -C / -xf linux-2.6.36.1.tar.gz; depmod 2.6.36.1' + scp linux-$(KERNELRELEASE).tar.gz root@glab: + ssh root@glab 'tar -C / -xf linux-$(KERNELRELEASE).tar.gz; depmod $(KERNELRELEASE)' endif