pyramid: fix building kernel with ROM

Change-Id: I2fa3fd4345f7df530567b0da0d838dde7c57ff6c