aboutsummaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2024-02-01 23:08:03 +0100
committerlonkaars <loek@pipeframe.xyz>2024-02-01 23:08:03 +0100
commit4d3f081f061fd9e3de08ed7f2516cff2b5f2a0df (patch)
treef5c15e2da57f93ea123f5f5a6956370cdc59602f /makefile
parenta9383e658ed69023b3d621dc08f1c073621d1ff1 (diff)
cleanup makefile + add missing dependency in containerfile
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)