Files
klipper/debian/rules
YoungSoo Shin 49d2fda6e8 ODROID: debian: Add Debian package scripts
- Update klipper to v0.13.0

Signed-off-by: YoungSoo Shin <shinys000114@gmail.com>
Change-Id: I8847a248fb622a8944e07a1fd858949b93629b86
2025-05-22 15:41:30 +09:00

27 lines
672 B
Makefile
Executable File

#!/usr/bin/make -f
define firmware
make distclean
echo CONFIG_MACH_LINUX=y | tr -d '[[:space:]]' \
> $(shell pwd)/.config && make olddefconfig
TOPDIR=$(shell pwd) make
mkdir -p $(shell pwd)/firmware/LINUX
cp out/klipper.elf $(shell pwd)/firmware/LINUX/klipper_mcu
endef
%:
dh $@ --with python-virtualenv --with systemd
override_dh_auto_configure:
$(call firmware,LINUX,klipper.elf,klipper_mcu)
dh_auto_configure
override_dh_virtualenv:
dh_virtualenv --requirements scripts/klippy-requirements.txt --no-package klipper-mcu --skip-install
override_dh_strip:
dh_strip --exclude=/site-packages/
override_dh_shlibdeps:
dh_shlibdeps --exclude=/site-packages/