Added the logic to package the libusb dll with the userspace installer#16
Conversation
Signed-off-by: Tejas Sharma <tejashar@qti.qualcomm.com>
cccf47d to
2749b12
Compare
Chenxi Han (5656hcx)
left a comment
There was a problem hiding this comment.
Good changes. Outputs as expected.
One major concern I have:
Pre-compiled binary DLLs committed directly to the repository.
Adding binaries to git inflates the repository size and make history tracking difficult. Also, there is no source of the binaries, is it generated by ourself or downloaded from libusb?
I will recommend downloading libusb at build time, like
$libusbVersion = "1.0.27"
$libusbUrl = "https://github.com/libusb/libusb/releases/download/v$libusbVersion/libusb-$libusbVersion-binaries.7z"
# Download, optionally verify SHA-256, and extract libusb/<arch>/dll/libusb-1.0.dll
Or alternatively, we download the .dll manually somewhere at build time, then build script copies it to the payload.
… the libusb dlls during build time Signed-off-by: Tejas Sharma <tejashar@qti.qualcomm.com>
8cfdbdf to
08c97ac
Compare
|
I have removed the libusb dlls directory from the commit. As suggested by Chenxi Han (@5656hcx), I have added the logic to download the libusb during build time and use the downloaded zip to create the libusb directory from which staging files will be picked. |
6917910 to
4f96781
Compare
Signed-off-by: Chenxi Han <chehan@qti.qualcomm.com>
4f96781 to
46504c8
Compare
Support for packaging architecture-specific libusb binaries into the installer payload. Instead of bundling all architectures, the build process now selectively includes only the required libusb/ directory based on an input parameter.
Tested by running the installer locally and verifying that payload.zip contains the directory.