From: "Alex Bennée" <alex.bennee@linaro.org>
To: Peter Maydell <peter.maydell@linaro.org>
Cc: Wei Huang <wei@redhat.com>, qemu-arm <qemu-arm@nongnu.org>,
QEMU Developers <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] [PATCH 0/2] Fix compilation dependency issues of CONFIG_ARM_V7M
Date: Fri, 02 Jun 2017 17:12:02 +0100 [thread overview]
Message-ID: <87inkes71p.fsf@linaro.org> (raw)
In-Reply-To: <CAFEAcA8OgWtafU+9Jy02VLdfWhdA=LymQrHsR-1SKxGZQFPW0w@mail.gmail.com>
Peter Maydell <peter.maydell@linaro.org> writes:
> On 2 June 2017 at 16:49, Alex Bennée <alex.bennee@linaro.org> wrote:
>> Peter Maydell <peter.maydell@linaro.org> writes:
>>> We seem to run into "CONFIG_FOO is defined for make but not
>>> for the C preprocessor" from time to time, so maybe we should
>>> fix that?
>>
>> Hmm is should be auto-generated from config-(host|target).mak but I've
>> never quite figured out why we need timestamps rather than a straight
>> dependency check in rules.mk:
>>
>> # Generate timestamp files for .h include files
>>
>> config-%.h: config-%.h-timestamp
>> @cmp $< $@ >/dev/null 2>&1 || cp $< $@
>>
>> config-%.h-timestamp: config-%.mak $(SRC_PATH)/scripts/create_config
>> $(call quiet-command, sh $(SRC_PATH)/scripts/create_config < $< > $@,"GEN","$(TARGET_DIR)config-$*.h")
>>
>> This seems to be one of those things that goes away on a make clean && rebuild
>
> Not the issue in this case -- what happens is that these CONFIG_*
> defines are defined in config-devices.mak, but we don't have any
> equivalent config-devices.h which would expose them to the C code.
Ahh I see. So I guess once the relevant dependencies are added alongside:
%/config-devices.mak: default-configs/%.mak $(SRC_PATH)/scripts/make_device_config.sh
The default rules should pick it up and generate the right things.
> (I assume the rules.mak stuff is attempting to avoid having a
> not-an-actual-change to the .h file result in rebuilding the whole
> world.)
OK that makes sense.
--
Alex Bennée
prev parent reply other threads:[~2017-06-02 16:11 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-04-27 17:38 [Qemu-arm] [PATCH 0/2] Fix compilation dependency issues of CONFIG_ARM_V7M Wei Huang
2017-04-27 17:38 ` [Qemu-devel] " Wei Huang
2017-04-27 17:38 ` [Qemu-arm] [PATCH 1/2] armv7m: Make armv7m SoC compilation dependent on CONFIG_ARM_V7M Wei Huang
2017-04-27 17:38 ` [Qemu-devel] " Wei Huang
2017-04-27 17:38 ` [Qemu-arm] [PATCH 2/2] armv7m: Use stub functions if CONFIG_ARM_V7M is not defined Wei Huang
2017-04-27 17:38 ` [Qemu-devel] " Wei Huang
2017-04-27 17:51 ` [Qemu-devel] [PATCH 0/2] Fix compilation dependency issues of CONFIG_ARM_V7M no-reply
2017-04-27 17:51 ` no-reply
2017-04-27 21:13 ` [Qemu-arm] " Peter Maydell
2017-04-27 21:13 ` [Qemu-devel] " Peter Maydell
2017-04-28 0:10 ` [Qemu-arm] " Wei Huang
2017-04-28 0:10 ` Wei Huang
2017-04-28 12:09 ` [Qemu-arm] " Peter Maydell
2017-04-28 12:09 ` Peter Maydell
2017-04-28 13:58 ` [Qemu-arm] " Wei Huang
2017-04-28 13:58 ` Wei Huang
2017-06-02 15:00 ` Peter Maydell
2017-06-02 15:49 ` Alex Bennée
2017-06-02 15:55 ` Peter Maydell
2017-06-02 16:12 ` Alex Bennée [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87inkes71p.fsf@linaro.org \
--to=alex.bennee@linaro.org \
--cc=peter.maydell@linaro.org \
--cc=qemu-arm@nongnu.org \
--cc=qemu-devel@nongnu.org \
--cc=wei@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.