Fork of the espurna firmware for `mhsw` switches
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.

10 lines
459 B

  1. def app_inject_flags(projenv):
  2. # in theory, could be something different from a single cppdefine, keeping separate from flags below
  3. board = projenv.get("ESPURNA_BOARD", "")
  4. if board:
  5. projenv.Append(CPPDEFINES=[board])
  6. # only CPPDEFINES make sense here, since we should not change any others
  7. flags = projenv.get("ESPURNA_FLAGS", "")
  8. if flags:
  9. projenv.MergeFlags({"CPPDEFINES": projenv.ParseFlags(flags)["CPPDEFINES"]})