0695a6449f
* Switch Vendor: DellEMC * Switch SKU: s5232F * ASIC Vendor: Broadcom * Swich ASIC: Trident3 * Port Configuration: 32x100G * SONiC Image: sonic-broadcom.bin * LED support for s5232f * Changes Include ipmitool implementation for platform_sensors script is inclued in pmon startup * Added 100G,25G,10G configruation ( 100G is default).
54 lines
1.7 KiB
Makefile
Executable File
54 lines
1.7 KiB
Makefile
Executable File
#!/usr/bin/make -f
|
|
|
|
export INSTALL_MOD_DIR:=extra
|
|
|
|
KVERSION ?= $(shell uname -r)
|
|
KERNEL_SRC := /lib/modules/$(KVERSION)
|
|
MOD_SRC_DIR:= $(shell pwd)
|
|
MODULE_DIRS:= s6000 z9100 s6100 z9264f s5232f
|
|
COMMON_DIR := common
|
|
|
|
%:
|
|
dh $@
|
|
|
|
override_dh_auto_build:
|
|
(for mod in $(MODULE_DIRS); do \
|
|
if [ $$mod = "s6100" ]; then \
|
|
cp $(COMMON_DIR)/dell_pmc.c $(MOD_SRC_DIR)/$${mod}/modules/dell_s6100_lpc.c; \
|
|
cp $(COMMON_DIR)/dell_ich.c $(MOD_SRC_DIR)/$${mod}/modules/dell_ich.c; \
|
|
elif [ $$mod = "z9100" ]; then \
|
|
cp $(COMMON_DIR)/dell_pmc.c $(MOD_SRC_DIR)/$${mod}/modules/dell_mailbox.c; \
|
|
cp $(COMMON_DIR)/dell_ich.c $(MOD_SRC_DIR)/$${mod}/modules/dell_ich.c; \
|
|
fi; \
|
|
echo "making man page alias $$mod -> $$mod APIs";\
|
|
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); \
|
|
if [ $$mod = "s6000" ]; then \
|
|
dh_installdirs -pplatform-modules-$${mod} usr/local/bin ; \
|
|
cp -r $(MOD_SRC_DIR)/$${mod}/scripts/* debian/platform-modules-$${mod}/usr/local/bin; \
|
|
fi; \
|
|
done)
|
|
|
|
override_dh_usrlocal:
|
|
|
|
override_dh_clean:
|
|
dh_clean
|
|
(for mod in $(MODULE_DIRS); do \
|
|
if [ $$mod = "s6100" ]; then \
|
|
rm -f $(MOD_SRC_DIR)/$${mod}/modules/dell_s6100_lpc.c; \
|
|
rm -f $(MOD_SRC_DIR)/$${mod}/modules/dell_ich.c; \
|
|
elif [ $$mod = "z9100" ]; then \
|
|
rm -f $(MOD_SRC_DIR)/$${mod}/modules/dell_mailbox.c; \
|
|
rm -f $(MOD_SRC_DIR)/$${mod}/modules/dell_ich.c; \
|
|
fi; \
|
|
make -C $(KERNEL_SRC)/build M=$(MOD_SRC_DIR)/$${mod}/modules clean; \
|
|
done)
|
|
|