@@ -71,6 +71,8 @@ module Util
71
71
@@raspberry_pi_4_4gb_64 = RUBY_PLATFORM . match ( /aarch64.*-linux.*/ ) && [ 'c03111' , 'c03112' ] . include? ( `awk '/^Revision/ { print $3}' /proc/cpuinfo` . delete! ( "\n " ) )
72
72
@@raspberry_pi_4_8gb_64 = RUBY_PLATFORM . match ( /aarch64.*linux.*/ ) && [ 'd03114' ] . include? ( `awk '/^Revision/ { print $3}' /proc/cpuinfo` . delete! ( "\n " ) )
73
73
@@home_dir = File . expand_path ( ( ENV [ 'SONIC_PI_HOME' ] || @@user_dir ) + '/.sonic-pi/' )
74
+ @@raspberry_pi_400 = RUBY_PLATFORM . match ( /.*arm.*-linux.*/ ) && [ 'c03130' ] . include? ( `awk '/^Revision/ { print $3}' /proc/cpuinfo` . delete! ( "\n " ) )
75
+ @@raspberry_pi_400_64 = RUBY_PLATFORM . match ( /aarch64.*linux.*/ ) && [ 'c03130' ] . include? ( `awk '/^Revision/ { print $3}' /proc/cpuinfo` . delete! ( "\n " ) )
74
76
@@project_path = @@home_dir + '/store/default/'
75
77
@@log_path = @@home_dir + '/log'
76
78
@@ -172,7 +174,15 @@ def raspberry_pi_4_8gb_64?
172
174
os == :raspberry && @@raspberry_pi_4_8gb_64
173
175
end
174
176
175
- def unify_tilde_dir ( path )
177
+ def raspberry_pi_400?
178
+ os == :raspberry && @@raspberry_pi_400
179
+ end
180
+
181
+ def raspberry_pi_400_64?
182
+ os == :raspberry && @@raspberry_pi_40_64
183
+ end
184
+
185
+ def unify_tilde_dir ( path )
176
186
if os == :windows
177
187
path
178
188
else
@@ -232,7 +242,11 @@ def host_platform_desc
232
242
"Raspberry Pi 4B:4Gb 64bit OS"
233
243
elsif raspberry_pi_4_8gb_64?
234
244
"Raspberry Pi 4B:8Gb 64bit OS"
235
- else
245
+ elsif raspberry_pi_400?
246
+ "Raspberry Pi 400:4Gb"
247
+ elsif raspberry_pi_400_64?
248
+ "Raspberry Pi 400:4Gb 64bit OS"
249
+ else
236
250
"Raspberry Pi"
237
251
end
238
252
when :linux
0 commit comments