Skip to content

Commit 64a747e

Browse files
committed
Project: compile BooterShim when compiling the project
1 parent 85cea81 commit 64a747e

File tree

6 files changed

+11
-0
lines changed

6 files changed

+11
-0
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
BootShim/BootShim.bin
2+
BooterShim/*bin
3+
BooterShim/*.elf
24
ImageResources/Leo/nbgen
35
ImageResources/Leo/yangbin
46
ImageResources/Leo/*.nbh
57
ImageResources/Leo/os.nb
68
ImageResources/Leo/LEOIMG.nbh
9+
ImageResources/Leo/BooterShim.bin
710
ImageResources/Leo/*.bin
811
ImageResources/Leo/*.img
912
ImageResources/Schubert/*.bin

BooterShim/BooterShim.bin

-112 Bytes
Binary file not shown.

BooterShim/BooterShim.elf

-824 Bytes
Binary file not shown.

build.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ function _clean() {
4545
if [ -d workspace/Build ]; then
4646
rm -r workspace/Build
4747
fi
48+
if [ -f BooterShim/BooterShim.bin ]; then
49+
rm BooterShim/BooterShim.bin
50+
fi
4851
done
4952
}
5053

build_boot_images.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#!/bin/bash
22
if [ $1 == 'Leo' ]; then
33
cat BootShim/BootShim.bin workspace/Build/HtcLeo/DEBUG_GCC/FV/QSD8250_UEFI.fd >>ImageResources/Leo/bootpayload.bin
4+
mv BooterShim/BooterShim.bin ImageResources/Leo
45

56
mkbootimg --kernel ImageResources/Leo/bootpayload.bin --base 0x11800000 --kernel_offset 0x00008000 -o ImageResources/Leo/uefi.img
67

build_boot_shim.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,7 @@ cd BootShim
33
make UEFI_BASE=0x2C000000 UEFI_SIZE=0x00100000
44
rm BootShim.elf
55
cd ..
6+
cd BooterShim
7+
make
8+
rm BooterShim.elf
9+
cd ..

0 commit comments

Comments
 (0)