24 Commits

Author SHA1 Message Date
Dmitry Baryshkov
08f8fe929f scripts: add missing CR symbol
Add CR, missing in one of error messages.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
2026-02-03 22:00:05 +02:00
Dmitry Baryshkov
6872fd61e8 scripts/dist: add YAML configs to the dist tarball
YAML config files are required by the userspace lib in order to be able
to find DSP binaries. Add all provided config files to the generated
tarball.

Fixes #45

Reported-by: Robie Basak <robie.basak@oss.qualcomm.com>
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
2026-01-17 09:15:45 +02:00
Vinayak Katoch
4121b85b6d scripts: Validate config.txt against 00-hexagon-dsp-binaries.yaml
Add validation to ensure paths in config.txt exist in
00-hexagon-dsp-binaries.yaml, reporting each missing path once.

Signed-off-by: Vinayak Katoch <vkatoch@qti.qualcomm.com>
2025-12-09 10:42:50 +05:30
Dmitry Baryshkov
77e03fe5bf Merge pull request #28 from lumag/fix-paths
scripts/check: don't choke on missing subdirs
2025-10-22 15:30:54 +03:00
Dmitry Baryshkov
cbe0320d64 scripts/check: don't choke on missing subdirs
The check.py script already warns about missing dirs. Don't choke on
them in check_dirs(), fixing the following crash:

Traceback (most recent call last):
  File "/home/lumag/Projects/Qcomm/Firmware/hexagon-dsp-binaries/./scripts/check.py", line 249, in <module>
    sys.exit(main())
             ~~~~^^
  File "/home/lumag/Projects/Qcomm/Firmware/hexagon-dsp-binaries/./scripts/check.py", line 242, in main
    if not check_dir(entry):
           ~~~~~~~~~^^^^^^^
  File "/home/lumag/Projects/Qcomm/Firmware/hexagon-dsp-binaries/./scripts/check.py", line 184, in check_dir
    for file in os.listdir(subdir):
                ~~~~~~~~~~^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: 'qcs615/Qualcomm/foo/bar'

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
2025-10-22 15:17:26 +03:00
Dmitry Baryshkov
43243bcdaa scripts/release: use ASCII armoured signatures
Create ASCII rather than binary signatures, they are easier to handle.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
2025-10-16 20:48:47 +03:00
Dmitry Baryshkov
1069ead0be scripts/checkfw.py: compare current set of binaries to l-f
Add script to compare currently enabled set of DSP binaries to the
DSP firmware versions inside linux-firmware repo.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
2025-10-13 23:44:18 +03:00
Dmitry Baryshkov
2f83634b0f scripts/release.sh: add release script
Add script that I use to make releases of hexagon-dsp-binaries.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
2025-10-13 23:42:00 +03:00
Viswanath Kraleti
f279d468bf scripts/check.py: extend script to support 'Link' entries
Both "Install" & "Link" are valid config actions. Update check.py script
to parse 'Link' entries as well in addition to existing 'Install' entries.

Signed-off-by: Viswanath Kraleti <viswanath.kraleti@oss.qualcomm.com>
2025-10-08 11:04:09 +05:30
Dmitry Baryshkov
8329f27fcd scripts/check: disallow map*txt files
According to FastRPC developers, the map*txt files are useless artifacts
of the build process. As we have removed them from the repo, make
check.py disallow them from being introduced to the repo in future.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
2025-10-03 19:08:57 +03:00
Dmitry Baryshkov
34d3bc961d scripts/check: validate subdir contents
Run validation checks on the binary subdirs, checking that there are no
unknown file types.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
2025-10-01 03:47:42 +03:00
Dmitry Baryshkov
1a22724de3 scripts/check: don't choke outside of git checkout
Skip git-ls-files check if the script is executed with no .git subdir
being present.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
2025-10-01 03:08:07 +03:00
Dmitry Baryshkov
dfcdfcf0de scripts: clarify copyrights
Add missing License tags and copyrights. The scripts were written by a
Linaro employee, so that company owns initial copyrights.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
2025-08-20 00:29:59 +03:00
Dmitry Baryshkov
a5a7af31f0 sa8775p: add binaries for SA8775P platform
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
2025-01-17 05:27:00 +02:00
Dmitry Baryshkov
c2580ea292 scripts/install: correct wildcard clause
Wildcard match in install.sh wasn't matching any patterns. Remove
quotations so that it matches anything, as expected.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
2025-01-17 05:21:24 +02:00
Dmitry Baryshkov
2a71be935c scripts/check: implement config.txt checks
Rename the script from check_whence.py and implement config.txt checks.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
2025-01-17 05:20:00 +02:00
Dmitry Baryshkov
acfb8528b1 scripts/install.sh: determine licence from WHENCE
The SA8775P binaries have slightly different licence. In preparation to
adding them to the repo, determine licensing information from the WHENCE
file rather than always installing LICENSE.qcom.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
2025-01-17 04:50:07 +02:00
Dmitry Baryshkov
2d16a76a86 CI: run make check on pull requests and branch points
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
2024-11-09 15:12:03 +02:00
Dmitry Baryshkov
d21310529f scripts/dist: include licence files into distribution
Distributed archives should include licence files. Add all licence files
unconditionally to keep the dist.sh script simple.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
2024-11-09 00:43:04 +02:00
Dmitry Baryshkov
f1de637d34 scripts/check_whence: add simple WHENCE checker
Add support for 'make check', which performs several checks on the
WHENCE file contents and on the git repository contents.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
2024-11-08 23:11:53 +02:00
Dmitry Baryshkov
e8aedd63cc scripts/dist: filter WHENCE for distribution
The WHENCE file in the repository documents all DSP binary sets, however
the release tarball includes only a subset of those. Filter out WHENCE
file to include only the entries that are a part of the release.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
2024-11-08 22:03:23 +02:00
Dmitry Baryshkov
d271d63264 Makefile: support creating release archives
Add simple script to create release archive, containing only necessary
sets of binary data.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
2024-11-05 15:09:47 +00:00
Dmitry Baryshkov
d7fa4d97d2 scripts/install.sh: copy licence file to the installed location
In order to document licence applicable to the particular binaries set,
copy licence file next to the isntalled files.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
2024-11-05 14:35:16 +00:00
Dmitry Baryshkov
d0d30e1bfb Makefile: implement simple installation infrastructure
Implement a way to install the files into the proposed location.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
2024-10-08 11:55:31 +02:00