|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [PATCH v3 1/4] build: add make macro for making file from file.in
On 24.11.2025 12:27, Juergen Gross wrote:
> On 24.11.25 12:15, Jan Beulich wrote:
>> On 24.11.2025 12:05, Jürgen Groß wrote:
>>> On 24.11.25 11:41, Jan Beulich wrote:
>>>> On 21.11.2025 14:23, Juergen Gross wrote:
>>>>> --- a/Config.mk
>>>>> +++ b/Config.mk
>>>>> @@ -159,6 +159,19 @@ define move-if-changed
>>>>> if ! cmp -s $(1) $(2); then mv -f $(1) $(2); else rm -f $(1); fi
>>>>> endef
>>>>>
>>>>> +PATH_FILES := Paths
>>>>> +INC_FILES = $(foreach f, $(PATH_FILES), $(XEN_ROOT)/config/$(f).mk)
>>>>> +
>>>>> +include $(INC_FILES)
>>>>> +
>>>>> +BUILD_MAKE_VARS = $(foreach f, $(PATH_FILES), $(shell awk '$$2 == ":=" {
>>>>> print $$1; }' $(XEN_ROOT)/config/$(f).mk.in))
>>>>
>>>> Feels like my prior comments weren't really addressed. I continue to think
>>>> that
>>>> none of the above is part of what the subject says.
>>>
>>> I really don't understand your concern here.
>>>
>>> For replacing the @markers@ make needs to know what should be replaced.
>>> So it needs to scan the files containing the markers and gather them.
>>> This is what is done above.
>>>
>>> In the final macro below the replacements are done then. How would you
>>> handle that?
>>
>> By passing (another) argument to the macro, for example. As indicated
>> earlier, different sub-trees may have different places where these
>> definitions live, and they would want to be able to pass that in
>> (ideally without needing to put this in a common part of the tree).
>
> I don't get what you want to pass in additionally.
>
> I've already changed the macro and the Makefiles to be able to add another
> marker file to the PATH_FILES variable. What else do you need?
Well, that's simply an odd way of passing a parameter. Plus, the extra file
won't affect INC_FILES, or more precisely its use in the include directive
in patch 1: At least aiui, $(INC_FILES) is expanded at the point when the
directive is processed. Hence why you need to open-code another include
there.
Jan
> See patch 4 in tools/Rules.mk adding the additional reference to
> Tools-paths.mk by doing:
>
> PATH_FILES += Tools-paths.mk
>
>
> Juergen
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |