Revert "pyramid: fix building kernel with ROM"

This reverts commit 0a42929f1a594334029221a1976fb00fcff47686.