From b639f3649cdca2a78d2ed0c4e36ef5418c011e4f Mon Sep 17 00:00:00 2001 From: Raboneko <119771935+raboneko@users.noreply.github.com> Date: Sat, 22 Nov 2025 22:49:03 -0800 Subject: [PATCH] add: qdl (#7582) (#7586) (cherry picked from commit 53028ef003493d52dcf65b0bd02c1fb4f99f8064) Signed-off-by: Owen-sz Co-authored-by: Owen Zimmerman <123591347+Owen-sz@users.noreply.github.com> --- anda/tools/qdl/anda.hcl | 8 ++++++++ anda/tools/qdl/qdl.spec | 42 ++++++++++++++++++++++++++++++++++++++ anda/tools/qdl/update.rhai | 5 +++++ 3 files changed, 55 insertions(+) create mode 100644 anda/tools/qdl/anda.hcl create mode 100644 anda/tools/qdl/qdl.spec create mode 100644 anda/tools/qdl/update.rhai diff --git a/anda/tools/qdl/anda.hcl b/anda/tools/qdl/anda.hcl new file mode 100644 index 0000000000..0b4372a603 --- /dev/null +++ b/anda/tools/qdl/anda.hcl @@ -0,0 +1,8 @@ +project pkg { + rpm { + spec = "qdl.spec" + } + labels { + nightly = 1 + } +} diff --git a/anda/tools/qdl/qdl.spec b/anda/tools/qdl/qdl.spec new file mode 100644 index 0000000000..f737149eb3 --- /dev/null +++ b/anda/tools/qdl/qdl.spec @@ -0,0 +1,42 @@ +%global commit 661ca1cba2984d874effa5ee5864132b079fbba0 +%global commit_date 20251120 +%global shortcommit %(c=%{commit}; echo ${c:0:7}) + +Name: qdl +Version: 0^%commit_date.%shortcommit +Release: 1%?dist +Summary: This tool communicates with USB devices of id 05c6:9008 to upload a flash loader and use this to flash images +URL: https://github.com/linux-msm/qdl +Source0: %{url}/archive/%{commit}/qdl-%{commit}.tar.gz +License: BSD-3-Clause +BuildRequires: make +BuildRequires: gcc +BuildRequires: pkgconfig(libxml-2.0) +BuildRequires: pkgconfig(libusb-1.0) + +Packager: Owen Zimmerman + +%description +%{summary}. + +%prep +%autosetup -n qdl-%{commit} + +%build +%make_build + +%install +install -Dm755 qdl %{buildroot}%{_bindir}/qdl +install -Dm755 qdl %{buildroot}%{_bindir}/qdl-ramdump +install -Dm755 qdl %{buildroot}%{_bindir}/ks + +%files +%{_bindir}/qdl +%{_bindir}/qdl-ramdump +%{_bindir}/ks +%license LICENSE +%doc README.md + +%changelog +* Sun Nov 23 2025 Owen-sz +- Initial commit diff --git a/anda/tools/qdl/update.rhai b/anda/tools/qdl/update.rhai new file mode 100644 index 0000000000..576911cba6 --- /dev/null +++ b/anda/tools/qdl/update.rhai @@ -0,0 +1,5 @@ +rpm.global("commit", gh_commit("linux-msm/qdl")); +if rpm.changed() { + rpm.release(); + rpm.global("commit_date", date()); +}