aboutsummaryrefslogtreecommitdiff
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
parenta9383e658ed69023b3d621dc08f1c073621d1ff1 (diff)
cleanup makefile + add missing dependency in containerfile
-rw-r--r--Containerfile1
-rw-r--r--makefile14
2 files changed, 10 insertions, 5 deletions
diff --git a/Containerfile b/Containerfile
index 5b98b10..000e1a2 100644
--- a/Containerfile
+++ b/Containerfile
@@ -12,6 +12,7 @@ run xbps-install -Sy git
run xbps-install -Sy gcc
run xbps-install -Sy flex
run xbps-install -Sy openssl-devel
+run xbps-install -Sy bc
# container directory on which the working directory on host is mounted
workdir /workdir
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)