Add condition to copy kernel

Change-Id: I9652f6c9068086386da4757ff8c76ca05867e723