Files
hexagon-dsp-binaries/Makefile
Dmitry Baryshkov bf22545cd1 Makefile: fix release process
Create tarball before testing the contents, preventing extra files from
sneaking in. Also pass correct subdir for testing the instalation of the
binaries.

Reported-by: Robie Basak <robie.basak@oss.qualcomm.com>
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
2026-02-23 16:28:02 +02:00

34 lines
810 B
Makefile

# SPDX-License-Identifier: MIT
# Copyright (c) 2024-2025 Linaro Ltd.
prefix ?= /usr
DSPDIR = ${prefix}/share/qcom
all:
clean:
install:
./scripts/install.sh config.txt ${DESTDIR}/${DSPDIR}
install -D -m 0644 00-hexagon-dsp-binaries.yaml ${DESTDIR}/${DSPDIR}/conf.d/00-hexagon-dsp-binaries.yaml
TAG = $(shell git describe)
NAME = hexagon-dsp-binaries
TARGET = $(NAME)_$(TAG).tar.gz
SUBDIR = $(NAME)-$(TAG)
dist:
$-rm -rf release
@mkdir -p release dist
./scripts/dist.sh config.txt release/$(SUBDIR)
tar -czf release/$(TARGET) -C release $(SUBDIR)
$(MAKE) -C release/$(SUBDIR) check
$(MAKE) -C release/$(SUBDIR) install DESTDIR=$(CURDIR)/release/test-install-$(TAG)
mv release/$(TARGET) dist/$(TARGET)
@echo "Created dist/$(TARGET)"
@rm -rf release
check:
./scripts/check.py
.PHONY: dist check