Is there a reason that loader_bin.h is not included in the "source" package?
EDIT: Never mind, I see that it is generated on the fly as part of the build process. Here's what it looks like:
EDIT: Never mind, I see that it is generated on the fly as part of the build process. Here's what it looks like:
Code:
$ make
loader.bin
bin2s -a 32 data/loader.bin | powerpc-eabi-as -o loader.bin.o
echo "extern const u8" `(echo loader.bin | sed -e 's/^\([0-9]\)/_\1/' | tr . _)`"_end[];" > `(echo loader.bin | tr . _)`.h
echo "extern const u8" `(echo loader.bin | sed -e 's/^\([0-9]\)/_\1/' | tr . _)`"[];" >> `(echo loader.bin | tr . _)`.h
echo "extern const u32" `(echo loader.bin | sed -e 's/^\([0-9]\)/_\1/' | tr . _)`_size";" >> `(echo loader.bin | tr . _)`.h
main.c
linking ... boot.elf
output ... boot.dol
$ cat build/loader_bin.h
extern const u8 loader_bin_end[];
extern const u8 loader_bin[];
extern const u32 loader_bin_size;