From ddb36af6963036b544ce6bee10e82e1d097bbfa6 Mon Sep 17 00:00:00 2001 From: baldeau Date: Fri, 22 Mar 2024 01:42:58 +0100 Subject: [PATCH] final small changes --- Makefile | 25 ++++++------------------- build/conf/local.conf | 4 ++-- run_crops.sh | 3 ++- 3 files changed, 10 insertions(+), 22 deletions(-) diff --git a/Makefile b/Makefile index 12af8bd..fe8b4d5 100644 --- a/Makefile +++ b/Makefile @@ -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 diff --git a/build/conf/local.conf b/build/conf/local.conf index 3de58e7..48d9cfc 100644 --- a/build/conf/local.conf +++ b/build/conf/local.conf @@ -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: diff --git a/run_crops.sh b/run_crops.sh index 75cc4b8..5ff4daa 100755 --- a/run_crops.sh +++ b/run_crops.sh @@ -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} && $*"