application.fam 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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.0",
  9. fap_description="Compile and execute MicroPython scripts",
  10. fap_icon="icon.png",
  11. fap_author="Oliver Fabel",
  12. fap_file_assets="examples",
  13. fap_weburl="https://github.com/ofabel/mp-flipper",
  14. sources=[
  15. "*.c*",
  16. "!./lib/micropython",
  17. "!./lib/micropython-port",
  18. ],
  19. fap_private_libs=[
  20. Lib(
  21. name="micropython",
  22. cflags=[
  23. "-Wno-error",
  24. "-w",
  25. #
  26. # required for floating point support
  27. #
  28. "-mcpu=cortex-m4",
  29. "-mfloat-abi=hard",
  30. "-mfpu=fpv4-sp-d16",
  31. "-mthumb",
  32. "-fsingle-precision-constant",
  33. "-fno-math-errno",
  34. ],
  35. cincludes=["."]
  36. ),
  37. Lib(
  38. name="micropython-port",
  39. cflags=[
  40. "-Wno-error",
  41. "-w",
  42. #
  43. # required for floating point support
  44. #
  45. "-mcpu=cortex-m4",
  46. "-mfloat-abi=hard",
  47. "-mfpu=fpv4-sp-d16",
  48. "-mthumb",
  49. "-fsingle-precision-constant",
  50. "-fno-math-errno",
  51. ],
  52. cincludes=["."]
  53. ),
  54. ]
  55. )