settings to compile own firmware

I would like to compile firmware for my Taz6 using the latest Marlin but I don’t know what settings and libraries are needed for this or if there are preset config.h and adv.h files available to copy and paste in place of the stock marlin files??

I am fairly new at this and have done it with my Ender-3 printer which is just a mess with one but I really want to activate linear advance on my taz 6 printer and use the latest marlin.

Any guides for the taz or assitance would be appreciated.