Based on the input above in the comments, I did a sed replace of \$basearch with armhfp and it worked.