2017-07-18 13:21:24 -05:00
|
|
|
#!/usr/bin/make -f
|
|
|
|
# -*- makefile -*-
|
|
|
|
# Sample debian/rules that uses debhelper.
|
|
|
|
# This file was originally written by Joey Hess and Craig Small.
|
|
|
|
# As a special exception, when this file is copied by dh-make into a
|
|
|
|
# dh-make output file, you may use that output file without restriction.
|
|
|
|
# This special exception was added by Craig Small in version 0.37 of dh-make.
|
|
|
|
|
|
|
|
# Uncomment this to turn on verbose mode.
|
|
|
|
#export DH_VERBOSE=1
|
|
|
|
|
|
|
|
export INSTALL_MOD_DIR:=extra
|
|
|
|
|
|
|
|
KVERSION ?= $(shell uname -r)
|
|
|
|
KERNEL_SRC := /lib/modules/$(KVERSION)
|
|
|
|
MOD_SRC_DIR:= $(shell pwd)
|
2019-08-15 03:00:52 -05:00
|
|
|
MODULE_DIRS:= d7032q28b d7054q28b d6254qs d6556 d6356 d7264q28b
|
2017-07-18 13:21:24 -05:00
|
|
|
|
|
|
|
%:
|
2018-09-14 02:54:08 -05:00
|
|
|
dh $@ --with=systemd
|
2017-07-18 13:21:24 -05:00
|
|
|
|
|
|
|
override_dh_auto_build:
|
|
|
|
(for mod in $(MODULE_DIRS); do \
|
|
|
|
make -C $(KERNEL_SRC)/build M=$(MOD_SRC_DIR)/$${mod}/modules; \
|
|
|
|
done)
|
|
|
|
|
|
|
|
override_dh_auto_install:
|
|
|
|
(for mod in $(MODULE_DIRS); do \
|
|
|
|
dh_installdirs -pplatform-modules-$${mod} \
|
|
|
|
$(KERNEL_SRC)/$(INSTALL_MOD_DIR); \
|
|
|
|
cp $(MOD_SRC_DIR)/$${mod}/modules/*.ko \
|
|
|
|
debian/platform-modules-$${mod}/$(KERNEL_SRC)/$(INSTALL_MOD_DIR); \
|
|
|
|
dh_installdirs -pplatform-modules-$${mod} usr/local/bin; \
|
2017-10-19 15:06:03 -05:00
|
|
|
cp $(MOD_SRC_DIR)/$${mod}/utils/* \
|
|
|
|
debian/platform-modules-$${mod}/usr/local/bin; \
|
2017-07-18 13:21:24 -05:00
|
|
|
done)
|
|
|
|
|
|
|
|
override_dh_usrlocal:
|
|
|
|
|
|
|
|
override_dh_pysupport:
|
|
|
|
|
|
|
|
override_dh_clean:
|
|
|
|
dh_clean
|
|
|
|
(for mod in $(MODULE_DIRS); do \
|
|
|
|
make -C $(KERNEL_SRC)/build M=$(MOD_SRC_DIR)/$${mod}/modules clean; \
|
|
|
|
done)
|
|
|
|
|