fxsdk: add DSP assemblers flags

This commit is contained in:
Lephenixnoir 2021-01-26 10:09:03 +01:00
parent ad5d9bdb4c
commit f5085e693d
Signed by: Lephenixnoir
GPG Key ID: 1BBA026E13FC0495
3 changed files with 6 additions and 6 deletions

View File

@ -123,18 +123,18 @@ build-cg/%.c.o: %.c
# Assembler sources
build-fx/%.s.o: %.s
@ mkdir -p $(dir $@)
$(TOOLCHAIN_FX)-gcc -c $< -o $@
$(TOOLCHAIN_FX)-gcc -c $< -o $@ -Wa,--dsp
build-cg/%.s.o: %.s
@ mkdir -p $(dir $@)
$(TOOLCHAIN_CG)-gcc -c $< -o $@
$(TOOLCHAIN_CG)-gcc -c $< -o $@ -Wa,--dsp
# Preprocessed assembler sources
build-fx/%.S.o: %.S
@ mkdir -p $(dir $@)
$(TOOLCHAIN_FX)-gcc -c $< -o $@ $(INCLUDE_FX)
$(TOOLCHAIN_FX)-gcc -c $< -o $@ $(INCLUDE_FX) -Wa,--dsp
build-cg/%.S.o: %.S
@ mkdir -p $(dir $@)
$(TOOLCHAIN_CG)-gcc -c $< -o $@ $(INCLUDE_CG)
$(TOOLCHAIN_CG)-gcc -c $< -o $@ $(INCLUDE_CG) -Wa,--dsp
# Assets
build-fx/assets/%.o: assets-fx/% $(meta-fx)

View File

@ -11,7 +11,7 @@ set(FXSDK_PLATFORM_LONG fx9860G)
set(CMAKE_C_COMPILER sh-elf-gcc)
set(CMAKE_CXX_COMPILER sh-elf-g++)
add_compile_options(-mb -ffreestanding -nostdlib)
add_compile_options(-mb -ffreestanding -nostdlib -Wa,--dsp)
add_link_options(-nostdlib)
link_libraries(-lgcc)
add_compile_definitions(TARGET_FX9860G)

View File

@ -11,7 +11,7 @@ set(FXSDK_PLATFORM_LONG fxCG50)
set(CMAKE_C_COMPILER sh-elf-gcc)
set(CMAKE_CXX_COMPILER sh-elf-g++)
add_compile_options(-m4-nofpu -mb -ffreestanding -nostdlib)
add_compile_options(-m4-nofpu -mb -ffreestanding -nostdlib -Wa,--dsp)
add_link_options(-nostdlib)
link_libraries(-lgcc)
add_compile_definitions(TARGET_FXCG50)