some misc changes

This commit is contained in:
PoliEcho 2025-08-19 19:30:50 +02:00
parent 83df1a6048
commit 09ff9f8f19
4 changed files with 20 additions and 8 deletions

View File

@ -3,15 +3,26 @@
## How to build ## How to build
> [!IMPORTANT]
> **you will need these programs to compile!**
> git
> gcc
> xxd
> ImageMagick (if you changed the firework image)
```bash ```bash
git submodule update --init --recursive git submodule update --init --recursive
cd edk2 cd edk2
source edksetup.sh source edksetup.sh
make -C BaseTools make -C BaseTools
cd .. cd ..
./build.sh ./build.sh # to build for diferent arch than X64 change TARGET_ARCH in build.sh
``` ```
> [!WARNING]
> **compilation for AARCH64**
> does not work
> for some unknown reason
> i haven't tryed other arches than AMD64, IA32 and AARCH64
## How to use ## How to use
### Download release ### Download release
@ -44,7 +55,7 @@ copy ```edk2/Build/UEFI_fireworks/DEBUG_GCC5/<YOUR ARCH>/UEFI_fireworks.efi``` t
| ------------------- | ------------------------ | | ------------------- | ------------------------ |
| **x86_64 (AMD64)** | `/EFI/BOOT/BOOTX64.EFI` | | **x86_64 (AMD64)** | `/EFI/BOOT/BOOTX64.EFI` |
| **x86 (IA32)** | `/EFI/BOOT/BOOTIA32.EFI` | | **x86 (IA32)** | `/EFI/BOOT/BOOTIA32.EFI` |
| **ARM64 (AArch64)** | `/EFI/BOOT/BOOTAA64.EFI` | | **ARM64 (AARCH64)** | `/EFI/BOOT/BOOTAA64.EFI` |
| **ARM (32-bit)** | `/EFI/BOOT/BOOTARM.EFI` | | **ARM (32-bit)** | `/EFI/BOOT/BOOTARM.EFI` |
## Controling ## Controling

View File

@ -4,7 +4,7 @@
PLATFORM_VERSION = 1.0 PLATFORM_VERSION = 1.0
DSC_SPECIFICATION = 0x00010005 DSC_SPECIFICATION = 0x00010005
OUTPUT_DIRECTORY = Build/UEFI_fireworks OUTPUT_DIRECTORY = Build/UEFI_fireworks
SUPPORTED_ARCHITECTURES = X64 SUPPORTED_ARCHITECTURES = X64|IA32|ARM|AARCH64|RISCV64
BUILD_TARGETS = DEBUG|RELEASE BUILD_TARGETS = DEBUG|RELEASE
SKUID_IDENTIFIER = DEFAULT SKUID_IDENTIFIER = DEFAULT

View File

@ -1,11 +1,12 @@
#!/bin/bash #!/bin/bash
export PACKAGES_PATH=$PWD:$PWD/edk2 export PACKAGES_PATH=$PWD:$PWD/edk2
export TARGET_ARCH=X64
magick assets/rocket_orig.bmp -type TrueColor -define bmp:format=bmp3 -compress None assets/rocket.bmp magick assets/rocket_orig.bmp -type TrueColor -define bmp:format=bmp3 -compress None assets/rocket.bmp
xxd -i assets/rocket.bmp > src/UEFI_fireworks/rocket.c xxd -i assets/rocket.bmp > src/UEFI_fireworks/rocket.c
if [ "$1" == "debug" ]; then if [ "$1" == "debug" ]; then
build -a X64 -t GCC5 -p UEFI_fireworks.dsc -b DEBUG build -a $TARGET_ARCH -t GCC5 -p UEFI_fireworks.dsc -b DEBUG
else else
build -a X64 -t GCC5 -p UEFI_fireworks.dsc -b RELEASE build -a $TARGET_ARCH -t GCC5 -p UEFI_fireworks.dsc -b RELEASE
fi fi
mkdir -p build/EFI/BOOT/ mkdir -p build/EFI/BOOT/
if [ "$1" == "debug" ]; then if [ "$1" == "debug" ]; then

View File

@ -52,8 +52,8 @@ EFI_STATUS EFIAPI UefiMain(IN EFI_HANDLE imgHandle,
return EFI_NOT_FOUND; return EFI_NOT_FOUND;
} }
framebuffer = framebuffer = (EFI_GRAPHICS_OUTPUT_BLT_PIXEL *)(UINTN)
(EFI_GRAPHICS_OUTPUT_BLT_PIXEL *)GraphicsOutput->Mode->FrameBufferBase; GraphicsOutput->Mode->FrameBufferBase;
init_rng(); init_rng();
init_rocket_blt(); init_rocket_blt();