Skip to content

Commit cde69ba

Browse files
authored
[centec]: Adding missing changes for centec x86 platform (#4611)
PR #4605 has two changes that are missing, fix them.
1 parent 9084ac5 commit cde69ba

File tree

2 files changed

+11
-17
lines changed
  • platform/centec
    • sonic-platform-modules-e582/debian
    • sonic-platform-modules-embedway/debian

2 files changed

+11
-17
lines changed

platform/centec/sonic-platform-modules-e582/debian/rules

+5-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export INSTALL_MOD_DIR:=extra
55
KVERSION ?= $(shell uname -r)
66
KERNEL_SRC := /lib/modules/$(KVERSION)
77
MOD_SRC_DIR:= $(shell pwd)
8-
MODULE_DIRS:= 48x6q 48x2q4z ../centec-dal
8+
MODULE_DIRS:= 48x6q 48x2q4z
99

1010
%:
1111
dh $@
@@ -14,13 +14,15 @@ override_dh_auto_build:
1414
(for mod in $(MODULE_DIRS); do \
1515
make -C $(KERNEL_SRC)/build M=$(MOD_SRC_DIR)/$${mod}/modules; \
1616
done)
17+
make -C $(KERNEL_SRC)/build M=$(MOD_SRC_DIR)/../centec-dal
1718

1819
override_dh_auto_install:
1920
(for mod in $(MODULE_DIRS); do \
2021
dh_installdirs -pplatform-modules-e582-$${mod} \
2122
$(KERNEL_SRC)/$(INSTALL_MOD_DIR); \
2223
cp -f $(MOD_SRC_DIR)/$${mod}/modules/*.ko \
2324
debian/platform-modules-e582-$${mod}/$(KERNEL_SRC)/$(INSTALL_MOD_DIR); \
25+
cp -f $(MOD_SRC_DIR)/../centec-dal/*.ko debian/platform-modules-e582-$${mod}/$(KERNEL_SRC)/$(INSTALL_MOD_DIR); \
2426
done)
2527

2628
override_dh_usrlocal:
@@ -32,4 +34,6 @@ override_dh_clean:
3234
rm -rf $(MOD_SRC_DIR)/$${mod}/modules/*.ko; \
3335
rm -rf debian/platform-modules-e582-$${mod}/$(KERNEL_SRC)/$(INSTALL_MOD_DIR)/*.ko; \
3436
done)
37+
make -C $(KERNEL_SRC)/build M=$(MOD_SRC_DIR)/../centec-dal clean; \
38+
rm -rf $(MOD_SRC_DIR)/../centec-dal/*.ko
3539

platform/centec/sonic-platform-modules-embedway/debian/rules

+6-16
Original file line numberDiff line numberDiff line change
@@ -5,31 +5,21 @@ export INSTALL_MOD_DIR:=extra
55
KVERSION ?= $(shell uname -r)
66
KERNEL_SRC := /lib/modules/$(KVERSION)
77
MOD_SRC_DIR:= $(shell pwd)
8-
MODULE_DIRS:= ../centec-dal
98

109
%:
1110
dh $@
1211

1312
override_dh_auto_build:
14-
(for mod in $(MODULE_DIRS); do \
15-
make -C $(KERNEL_SRC)/build M=$(MOD_SRC_DIR)/$${mod}/modules; \
16-
done)
13+
make -C $(KERNEL_SRC)/build M=$(MOD_SRC_DIR)/../centec-dal
1714

1815
override_dh_auto_install:
19-
(for mod in $(MODULE_DIRS); do \
20-
dh_installdirs -pplatform-modules-embedway-$${mod} \
21-
$(KERNEL_SRC)/$(INSTALL_MOD_DIR); \
22-
cp -f $(MOD_SRC_DIR)/$${mod}/modules/*.ko \
23-
debian/platform-modules-embedway-$${mod}/$(KERNEL_SRC)/$(INSTALL_MOD_DIR); \
24-
done)
16+
dh_installdirs -pplatform-modules-embedway-es6220 \
17+
$(KERNEL_SRC)/$(INSTALL_MOD_DIR); \
18+
cp -f $(MOD_SRC_DIR)/../centec-dal/*.ko debian/platform-modules-embedway-es6220/$(KERNEL_SRC)/$(INSTALL_MOD_DIR)
2519

2620
override_dh_usrlocal:
2721

2822
override_dh_clean:
2923
dh_clean
30-
(for mod in $(MODULE_DIRS); do \
31-
make -C $(KERNEL_SRC)/build M=$(MOD_SRC_DIR)/$${mod}/modules clean; \
32-
rm -rf $(MOD_SRC_DIR)/$${mod}/modules/*.ko; \
33-
rm -rf debian/platform-modules-embedway-$${mod}/$(KERNEL_SRC)/$(INSTALL_MOD_DIR)/*.ko; \
34-
done)
35-
24+
make -C $(KERNEL_SRC)/build M=$(MOD_SRC_DIR)/../centec-dal clean; \
25+
rm -rf $(MOD_SRC_DIR)/../centec-dal/*.ko

0 commit comments

Comments
 (0)