Skip to content
This repository has been archived by the owner on Oct 7, 2024. It is now read-only.

Remove dependency on qpkg_encrypt binary #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion QDK_2.x/bin/qbuild
Original file line number Diff line number Diff line change
Expand Up @@ -913,7 +913,10 @@ add_qpkg_tail(){
# Add encryption.
add_qpkg_encryption(){
verbose_msg "Adding QPKG checksum: $QDK_QPKG_FILE"
/usr/bin/qpkg_encrypt $QDK_QPKG_FILE
local fs=$(/usr/bin/stat --printf="%s" $QDK_QPKG_FILE)
local sig=$(/usr/bin/expr $fs \* 3589 + 1000000000)
sig=${sig:0:10}
echo $sig | /bin/dd of=$QDK_QPKG_FILE bs=1 seek=$(/usr/bin/expr $fs - 60) count=10 conv=notrunc 2>/dev/null
}

create_qpkg(){
Expand Down