Someone needs to work on the wiki etymology.. (not saying it's wrong, just that there seems to be a story missing there that connects 1 & 2 :)
https://en.wiktionary.org/wiki/bunting#English