[Arm-dev] building AArch64 CentOS kernel from git

Vadim Lomovtsev Vadim.Lomovtsev at caviumnetworks.com
Fri Jan 27 09:58:47 UTC 2017


Hi Richard,

On Fri, Jan 27, 2017 at 09:37:16AM +0000, Richard Henwood wrote:
> Hi All,
> I want to patch and rebuild a CentOS 7 kernel. I've checked out 
> git clone https://git.centos.org/git/sig-altarch/kernel.gitand am on branchsig-altarch7-aarch64

You have to clone also https://git.centos.org/git/centos-git-common.git
Then go your kernel directory, checkout sig-altarch7-aarch64 branch
and invoke following command (assuming you clone centos-git-common nearby):

../centos-git-common/get_sources.sh

This will give you the kernel sources archive.
After that you'll be able to run rpmbuild and so on.

> then I run rpmbuild and I'm told I missing the kernel source:
> error: File /home/build/kernel/SOURCES/linux-4.5.0-15.el7.tar.xz: No such file or directory
> 
> The source isn't present so I assume it must be else where... I've search around for this file and haven't located it. I would really appreciate help finding it - or corrections to my approach.
> any thoughts?
> best regards,Richard

> _______________________________________________
> Arm-dev mailing list
> Arm-dev at centos.org
> https://lists.centos.org/mailman/listinfo/arm-dev

WBR,
Vadim


More information about the Arm-dev mailing list