It can't be built as a module any more.
Apply upstream patches from 4.5-rc1 to enable inclusion of orion5x in a multiplatform build. Merge configurations as well as possible.