From 6fca1cd799a9877360064d3e0585fe1e1f0fc852 Mon Sep 17 00:00:00 2001 From: WuXie Date: Fri, 10 Apr 2026 11:46:30 +0800 Subject: [PATCH] build: allow overriding DTS config ref at install time --- Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Makefile b/Makefile index b18645c..eac7070 100644 --- a/Makefile +++ b/Makefile @@ -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)