application.fam 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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.8",
  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. "!./flipperzero",
  20. "!./node_modules",
  21. "!./examples",
  22. "!./assets",
  23. "!./docs",
  24. "!./venv",
  25. "!./dist",
  26. ],
  27. fap_private_libs=[
  28. Lib(
  29. name="micropython",
  30. cflags=[
  31. "-Wno-error",
  32. "-w",
  33. #
  34. # required for floating point support
  35. #
  36. "-mcpu=cortex-m4",
  37. "-mfloat-abi=hard",
  38. "-mfpu=fpv4-sp-d16",
  39. "-mthumb",
  40. "-fsingle-precision-constant",
  41. "-fno-math-errno",
  42. ],
  43. cincludes=["."]
  44. ),
  45. Lib(
  46. name="micropython-port",
  47. cflags=[
  48. "-Wno-error",
  49. "-w",
  50. #
  51. # required for floating point support
  52. #
  53. "-mcpu=cortex-m4",
  54. "-mfloat-abi=hard",
  55. "-mfpu=fpv4-sp-d16",
  56. "-mthumb",
  57. "-fsingle-precision-constant",
  58. "-fno-math-errno",
  59. ],
  60. cincludes=["."]
  61. ),
  62. ]
  63. )