mirror of
git://soft.sys114.com/klipper
synced 2026-02-04 14:30:35 +09:00
33 lines
843 B
Makefile
Executable File
33 lines
843 B
Makefile
Executable File
#!/usr/bin/make -f
|
|
|
|
define firmware
|
|
make distclean
|
|
echo CONFIG_MACH_LINUX=y \
|
|
> $(shell pwd)/.config
|
|
echo CONFIG_MACH_LINUX_ODROIDC5=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-odroidc5 --skip-install
|
|
|
|
override_dh_strip:
|
|
dh_strip --exclude=/site-packages/
|
|
|
|
override_dh_shlibdeps:
|
|
dh_shlibdeps --exclude=/site-packages/
|
|
|
|
override_dh_auto_install:
|
|
dh_auto_install
|
|
dh_systemd_enable || false
|
|
dh_systemd_start || false
|