alpine.mk: make it possible to override mkcramfs with mkfs.cramfs

This commit is contained in:
Natanael Copa 2009-09-03 12:35:27 +00:00
parent 6cce6e94ef
commit 9e0d29ac3f

View File

@ -8,6 +8,7 @@ ALPINE_NAME ?= alpine-test
ALPINE_ARCH := i386 ALPINE_ARCH := i386
DESTDIR ?= $(shell pwd)/isotmp DESTDIR ?= $(shell pwd)/isotmp
MKCRAMFS = mkcramfs
SUDO = sudo SUDO = sudo
ISO ?= $(ALPINE_NAME)-$(ALPINE_RELEASE)-$(ALPINE_ARCH).iso ISO ?= $(ALPINE_NAME)-$(ALPINE_RELEASE)-$(ALPINE_ARCH).iso
@ -105,7 +106,7 @@ $(MODLOOP_DIRSTAMP):
$(MODLOOP): $(MODLOOP_DIRSTAMP) $(MODLOOP): $(MODLOOP_DIRSTAMP)
@echo "==> modloop: building image $(notdir $(MODLOOP))" @echo "==> modloop: building image $(notdir $(MODLOOP))"
@mkdir -p $(dir $(MODLOOP)) @mkdir -p $(dir $(MODLOOP))
@mkcramfs $(MODLOOP_DIR)/lib $(MODLOOP) @$(MKCRAMFS) $(MODLOOP_DIR)/lib $(MODLOOP)
clean-modloop: clean-modloop:
@rm -rf $(MODLOOP_DIR) $(MODLOOP_DIRSTAMP) $(MODLOOP) @rm -rf $(MODLOOP_DIR) $(MODLOOP_DIRSTAMP) $(MODLOOP)