708999ad61
These patches add support for the Broadcom XMC card (XLR/GTS). At this moment only Tomahawk switch (BCM956960K) is supported. Add device/broadcom/x86_64-bcm_xlr-r0 and platform/broadcom/sonic-platform-modules-brcm-xlr-gts files
32 lines
1005 B
Makefile
Executable File
32 lines
1005 B
Makefile
Executable File
#!/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 $($*)
|