mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-07 01:56:38 +00:00
Meta: Add SERENITY_USE_SDCARD to boot from an SD card
This commit is contained in:
parent
425acb513e
commit
f7608ba269
Notes:
sideshowbarker
2024-07-16 22:04:28 +09:00
Author: https://github.com/mrkct
Commit: f7608ba269
Pull-request: https://github.com/SerenityOS/serenity/pull/18139
Reviewed-by: https://github.com/ADKaster ✅
Reviewed-by: https://github.com/Hendiadyoin1
Reviewed-by: https://github.com/supercomputer7 ✅
2 changed files with 7 additions and 2 deletions
|
@ -79,8 +79,8 @@ nearest_power_of_2() {
|
|||
done
|
||||
echo $p
|
||||
}
|
||||
if [ "$SERENITY_ARCH" = "aarch64" ]; then
|
||||
# The Aarch64 port loads from an SD card, which must have a size that is a power of 2
|
||||
if [ "$SERENITY_ARCH" = "aarch64" ] || { [ -n "$SERENITY_USE_SDCARD" ] && [ "$SERENITY_USE_SDCARD" -eq 1 ]; }; then
|
||||
# SD cards must have a size that is a power of 2. The Aarch64 port loads from an SD card.
|
||||
DISK_SIZE_BYTES=$(nearest_power_of_2 "$DISK_SIZE_BYTES")
|
||||
fi
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue