Skip to content

Commit

Permalink
chore: update default files for Makefile
Browse files Browse the repository at this point in the history
When extracting specific firmware model to root dir, this only requires
to specify MODEL, to perform the release build easier.
  • Loading branch information
duhow committed Dec 19, 2024
1 parent 87f13e1 commit dc8ba7b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ OCI_REPO = ghcr.io/duhow/xiaoai-patch
OCI_DIR = docker_pull

BUILD_DIR = squashfs-root
FILE = mtd4
LINUX ?= none
DATETIME := $(shell date +%y%m%d-%H%M)
DATE := $(shell date +%y%m%d)
MODEL ?= none
override MODEL := $(shell echo $(MODEL) | tr '[:upper:]' '[:lower:]')
FILE ?= mico_$(MODEL)/root.squashfs
LINUX ?= mico_$(MODEL)/boot.img
IMAGE_NAME = image-$(DATETIME)
DESTDIR ?= release/$(MODEL)
RELEASE_DIR = $(DESTDIR)/release_$(DATETIME)
Expand Down Expand Up @@ -191,4 +191,4 @@ help:
@echo " make build MODEL=lx01 - Create a new image in release folder."
@echo ""
@echo " make release MODEL=lx01 - Creates a packed release image in release folder."
@echo ""
@echo ""

0 comments on commit dc8ba7b

Please sign in to comment.