its possible of course but its likely you will need the whole m5 engine and drivetrain incl tranny and diff,not sure you can change diff without a whole new subframe.The m5 and 540 use the large case diff and the gearbox is a whole magnitude heavier .Its why the m5 and 540 is heavier than a 535 even tho the engine itself is about the same weight.This may also lead to different suspension components(ie springs shocks)