Browse Source

truly support custom toolchains (almost)

compat
Lephe 1 month ago
parent
commit
4a8ba82fab
Signed by: Lephe <sebastien.michelland@protonmail.com> GPG Key ID: 1BBA026E13FC0495
2 changed files with 7 additions and 12 deletions
  1. 0
    8
      configure
  2. 7
    4
      make/Makefile

+ 0
- 8
configure View File

@@ -64,10 +64,6 @@ Size limits:
--atexit-max=NUM Number of exit handlers in atexit()'s array [16]

Deprecated options (to be removed):
-extended-libc Provide a few C99 headers (in the future, refer to the
newlib port by Memallox's for the standard library)
-timer-slots=<n> Number of virtual timer slots (this feature will be
moved to an independent library) [16]
-events-queue-size=<n>
Size of event queue (this mechanism is likely to
disappear in future versions) [64]
@@ -135,10 +131,6 @@ for arg; do case "$arg" in
echo "error: '$arg' expects a value (see '$0 --help')";
fail=true;;

-extended-libc)
echo "warning: support for '-extended-libc' has been removed";;
-timer-slots=*)
echo "warning: support for '-timer-slots' has been removed";;
-events-queue-size=*)
echo "warning: support for '-events-queue-size' has been removed";;


+ 7
- 4
make/Makefile View File

@@ -17,11 +17,12 @@ endif
include $(CONFIG)

# Machine flags, defaults are provided for common toolchains

ifeq "$(CONFIG.TOOLCHAIN)" "sh3eb-elf"
machine := -m3 -mb
machine ?= -m3 -mb
endif
ifeq "$(CONFIG.TOOLCHAIN)" "sh4eb-elf"
machine := -m4-nofpu -mb
machine ?= -m4-nofpu -mb
endif

# Compiler flags, assembler flags, dependency generation, archiving
@@ -106,11 +107,13 @@ src/%.c.o: ../src/%.c src/%.c.d
# Special files
$(call src2obj,../src/font5x7.png): ../src/font5x7.png
@ mkdir -p $(dir $@)
$(call cmd_m,fxconv,font5x7.png)$(conv) -f $< -o $@ name:gint_font5x7 \
$(call cmd_m,fxconv,font5x7.png)$(conv) -f $< -o $@ \
--fx --toolchain=$(CONFIG.TOOLCHAIN) name:gint_font5x7 \
charset:ascii grid.size:5x7 grid.padding:1 grid.border:0
$(call src2obj,../src/font8x9.png): ../src/font8x9.png
@ mkdir -p $(dir $@)
$(call cmd_m,fxconv,font8x9.png)$(conv) -f $< -o $@ name:gint_font8x9 \
$(call cmd_m,fxconv,font8x9.png)$(conv) -f $< -o $@ \
--cg --toolchain=$(CONFIG.TOOLCHAIN) name:gint_font8x9 \
charset:print grid.size:8x11 grid.padding:1 grid.border:0 \
proportional:true


Loading…
Cancel
Save