aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2007-12-14 00:33:25 +0000
committerFelix Fietkau <nbd@openwrt.org>2007-12-14 00:33:25 +0000
commitb85354ab6e6dc6aca538379f2bd7962be9bd9e7a (patch)
tree4c6520daf312b09c3d797d2e2d73ed5aeb3e474b /include
parentf062d4a823410d4f91b20abf13e00c1128d28331 (diff)
downloadmaster-187ad058-b85354ab6e6dc6aca538379f2bd7962be9bd9e7a.tar.gz
master-187ad058-b85354ab6e6dc6aca538379f2bd7962be9bd9e7a.tar.bz2
master-187ad058-b85354ab6e6dc6aca538379f2bd7962be9bd9e7a.zip
fix the sdk
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@9747 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'include')
-rw-r--r--include/scan.mk2
-rw-r--r--include/toplevel.mk7
2 files changed, 7 insertions, 2 deletions
diff --git a/include/scan.mk b/include/scan.mk
index 28f526aa33..3d97a4f5c3 100644
--- a/include/scan.mk
+++ b/include/scan.mk
@@ -49,7 +49,7 @@ $(TMP_DIR)/info/.files-$(SCAN_TARGET).mk: $(FILELIST)
-include $(TMP_DIR)/info/.files-$(SCAN_TARGET).mk
-$(TARGET_STAMP):
+$(TARGET_STAMP)::
( \
$(NO_TRACE_MAKE) $(FILELIST); \
MD5SUM=$$(cat $(FILELIST) | (md5sum || md5) | awk '{print $$1}'); \
diff --git a/include/toplevel.mk b/include/toplevel.mk
index 63325aa018..4e194bf50a 100644
--- a/include/toplevel.mk
+++ b/include/toplevel.mk
@@ -12,7 +12,12 @@ PREP_MK= OPENWRT_BUILD= QUIET=0
include $(TOPDIR)/include/verbose.mk
-REVISION:=$(shell $(TOPDIR)/scripts/getver.sh)
+ifeq ($(SDK),1)
+ include $(TOPDIR)/include/version.mk
+else
+ REVISION:=$(shell $(TOPDIR)/scripts/getver.sh)
+endif
+
OPENWRTVERSION:=$(RELEASE)$(if $(REVISION), ($(REVISION)))
export RELEASE
export REVISION