Colibri iMX8, how to include dnsmasq when compiling the kernel

The reason why we are trying to compile the kernel is to add dnsmasq and also reduce the heat, currently when idle the iMX8 stays around 70 degrees Celcius but we would like to get it down to 40-50C. Bascially we use the WiFi to connect clients through to the Internet via Ethernet port and some proprietary Bluetooth from a USB chip and thats about it, so nothing else needs to be running or active.
This is the only reference I could find that showed power could be reduced by turning off a few things in the kernel compile https://community.toradex.com/t/reduce-idle-power-consumption/9154/5 this is like 3 years ago and it seems no progress has been made to reduce heat on the iMX8.
Checking out the Yocto Project link we currently dont have the means to build the reference image but can build the kernel. Has someone else managed to build a image with reduced heat and possibly include dnsmasq?