There is a guide for this here, but I don't think it's really possible or a good idea to build it for unsupported devices.
At that point it would be better to install Linuage (or a fork of it), because they support devices for way longer or look into PostmarketOS