Skip to contentSkip to conversation

aic7xxx driver that does not need db library?

DISCUSSION Adam J. Richter 4 participants 4 messages Aug 16, 2001 – Aug 21, 2001

lore
Share & tools
lore
#0 lore raw

Currently, building Justin Gibbs's otherwise excellent
aic7xxx driver requires the Berkeley DB library, because the aic7xxx assembler that is used in the build process uses db basically just to implement associative arrays in memory.

Unfortunately, I'm currently wrestling with db version
problems because gnome evolution requires the GPL'ed Sleepycat db 3.x, so I want to keep db-1.85 around also, and this breaks the aicasm build. I am grateful to aicasm for exposing this problem in my Sleepycat and Berkeley db configuration, but looking at the aicasm sources makes me think that it would be easy enough to make aicasm not to use db, and that would be worth eliminating one more software dependency for building the Linux kernel. It also occurred to me that someone else may have already done this, so I ought to ask.

So, has anyone done this already? If not, I guess I'll take a
whack at it.

Adam J. Richter     __     ______________   4880 Stevens Creek Blvd, Suite 104
[email protected]     \ /                  San Jose, California 95129-1034
+1 408 261-6630         | g g d r a s i l   United States of America

fax +1 408 261-6631 "Free Software For The Rest Of Us."

#1 lore raw
Quoted 5 lines · Adam J. Richter

Currently, building Justin Gibbs's otherwise excellent
aic7xxx driver requires the Berkeley DB library, because the aic7xxx assembler that is used in the build process uses db basically just to implement associative arrays in memory.

You don't need berk db if you don't check "rebuild firmware" or whatever the config option is. I don't check it, and I never have problems. I believe it exists only as a convenience for the developers.

-jwb

#2 lore raw
In reply to Adam J. Richter
Quoted 5 lines

Currently, building Justin Gibbs's otherwise excellent
aic7xxx driver requires the Berkeley DB library, because the aic7xxx assembler that is used in the build process uses db basically just to implement associative arrays in memory.

You don't need to use the assembler. Compiled firmware is provided in every distrubution I've made, including the one in the 2.4.9 kernel. The default is to *not* build the firmware. Just make sure that you don't have this option inadvertantly turned on in your config and you should be happy.

A wise CS proff once said, "Smart programmers are lazy. They re-use stuff rather than write it over and over again." In this case, I was able to implement my symbol table in all of 5 mintues without the need to debug the code that implements its core. It may seem like overkill, but it allowed me to focus on the important things, like making the assembler useful. The assember dates from 1995, which might explain why it uses the dbv1 interface.

"If it ain't broke, don't fix it."

--
Justin

#3 lore raw
In reply to Adam J. Richter
Quoted 9 lines · Adam J. Richter

Currently, building Justin Gibbs's otherwise excellent
aic7xxx driver requires the Berkeley DB library, because the aic7xxx assembler that is used in the build process uses db basically just to implement associative arrays in memory.

Unfortunately, I'm currently wrestling with db version
problems because gnome evolution requires the GPL'ed Sleepycat db 3.x, so I want to keep db-1.85 around also, and this breaks the aicasm build.

(A) Do not check "build aic7xxx firmware".

(B) kbuild 2.5 only selects the db*.h file that matches the current db library, instead of assuming that the first db*.h that it can find should be used.

(C) If the aic7xxx maintainer would let me fix the aic7xxx kbuild files, nobody would ever have these problems again.