sonic-buildimage/platform/broadcom/sonic-platform-modules-brcm-xlr-gts/debian/rules

32 lines
1005 B
Plaintext
Raw Normal View History

#!/usr/bin/make -f
include /usr/share/dpkg/pkg-info.mk
BIN_FILES := brcm-xlr-gts-platform-setup brcm-xlr-gts-create-eeprom-file.py
RULE_FILES :=
SERVICE_FILES := sonic-platform-brcm-xlr-gts.service
USR_SBIN_FILES := brcm-xlr-gts-platform-setup brcm-xlr-gts-create-eeprom-file.py
BASE_DIR := $(shell pwd)
MODULE_SRC := $(BASE_DIR)/src
TEST_DIR := $(BASE_DIR)/tests
BIN_SRC := $(addprefix $(BASE_DIR)/utils/,$(BIN_FILES))
SERVICE_SRC := $(addprefix $(BASE_DIR)/confs/,$(SERVICE_FILES))
USRLOCALSBIN_SRC := $(addprefix $(BASE_DIR)/utils/,$(USR_SBIN_FILES))
%:
dh $@ --with python2,python3,systemd --buildsystem=pybuild
override_dh_auto_install:
dh_installdirs -p$(DEB_SOURCE) lib/systemd/system
cp $(SERVICE_SRC) debian/$(DEB_SOURCE)/lib/systemd/system
dh_installdirs -p$(DEB_SOURCE) usr/bin
cp $(BIN_SRC) debian/$(DEB_SOURCE)/usr/bin
dh_systemd_enable sonic-platform-brcm-xlr-gts.service
override_dh_clean:
dh_clean
print-%:
@echo $($*)