Hello,
See if the following link helps.
http://community.wd.com/t5/My-Net-Networking-Devices/Compiling-GPL-Firmware/m-p/538695#M2079