0e0772596e
Signed-off-by: pettershao-ragilenetworks pettershao@ragilenetworks.com What I did it Add new platform x86_64-ragile_ra-b6510-32c-r0 (Trident 3) ASIC Vendor: Broadcom Switch ASIC: Trident 3 Port Config: 32x100G Add new platform x86_64-ragile_ra-b6920-4s-r0 (Tomahawk 3) ASIC Vendor: Broadcom Switch ASIC: Tomahawk 3 Port Config: 128x100G -How I did it Provide device and platform related files. -How to verify it show platform fan show platform ssdhealth show platform psustatus show platform summary show platform syseeprom show platform temperature show interface status
27 lines
1.1 KiB
Makefile
Executable File
27 lines
1.1 KiB
Makefile
Executable File
PWD = $(shell pwd)
|
|
DIR_KERNEL_SRC = $(PWD)/modules/driver
|
|
EXTRA_CFLAGS:= -I$(M)/include
|
|
EXTRA_CFLAGS+= -Wall
|
|
SUB_BUILD_DIR = $(PWD)/build
|
|
INSTALL_DIR = $(SUB_BUILD_DIR)/$(KERNEL_SRC)/$(INSTALL_MOD_DIR)
|
|
INSTALL_SCRIPT_DIR = $(SUB_BUILD_DIR)/usr/local/bin
|
|
INSTALL_SERVICE_DIR = $(SUB_BUILD_DIR)/lib/systemd/system/
|
|
|
|
KBUILD_EXTRA_SYMBOLS += $(DIR_KERNEL_SRC)/Module.symvers
|
|
export KBUILD_EXTRA_SYMBOLS
|
|
|
|
all:
|
|
$(MAKE) -C $(KBUILD_OUTPUT) M=$(DIR_KERNEL_SRC) modules
|
|
@if [ ! -d ${INSTALL_DIR} ]; then mkdir -p ${INSTALL_DIR} ;fi
|
|
cp -r $(DIR_KERNEL_SRC)/*.ko $(INSTALL_DIR)
|
|
@if [ ! -d ${INSTALL_SCRIPT_DIR} ]; then mkdir -p ${INSTALL_SCRIPT_DIR} ;fi
|
|
cp -r $(PWD)/config/* $(INSTALL_SCRIPT_DIR)
|
|
@if [ ! -d ${INSTALL_SERVICE_DIR} ]; then mkdir -p ${INSTALL_SERVICE_DIR} ;fi
|
|
cp $(PWD)/systemd/*.service $(INSTALL_SERVICE_DIR)
|
|
clean:
|
|
rm -f ${DIR_KERNEL_SRC}/*.o ${DIR_KERNEL_SRC}/*.ko ${DIR_KERNEL_SRC}/*.mod.c ${DIR_KERNEL_SRC}/.*.cmd
|
|
rm -f ${DIR_KERNEL_SRC}/Module.markers ${DIR_KERNEL_SRC}/Module.symvers ${DIR_KERNEL_SRC}/modules.order
|
|
rm -rf ${DIR_KERNEL_SRC}/.tmp_versions
|
|
rm -rf $(SUB_BUILD_DIR)
|
|
|