From 16d0b96fc19f0cfb1f5f3d2ef3c3c1059e3731f0 Mon Sep 17 00:00:00 2001 From: fabian Date: Sat, 9 Mar 2024 14:34:52 +0100 Subject: [PATCH] finalize --- Makefile | 19 +++++-------------- build/conf/local.conf | 33 ++++++++++++++++++++++++++------- 2 files changed, 31 insertions(+), 21 deletions(-) diff --git a/Makefile b/Makefile index 8bb63d0..12af8bd 100644 --- a/Makefile +++ b/Makefile @@ -11,35 +11,26 @@ 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 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 diff --git a/build/conf/local.conf b/build/conf/local.conf index f86eaa8..3de58e7 100644 --- a/build/conf/local.conf +++ b/build/conf/local.conf @@ -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" @@ -300,4 +319,4 @@ CONF_VERSION = "2" # set output file format IMAGE_FSTYPES = "ext4 rpi-sdimg" -SDIMG_ROOTFS_TYPE = "ext4" +SDIMG_ROOTFS_TYPE = "ext4" \ No newline at end of file