Skip to content

Commit

Permalink
Update common.mk
Browse files Browse the repository at this point in the history
  • Loading branch information
nerdnomerch authored Feb 26, 2025
1 parent d3b691d commit d335216
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions common.mk
Original file line number Diff line number Diff line change
@@ -1 +1,21 @@
# Requires TARGETS BASEDIR BLKFS BLK_SRCS TOCLEAN
TOOLSDIR = $(BASEDIR)/tools
BLKPACK = $(TOOLSDIR)/blkpack
CDIR = $(BASEDIR)/cvm
STAGE = $(CDIR)/stage

.PHONY: all
all: $(TARGETS)

$(BLKPACK):
$(MAKE) -C $(TOOLSDIR) blkpack

$(BLKFS): $(BLK_SRCS) $(BLKPACK)
cat $(BLK_SRCS) | $(BLKPACK) > $@

$(STAGE): $(BLKFS)
$(MAKE) -C $(CDIR) stage

.PHONY: clean
clean:
rm -f $(TARGETS) $(BLKFS) memdump $(TOCLEAN)

0 comments on commit d335216

Please sign in to comment.