Skip to content

Commit

Permalink
classes: sign-efi: allow to configure deployment directory
Browse files Browse the repository at this point in the history
This is needed for systems that build and deploy two different linux
kernels like is the case when using the balena bootloader so that
different recipes do not try to deploy the same files.

Change-type: patch
Signed-off-by: Alex Gonzalez <alexg@balena.io>
  • Loading branch information
alexgg committed May 2, 2024
1 parent ac99553 commit fc36626
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion meta-balena-common/classes/sign-efi.bbclass
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
inherit deploy

DESTDIR ?= "${DEPLOYDIR}"

# Do not run on native recipes
do_sign_efi:class-native() {
:
Expand Down Expand Up @@ -48,7 +50,7 @@ do_sign_efi () {
do_deploy:append:class-target() {
for SIGNING_ARTIFACT in ${SIGNING_ARTIFACTS}; do
if [ -f "${SIGNING_ARTIFACT}.signed" ]; then
install -m 0644 "${SIGNING_ARTIFACT}.signed" "${DEPLOYDIR}/$(basename ${SIGNING_ARTIFACT})"
install -m 0644 "${SIGNING_ARTIFACT}.signed" "${DESTDIR}/$(basename ${SIGNING_ARTIFACT})"
fi
done
}
Expand Down

0 comments on commit fc36626

Please sign in to comment.