I imagine it'd be the same if it still uses some of the copywritten code.
However, pure homebrew would be fully legit assuming you didn't pilfer any of the official devkit stuff.
ips patches are probably legit as well as, while you likely had to -use- the copywritten rom to write it, the...