mirror of
https://gitea.osmocom.org/sim-card/simtrace2.git
synced 2026-03-16 21:28:33 +03:00
firmware: create duplicate files for upload only
Don't create copies of firmware files with version strings appended in the normal build. Only do this before uploading the firmware files. I have verified that "make" before this change and "make; contrib/prepare_upload.sh" after produce the same files. Close: OS#4413 Change-Id: I118a4ff397a178281c26a6b98112fa66b6f049ab
This commit is contained in:
@@ -68,6 +68,7 @@ rm -rf $TOPDIR/firmware/bin/simtrace-cardem*
|
||||
if [ "x$publish" = "x--publish" ]; then
|
||||
echo
|
||||
echo "=============== UPLOAD BUILD =============="
|
||||
contrib/prepare_upload.sh
|
||||
|
||||
cat > "/build/known_hosts" <<EOF
|
||||
[rita.osmocom.org]:48 ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDDgQ9HntlpWNmh953a2Gc8NysKE4orOatVT1wQkyzhARnfYUerRuwyNr1GqMyBKdSI9amYVBXJIOUFcpV81niA7zQRUs66bpIMkE9/rHxBd81SkorEPOIS84W4vm3SZtuNqa+fADcqe88Hcb0ZdTzjKILuwi19gzrQyME2knHY71EOETe9Yow5RD2hTIpB5ecNxI0LUKDq+Ii8HfBvndPBIr0BWYDugckQ3Bocf+yn/tn2/GZieFEyFpBGF/MnLbAAfUKIdeyFRX7ufaiWWz5yKAfEhtziqdAGZaXNaLG6gkpy3EixOAy6ZXuTAk3b3Y0FUmDjhOHllbPmTOcKMry9
|
||||
|
||||
14
contrib/prepare_upload.sh
Executable file
14
contrib/prepare_upload.sh
Executable file
@@ -0,0 +1,14 @@
|
||||
#!/bin/sh -e
|
||||
# Create copies of binaries with -latest, -$GIT_VERSION (OS#4413, OS#3452)
|
||||
GIT_VERSION="$(./git-version-gen .tarball-version)"
|
||||
|
||||
echo "Copying binaries with "-latest" and "-$GIT_VERSION" appended..."
|
||||
|
||||
cd firmware/bin
|
||||
for ext in bin elf; do
|
||||
for file in *."$ext"; do
|
||||
without_ext="${file%.*}"
|
||||
cp -v "$file" "$without_ext-latest.$ext"
|
||||
cp -v "$file" "$without_ext-$GIT_VERSION.$ext"
|
||||
done
|
||||
done
|
||||
Reference in New Issue
Block a user