You've already forked hexagon-dsp-binaries
mirror of
https://github.com/linux-msm/hexagon-dsp-binaries.git
synced 2026-02-25 13:14:28 -08:00
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>
34 lines
810 B
Makefile
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
|