Remove image build function from makefile, remove flashing from default action

This commit is contained in:
Renze Nicolai 2022-06-16 20:59:40 +02:00
parent b19802a4e3
commit 16bb449790

View file

@ -4,9 +4,9 @@ IDF_PATH ?= $(shell pwd)/esp-idf
IDF_EXPORT_QUIET ?= 0
SHELL := /usr/bin/env bash
.PHONY: prepare clean build flash erase monitor menuconfig image
.PHONY: prepare clean build flash erase monitor menuconfig
all: prepare build flash
all: prepare build
prepare:
git submodule update --init --recursive
@ -29,9 +29,3 @@ monitor:
menuconfig:
source "$(IDF_PATH)/export.sh" && idf.py menuconfig
image:
cd "$(BUILDDIR)"; dd if=/dev/zero bs=1M count=16 of=flash.bin
cd "$(BUILDDIR)"; dd if=bootloader/bootloader.bin bs=1 seek=4096 of=flash.bin conv=notrunc
cd "$(BUILDDIR)"; dd if=partition_table/partition-table.bin bs=1 seek=36864 of=flash.bin conv=notrunc
cd "$(BUILDDIR)"; dd if=main.bin bs=1 seek=65536 of=flash.bin conv=notrunc