Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Altera_Forum
Honored Contributor I
749 Views

How to publish a device driver?

Hello, 

 

how can i publish a devce driver for NIOS II (SBT V11.1SP2) without showing the c-sources? 

 

paddy325
0 Kudos
5 Replies
Altera_Forum
Honored Contributor I
43 Views

compile them to a lib

Altera_Forum
Honored Contributor I
43 Views

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?
Altera_Forum
Honored Contributor I
43 Views

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.
Altera_Forum
Honored Contributor I
43 Views

May be you can obfuscate the source code.Google "obfuscated c" to find a tool to obfuscate your source code.

Altera_Forum
Honored Contributor I
43 Views

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