- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
how can i publish a devce driver for NIOS II (SBT V11.1SP2) without showing the c-sources? paddy325Link Copied
5 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
compile them to a lib
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thats what i tried to do, but it needs informations from the bsp-project, so i have to make the driver dependend on the bsp...
Then i will have to compile a lib of my drivers for every bsp. Is there a better way to get a lib which works with all bsps?- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
No in that case the code needs to be compiled each time so you need to provide it.
It you really have some parts of your driver you don't want to share, you can always try and split it in two. The first part is the low-level driver that directly talks to the hardware, using the constants defined in the bsp, distributed as source code. The second part is the higher level "intelligent" part, that you can distribute as a binary library. Of course it depends on the kind of hardware you have and which part of the driver you need to protect.- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
May be you can obfuscate the source code.Google "obfuscated c" to find a tool to obfuscate your source code.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
HI,
thanks for your answers! I think the suggestion Daixiwen made is a good solution for me. I will trie out to split my driver sources. I googled the obfuscator, but i am afraid of unexpected behavior of my functions if i obfuscate them. Thanks, Paddy
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page