Restore PMEM in board and adapt Makefiles