fwupd/plugins/uefi-capsule/efi/generate_binary.sh.in
Richard Hughes ee2e2c3674 uefi: Rename to uefi-capsule
Rename the plugin to make it clearer of the scope.

Based on a patch from Mario Limonciello <mario.limonciello@dell.com>
2021-01-05 15:31:22 +00:00

23 lines
508 B
Bash
Executable File

#!/bin/sh
output=$2
objcopy_cmd=$(command -v @EFI_OBJCOPY@)
genpeimg_cmd=$(command -v genpeimg)
"$objcopy_cmd" -j .text \
-j .sdata \
-j .data \
-j .dynamic \
-j .dynsym \
-j '.rel*' \
"$@"
if [ -n "${genpeimg_cmd}" ]; then
$genpeimg_cmd -d \
+d \
-d \
+n \
-d \
+s \
"$output"
fi