Merge pull request #2 from badgeteam/makefile

Remove image build function from makefile, remove flashing from defau…
This commit is contained in:
Robot 2022-06-16 21:48:21 +02:00 committed by GitHub
commit bd6b610b66
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4,9 +4,9 @@ IDF_PATH ?= $(shell pwd)/esp-idf
IDF_EXPORT_QUIET ?= 0 IDF_EXPORT_QUIET ?= 0
SHELL := /usr/bin/env bash 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: prepare:
git submodule update --init --recursive git submodule update --init --recursive
@ -29,9 +29,3 @@ monitor:
menuconfig: menuconfig:
source "$(IDF_PATH)/export.sh" && idf.py 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