-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reimplementing Hal code #449
Comments
There's barely any HAL code of interest left I think. So for the HAL code I suggest to slim it down first: deprecating and removing code. Once it's smaller, review it with the authors who have reworked it and consider if it's legally and ethically acceptable to just slap another license on it. |
I've gone through these alphabetically: audio.cFor what it's worth, the algorithms in https://github.com/XboxDev/nxdk/blame/231336bfba1cbc66ae7259f8a27a81448ef5421d/lib/hal/audio.c are largely by me (see #364). Therefore, consider my code in https://github.com/XboxDev/nxdk/blame/231336bfba1cbc66ae7259f8a27a81448ef5421d/lib/hal/audio.c as public domain; feel free to relicense my code under whatever license you choose, claim copyright or whatever else is necessary. Also there are many known issues with the xaudio API. debug.cThis can be rewritten in an hour or so; it's trivial and would likely end up being better than the existing code. The worst offender in this is probably fileio.cThis had been deprecated for 2 years already: 8e5a12f I think it can (and should be) removed. fonts(PD non-issue) Exception: A deprecation That file can be removed a couple of days after deprecation, because enough alternatives exist. input.cThis is important and should be deprecated asap. It should be removed soon after the new USB stack has landed from https://github.com/XboxDev/nxdk-sdl/pull/38 io.cIt should be deprecated asap. I believe the kernel has the same kind of API. You can also just use inline assembly. So when this has been deprecated for a while (~3 months or so) it can be removed. led.c(CC0 non-issue) video.cMostly factual, but needs a separate investigation. I wrote xbox.cEverything has been deprecated for about 1-2 years: https://github.com/XboxDev/nxdk/blame/231336bfba1cbc66ae7259f8a27a81448ef5421d/lib/hal/xbox.h I think the deprecated portion can (and should) be removed. Exceptions:
|
Currently most of the code in the lib/hal folder is licensed under the GPL license due to coming from OpenXDK. To allow for closed sourced programs to be created using the nxdk, all GPL'd code needs to be replaced. Since a replacement USB stack is being worked on, this leaves the hal code. At some point in the future, the hal code would need to be re-implemented and licensed under a different license.
The text was updated successfully, but these errors were encountered: