application.fam 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. App(
  2. appid="upython",
  3. name="uPython",
  4. apptype=FlipperAppType.EXTERNAL,
  5. entry_point="upython",
  6. stack_size=4 * 1024,
  7. fap_category="Tools",
  8. fap_version="1.2",
  9. fap_description="Compile and execute MicroPython scripts",
  10. fap_icon="icon.png",
  11. fap_icon_assets="images",
  12. fap_author="Oliver Fabel",
  13. fap_file_assets="examples",
  14. fap_weburl="https://github.com/ofabel/mp-flipper",
  15. sources=[
  16. "*.c*",
  17. "!./lib/micropython",
  18. "!./lib/micropython-port",
  19. "!./docs/pages",
  20. "!./flipperzero",
  21. "!./venv",
  22. "!./dist",
  23. ],
  24. fap_private_libs=[
  25. Lib(
  26. name="micropython",
  27. cflags=[
  28. "-Wno-error",
  29. "-w",
  30. #
  31. # required for floating point support
  32. #
  33. "-mcpu=cortex-m4",
  34. "-mfloat-abi=hard",
  35. "-mfpu=fpv4-sp-d16",
  36. "-mthumb",
  37. "-fsingle-precision-constant",
  38. "-fno-math-errno",
  39. ],
  40. cincludes=["."]
  41. ),
  42. Lib(
  43. name="micropython-port",
  44. cflags=[
  45. "-Wno-error",
  46. "-w",
  47. #
  48. # required for floating point support
  49. #
  50. "-mcpu=cortex-m4",
  51. "-mfloat-abi=hard",
  52. "-mfpu=fpv4-sp-d16",
  53. "-mthumb",
  54. "-fsingle-precision-constant",
  55. "-fno-math-errno",
  56. ],
  57. cincludes=["."]
  58. ),
  59. ]
  60. )