final small changes

This commit is contained in:
baldeau 2024-03-22 01:42:58 +01:00
parent 9e98469b22
commit ddb36af696
3 changed files with 10 additions and 22 deletions

View File

@ -1,26 +1,13 @@
ROOT_DIR := $(dir $(realpath $(lastword $(MAKEFILE_LIST))))
all:
./run_crops.sh bitbake core-image-base
minimal:
./run_crops.sh bitbake core-image-minimal
full:
./run_crops.sh bitbake core-image-full-cmdline
populate:
./run_crops.sh bitbake core-image-base -c populate_sdk
flash-pi4:
sudo dd if=${ROOT_DIR}build/tmp/deploy/images/raspberrypi4-64/core-image-full-cmdline-raspberrypi4-64.rpi-sdimg of=/dev/sda
flash:
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=/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=/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=/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
flash-zero:
sudo dd if=${ROOT_DIR}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

View File

@ -44,11 +44,11 @@ MACHINE ??= "raspberrypi4-64"
# these dependencies can all be removed.
# pi4:
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"
IMAGE_INSTALL:append = " flutter-auto-service flutter-auto flutter-auto-launch flutter-pi flutter-elinux flutter-elinux-rules 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-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"
#IMAGE_INSTALL:append = " flutter-pi-service flutter-auto flutter-auto-launch flutter-pi flutter-elinux 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 flutter-user"
# needed only for flutter-auto:

View File

@ -1,5 +1,7 @@
#!/bin/sh
# source: https://gist.github.com/mickey-happygolucky/2b9671f062de558f3312f7378ed3c240
BUILD_DIR=build
usage_exit() {
@ -22,7 +24,6 @@ done
shift $((OPTIND - 1))
echo "BUILD_DIR =" "${BUILD_DIR}"
cmd="source $(pwd)/poky/oe-init-build-env ${BUILD_DIR}"
if [ $# -gt 0 ] ; then
cmd="${cmd} && $*"