SCIENTIFIC-LINUX-DEVEL Archives

June 2011

SCIENTIFIC-LINUX-DEVEL@LISTSERV.FNAL.GOV

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Steven Haigh <[log in to unmask]>
Reply To:
Steven Haigh <[log in to unmask]>
Date:
Thu, 30 Jun 2011 17:07:40 +1000
Content-Type:
text/plain
Parts/Attachments:
text/plain (64 lines)
On 29/06/2011 10:14 PM, Akemi Yagi wrote:
> On Mon, Jun 27, 2011 at 10:12 PM, Steven Haigh<[log in to unmask]>  wrote:
>> Hi guys,
>>
>> A while ago, I started looking at creating a Xen RPM for SL6 - however I've
>> hit a bit of a brick wall and I'm out of my depth here :P
>>
>> I've archived the rpmbuild directory at (still uploading, should be complete
>> by 0315UTC):
>>    http://www.crc.id.au/files/kernel-dom0.tar.bz2
>>
>> My progress is kinda slow, and I'm at the stage where I get the following
>> errors:
>>
>> + mv kernel-2.6.32-x86_64-debug.config .config
>> ++ head -1 .config
>> ++ cut -b 3-
>> + Arch=x86_64
>> + make ARCH=x86_64 nonint_oldconfig
>> make[1]: *** No rule to make target `nonint_oldconfig'.  Stop.
>> make: *** [nonint_oldconfig] Error 2
>> error: Bad exit status from /var/tmp/rpm-tmp.JWOuM8 (%prep)
>>
>> If anyone would be so kind as to do a little bit of hacking into my sadly
>> deficient hack job and make this work, I'd be more than happy to take
>> ownership back and keep the source tarball updated to the latest Xen kernel
>> source and package it as required.
>
> Try this:
>
> Go to the build root directory (typically BUILD/kernel-xxx/linux-yyy/
> and confirm you have a .config file.  Then issue a command:
>
> make oldconfig
>
> This should run through without your input. But if it prompts for your
> answer, then that is the problem. If this happens, try completing the
> run by providing proper answers. It will create a new .config file.
>  From here, refer to this wiki:
>
> http://wiki.centos.org/HowTos/Custom_Kernel
>
> In section 2. 'Configuring the kernel', locate the line that starts
> with "First run make oldconfig." and follow the instructions from
> there.
>
> Akemi

You know, sometimes, things are just complex for no reason... I looked 
at some further documentation and found that with the kernel.org source, 
you can configure it up, then do a 'make rpm-pkg' to build both binary 
and source RPMs.

I'm in the middle of doing this to see what I end up with and how it 
compares to what I was doing before...

-- 
Steven Haigh

Email: [log in to unmask]
Web: http://www.crc.id.au
Phone: (03) 9001 6090 - 0412 935 897
Fax: (03) 8338 0299

ATOM RSS1 RSS2