If you only have one pawn remaining, it can promote from any square.
Promotion is always in a general, and you can have only one general on the
board.
+ The promoted general cannot attack any opponent's piece, nor can he discover
+ a rook attack on the enemy king.
h3 Source