aboutsummaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
Diffstat (limited to 'makefile')
-rw-r--r--makefile14
1 files changed, 9 insertions, 5 deletions
diff --git a/makefile b/makefile
index 3bfd896..c667590 100644
--- a/makefile
+++ b/makefile
@@ -9,7 +9,13 @@ CP := sudo -n cp
GIT := git
CTR_IMG_TAG := avans-linux
-CTRIZE := $(CTR) run --rm --interactive --tty --volume .:/workdir:rw --user $(shell id -u):$(shell id -g) --env-file ./env $(CTR_IMG_TAG)
+
+CTRIZE := $(CTR) run --rm --interactive --tty
+CTRIZE += --volume .:/workdir:rw
+# CTRIZE += --volume /tmp:/tmp:rw
+CTRIZE += --user $(shell id -u):$(shell id -g)
+CTRIZE += --env-file ./env
+CTRIZE += $(CTR_IMG_TAG)
.PHONY: all
all: os_bootloader
@@ -25,12 +31,10 @@ $(SUBMODULE_INIT):
$(GIT) submodule init
$(GIT) submodule update
-MKFLAGS += -j $(shell nproc)
-
.PHONY: os_bootloader
os_bootloader: container_img $(SUBMODULE_INIT)
- $(CTRIZE) make -C u-boot $(MKFLAGS) am335x_evm_config
- $(CTRIZE) make -C u-boot $(MKFLAGS)
+ $(CTRIZE) $(MAKE) -$(MAKEFLAGS) -C u-boot am335x_evm_config
+ $(CTRIZE) $(MAKE) -$(MAKEFLAGS) -C u-boot
# sd card block device (assumed partition numbers, see readme.md)
SDCARD_BD := $(shell realpath /dev/disk/by-id/usb-Generic-_Multi-Card_20071114173400000-0:0)