PCAN Driver for Linux ===================== This directory contains the files needed to download the linux driver for PEAK CAN controllers, to compile the driver and to build RPMs. Preparation ----------- Requirements for building: - gcc - g++ - make - kernel headers - redhat-rpm-config The following command should do the trick for SLC5: yum install gcc gcc-c++ make redhat-rpm-config yum install kernel-headers-`uname -r` kernel-devel-`uname -r` If you want to compile the packages as a normal user instead of root, you have to set up ~/.rpmmacros to contain a line like this: %_topdir /home/trd/RPM/ This directory has to contain the directory structure to build RPMs, i.e. SPECS/ SOURCES/ SRPMS/ RPMS/noarch RPMS/i386 BUILD/. Building -------- The whole build process can be started with: make rpm The RPMs will be build under the RPM topdir specified above. ToDo ---- There should be the possibility to provide modules for several kernel versions at once. Frequent Problems: ------------------ Problem: build fails due to unknown rpmbuild macro error: line 13: Dependency tokens must begin with alpha-numeric, '_' or '/': BuildRequires: %kernel_module_package_buildreqs Solution: yum install redhat-rpm-config