aboutsummaryrefslogtreecommitdiff
path: root/freebios/Makefile
diff options
context:
space:
mode:
authorAdrian Siekierka <kontakt@asie.pl>2021-10-02 12:06:22 +0200
committerGitHub <noreply@github.com>2021-10-02 12:06:22 +0200
commitb7992cc084dbf0c3f879797d3a879999bb6f0591 (patch)
tree8636926c8b951c10b8bd5e3258649ff7637c14bf /freebios/Makefile
parent243077722b4c292c424de680c13eacf9296fe552 (diff)
Fallback to FreeBIOS when BIOS files are not found. (v2) (#1174)
* Fallback to FreeBIOS when BIOS files are not found. * Add sources of drastic bios files. * Move FreeBIOS/external BIOS choice to configuration option/checkbox. * Fix indentation Co-authored-by: Filippo Scognamiglio <flscogna@gmail.com> Co-authored-by: Filippo Scognamiglio <filippo.scognamiglio@felgo.com>
Diffstat (limited to 'freebios/Makefile')
-rwxr-xr-xfreebios/Makefile17
1 files changed, 17 insertions, 0 deletions
diff --git a/freebios/Makefile b/freebios/Makefile
new file mode 100755
index 0000000..588b4fe
--- /dev/null
+++ b/freebios/Makefile
@@ -0,0 +1,17 @@
+TC_PREFIX = /home/exophase/pandora-dev
+PREFIX = $(TC_PREFIX)/arm-2011.03
+AS = $(PREFIX)/bin/arm-none-linux-gnueabi-gcc
+OBJCOPY = $(PREFIX)/bin/arm-none-linux-gnueabi-objcopy
+
+BIN_ARM7 = drastic_bios_arm7
+BIN_ARM9 = drastic_bios_arm9
+
+all:
+ $(AS) bios_common.S -DBIOS_ARM7 -march=armv4 -c -Wa,-asl=$(BIN_ARM7).list -o $(BIN_ARM7).o
+ $(AS) bios_common.S -DBIOS_ARM9 -march=armv5 -c -Wa,-asl=$(BIN_ARM9).list -o $(BIN_ARM9).o
+ $(OBJCOPY) -O binary $(BIN_ARM7).o $(BIN_ARM7).bin
+ $(OBJCOPY) -O binary $(BIN_ARM9).o $(BIN_ARM9).bin
+
+clean:
+ rm -f $(BIN_ARM7).bin $(BIN_ARM7).o $(BIN_ARM9).bin $(BIN_ARM9).o
+