build: allow overriding DTS config ref at install time

This commit is contained in:
WuXie
2026-04-10 11:46:30 +08:00
parent 931ae0e8d9
commit 6fca1cd799
+2
View File
@@ -4,11 +4,13 @@
SBINDIR ?= /usr/sbin
SYSCONFDIR ?= /etc
DTS_CONFIGS_REF ?= refs/heads/main
install:
install -d $(DESTDIR)$(SBINDIR)
install -m 0755 include/dts-environment.sh $(DESTDIR)$(SBINDIR)
sed -i "s|refs/heads/main|$(DTS_CONFIGS_REF)|g" $(DESTDIR)$(SBINDIR)/dts-environment.sh
install -m 0755 include/dts-functions.sh $(DESTDIR)$(SBINDIR)
install -m 0755 include/dts-subscription.sh $(DESTDIR)$(SBINDIR)
install -m 0755 include/hal/dts-hal.sh $(DESTDIR)$(SBINDIR)