mirror of
				https://github.com/ARM-software/devlib.git
				synced 2025-11-03 23:41:21 +00:00 
			
		
		
		
	target/page_size_kb: Handle missing KernelPageSize
On some systems KernelPageSize is not exported therefore in this case return 0.
This commit is contained in:
		@@ -215,7 +215,7 @@ class Target(object):
 | 
			
		||||
    @memoized
 | 
			
		||||
    def page_size_kb(self):
 | 
			
		||||
        cmd = "cat /proc/self/smaps | {0} grep KernelPageSize | {0} head -n 1 | {0} awk '{{ print $2 }}'"
 | 
			
		||||
        return int(self.execute(cmd.format(self.busybox)))
 | 
			
		||||
        return int(self.execute(cmd.format(self.busybox)) or 0)
 | 
			
		||||
 | 
			
		||||
    @property
 | 
			
		||||
    def shutils(self):
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user