From: Arnout Vandecappelle <arnout@mind.be>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 2/2] package/systemd: Respect BR2_TARGET_GENERIC_GETTY_BAUDRATE
Date: Fri, 13 Nov 2015 07:42:05 +0100 [thread overview]
Message-ID: <5645863D.7020307@mind.be> (raw)
In-Reply-To: <20151113120800.24ae9c86@camb691>
On 13-11-15 02:08, Cyril Bur wrote:
> On Wed, 4 Nov 2015 10:22:51 +0100
> Maxime Hadjinlian <maxime.hadjinlian@gmail.com> wrote:
>
>> Hi Cyril, Martin, all
>>
>> On Thu, Oct 29, 2015 at 11:41 AM, Martin Bark <martin@barkynet.com> wrote:
>>
>>> Cyril, All,
>>>
>>> Some comment inline below
>>>
>>> On 29 October 2015 at 06:17, Cyril Bur <cyrilbur@gmail.com> wrote:
>>>> On Thu, 29 Oct 2015 17:11:42 +1100
>>>> Cyril Bur <cyrilbur@gmail.com> wrote:
[snip]
>>>>> + if [ $(BR2_TARGET_GENERIC_GETTY_BAUDRATE) -gt 0 ] ; \
>>>>> + then \
>>>>> + $(SED) 's,115200,$(BR2_TARGET_GENERIC_GETTY_BAUDRATE),'
>>> $(TARGET_DIR)/lib/systemd/system/$${SERVICE}@.service; \
>>>>> + fi
>>>
>>> $(BR2_TARGET_GENERIC_GETTY_BAUDRATE) will have double quotes around it
>>> which will need to be removed so i don't think the -gt test will ever
>>> work. Have a look in package/skeleton/skeleton.mk where it uses
>>> $(call qstrip,$(BR2_TARGET_GENERIC_GETTY_BAUDRATE)) to strip the
>>> double quotes before it uses the value, you'll need to do something
>>> similar.
>>>
>
> I believe it will work, Nicolas Cavallari provided a good explanation as to
> why:
>
> This test will work just fine, it will be expanded to e.g.
>
> if [ "38400" -gt 0 ];
>
> Which is a perfectly valid shell condition. However, the sed will
> introduce the double quotes in the systemd unit file. Which,
> according to the systemd documentation, is also fine in an ExecStart
> statement, which somewhat mimic the behavior of the shell.
Even though it works without the qstrip, I would prefer to use qstrip after all
to make things consistent.
Ideally, by the way, I would like the getty handling to be done together for
systemd and old init. But unfortunately, moving it to skeleton is not going to
work since this patch requires systemd to be installed and systemd requires
skeleton to be installed. So we'll have to keep it split up like this until we
find a better solution.
Regards,
Arnout
[snip]
--
Arnout Vandecappelle arnout at mind be
Senior Embedded Software Architect +32-16-286500
Essensium/Mind http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint: 7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF
next prev parent reply other threads:[~2015-11-13 6:42 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-29 6:11 [Buildroot] [PATCH 1/2] package/dropbear: Respect user specific configurations Cyril Bur
2015-10-29 6:11 ` [Buildroot] [PATCH 2/2] package/systemd: Respect BR2_TARGET_GENERIC_GETTY_BAUDRATE Cyril Bur
2015-10-29 6:17 ` Cyril Bur
2015-10-29 10:41 ` Martin Bark
2015-11-04 9:22 ` Maxime Hadjinlian
2015-11-13 1:08 ` Cyril Bur
2015-11-13 6:42 ` Arnout Vandecappelle [this message]
2015-11-06 8:41 ` Nicolas Cavallari
2015-11-05 12:32 ` Thomas Petazzoni
2015-11-13 0:57 ` Cyril Bur
2015-10-29 6:16 ` [Buildroot] [PATCH 1/2] package/dropbear: Respect user specific configurations Cyril Bur
2015-11-02 21:43 ` Thomas Petazzoni
2015-11-03 21:17 ` Gabe Evans
2015-11-03 21:53 ` Thomas Petazzoni
2015-11-03 22:21 ` Gabe Evans
2015-11-04 10:46 ` Maxime Hadjinlian
2015-11-04 18:34 ` Gabe Evans
2015-11-09 22:14 ` Peter Korsgaard
2015-11-04 18:38 ` Steven Noonan
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=5645863D.7020307@mind.be \
--to=arnout@mind.be \
--cc=buildroot@busybox.net \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox