summaryrefslogtreecommitdiff
path: root/cleopatre/devkit/plcdrv
diff options
context:
space:
mode:
Diffstat (limited to 'cleopatre/devkit/plcdrv')
-rw-r--r--cleopatre/devkit/plcdrv/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/cleopatre/devkit/plcdrv/Makefile b/cleopatre/devkit/plcdrv/Makefile
index 52349d0c33..763cfe621c 100644
--- a/cleopatre/devkit/plcdrv/Makefile
+++ b/cleopatre/devkit/plcdrv/Makefile
@@ -1,6 +1,10 @@
KERNELDIR := ../../linux-2.6.25.10-spc300
DEBUG = n
+ifeq ($(BUNDLE_VERSION),)
+BUNDLE_VERSION=$(shell git describe --always 2>/dev/null)
+endif
+
# all rules is buggy for external modules, default to modules rule
all:
$(MAKE) -C $(KERNELDIR) M=`pwd` Q= ARCH=arm CROSS_COMPILE=arm-linux- modules BUNDLE_VERSION=$(BUNDLE_VERSION)