Build firmware from a scratch

build firmware from a scratch from a new device?
is there a tutorial here

I created a script a while back to automate the buildroot setup on Ubuntu

With the OpenWRT and LEDE websites under modification, Google can be challenging right now as it comes up with broken or stale links. has a collection of the links that relate to building and configuring devices.