I am not very experienced with RF and I am trying to design an RF module. I've done antenna design before so I know a little about impedance matching. However, there is one thing I am not sure about. I'm waiting for your help.

In microstrip antennas, we calculate the length of the feedline to match the feedline. This length usually has a length of λ/4. I can't understand how this happens on a PCB. In the RF Module, there is a path from the processor to the antenna, and there are various components on this path. There is also a matching circuit near the antenna. What I'm wondering is:

1) Is the matching circuit sufficient to match the entire transmission line from the processor to the antenna, and if there is a matching circuit, is there a need to calculate the length of the transmission line?

2) Should we calculate the matching circuit according to the antenna, or according to the transmission line before the matching circuit?

Thanks in advance.