summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Halbert <halbert@halwitz.org>2018-06-14 21:02:12 -0400
committerDan Halbert <halbert@halwitz.org>2018-06-14 21:02:12 -0400
commitfa814a32ce3a211bcec9b06ad488aa1dde1b669d (patch)
tree4fb938bfdff579e222c968faf0f6f84a95fedec6
parente724bc1c4eb1224aa043a1489b29ec3daaa832aa (diff)
Make Trinket M0 build fit; make RAMFS in vfs_fat_* tests be compliant with expected API
-rw-r--r--ports/atmel-samd/Makefile2
-rw-r--r--tests/extmod/vfs_fat_fileio1.py2
-rw-r--r--tests/extmod/vfs_fat_fileio2.py2
-rw-r--r--tests/extmod/vfs_fat_more.py2
-rw-r--r--tests/extmod/vfs_fat_oldproto.py2
-rw-r--r--tests/extmod/vfs_fat_ramdisk.py2
6 files changed, 11 insertions, 1 deletions
diff --git a/ports/atmel-samd/Makefile b/ports/atmel-samd/Makefile
index 8d454a4f6..67fbfd166 100644
--- a/ports/atmel-samd/Makefile
+++ b/ports/atmel-samd/Makefile
@@ -114,7 +114,7 @@ else
# -finline-limit=80 or so is similar to not having it on.
# There is no simple default value, though.
ifdef INTERNAL_FLASH_FILESYSTEM
- CFLAGS += -finline-limit=60
+ CFLAGS += -finline-limit=55
endif
CFLAGS += -flto
endif
diff --git a/tests/extmod/vfs_fat_fileio1.py b/tests/extmod/vfs_fat_fileio1.py
index 8b9ff92eb..e3afbe872 100644
--- a/tests/extmod/vfs_fat_fileio1.py
+++ b/tests/extmod/vfs_fat_fileio1.py
@@ -27,11 +27,13 @@ class RAMFS:
#print("readblocks(%s, %x(%d))" % (n, id(buf), len(buf)))
for i in range(len(buf)):
buf[i] = self.data[n * self.SEC_SIZE + i]
+ return 0
def writeblocks(self, n, buf):
#print("writeblocks(%s, %x)" % (n, id(buf)))
for i in range(len(buf)):
self.data[n * self.SEC_SIZE + i] = buf[i]
+ return 0
def ioctl(self, op, arg):
#print("ioctl(%d, %r)" % (op, arg))
diff --git a/tests/extmod/vfs_fat_fileio2.py b/tests/extmod/vfs_fat_fileio2.py
index b5adb75c9..dc109266a 100644
--- a/tests/extmod/vfs_fat_fileio2.py
+++ b/tests/extmod/vfs_fat_fileio2.py
@@ -27,11 +27,13 @@ class RAMFS:
#print("readblocks(%s, %x(%d))" % (n, id(buf), len(buf)))
for i in range(len(buf)):
buf[i] = self.data[n * self.SEC_SIZE + i]
+ return 0
def writeblocks(self, n, buf):
#print("writeblocks(%s, %x)" % (n, id(buf)))
for i in range(len(buf)):
self.data[n * self.SEC_SIZE + i] = buf[i]
+ return 0
def ioctl(self, op, arg):
#print("ioctl(%d, %r)" % (op, arg))
diff --git a/tests/extmod/vfs_fat_more.py b/tests/extmod/vfs_fat_more.py
index baec96787..1d9b1c3dd 100644
--- a/tests/extmod/vfs_fat_more.py
+++ b/tests/extmod/vfs_fat_more.py
@@ -27,11 +27,13 @@ class RAMFS:
#print("readblocks(%s, %x(%d))" % (n, id(buf), len(buf)))
for i in range(len(buf)):
buf[i] = self.data[n * self.SEC_SIZE + i]
+ return 0
def writeblocks(self, n, buf):
#print("writeblocks(%s, %x)" % (n, id(buf)))
for i in range(len(buf)):
self.data[n * self.SEC_SIZE + i] = buf[i]
+ return 0
def ioctl(self, op, arg):
#print("ioctl(%d, %r)" % (op, arg))
diff --git a/tests/extmod/vfs_fat_oldproto.py b/tests/extmod/vfs_fat_oldproto.py
index ef4f1da78..8aa59a98e 100644
--- a/tests/extmod/vfs_fat_oldproto.py
+++ b/tests/extmod/vfs_fat_oldproto.py
@@ -25,11 +25,13 @@ class RAMFS_OLD:
#print("readblocks(%s, %x(%d))" % (n, id(buf), len(buf)))
for i in range(len(buf)):
buf[i] = self.data[n * self.SEC_SIZE + i]
+ return 0
def writeblocks(self, n, buf):
#print("writeblocks(%s, %x)" % (n, id(buf)))
for i in range(len(buf)):
self.data[n * self.SEC_SIZE + i] = buf[i]
+ return 0
def sync(self):
pass
diff --git a/tests/extmod/vfs_fat_ramdisk.py b/tests/extmod/vfs_fat_ramdisk.py
index 896641ab3..8af83e17b 100644
--- a/tests/extmod/vfs_fat_ramdisk.py
+++ b/tests/extmod/vfs_fat_ramdisk.py
@@ -26,11 +26,13 @@ class RAMFS:
#print("readblocks(%s, %x(%d))" % (n, id(buf), len(buf)))
for i in range(len(buf)):
buf[i] = self.data[n * self.SEC_SIZE + i]
+ return 0
def writeblocks(self, n, buf):
#print("writeblocks(%s, %x)" % (n, id(buf)))
for i in range(len(buf)):
self.data[n * self.SEC_SIZE + i] = buf[i]
+ return 0
def ioctl(self, op, arg):
#print("ioctl(%d, %r)" % (op, arg))