A custom OpenWRT feed which contains all needed files to generate Makefiles for ipk via OpenWRT toolchain.
Copy OpenWRT's default config file to its place:
cp feeds.conf.default feeds.conf
and append the following line to use this feed in your build:
src-git piratebox git://github.com/PirateBox-Dev/openwrt-piratebox-feed.git