This commit is contained in:
fabian 2024-03-09 14:34:52 +01:00
parent 5fc57a6c60
commit 16d0b96fc1
2 changed files with 31 additions and 21 deletions

View File

@ -11,16 +11,16 @@ populate:
./run_crops.sh bitbake core-image-base -c populate_sdk
flash:
sudo dd if=./build/tmp/deploy/images/raspberrypi4-64/core-image-minimal-raspberrypi4-64.rpi-sdimg of=/dev/sda
sudo dd if=/home/fabian/Desktop/yocto/yocto-build/build/tmp/deploy/images/raspberrypi4-64/core-image-minimal-raspberrypi4-64.rpi-sdimg of=/dev/sda
flash-core:
sudo dd if=./build/tmp/deploy/images/raspberrypi4-64/core-image-base-raspberrypi4-64.rpi-sdimg of=/dev/sda
sudo dd if=/home/fabian/Desktop/yocto/yocto-build/build/tmp/deploy/images/raspberrypi4-64/core-image-base-raspberrypi4-64.rpi-sdimg of=/dev/sda
flash-full:
sudo dd if=./build/tmp/deploy/images/raspberrypi4-64/core-image-full-cmdline-raspberrypi4-64.rpi-sdimg of=/dev/sda
sudo dd if=/home/fabian/Desktop/yocto/yocto-build/build/tmp/deploy/images/raspberrypi4-64/core-image-full-cmdline-raspberrypi4-64.rpi-sdimg of=/dev/sda
flash-full-zero:
sudo dd if=./build/tmp/deploy/images/raspberrypi0-2w-64/core-image-full-cmdline-raspberrypi0-2w-64.rpi-sdimg of=/dev/sda
sudo dd if=/home/fabian/Desktop/yocto/yocto-build/build/tmp/deploy/images/raspberrypi0-2w-64/core-image-full-cmdline-raspberrypi0-2w-64.rpi-sdimg of=/dev/sda
clean-all:
./run_crops.sh bitbake -c cleanall core-image-full-cmdline
@ -28,18 +28,9 @@ clean-all:
clean-flutter-elinux:
./run_crops.sh bitbake -c clean flutter-elinux
clean-flutter-pi-service:
./run_crops.sh bitbake -c clean flutter-pi-service
clean-flutter-auto-service:
./run_crops.sh bitbake -c clean flutter-auto-service
clean-flutter-pi:
./run_crops.sh bitbake -c clean flutter-pi
clean-flutter-user:
./run_crops.sh bitbake -c clean flutter-user
clean-flutter-sdk:
./run_crops.sh bitbake flutter-sdk-native -cdo_cleanall

View File

@ -12,29 +12,48 @@
# the option is a question of removing the # character and making any change to the
# variable as required.
# manually set how many cores should be used to build
# Manually set how many cores should be used to build
# by default bitbake will use as many threads as available on the system
#BB_NUMBER_THREADS = "16"
#PARALLEL_MAKE = "-j 16"
# Machine Selection
# ***** MACHINE SELECTION *****
# The build was fully tested for a Raspberry Pi 4 and Pi 0 2W.
# Select one of these two or add a custom one.
# -> there are also meta-raspberry specific configurations further below
# -> there are 2 IMAGE_INSTALL examples for the Pi 4 and Pi 0 2W,
# use the IMAGE_INSTALL that fits to the selected MACHINE.
MACHINE ??= "raspberrypi4-64"
#MACHINE ??= "raspberrypi0-2w-64"
##!! use flutter-pi-service or flutter-auto-service
## ***** IMPORTANT *****
## Use flutter-pi-service or flutter-auto-service
# to either autolaunch the flutter-elinux demo app
# with flutter-pi or flutter-auto
# ONLY USE ONE OF THE TWO SERVICES or none
# to not launch it automatically for debug purposes
# In the following example flutter-auto-service is used,
# it can be replaced with flutter-pi-service to autolaunch
# flutter-pi. The demo IMAGE_INSTALL also contains all
# necessary dependencies for both flutter-pi and flutter-auto.
# Only flutter-auto needs: flutter-auto-launch
# and in CORE_IMAGE_EXTRA: wayland, cage
# and in DISTRO_FEATURES: wayland
# If you only want to use flutter-pi
# these dependencies can all be removed.
# pi4:
IMAGE_INSTALL:append = " flutter-auto flutter-auto-launch flutter-pi flutter-elinux flutter-auto-service my-rules flutter-libraries sudo linux-firmware-rpidistro-bcm43430 linux-firmware-bcm43455 kernel-image kernel-devicetree liberation-fonts networkmanager dhcpcd iptables iw linux-firmware ca-certificates gstreamer1.0-rtsp-server gstreamer1.0 gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly gstreamer1.0-libav libinput libxkbcommon tzdata alsa-utils alsa-lib bcm2835-dev flutter-user"
IMAGE_INSTALL:append = " flutter-auto-service flutter-auto flutter-auto-launch flutter-pi flutter-elinux flutter-elinux-rules flutter-libraries sudo linux-firmware-rpidistro-bcm43430 linux-firmware-bcm43455 kernel-image kernel-devicetree liberation-fonts networkmanager dhcpcd iptables iw linux-firmware ca-certificates gstreamer1.0-rtsp-server gstreamer1.0 gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly gstreamer1.0-libav libinput libxkbcommon tzdata alsa-utils alsa-lib bcm2835-dev flutter-user"
# pi 0 w2:
#IMAGE_INSTALL:append = " flutter-auto flutter-auto-launch flutter-pi flutter-elinux flutter-auto-service flutter-libraries sudo linux-firmware-rpidistro-bcm43436s linux-firmware-bcm43455 kernel-image kernel-devicetree liberation-fonts networkmanager dhcpcd iptables iw linux-firmware ca-certificates gstreamer1.0-rtsp-server gstreamer1.0 gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly gstreamer1.0-libav libinput libxkbcommon tzdata alsa-utils alsa-lib bcm2835-dev"
#IMAGE_INSTALL:append = " flutter-auto-service flutter-auto flutter-auto-launch flutter-pi flutter-elinux flutter-libraries sudo linux-firmware-rpidistro-bcm43436s linux-firmware-bcm43455 kernel-image kernel-devicetree liberation-fonts networkmanager dhcpcd iptables iw linux-firmware ca-certificates gstreamer1.0-rtsp-server gstreamer1.0 gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly gstreamer1.0-libav libinput libxkbcommon tzdata alsa-utils alsa-lib bcm2835-dev"
# needed only for flutter-auto:
CORE_IMAGE_EXTRA_INSTALL += "wayland cage"
# needed for gstreamer-plugins-ugly
LICENSE_FLAGS_ACCEPTED = "commercial"