Initial Commit
- initial default booting image
This commit is contained in:
112
package/flutter-pi/Config.in
Normal file
112
package/flutter-pi/Config.in
Normal file
@@ -0,0 +1,112 @@
|
||||
menuconfig BR2_PACKAGE_FLUTTER_PI
|
||||
bool "flutter-pi"
|
||||
depends on BR2_PACKAGE_HOST_FLUTTER_SDK_BIN_ARCH_SUPPORTS
|
||||
depends on BR2_PACKAGE_FLUTTER_ENGINE_ARCH_SUPPORTS
|
||||
depends on BR2_HOST_GCC_AT_LEAST_5 # flutter-engine
|
||||
depends on BR2_TOOLCHAIN_GCC_AT_LEAST_5 # flutter-engine
|
||||
depends on !BR2_TOOLCHAIN_HAS_GCC_BUG_64735 # flutter-engine
|
||||
depends on BR2_TOOLCHAIN_USES_GLIBC # flutter-engine
|
||||
depends on BR2_INSTALL_LIBSTDCPP # flutter-engine
|
||||
depends on !BR2_STATIC_LIBS # flutter-engine, wayland
|
||||
depends on BR2_USE_WCHAR # flutter-engine
|
||||
depends on BR2_PACKAGE_HAS_LIBGL || BR2_PACKAGE_HAS_LIBGLES # flutter-engine
|
||||
depends on BR2_PACKAGE_HAS_LIBGBM
|
||||
depends on BR2_PACKAGE_SYSTEMD # Event loop and dbus support
|
||||
depends on BR2_PACKAGE_HAS_UDEV # libinput
|
||||
select BR2_PACKAGE_HOST_FLUTTER_SDK_BIN
|
||||
select BR2_PACKAGE_FLUTTER_ENGINE
|
||||
select BR2_PACKAGE_LIBDRM
|
||||
select BR2_PACKAGE_LIBINPUT
|
||||
select BR2_PACKAGE_LIBXKBCOMMON
|
||||
help
|
||||
A light-weight Flutter Engine Embedder. Flutter-pi also
|
||||
runs without X11, so you don't need to boot into a
|
||||
Desktop & have X11 or Wayland load up; just boot into the
|
||||
command-line.
|
||||
|
||||
Although flutter-pi is only tested on a Raspberry Pi 4
|
||||
2GB, it should work fine on other linux platforms supported
|
||||
by Flutter so long as there is support for KMS and DRI.
|
||||
|
||||
https://github.com/ardera/flutter-pi
|
||||
|
||||
if BR2_PACKAGE_FLUTTER_PI
|
||||
|
||||
comment "plugins"
|
||||
|
||||
config BR2_PACKAGE_FLUTTER_PI_CHARSET_CONVERTER_PLUGIN
|
||||
bool "charset converter"
|
||||
help
|
||||
Adds platform-side implementation of charset_converter plugin.
|
||||
|
||||
Encode and decode charsets using platform built-in converter.
|
||||
This plugin saves app package size as you don't need external
|
||||
charset maps or whole libraries like iconv.
|
||||
|
||||
https://pub.dev/packages/charset_converter
|
||||
|
||||
config BR2_PACKAGE_FLUTTER_PI_GSTREAMER_AUDIO_PLAYER_PLUGIN
|
||||
bool "gstreamer audio player"
|
||||
select BR2_PACKAGE_GSTREAMER1
|
||||
select BR2_PACKAGE_GST1_PLUGINS_BASE
|
||||
select BR2_PACKAGE_GST1_PLUGINS_BASE_PLUGIN_ALSA
|
||||
select BR2_PACKAGE_GST1_PLUGINS_BASE_PLUGIN_AUDIOCONVERT
|
||||
select BR2_PACKAGE_GST1_PLUGINS_BASE_PLUGIN_AUDIORESAMPLE
|
||||
select BR2_PACKAGE_GST1_PLUGINS_BASE_PLUGIN_VOLUME
|
||||
help
|
||||
Include the gstreamer based audio plugins in the finished
|
||||
binary.
|
||||
|
||||
config BR2_PACKAGE_FLUTTER_PI_GSTREAMER_VIDEO_PLAYER_PLUGIN
|
||||
bool "gstreamer video player"
|
||||
depends on BR2_PACKAGE_HAS_LIBGLES
|
||||
select BR2_PACKAGE_GSTREAMER1
|
||||
select BR2_PACKAGE_GST1_PLUGINS_BASE
|
||||
select BR2_PACKAGE_GST1_PLUGINS_BASE_LIB_OPENGL
|
||||
select BR2_PACKAGE_GST1_PLUGINS_BASE_LIB_OPENGL_GLES2
|
||||
select BR2_PACKAGE_GST1_PLUGINS_BASE_PLUGIN_VIDEOCONVERTSCALE
|
||||
help
|
||||
Include the gstreamer based video plugins in the finished
|
||||
binary. Allows for more stable, hardware accelerated
|
||||
video playback in flutter using gstreamer.
|
||||
|
||||
comment "gstreamer video player plugin needs an OpenGL ES backend"
|
||||
depends on !BR2_PACKAGE_HAS_LIBGLES
|
||||
|
||||
config BR2_PACKAGE_FLUTTER_PI_RAW_KEYBOARD_PLUGIN
|
||||
bool "raw keyboard"
|
||||
help
|
||||
Include the raw keyboard plugin in the finished binary.
|
||||
Enables raw keycode listening in flutter via the flutter
|
||||
RawKeyboard interface.
|
||||
|
||||
config BR2_PACKAGE_FLUTTER_PI_TEXT_INPUT_PLUGIN
|
||||
bool "text input"
|
||||
help
|
||||
Include the text input plugin in the finished binary.
|
||||
Enables text input (to flutter text fields, for example)
|
||||
via attached keyboards.
|
||||
|
||||
endif
|
||||
|
||||
comment "flutter-pi needs a glibc toolchain w/ wchar, C++, gcc >= 5, dynamic library, host gcc >= 5"
|
||||
depends on BR2_PACKAGE_HOST_FLUTTER_SDK_BIN_ARCH_SUPPORTS
|
||||
depends on BR2_PACKAGE_FLUTTER_ENGINE_ARCH_SUPPORTS
|
||||
depends on !BR2_TOOLCHAIN_USES_GLIBC || !BR2_INSTALL_LIBSTDCPP \
|
||||
|| !BR2_TOOLCHAIN_GCC_AT_LEAST_5 || BR2_STATIC_LIBS \
|
||||
|| !BR2_USE_WCHAR || !BR2_HOST_GCC_AT_LEAST_5
|
||||
|
||||
comment "flutter-pi needs a toolchain not affected by GCC bug 64735"
|
||||
depends on BR2_PACKAGE_HOST_FLUTTER_SDK_BIN_ARCH_SUPPORTS
|
||||
depends on BR2_PACKAGE_FLUTTER_ENGINE_ARCH_SUPPORTS
|
||||
depends on BR2_TOOLCHAIN_HAS_GCC_BUG_64735
|
||||
|
||||
comment "flutter-pi needs an OpenGL or OpenGLES backend"
|
||||
depends on BR2_PACKAGE_HOST_FLUTTER_SDK_BIN_ARCH_SUPPORTS
|
||||
depends on BR2_PACKAGE_FLUTTER_ENGINE_ARCH_SUPPORTS
|
||||
depends on !BR2_PACKAGE_HAS_LIBGL && !BR2_PACKAGE_HAS_LIBGLES
|
||||
|
||||
comment "flutter-pi needs GBM, systemd, and udev"
|
||||
depends on !BR2_PACKAGE_HAS_LIBGBM || \
|
||||
!BR2_PACKAGE_SYSTEMD || \
|
||||
!BR2_PACKAGE_HAS_UDEV
|
||||
3
package/flutter-pi/flutter-pi.hash
Normal file
3
package/flutter-pi/flutter-pi.hash
Normal file
@@ -0,0 +1,3 @@
|
||||
# Locally calculated
|
||||
sha256 b30e8b67109a81a7c2a2bbec3d82491b69e827a1eb84c529f3e31691c19671d5 flutter-pi-af8c8d66c5f40a6aaf366882bb9ca525be9c600a-git4.tar.gz
|
||||
sha256 b34df9d3e1b4e5d1ba70b1740ec74b69f1189b44efd0c96b898b074ef8db1c70 LICENSE
|
||||
98
package/flutter-pi/flutter-pi.mk
Normal file
98
package/flutter-pi/flutter-pi.mk
Normal file
@@ -0,0 +1,98 @@
|
||||
################################################################################
|
||||
#
|
||||
# flutter-pi
|
||||
#
|
||||
################################################################################
|
||||
|
||||
FLUTTER_PI_VERSION = af8c8d66c5f40a6aaf366882bb9ca525be9c600a
|
||||
FLUTTER_PI_SITE = https://github.com/ardera/flutter-pi.git
|
||||
FLUTTER_PI_SITE_METHOD = git
|
||||
FLUTTER_PI_LICENSE = MIT
|
||||
FLUTTER_PI_LICENSE_FILES = LICENSE
|
||||
FLUTTER_PI_DEPENDENCIES = \
|
||||
flutter-engine \
|
||||
libinput \
|
||||
libxkbcommon \
|
||||
systemd
|
||||
|
||||
FLUTTER_PI_CONF_OPTS = \
|
||||
-DDEBUG_DRM_PLANE_ALLOCATIONS=OFF \
|
||||
-DDUMP_ENGINE_LAYERS=OFF \
|
||||
-DENABLE_ASAN=OFF \
|
||||
-DENABLE_MTRACE=OFF \
|
||||
-DENABLE_SOFTWARE=OFF \
|
||||
-DENABLE_TESTS=OFF \
|
||||
-DENABLE_TSAN=OFF \
|
||||
-DENABLE_UBSAN=OFF \
|
||||
-DFILESYSTEM_LAYOUT=meta-flutter \
|
||||
-DLINT_EGL_HEADERS=OFF \
|
||||
-DTRY_BUILD_GSTREAMER_AUDIO_PLAYER_PLUGIN=OFF \
|
||||
-DTRY_BUILD_GSTREAMER_VIDEO_PLAYER_PLUGIN=OFF \
|
||||
-DTRY_ENABLE_OPENGL=OFF \
|
||||
-DTRY_ENABLE_SESSION_SWITCHING=OFF \
|
||||
-DTRY_ENABLE_VULKAN=OFF \
|
||||
-DVULKAN_DEBUG="OFF" \
|
||||
-DUSE_LEGACY_KMS=OFF \
|
||||
-DWARN_MISSING_FIELD_INITIALIZERS=OFF \
|
||||
-DBUILD_SENTRY_PLUGIN=OFF
|
||||
|
||||
ifeq ($(BR2_ENABLE_LTO),y)
|
||||
FLUTTER_PI_CONF_OPTS += -DLTO=ON
|
||||
else
|
||||
FLUTTER_PI_CONF_OPTS += -DLTO=OFF
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_FLUTTER_PI_CHARSET_CONVERTER_PLUGIN),y)
|
||||
FLUTTER_PI_CONF_OPTS += -DBUILD_CHARSET_CONVERTER_PLUGIN=ON
|
||||
else
|
||||
FLUTTER_PI_CONF_OPTS += -DBUILD_CHARSET_CONVERTER_PLUGIN=OFF
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_FLUTTER_PI_GSTREAMER_AUDIO_PLAYER_PLUGIN),y)
|
||||
FLUTTER_PI_DEPENDENCIES += gstreamer1 gst1-plugins-base
|
||||
FLUTTER_PI_CONF_OPTS += -DBUILD_GSTREAMER_AUDIO_PLAYER_PLUGIN=ON
|
||||
else
|
||||
FLUTTER_PI_CONF_OPTS += -DBUILD_GSTREAMER_AUDIO_PLAYER_PLUGIN=OFF
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_FLUTTER_PI_GSTREAMER_VIDEO_PLAYER_PLUGIN),y)
|
||||
FLUTTER_PI_DEPENDENCIES += gstreamer1 gst1-plugins-base
|
||||
FLUTTER_PI_CONF_OPTS += -DBUILD_GSTREAMER_VIDEO_PLAYER_PLUGIN=ON
|
||||
else
|
||||
FLUTTER_PI_CONF_OPTS += -DBUILD_GSTREAMER_VIDEO_PLAYER_PLUGIN=OFF
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_FLUTTER_PI_RAW_KEYBOARD_PLUGIN),y)
|
||||
FLUTTER_PI_CONF_OPTS += -DBUILD_RAW_KEYBOARD_PLUGIN=ON
|
||||
else
|
||||
FLUTTER_PI_CONF_OPTS += -DBUILD_RAW_KEYBOARD_PLUGIN=OFF
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_FLUTTER_PI_TEXT_INPUT_PLUGIN),y)
|
||||
FLUTTER_PI_DEPENDENCIES += libinput libxkbcommon
|
||||
FLUTTER_PI_CONF_OPTS += -DBUILD_TEXT_INPUT_PLUGIN=ON
|
||||
else
|
||||
FLUTTER_PI_CONF_OPTS += -DBUILD_TEXT_INPUT_PLUGIN=OFF
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_MESA3D_VULKAN_DRIVER)$(BR2_PACKAGE_VULKAN_LOADER),yy)
|
||||
FLUTTER_PI_DEPENDENCIES += mesa3d vulkan-loader
|
||||
FLUTTER_PI_CONF_OPTS += -DENABLE_VULKAN=ON
|
||||
else
|
||||
FLUTTER_PI_CONF_OPTS += -DENABLE_VULKAN=OFF
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_HAS_LIBGLES),y)
|
||||
FLUTTER_PI_CONF_OPTS += -DENABLE_OPENGL=ON
|
||||
else
|
||||
FLUTTER_PI_CONF_OPTS += -DENABLE_OPENGL=OFF
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_SEATD),y)
|
||||
FLUTTER_PI_DEPENDENCIES += seatd
|
||||
FLUTTER_PI_CONF_OPTS += -DENABLE_SESSION_SWITCHING=ON
|
||||
else
|
||||
FLUTTER_PI_CONF_OPTS += -DENABLE_SESSION_SWITCHING=OFF
|
||||
endif
|
||||
|
||||
$(eval $(cmake-package))
|
||||
Reference in New Issue
Block a user