Fix the libcompiler_rt path.
This commit is contained in:
parent
1c1c5bcbda
commit
83b2581331
|
@ -15,6 +15,7 @@ import struct
|
|||
import shutil
|
||||
|
||||
from litex.build.tools import write_to_file
|
||||
from litex.data.find import find_data
|
||||
from litex.soc.integration import export, soc_core
|
||||
|
||||
__all__ = ["soc_software_packages", "soc_directory",
|
||||
|
@ -100,6 +101,8 @@ class Builder:
|
|||
exec_profiles["EXECUTE_IN_PLACE"] = "1"
|
||||
for k, v in exec_profiles.items():
|
||||
define(k, v)
|
||||
define(
|
||||
"COMPILER_RT_DIRECTORY", find_data("software", "compiler_rt"))
|
||||
define("SOC_DIRECTORY", soc_directory)
|
||||
variables_contents.append("export BUILDINC_DIRECTORY\n")
|
||||
define("BUILDINC_DIRECTORY", self.include_dir)
|
||||
|
|
|
@ -23,7 +23,7 @@ libcompiler_rt.a: $(OBJECTS)
|
|||
mulsi3.o: $(SOC_DIRECTORY)/software/libcompiler_rt/mulsi3.c
|
||||
$(compile)
|
||||
|
||||
%.o: $(SOC_DIRECTORY)/software/compiler_rt/lib/builtins/%.c
|
||||
%.o: $(COMPILER_RT_DIRECTORY)/lib/builtins/%.c
|
||||
$(compile)
|
||||
|
||||
.PHONY: all clean
|
||||
|
|
Loading…
Reference in New Issue