sonic-buildimage/platform/innovium/sonic-platform-modules-wistron/sw-to3200k/modules/Makefile
WistronNetwork df28eceb35
[Wistron] Add 6512-32r platform support (#10956)
Why I did it
Add 6512-32r support for Wistron platform
Update sw-to3200k for newer branch
How I did it
Add code in device and platform folder for 6512-32r
Update sw-to3200k code both in device and platform folder
How to verify it
Install on Wistron device and run command to verify

Signed-off-by: RogerChang Roger_Chang@wistron.com
2022-06-30 09:13:56 -07:00

21 lines
614 B
Makefile

ifneq ($(KERNELRELEASE),)
obj-m:= wistron_sw_to3200k_cpld.o wistron_sw_to3200k_fan.o \
wistron_sw_to3200k_oom.o wistron_sw_to3200k_psu.o \
wistron_sw_to3200k_thermal.o wistron_i2c_psu.o \
wistron_sw_to3200k_leds.o
else
ifeq (,$(KERNEL_SRC))
#$(error KERNEL_SRC is not defined)
KVERSION=3.16.0-8-amd64
KERNEL_DIR = /usr/src/linux-headers-$(KVERSION)/
KERNELDIR:=$(KERNEL_DIR)
else
KERNELDIR:=$(KERNEL_SRC)
endif
PWD:=$(shell pwd)
default:
$(MAKE) -C $(KERNELDIR) M=$(PWD) modules
clean:
rm -rf *.o *.mod.o *.mod.o *.ko .*cmd *.mod.c *.mod .tmp_versions Module.markers Module.symvers modules.order
endif