LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 12-07-2017, 06:29 PM   #1
DBabo
Member
 
Registered: Feb 2003
Distribution: Fedora {latest}
Posts: 487

Rep: Reputation: 37
Question how to build for a new version


Gents,
how do i go about building a kernel from src rpm for rawhide mainline if my current system is not "rawhide" ( it is f25 )?
Objective:
i want to try a new kernel on the current system, but need to make a few changes to it's params.

this is the script i use to adjust various params on the _current_ version:

Code:
#!/bin/sh
#4.15.0-0.rc2.git0.1.fc28.src.rpm

CWD=$(pwd)

num=4.15
fullish_num=${num}.0
full_num=${fullish_num}-0
src=kernel-${full_num}.rc2.git0.1.fc28.src.rpm

echo "Getting source for the kernel .. "
cd ~
#dnf download --source kernel

cd ~/rpmbuild/ && rm -rf ./*  &&
rpmdev-setuptree && cp -v ~/Downloads/kernel* ~/rpmbuild/ && 
rpm -Uhv ${src} && cd ~/rpmbuild/SPECS && 

rpmbuild -bp --target=$(uname -m) kernel.spec && 

cd ~/rpmbuild/BUILD/kernel-${num}.fc28/linux-${full_num}.fc28.x86_64/ && 
cp ./configs/kernel-${fullish_num}-x86_64.config ./.config 


echo "Sleeping"
sleep 10
make menuconfig
following this script i now get:
Code:
Getting source for the kernel .. 
'/home/az/Downloads/kernel-4.15.0-0.rc2.git0.1.fc28.src.rpm' -> '/home/az/rpmbuild/kernel-4.15.0-0.rc2.git0.1.fc28.src.rpm'
Updating / installing...
   1:kernel-4.15.0-0.rc2.git0.1.fc28
warning: user mockbuild does not exist - using root
warning: group mockbuild does not exist - using root
warning: user mockbuild does not exist - using root
<skip>
warning: group mockbuild does not exist - using root
Building target platforms: x86_64
Building for target x86_64
error: Failed build dependencies:
	audit-libs-devel is needed by kernel-4.15.0-0.rc2.git0.1.fc25.x86_64
	binutils-devel is needed by kernel-4.15.0-0.rc2.git0.1.fc25.x86_64
	bison is needed by kernel-4.15.0-0.rc2.git0.1.fc25.x86_64
	elfutils-devel is needed by kernel-4.15.0-0.rc2.git0.1.fc25.x86_64
	flex is needed by kernel-4.15.0-0.rc2.git0.1.fc25.x86_64
	hmaccalc is needed by kernel-4.15.0-0.rc2.git0.1.fc25.x86_64
	newt-devel is needed by kernel-4.15.0-0.rc2.git0.1.fc25.x86_64
	numactl-devel is needed by kernel-4.15.0-0.rc2.git0.1.fc25.x86_64
	openssl-devel is needed by kernel-4.15.0-0.rc2.git0.1.fc25.x86_64
	pciutils-devel is needed by kernel-4.15.0-0.rc2.git0.1.fc25.x86_64
	perl(ExtUtils::Embed) is needed by kernel-4.15.0-0.rc2.git0.1.fc25.x86_64
	perl-devel is needed by kernel-4.15.0-0.rc2.git0.1.fc25.x86_64
	perl-generators is needed by kernel-4.15.0-0.rc2.git0.1.fc25.x86_64
	xz-devel is needed by kernel-4.15.0-0.rc2.git0.1.fc25.x86_64
Sleeping
P.S. I should be ashamed to call this junk a script.

Last edited by DBabo; 12-07-2017 at 06:32 PM.
 
Old 12-07-2017, 06:43 PM   #2
DBabo
Member
 
Registered: Feb 2003
Distribution: Fedora {latest}
Posts: 487

Original Poster
Rep: Reputation: 37
maybe you can try to install them?

me is an idiot.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Libre Office Version: 4.2.7.2 Build ID: 420m0(Build:2) bizarre behavior 1sweetwater! Linux - Software 5 01-18-2015 11:55 PM
Libre office Version: 4.2.7.2 Build ID: 420m0(Build:2) changing Font 1sweetwater! Linux - Software 0 01-07-2015 11:44 PM
Cannot build git version of darktable arubin Slackware 11 01-12-2012 03:44 PM
Build new version of erlang on NetBSD 4.0 fenrisW0lf *BSD 3 01-18-2009 01:09 PM
Kernel version 2.6.9 fails to build angel_tsankov Linux - Software 1 04-11-2006 05:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 06:18 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration