use parameter for ringcopy define

Change-Id: Ib8c3f8bbdce6d89011af423e793304afb3a1cea2