diff options
author | lonkaars <loek@pipeframe.xyz> | 2024-05-12 15:21:19 +0200 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2024-05-12 15:21:19 +0200 |
commit | 891595b9307eb2695411d8e32e4addd9cd927ec8 (patch) | |
tree | b24c323ad3e09f05ca75386ac8fef38a6fff3e74 /beaglebone/makefile | |
parent | 6926a88695ce2e9fca51e01a1bf6fded3e4cbcca (diff) |
rename folders
Diffstat (limited to 'beaglebone/makefile')
-rw-r--r-- | beaglebone/makefile | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/beaglebone/makefile b/beaglebone/makefile new file mode 100644 index 0000000..06c2552 --- /dev/null +++ b/beaglebone/makefile @@ -0,0 +1,36 @@ +# 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 + |