Skip to content

Commit 3f60406

Browse files
committed
[redhat] Makefile: allow automotive dist tag override
JIRA: INTERNAL Upstream Status: RHEL only DIST is defined in Makefile.variables and therefore it cannot be overridden by the rpm macro %dist. For automotive we need to be able to override RHEL's dist tag with automotive's. Signed-off-by: Scott Weaver <scweaver@redhat.com>
1 parent 46a0e96 commit 3f60406

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

redhat/Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,11 @@ BUILD_TARGET_USERDEF:=$(BUILD_TARGET)
8383

8484
ifndef DIST
8585
DIST := $(shell $(RPMBUILD) --eval '%{?dist}')
86+
else
87+
# automotive uses a different dist tag
88+
ifeq ($(DIST)iv, $(shell $(RPMBUILD) --eval '%{?dist}'))
89+
DIST:=$(shell $(RPMBUILD) --eval '%{?dist}')
90+
endif
8691
endif
8792

8893
ifndef DISTRO

0 commit comments

Comments
 (0)