Add operational script, accton_as7512_util.py, for device initializatian and peripheral accessing (#265)
Signed-off-by: Nadiya.Stetskovych <Nadiya.Stetskovych@cavium.com>
This commit is contained in:
parent
0bbde7b91a
commit
2358678497
@ -4,6 +4,7 @@ SHELL = /bin/bash
|
|||||||
|
|
||||||
MAIN_TARGET = cavm_platform_modules.deb
|
MAIN_TARGET = cavm_platform_modules.deb
|
||||||
DEB_BUILD_DIR = cavm-platform-modules-deb
|
DEB_BUILD_DIR = cavm-platform-modules-deb
|
||||||
|
SCRIPT_SRC = $(DEB_BUILD_DIR)/
|
||||||
|
|
||||||
$(addprefix $(DEST)/, $(MAIN_TARGET)): $(DEST)/% :
|
$(addprefix $(DEST)/, $(MAIN_TARGET)): $(DEST)/% :
|
||||||
# get sources
|
# get sources
|
||||||
@ -16,8 +17,10 @@ $(addprefix $(DEST)/, $(MAIN_TARGET)): $(DEST)/% :
|
|||||||
KERNEL_SRC=/lib/modules/$(KVERSION)/build make
|
KERNEL_SRC=/lib/modules/$(KVERSION)/build make
|
||||||
popd
|
popd
|
||||||
mkdir -p $(DEB_BUILD_DIR)/lib/modules/$(KVERSION)
|
mkdir -p $(DEB_BUILD_DIR)/lib/modules/$(KVERSION)
|
||||||
|
mkdir -p $(DEB_BUILD_DIR)/usr/bin
|
||||||
|
|
||||||
cp SONiC/AS7512-32X/module/*.ko $(DEB_BUILD_DIR)/lib/modules/$(KVERSION)
|
cp SONiC/AS7512-32X/module/*.ko $(DEB_BUILD_DIR)/lib/modules/$(KVERSION)
|
||||||
|
cp SONiC/AS7512-32X/accton_as7512_util.py $(DEB_BUILD_DIR)/usr/bin
|
||||||
cp -r DEBIAN $(DEB_BUILD_DIR)
|
cp -r DEBIAN $(DEB_BUILD_DIR)
|
||||||
dpkg-deb -b $(DEB_BUILD_DIR) $(MAIN_TARGET)
|
dpkg-deb -b $(DEB_BUILD_DIR) $(MAIN_TARGET)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user