The method is already implemented in Roger Clark's fork of RBL rf51822 cores so it's just a matter of merging two boards.txt files.