Blame view

buildroot/buildroot-2016.08.1/package/canfestival/0002-allow-to-set-python-interpreter.patch 6.42 KB
6b13f685e   김민수   BSP 최초 추가
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
  From s.martin49@gmail.com Fri Oct 10 23:43:32 2014
  Content-Type: text/plain; charset="us-ascii"
  MIME-Version: 1.0
  Content-Transfer-Encoding: 7bit
  Subject: [PATCH] allow to set python interpreter
  X-Mercurial-Node: 4805f636c2317d989a5f704ba691369f41be6595
  X-Mercurial-Series-Index: 1
  X-Mercurial-Series-Total: 1
  Message-Id: <4805f636c2317d989a5f.1412977412@bobook>
  X-Mercurial-Series-Id: <4805f636c2317d989a5f.1412977412@bobook>
  User-Agent: Mercurial-patchbomb/3.1.2
  Date: Fri, 10 Oct 2014 23:43:32 +0200
  From: Samuel Martin <s.martin49@gmail.com>
  To: canfestival-devel@lists.sourceforge.net
  Cc: Samuel Martin <s.martin49@gmail.com>
  
  # HG changeset patch
  # User "Samuel Martin" <s.martin49@gmail.com>
  # Date 1412977082 -7200
  #      Fri Oct 10 23:38:02 2014 +0200
  # Node ID 4805f636c2317d989a5f704ba691369f41be6595
  # Parent  c408fdc77aa18fcda81db4f0d038e8a69ba84bb2
  allow to set python interpreter
  
  Canfestival python modules and scripts are not python3 compliant.
  
  Allow to pass the python interperter to be used to make.
  
  Signed-off-by: Samuel Martin <s.martin49@gmail.com>
  
  diff --git a/Makefile.in b/Makefile.in
  --- a/Makefile.in
  +++ b/Makefile.in
  @@ -21,6 +21,9 @@
   # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
   # 
   
  +PYTHON ?= python
  +export PYTHON
  +
   all: objdictedit canfestival examples
   
   examples: canfestival driver
  diff --git a/doc/manual/en/manual.tex b/doc/manual/en/manual.tex
  --- a/doc/manual/en/manual.tex
  +++ b/doc/manual/en/manual.tex
  @@ -1134,6 +1134,7 @@
   	python objdictedit.py [od files...]
   \end{verbatim}
   
  +Note that Gnosis modules only run with python2 as interpreter.
   
   \subsubsection{Installation and usage on Windows}
   
  diff --git a/examples/CANOpenShell/Makefile.in b/examples/CANOpenShell/Makefile.in
  --- a/examples/CANOpenShell/Makefile.in
  +++ b/examples/CANOpenShell/Makefile.in
  @@ -69,11 +69,11 @@
   	
   CANOpenShellMasterOD.c: CANOpenShellMasterOD.od
   	$(MAKE) -C ../../objdictgen gnosis
  -	python ../../objdictgen/objdictgen.py CANOpenShellMasterOD.od CANOpenShellMasterOD.c
  +	$(PYTHON) ../../objdictgen/objdictgen.py CANOpenShellMasterOD.od CANOpenShellMasterOD.c
   
   CANOpenShellSlaveOD.c: CANOpenShellSlaveOD.od
   	$(MAKE) -C ../../objdictgen gnosis
  -	python ../../objdictgen/objdictgen.py CANOpenShellSlaveOD.od CANOpenShellSlaveOD.c
  +	$(PYTHON) ../../objdictgen/objdictgen.py CANOpenShellSlaveOD.od CANOpenShellSlaveOD.c
   
   %.o: %.c
   	$(CC) $(CFLAGS) $(PROG_CFLAGS) ${PROGDEFINES} $(INCLUDES) -o $@ -c $<
  diff --git a/examples/DS401_Master/Makefile.in b/examples/DS401_Master/Makefile.in
  --- a/examples/DS401_Master/Makefile.in
  +++ b/examples/DS401_Master/Makefile.in
  @@ -53,7 +53,7 @@
   	
   TestMaster.c: TestMaster.od
   	$(MAKE) -C ../../objdictgen gnosis
  -	python ../../objdictgen/objdictgen.py TestMaster.od TestMaster.c
  +	$(PYTHON) ../../objdictgen/objdictgen.py TestMaster.od TestMaster.c
   
   %.o: %.c
   	$(CC) $(CFLAGS) $(PROG_CFLAGS) ${PROGDEFINES} $(INCLUDES) -o $@ -c $<
  diff --git a/examples/DS401_Slave_Gui/Makefile.in b/examples/DS401_Slave_Gui/Makefile.in
  --- a/examples/DS401_Slave_Gui/Makefile.in
  +++ b/examples/DS401_Slave_Gui/Makefile.in
  @@ -59,7 +59,7 @@
   
   ObjDict.c: ObjDict.od
   	$(MAKE) -C ../../objdictgen gnosis
  -	python ../../objdictgen/objdictgen.py ObjDict.od ObjDict.c
  +	$(PYTHON) ../../objdictgen/objdictgen.py ObjDict.od ObjDict.c
   
   .cpp.o:
   	$(CXX) -c $(CFLAGS) $(PROG_CFLAGS) ${PROGDEFINES} $(INCLUDES) `wx-config --cxxflags` $< -o $@
  diff --git a/examples/SillySlave/Makefile.in b/examples/SillySlave/Makefile.in
  --- a/examples/SillySlave/Makefile.in
  +++ b/examples/SillySlave/Makefile.in
  @@ -53,7 +53,7 @@
   	
   SillySlave.c: SillySlave.od
   	$(MAKE) -C ../../objdictgen gnosis
  -	python ../../objdictgen/objdictgen.py SillySlave.od SillySlave.c
  +	$(PYTHON) ../../objdictgen/objdictgen.py SillySlave.od SillySlave.c
   
   %.o: %.c
   	$(CC) $(CFLAGS) $(PROG_CFLAGS) ${PROGDEFINES} $(INCLUDES) -o $@ -c $<
  diff --git a/examples/TestMasterMicroMod/Makefile.in b/examples/TestMasterMicroMod/Makefile.in
  --- a/examples/TestMasterMicroMod/Makefile.in
  +++ b/examples/TestMasterMicroMod/Makefile.in
  @@ -61,7 +61,7 @@
   	
   TestMaster.c: TestMaster.od
   	$(MAKE) -C ../../objdictgen gnosis
  -	python ../../objdictgen/objdictgen.py TestMaster.od TestMaster.c
  +	$(PYTHON) ../../objdictgen/objdictgen.py TestMaster.od TestMaster.c
   
   %.o: %.c
   	$(CC) $(CFLAGS) $(PROG_CFLAGS) ${PROGDEFINES} $(INCLUDES) -o $@ -c $<
  diff --git a/examples/TestMasterSlave/Makefile.in b/examples/TestMasterSlave/Makefile.in
  --- a/examples/TestMasterSlave/Makefile.in
  +++ b/examples/TestMasterSlave/Makefile.in
  @@ -69,11 +69,11 @@
   	
   TestSlave.c: TestSlave.od
   	$(MAKE) -C ../../objdictgen gnosis
  -	python ../../objdictgen/objdictgen.py TestSlave.od TestSlave.c
  +	$(PYTHON) ../../objdictgen/objdictgen.py TestSlave.od TestSlave.c
   	
   TestMaster.c: TestMaster.od
   	$(MAKE) -C ../../objdictgen gnosis
  -	python ../../objdictgen/objdictgen.py TestMaster.od TestMaster.c
  +	$(PYTHON) ../../objdictgen/objdictgen.py TestMaster.od TestMaster.c
   
   %.o: %.c
   	$(CC) $(CFLAGS) $(PROG_CFLAGS) ${PROGDEFINES} $(INCLUDES) -o $@ -c $<
  diff --git a/examples/TestMasterSlaveLSS/Makefile.in b/examples/TestMasterSlaveLSS/Makefile.in
  --- a/examples/TestMasterSlaveLSS/Makefile.in
  +++ b/examples/TestMasterSlaveLSS/Makefile.in
  @@ -64,15 +64,15 @@
   	
   TestSlaveA.c: TestSlaveA.od
   	$(MAKE) -C ../../objdictgen gnosis
  -	python ../../objdictgen/objdictgen.py TestSlaveA.od TestSlaveA.c
  +	$(PYTHON) ../../objdictgen/objdictgen.py TestSlaveA.od TestSlaveA.c
   
   TestSlaveB.c: TestSlaveB.od
   	$(MAKE) -C ../../objdictgen gnosis
  -	python ../../objdictgen/objdictgen.py TestSlaveB.od TestSlaveB.c
  +	$(PYTHON) ../../objdictgen/objdictgen.py TestSlaveB.od TestSlaveB.c
   	
   TestMaster.c: TestMaster.od
   	$(MAKE) -C ../../objdictgen gnosis
  -	python ../../objdictgen/objdictgen.py TestMaster.od TestMaster.c
  +	$(PYTHON) ../../objdictgen/objdictgen.py TestMaster.od TestMaster.c
   
   %.o: %.c
   	$(CC) $(CFLAGS) $(PROG_CFLAGS) ${PROGDEFINES} $(INCLUDES) -o $@ -c $<
  diff --git a/examples/kerneltest/Makefile.in b/examples/kerneltest/Makefile.in
  --- a/examples/kerneltest/Makefile.in
  +++ b/examples/kerneltest/Makefile.in
  @@ -79,10 +79,10 @@
   
   TestSlave.c: TestSlave.od
   	$(MAKE) -C ../../objdictgen gnosis
  -	python ../../objdictgen/objdictgen.py TestSlave.od TestSlave.c
  +	$(PYTHON) ../../objdictgen/objdictgen.py TestSlave.od TestSlave.c
   
   TestMaster.c: TestMaster.od
   	$(MAKE) -C ../../objdictgen gnosis
  -	python ../../objdictgen/objdictgen.py TestMaster.od TestMaster.c
  +	$(PYTHON) ../../objdictgen/objdictgen.py TestMaster.od TestMaster.c
   	
   #endif