Hi,
I want to compile my kernel module code on my "Oracle Linux Server 6.8" machine.
Current kernel version I have: 3.8.13-118.6.2.el6uek.x86_64
I need to #include some source files from the kernel sources package.
I did not find a kernel source package on yum, But, found it online at https://oss.oracle.com/ol6/SRPMS-updates/kernel-uek-3.8.13-118.6.2.el6uek.src.rpm
I downloaded and did "rpm -iv kernel-uek-3.8.13-118.6.2.el6uek.src.rpm "
But i dont see it installed the source, usually after installing the source, they are located at: /lib/modules/3.8.13-118.6.2.el6uek.x86_64/
and that folder contains a symbolic link named "source".. this link directs now to the build, and that refer me to the compiled ko modules and not src.
if i take the rpm and extract it, i can see the source located in kernel-uek-3.8.13-118.6.2.el6uek.src / linux-3.8.13.tar.bz2
i can uncompress it and make the symbolic link manually, but i think it should be automatically with a package using the rpm -i or yum install..
[root@OracleLinux68 builder]# uname -a
Linux OracleLinux68.localdomain 3.8.13-118.6.2.el6uek.x86_64 #2
[root@OracleLinux68 builder]# cat /etc/*release
LSB_VERSION=base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch
Oracle Linux Server release 6.8
NAME="Oracle Linux Server"
VERSION="6.8"
ID="ol"
VERSION_ID="6.8"
PRETTY_NAME="Oracle Linux Server 6.8"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:oracle:linux:6:8:server"
HOME_URL="https://linux.oracle.com/"
BUG_REPORT_URL="https://bugzilla.oracle.com/"
ORACLE_BUGZILLA_PRODUCT="Oracle Linux 6"
ORACLE_BUGZILLA_PRODUCT_VERSION=6.8
ORACLE_SUPPORT_PRODUCT="Oracle Linux"
ORACLE_SUPPORT_PRODUCT_VERSION=6.8
Red Hat Enterprise Linux Server release 6.8 (Santiago)
Oracle Linux Server release 6.8