[Marevell] Fix armhf build failure (#9875)
Signed-off-by: Rajkumar Pennadam Ramamoorthy <rpennadamram@marvell.com>
This commit is contained in:
parent
b8fa5e0d8d
commit
5daf482a95
@ -6,8 +6,11 @@ from os import path
|
|||||||
RNDADDENTROPY=0x40085203
|
RNDADDENTROPY=0x40085203
|
||||||
|
|
||||||
def avail():
|
def avail():
|
||||||
with open("/proc/sys/kernel/random/entropy_avail", mode='r') as avail:
|
if path.exists("/proc/sys/kernel/random/entropy_avail"):
|
||||||
return int(avail.read())
|
with open("/proc/sys/kernel/random/entropy_avail", mode='r') as avail:
|
||||||
|
return int(avail.read())
|
||||||
|
else:
|
||||||
|
return int(2048)
|
||||||
|
|
||||||
if path.exists("/proc/sys/kernel/random/entropy_avail"):
|
if path.exists("/proc/sys/kernel/random/entropy_avail"):
|
||||||
while 1:
|
while 1:
|
||||||
|
@ -6,8 +6,11 @@ from os import path
|
|||||||
RNDADDENTROPY=0x40085203
|
RNDADDENTROPY=0x40085203
|
||||||
|
|
||||||
def avail():
|
def avail():
|
||||||
with open("/proc/sys/kernel/random/entropy_avail", mode='r') as avail:
|
if path.exists("/proc/sys/kernel/random/entropy_avail"):
|
||||||
return int(avail.read())
|
with open("/proc/sys/kernel/random/entropy_avail", mode='r') as avail:
|
||||||
|
return int(avail.read())
|
||||||
|
else:
|
||||||
|
return int(2048)
|
||||||
|
|
||||||
if path.exists("/proc/sys/kernel/random/entropy_avail"):
|
if path.exists("/proc/sys/kernel/random/entropy_avail"):
|
||||||
while 1:
|
while 1:
|
||||||
|
Loading…
Reference in New Issue
Block a user