From 388ab4b61a51b7af26c99bfa2482b53dbf772b9ea0b192991016cf8ef788298d Mon Sep 17 00:00:00 2001 From: Martin Pluskal Date: Wed, 27 Jan 2021 19:24:36 +0000 Subject: [PATCH] Accepting request 867280 from home:musfay A tool for flashing firmware to qualcomm based systems eg. Smartphones, dragonboard OBS-URL: https://build.opensuse.org/request/show/867280 OBS-URL: https://build.opensuse.org/package/show/devel:tools/qdl?expand=0&rev=1 --- .gitattributes | 23 +++++++++++++++++ _service | 14 +++++++++++ _servicedata | 4 +++ qdl-1.0+git.20190503.tar.xz | 3 +++ qdl.changes | 14 +++++++++++ qdl.spec | 49 +++++++++++++++++++++++++++++++++++++ 6 files changed, 107 insertions(+) create mode 100644 .gitattributes create mode 100644 _service create mode 100644 _servicedata create mode 100644 qdl-1.0+git.20190503.tar.xz create mode 100644 qdl.changes create mode 100644 qdl.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/_service b/_service new file mode 100644 index 0000000..86aaa6e --- /dev/null +++ b/_service @@ -0,0 +1,14 @@ + + + https://github.com/andersson/qdl.git + git + enable + qdl + 1.0+git.%cd + + + *.tar + xz + + + diff --git a/_servicedata b/_servicedata new file mode 100644 index 0000000..fbcb2b4 --- /dev/null +++ b/_servicedata @@ -0,0 +1,4 @@ + + + https://github.com/andersson/qdl.git + 760b3dffb03d2b7dfb82c6eac652a092f51c572d \ No newline at end of file diff --git a/qdl-1.0+git.20190503.tar.xz b/qdl-1.0+git.20190503.tar.xz new file mode 100644 index 0000000..2eab91c --- /dev/null +++ b/qdl-1.0+git.20190503.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:211857cdaaccd7a0bf10546d75c278c11a2d3d9a295d8944e3b08fdcee9e6ba6 +size 11660 diff --git a/qdl.changes b/qdl.changes new file mode 100644 index 0000000..3ee2ffb --- /dev/null +++ b/qdl.changes @@ -0,0 +1,14 @@ +------------------------------------------------------------------- +Wed Jan 27 18:01:59 UTC 2021 - mustug385@gmail.com + +- Update to version 1.0+git.20190503: + * qdl: Rework qdl_write to limit write sizes to out_maxpktsize + * firehose: Wait 3 seconds for payload to boot + * firehose: Lower the initial read timeout + * firehose: Remove unused firehose_nop() + * usb: Silence usb helpers + * firehose: Continue reading log entries after response + * sahara_run: properly propagate error + * program: Correct a/b XBL match + * qdl: Wait for missing EDL device + * qdl: Remove debug print for claim return code diff --git a/qdl.spec b/qdl.spec new file mode 100644 index 0000000..890c9a5 --- /dev/null +++ b/qdl.spec @@ -0,0 +1,49 @@ +# +# spec file for package qdl +# +# Copyright (c) 2021 SUSE LINUX GmbH, Nuernberg, Germany. +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + +Name: qdl +Version: 1.0+git.20190503 +Release: 0 +License: BSD-3-Clause +Group: Development/Tools/Other +#Source https://github.com/andersson/qdl/archive/master.tar.gz +Source: %{name}-%{version}.tar.xz +Url: https://github.com/andersson/qdl +BuildRequires: libxml2-devel +BuildRequires: libudev-devel +BuildRequires: gcc +Summary: A tool for flash images to Qualcomm based systems + +%description +This tool communicates with USB devices of id 05c6:9008 to upload a flash +loader and use this to flash images. Mostly Qualcomm based systems. + +%prep +%setup -q + +%build +make CFLAGS="-O2 -Wall -fpie -g -I/usr/include/libxml2" \ + LDFLAGS="-lxml2 -lz -llzma -lm -ldl -ludev -pie" + +%install +%make_install prefix="/usr" + +%files +%license LICENSE +%{_bindir}/%{name} + +%changelog