X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/f2ea91f2c1499e6e7a8962540385e821f19c2128..eac54909415f8a3bf2e5fecd8b80803ef80f8b4a:/include/toplevel.mk diff --git a/include/toplevel.mk b/include/toplevel.mk index 63325aa01..4e194bf50 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