[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PULL v2 00/37] Linux user for 5.0 patches
From: |
Laurent Vivier |
Subject: |
Re: [PULL v2 00/37] Linux user for 5.0 patches |
Date: |
Wed, 18 Mar 2020 21:23:26 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0 |
Le 18/03/2020 à 21:17, Richard Henderson a écrit :
> On 3/18/20 12:58 PM, Laurent Vivier wrote:
>>> However, from the error message above, it's clear that cpu_loop.o has not
>>> been
>>> rebuilt properly.
>>>
>>
>> In the series merged here syscall_nr.h are moved from source directory
>> to build directory.
>>
>> The include path of the files is based on the dependecy files (*.d), and
>> to force the update of this path PATCH 13 removes all the .d files that
>> have a dependecy on the syscall_nr.h file in the source path.
>>
>> This is added in configure:
>>
>> --- a/configure
>> +++ b/configure
>> @@ -1887,6 +1887,17 @@ fi
>> # Remove old dependency files to make sure that they get properly
>> regenerated
>> rm -f */config-devices.mak.d
>>
>> +# Remove syscall_nr.h to be sure they will be regenerated in the build
>> +# directory, not in the source directory
>> +for arch in ; do
>> + # remove the file if it has been generated in the source directory
>> + rm -f "${source_path}/linux-user/${arch}/syscall_nr.h"
>> + # remove the dependency files
>> + find . -name "*.d" \
>> + -exec grep -q
>> "${source_path}/linux-user/${arch}/syscall_nr.h" {} \; \
>> + -exec rm {} \;
>> +done
> ...
>> Perhaps it removes a dependency that should trigger the rebuild of
>> cpu_loop.o?
>
> Ah, yes indeed. It removes *all* dependencies for cpu_loop.o, so unless we
> touch the cpu_loop.c source file, nothing gets done.
>
> I think you're trying to be too fine grained here, since the *.o file has to
> go
> away with the *.d file. Why not just
>
> make ${arch}-linux-user/clean
>
> ?
The idea was to be able to bisect the series as the syscall_nr.h were
added incrementally without rebuilding all the files.
If I remove the loop in the configure where to add the "make
${arch}-linux-user/clean"?
Thanks,
Laurent
- [PULL v2 37/37] linux-user, openrisc: sync syscall numbers with kernel v5.5, (continued)
- [PULL v2 37/37] linux-user, openrisc: sync syscall numbers with kernel v5.5, Laurent Vivier, 2020/03/17
- [PULL v2 29/37] linux-user, mips64: add syscall table generation support, Laurent Vivier, 2020/03/17
- [PULL v2 36/37] linux-user, nios2: sync syscall numbers with kernel v5.5, Laurent Vivier, 2020/03/17
- [PULL v2 35/37] linux-user, aarch64: sync syscall numbers with kernel v5.5, Laurent Vivier, 2020/03/17
- [PULL v2 34/37] scripts: add a script to generate syscall_nr.h, Laurent Vivier, 2020/03/17
- Re: [PULL v2 00/37] Linux user for 5.0 patches, Peter Maydell, 2020/03/18
- Re: [PULL v2 00/37] Linux user for 5.0 patches, Laurent Vivier, 2020/03/23
- Re: [PULL v2 00/37] Linux user for 5.0 patches, Richard Henderson, 2020/03/23