SCIENTIFIC-LINUX-DEVEL Archives

July 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:
Teck Choon Giam <[log in to unmask]>
Reply To:
Teck Choon Giam <[log in to unmask]>
Date:
Sat, 2 Jul 2011 14:31:53 +0800
Content-Type:
text/plain
Parts/Attachments:
text/plain (72 lines)
On Thu, Jun 30, 2011 at 3:07 PM, Steven Haigh <[log in to unmask]> wrote:
> 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...
>

That won't settle for you about the initramfs etc. and if you plan to
put that in any of the yum repo you will have issues besides
dependencies.

Thanks.

Kindest regards,
Giam Teck Choon

ATOM RSS1 RSS2