Aligned the package layout with the concurrent Debian packaging conventions. Moved package files under 'debian/all/' to avoid duplication across OS builds and removed legacy paths under 'debian/'. Updated related build references to ensure compatibility across all supported OS codenames.for Bullseye Test Plan: PASS master bullseye build Story: 2011360 Task: 53135 Change-Id: Ibd2011d2aa3f7c10f03d962642ea3248e7076a51 Signed-off-by: Abhinav Ayyapasetti <ayyapasetti.abhinav@windriver.com>
32 lines
580 B
Bash
Executable File
32 lines
580 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# parameters:
|
|
# (1) modules' path; (2) privkey for signing; (3) pubkey for signing
|
|
|
|
privkey=$2
|
|
pubkey=$3
|
|
|
|
if [ ! -f /usr/lib/linux@KERNEL_TYPE@-kbuild-*/scripts/sign-file ]; then
|
|
echo "Tool sign-file doesn't exist!"
|
|
exit 1
|
|
fi
|
|
|
|
found=0
|
|
for module in $(find $1 -type f -name \*.ko); do
|
|
found=1
|
|
echo ${module}
|
|
/usr/lib/linux@KERNEL_TYPE@-kbuild-*/scripts/sign-file sha256 \
|
|
${privkey} ${pubkey} ${module}
|
|
if [ $? -eq 1 ]; then
|
|
echo "Fail to sign!"
|
|
exit 1
|
|
fi
|
|
done
|
|
|
|
if [ ${found} -eq 1 ]; then
|
|
echo "Signed successfully!"
|
|
else
|
|
echo "No ko found!"
|
|
exit 1
|
|
fi
|