diff options
author | lonkaars <loek@pipeframe.xyz> | 2024-05-11 17:44:19 +0200 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2024-05-11 17:44:19 +0200 |
commit | 11181adc990dd71f7c7c27b0486bd05744654a33 (patch) | |
tree | 6e4839f234c7b6a349cbab21cd461be7a2fc0ee5 /2/makefile | |
parent | 159f34a6637ad2685748e34ab904f8ad95c5073e (diff) |
WIP container cross-compile builds (dropped)
Diffstat (limited to '2/makefile')
-rw-r--r-- | 2/makefile | 33 |
1 files changed, 32 insertions, 1 deletions
@@ -1,5 +1,36 @@ -DEB_URL = https://repos.rcn-ee.com/debian/pool/main/l/linux-upstream/linux-headers-6.1.69-ti-rt-r22_1sid_armhf.deb +# see ./rice.sh +RELEASE = 6.6.15-ti-rt-arm32-r1 +DEB_URL = https://repos.rcn-ee.com/debian/pool/main/l/linux-upstream/linux-headers-$(RELEASE)_1sid_armhf.deb + +.PHONY: FORCE kernel-headers.deb: curl -sLo- $(DEB_URL) > $@ +data.tar.xz: kernel-headers.deb + ar x $< $@ + +headers: data.tar.xz + mkdir -p $@ + tar xf $< -C $@ --strip-components 4 ./usr/src/linux-headers-$(RELEASE) + +CTR := podman +# CTR := sudo podman # rootless not set up or unsupported +CTR_IMG_TAG := avans-drvo + +CTRIZE := $(CTR) run +CTRIZE += --rm +CTRIZE += --tty +CTRIZE += --volume /tmp:/tmp:rw +CTRIZE += --volume .:/workdir:rw +# CTRIZE += --env-file ./env +CTRIZE += --env MAKE* +CTRIZE += $(CTR_IMG_TAG) +export + +container: FORCE + $(CTR) build --tag $(CTR_IMG_TAG) . + +build_test: FORCE + $(CTRIZE) $(MAKE) -C module + |