Hi, I have added an utils/lin-inject.sh script to the hg version. The purpose of this script is to add the kernel space components of OSS to the stock Linux 2.6.x kernel source tree. However in this moment the script is not fully functional. Maybe somebody with better Linux/Kbuild knowledge could continue the development from this point.
Usage ------- Create a fresh OSS build directory and run the configure script: o mkdir /oss41-linux o cd /oss41-linux o $PATH_TO_OSS4_SOURCEDIR/configure o Do NOT compile OSS (using make). Then run the script: o sh utils/lin-inject.sh /usr/src/linux-2.6.26.3 (or whatever kernel you use). The script will ask you to do some modifications (copy/paste) to the existing Kbuild files. If you need to run the script again then simply remove the linux/sound/oss4 directory before that. For example rm -rf /usr/src/linux-2.6.26.3/sound/oss4 After that you can run make xconfig to disable ALSA and OSS/Free and to enable OSS4. Then compile the kernel/modules. How it works? --------------- The script copies the required files from the build directory to sound/oss4 inside the Linux kernel directory. Most files will be symbolic links to the OSS4 source directory. In this way the changes made to the files inside the Linux tree will be made directly to the OSS source tree. This makes it easier to send patches against OSS4. After that the script will create the Kconfig and Makefile files. The drives are located in subdirectories of linux/sound/oss4/drv. For each driver directory the .c files should be compiled and linked to driver.ko. For the framework parts every .c file in the subdirectories of linux/oss4/framework should be compiled and linked to osscore.ko. What is missing? ----------------- o The Makefiles created for drivers don't have any CFLAGS added. So compilations will fail because OSS headers and the .inc files cannot be found. o None of the driver modules seem to get built so there must be something wrong with the Kbuild files the script creates. o The script doesn't do anything to compile the framework (osscore module). Best regards, Hannu _______________________________________________ oss-devel mailing list oss-devel@mailman.opensound.com http://mailman.opensound.com/mailman/listinfo/oss-devel