My Marlin configs for Fabrikator Mini and CTC i3 Pro B
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

fysetc_cheetah_v20.py 331B

123456789
  1. import os
  2. Import("env")
  3. custom_ld_script = os.path.abspath("buildroot/share/PlatformIO/variants/FYSETC_CHEETAH_V20/ldscript.ld")
  4. for i, flag in enumerate(env["LINKFLAGS"]):
  5. if "-Wl,-T" in flag:
  6. env["LINKFLAGS"][i] = "-Wl,-T" + custom_ld_script
  7. elif flag == "-T":
  8. env["LINKFLAGS"][i + 1] = custom_ld_script