huddly-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: I1d0d45c061807948131672cdaeeb3f39402f964d
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/huddly-updater/+/2331968
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 5cd1494..4463707 100644
--- a/common.mk
+++ b/common.mk
@@ -122,11 +122,8 @@
# $(PWD) != $(CURDIR) all the time.
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
+# Read libchrome from /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.