The error is
```
isr.c: In function 'irq':
isr.c:75: error: interrupt Service Routines cannot be coded in Thumb mode
```
So i guess this is not fixable at all. So I'll change ```cpu``` directory to use CFLAGS_BASIC.