sis-updater: use ${SYSROOT}/usr/share/libchrome/BASE_VER

BASE_VER will be removed from environment variable.

$(SRC)/../common-mk/BASE_VER is also a bad path, even common-mk/BASE_VER
is not removed yet. Since this software doesn't include common-mk at
all. USE $(SYSROOT)/usr/share/libchrome/BASE_VER instead.

BUG=chromium:1062979
TEST=emerge

Change-Id: I539aa5dd4867edd381279c0d93689ad8317313cf
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/sis-updater/+/2332075
Reviewed-by: Kyle Williams <kdgwill@chromium.org>
Tested-by: Kyle Williams <kdgwill@chromium.org>
Commit-Queue: Qijiang Fan <fqj@google.com>
diff --git a/common.mk b/common.mk
index e9c82e8..9e0775a 100644
--- a/common.mk
+++ b/common.mk
@@ -123,10 +123,8 @@
 export SRC ?= $(CURDIR)
 
 # If BASE_VER is not set, read the libchrome revision number from
-# common-mk/BASE_VER file.
-ifeq ($(strip $(BASE_VER)),)
-BASE_VER := $(shell cat $(SRC)/../common-mk/BASE_VER)
-endif
+# /usr/share/libchrome/BASE_VER
+BASE_VER := $(shell cat $(SYSROOT)/usr/share/libchrome/BASE_VER)
 $(info Using BASE_VER=$(BASE_VER))
 
 # Re-start in the $(OUT) directory if we're not there.