2020-04-17 02:38:48 -05:00
|
|
|
#!/usr/bin/make -f
|
|
|
|
|
|
|
|
export INSTALL_MOD_DIR:=extra
|
|
|
|
|
|
|
|
KVERSION ?= $(shell uname -r)
|
|
|
|
KERNEL_SRC := /lib/modules/$(KVERSION)
|
|
|
|
MOD_SRC_DIR:= $(shell pwd)
|
|
|
|
|
|
|
|
%:
|
|
|
|
dh $@
|
|
|
|
|
|
|
|
override_dh_auto_build:
|
2020-05-19 11:22:35 -05:00
|
|
|
make -C $(KERNEL_SRC)/build M=$(MOD_SRC_DIR)/../centec-dal
|
2020-04-17 02:38:48 -05:00
|
|
|
|
|
|
|
override_dh_auto_install:
|
2020-05-19 11:22:35 -05:00
|
|
|
dh_installdirs -pplatform-modules-embedway-es6220 \
|
|
|
|
$(KERNEL_SRC)/$(INSTALL_MOD_DIR); \
|
|
|
|
cp -f $(MOD_SRC_DIR)/../centec-dal/*.ko debian/platform-modules-embedway-es6220/$(KERNEL_SRC)/$(INSTALL_MOD_DIR)
|
2020-04-17 02:38:48 -05:00
|
|
|
|
|
|
|
override_dh_usrlocal:
|
|
|
|
|
|
|
|
override_dh_clean:
|
|
|
|
dh_clean
|
2020-05-19 11:22:35 -05:00
|
|
|
make -C $(KERNEL_SRC)/build M=$(MOD_SRC_DIR)/../centec-dal clean; \
|
|
|
|
rm -rf $(MOD_SRC_DIR)/../centec-dal/*.ko
|