Skip to content

Commit

Permalink
allow custom extension in place of .raucb
Browse files Browse the repository at this point in the history
allows using rauc/rauc#328 from meta-rauc

Signed-off-by: Manuel Bessler <[email protected]>
  • Loading branch information
mbessler authored and ejoerns committed Jan 6, 2020
1 parent e98d810 commit 1af6994
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions classes/bundle.bbclass
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,8 @@ BUNDLE_NAME[doc] = "Specifies desired full output name of generated bundle."
# Don't include the DATETIME variable in the sstate package sigantures
BUNDLE_NAME[vardepsexclude] = "DATETIME"
BUNDLE_LINK_NAME ??= "${BUNDLE_BASENAME}-${MACHINE}"
BUNDLE_EXTENSION ??= ".raucb"
BUNDLE_EXTENSION[doc] = "Specifies desired custom filename extension of generated bundle"

do_bundle() {
if [ -z "${RAUC_KEY_FILE}" ]; then
Expand Down Expand Up @@ -288,8 +290,8 @@ inherit deploy

do_deploy() {
install -d ${DEPLOYDIR}
install ${B}/bundle.raucb ${DEPLOYDIR}/${BUNDLE_NAME}.raucb
ln -sf ${BUNDLE_NAME}.raucb ${DEPLOYDIR}/${BUNDLE_LINK_NAME}.raucb
install ${B}/bundle.raucb ${DEPLOYDIR}/${BUNDLE_NAME}${BUNDLE_EXTENSION}
ln -sf ${BUNDLE_NAME}${BUNDLE_EXTENSION} ${DEPLOYDIR}/${BUNDLE_LINK_NAME}${BUNDLE_EXTENSION}
}

addtask deploy after do_bundle before do_build
Expand Down

0 comments on commit 1af6994

Please sign in to comment.