File tree 2 files changed +8
-11
lines changed
platform/marvell-armhf/sonic-platform-nokia/debian
2 files changed +8
-11
lines changed Original file line number Diff line number Diff line change 6
6
include /usr/share/dpkg/pkg-info.mk
7
7
# --------------------------------------------------------
8
8
9
- PYTHON ?= python2
10
-
11
9
PACKAGE_PRE_NAME := sonic-platform-nokia
12
10
MOD_SRC_DIR: = $(shell pwd)
13
11
MODULE_DIRS: = 7215
@@ -25,21 +23,16 @@ clean:
25
23
26
24
build :
27
25
(for mod in $( MODULE_DIRS) ; do \
28
- $(PYTHON ) $$ {mod}/setup.py bdist_wheel -d $(MOD_SRC_DIR ) /$$ {mod}; \
26
+ python2 $$ {mod}/setup.py bdist_wheel -d $(MOD_SRC_DIR ) /$$ {mod}; \
27
+ python3 $$ {mod}/setup.py bdist_wheel -d $(MOD_SRC_DIR ) /$$ {mod}; \
29
28
done)
30
29
31
30
binary : binary-arch binary-indep
32
31
# Nothing to do
33
32
34
- binary-arch :
33
+ binary-arch :
35
34
# Nothing to do
36
35
37
- # install: build
38
- # dh_testdir
39
- # dh_testroot
40
- # dh_clean -k
41
- # dh_installdirs
42
-
43
36
binary-indep :
44
37
dh_testdir
45
38
dh_installdirs
@@ -49,8 +42,10 @@ binary-indep:
49
42
dh_installdirs -p$(PACKAGE_PRE_NAME)-$${mod} /usr/local/bin; \
50
43
cp $(MOD_SRC_DIR)/$${mod}/$(SERVICE_DIR)/*.service debian/$(PACKAGE_PRE_NAME)-$${mod}/lib/systemd/system/; \
51
44
cp $(MOD_SRC_DIR)/$${mod}/$(UTILS_DIR)/* debian/$(PACKAGE_PRE_NAME)-$${mod}/usr/local/bin/; \
52
- $(PYTHON) $${mod}/setup.py install --root=$(MOD_SRC_DIR)/debian/$(PACKAGE_PRE_NAME)-$${mod} --install-layout=deb; \
45
+ python2 $${mod}/setup.py install --root=$(MOD_SRC_DIR)/debian/$(PACKAGE_PRE_NAME)-$${mod} --install-layout=deb; \
46
+ python3 $${mod}/setup.py install --root=$(MOD_SRC_DIR)/debian/$(PACKAGE_PRE_NAME)-$${mod} --install-layout=deb; \
53
47
done)
48
+
54
49
# Resuming debhelper scripts
55
50
dh_testroot
56
51
dh_install
@@ -67,4 +62,5 @@ binary-indep:
67
62
dh_gencontrol
68
63
dh_md5sums
69
64
dh_builddeb
65
+
70
66
.PHONY : build binary binary-arch binary-indep clean
Original file line number Diff line number Diff line change @@ -2,3 +2,4 @@ nokia-7215_plt_setup.sh usr/sbin
2
2
7215/scripts/nokia-7215init.sh usr/local/bin
3
3
7215/service/nokia-7215init.service etc/systemd/system
4
4
7215/sonic_platform-1.0-py2-none-any.whl usr/share/sonic/device/armhf-nokia_ixs7215_52x-r0
5
+ 7215/sonic_platform-1.0-py3-none-any.whl usr/share/sonic/device/armhf-nokia_ixs7215_52x-r0
You can’t perform that action at this time.
0 commit comments