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:
	sudo dd if=./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

flash-full:
	sudo dd if=./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

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-service:
	./run_crops.sh bitbake -c clean flutter-service

clean-flutter-pi:
	./run_crops.sh bitbake -c clean flutter-pi
	
clean-flutter-sdk:
	./run_crops.sh bitbake flutter-sdk-native -cdo_cleanall

clean-flutter-engine:
	./run_crops.sh bitbake flutter-engine -cdo_cleanall