The most common and most likely answer to this crossword clue is the 6 letter word BARTON
B
A
R
T
O
N
Buddy explains!

The straight part
We know that "farmyard" is the straight/definition part of the clue. The straight part is often a synonym or definition, in this case farmyard = barton.The cryptic/wordplay part
In cryptic crossword there's often an wordplay/cryptic part as well.This part involves a more complex hint, such as an anagram, homophone, hidden word, etc.
Sadly, We don't have an explanation for this specific crossword clue yet.
What does BARTON mean?
BARTON noun- A farmyard.
- The lands of a manor reserved for the Lord's use
- An arrangement of blocks and pulleys; a burton