[llvmlinux] [llvm3.3linux3.10] x86_64: Two missing patches in series file?

Sedat Dilek sedat.dilek at gmail.com
Tue Jul 9 13:48:54 UTC 2013


On Tue, Jul 9, 2013 at 3:33 PM, Sedat Dilek <sedat.dilek at gmail.com> wrote:
> On Tue, Jul 9, 2013 at 3:28 PM, Behan Webster <behanw at converseincode.com> wrote:
>> On 07/09/13 07:24, Sedat Dilek wrote:
>>>
>>> Hi,
>>>
>>> I am trying to get LLVMLinux running on x86_64.
>>>
>>> [ TOOLCHAIN ]
>>>
>>> I have chosen the pre-compiled ("official") toolchain for
>>> Ubuntu/precise AMD64 [2] from the LLVM project.
>>>
>>> [ LINUX-KERNEL ]
>>>
>>> I have taken the latest available ("stable") Linux-v3.10 as my base.
>>>
>>> My 1st run/testing, will be to apply all patches from "arch/all"
>>> (here: "llvmlinux-generic") and from "arch/x86_64" (here:
>>> "llvmlinux-x86_64").
>>>
>>> While looking through the x86_64 patches I noticed two missing patches
>>> in the original series file:
>>>
>>> [ series.orig_sorted  VS. series.patches_sorted ]
>>>
>>> +0011-Change-section-for-acpiosxf.h-to-__init.patch
>>> +change_var_in_perf_event_intel_uncore_to_fix_boot_crash.patch
>>>
>>> Why are they not included?
>>>
>> The answer is the same as the last time you asked this question: you're
>> looking in the wrong place. Those are merely some of the patches we use for
>> that one arch.
>>
>> The build system pulls patches from several places to assemble a patch
>> series which is unique to each supported target. You're trying to recreate
>> the patch series by hand which isn't the way it was intended to be used. The
>> build system automates everything you are trying to recreate by hand.
>>
>> If you use the build system properly you can recreate the x86_64 patches
>> (without having to build anything) for mainline as follows:
>>
>>     $ cd targets/x86_64
>>     $ make kernel-quilt-link-patches
>>
>> The targets/x86_64/patches will now contain a proper series file, and links
>> to all the relevant patches.
>>
>
> Hmmm, I can look if this creates the same patchset.
> Are patches from "generic" (arch/all) plus x86_64 considered this way?
>

$ cd llvmlinux-git/

$ cd targets/x86_64

$ LC_ALL=C make kernel-quilt-link-patches
---------------------------------------------------------------------
Ignore symbolic linked quilt patches for kernel...
---------------------------------------------------------------------
make kernel-quilt-update-series-dot-target kernel-quilt-clean-broken-symlinks
make[1]: Entering directory
`/home/wearefam/src/llvmlinux/llvmlinux/targets/x86_64'
---------------------------------------------------------------------
Updating quilt series.target file for kernel...
---------------------------------------------------------------------
---------------------------------------------------------------------
Removing broken symbolic linked quilt patches for kernel...
---------------------------------------------------------------------
make[1]: Leaving directory
`/home/wearefam/src/llvmlinux/llvmlinux/targets/x86_64'
---------------------------------------------------------------------
Linking quilt patches for kernel...
---------------------------------------------------------------------
tac: cannot create temporary file in
`/home/wearefam/src/llvmlinux/llvmlinux/targets/x86_64/tmp': No such
file or directory
make[1]: Entering directory
`/home/wearefam/src/llvmlinux/llvmlinux/targets/x86_64'
make[2]: Entering directory
`/home/wearefam/src/llvmlinux/llvmlinux/targets/x86_64'
make[2]: Leaving directory
`/home/wearefam/src/llvmlinux/llvmlinux/targets/x86_64'
---------------------------------------------------------------------
Building quilt series file for kernel...
---------------------------------------------------------------------
make[1]: Leaving directory
`/home/wearefam/src/llvmlinux/llvmlinux/targets/x86_64'

$ LC_ALL=C ll patches/
total 232
drwxr-xr-x 2 wearefam wearefam   4096 Jul  9 15:43 ./
drwxr-xr-x 4 wearefam wearefam   4096 Jul  5 16:59 ../
-rw-r--r-- 1 wearefam wearefam   1890 Jul  9 15:38 .gitignore
-rw-r--r-- 1 wearefam wearefam   1872 Jul  9 15:43 applied-patches.all
-rw-r--r-- 1 wearefam wearefam    674 Jul  9 14:46
applied-patches.llvmlinux-generic
-rw-r--r-- 1 wearefam wearefam   1198 Jul  9 14:48
applied-patches.llvmlinux-x86_64
-rw-r--r-- 1 wearefam wearefam 204943 Jul  5 16:59 dragux.ppm
-rw-r--r-- 1 wearefam wearefam   1872 Jul  9 15:38 series
-rw-r--r-- 1 wearefam wearefam      0 Jul  9 15:38 series.target

Can you look for that missing tmp-dir?

My manual way and the "official" way ended up in the same result - the
same series file.
( series.target is empty. )
Good to see there went nothing wrong.

- Sedat -

>> The config options we use for a particular target is in its target
>> directory. For instance:
>>
>>      targets/x86_64/config_x86_64
>>
>
> Yupp, I have taken this one... Building right now...
>
>> I am sure the list would love to hear your results for testing specific
>> kernel versions and config options.
>>
>
> As said building is not the real goal... Running on bare metal is...
>
> After llvmlinux-style I try with my reduced/localmodconfi-ed kernel-config.
>
> I will report later.
>
> - Sedat -
>
>> Behan
>>
>> --
>> Behan Webster
>> behanw at converseincode.com
>>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: applied-patches.all
Type: application/octet-stream
Size: 1871 bytes
Desc: not available
URL: <http://lists.linuxfoundation.org/pipermail/llvmlinux/attachments/20130709/a928aba2/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: applied-patches.llvmlinux-generic
Type: application/octet-stream
Size: 673 bytes
Desc: not available
URL: <http://lists.linuxfoundation.org/pipermail/llvmlinux/attachments/20130709/a928aba2/attachment-0001.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: applied-patches.llvmlinux-x86_64
Type: application/octet-stream
Size: 1197 bytes
Desc: not available
URL: <http://lists.linuxfoundation.org/pipermail/llvmlinux/attachments/20130709/a928aba2/attachment-0002.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: series
Type: application/octet-stream
Size: 1871 bytes
Desc: not available
URL: <http://lists.linuxfoundation.org/pipermail/llvmlinux/attachments/20130709/a928aba2/attachment-0003.obj>


More information about the LLVMLinux mailing list