[kpatch] one issue on kpatch-build when kernel built outside source tree

Jincheng Miao jmiao at redhat.com
Fri Mar 21 01:27:28 UTC 2014


On 03/21/2014 09:20 AM, Josh Poimboeuf wrote:
> On Fri, Mar 21, 2014 at 08:58:01AM +0800, Jincheng Miao wrote:
>> On 03/20/2014 09:36 PM, Josh Poimboeuf wrote:
>>> On Thu, Mar 20, 2014 at 03:52:36PM +0800, Jincheng Miao wrote:
>>>> Hi guys,
>>>>
>>>> I built kernel outside the source tree with "O=/path", then I ran
>>>> kpatch-build,
>>>> it told me "can't find file to patch at input line 5".
>>>>
>>>> So I thought kpatch maybe need to consider this situation.
>>> I think you're wanting to build the patch module against a custom
>>> kernel?  If so, give it the path to the kernel source with the
>>> --sourcedir flag:
>>>
>>> kpatch-build --sourcedir /path/to/kernel/source
>> Yep, I want to build kpatch module against a custom kernel.
>>
>> But kpatch-build will check the .config file from the directory
>> specified by "--sourcedir", if not existed, copy src phase will fail.
>>
>> IMHO, it could be sovled by adding a kpatch-build option which
>> specifies where the .config is, like:
>> $ ./kpatch-build -s /path/to/kernel/source -c /path/to/configfile
>> ./mine.patch
> Yeah, a [-c|--config] option sounds good.  Please open a github issue or
> send a pull request.

OK, I prepare to open a github issue, and I will try to fix it.

>




More information about the kpatch mailing list