-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set working directory for non chrooted build hooks
This commit sets the working directory of build hooks relative to output flag. This way it is possible to add hooks that not dependent of the ouput path flag. In addition this commit also adds a new embedded feature to copy Raspberry PI firmware to the expected location. Signed-off-by: David Cassany <dcassany@suse.com>
- Loading branch information
1 parent
b4765b9
commit daf82c5
Showing
7 changed files
with
57 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
pkg/features/embedded/arm-firmware/system/oem/00_armfirmware.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
name: "Set ARM Firmware" | ||
stages: | ||
after-install-chroot: | ||
- &pifirmware | ||
name: Raspberry PI post hook | ||
if: '[ -d "/boot/vc" ]' | ||
commands: | ||
- cp -rf /boot/vc/* /run/elemental/efi/ | ||
|
||
after-upgrade-chroot: | ||
- <<: *pifirmware | ||
|
||
after-reset-chroot: | ||
- <<: *pifirmware | ||
|
||
after-disk: | ||
- name: Raspberry PI post hook | ||
if: '[ -d "./recovery.img.root/boot/vc" ]' | ||
commands: | ||
- cp -rf ./recovery.img.root/boot/vc/* ./efi/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters