All of lore.kernel.org
 help / color / mirror / Atom feed
From: Denys Dmytriyenko <denys@ti.com>
To: Sam Nelson <sam.nelson@ti.com>
Cc: meta-arago@arago-project.org
Subject: Re: [PATCH] sysvinit: Changing default setting to add HWCLOCKACCESS=no
Date: Thu, 5 Feb 2015 12:05:15 -0500	[thread overview]
Message-ID: <20150205170515.GK9943@edge> (raw)
In-Reply-To: <1423152936-3396-1-git-send-email-sam.nelson@ti.com>

On Thu, Feb 05, 2015 at 11:15:36AM -0500, Sam Nelson wrote:
> - realtime clock is not commonly present and hence adding
>   HWCLOCKACCESS=no
> - Avoids error message if rc device not present

Why not set it in /etc/default/hwclock? That way we can machine-specific 
versions of the file, when we want to enable hwclock?


> Signed-off-by: Sam Nelson <sam.nelson@ti.com>
> ---
>  .../recipes-core/sysvinit/files/hwclock.rcS        |    2 ++
>  .../sysvinit/sysvinit_2.88dsf.bbappend             |    9 +++++++++
>  2 files changed, 11 insertions(+)
>  create mode 100644 meta-arago-distro/recipes-core/sysvinit/files/hwclock.rcS
>  create mode 100644 meta-arago-distro/recipes-core/sysvinit/sysvinit_2.88dsf.bbappend
> 
> diff --git a/meta-arago-distro/recipes-core/sysvinit/files/hwclock.rcS b/meta-arago-distro/recipes-core/sysvinit/files/hwclock.rcS
> new file mode 100644
> index 0000000..3e26c20
> --- /dev/null
> +++ b/meta-arago-distro/recipes-core/sysvinit/files/hwclock.rcS
> @@ -0,0 +1,2 @@
> +# This is to indicate hwclock is not supported
> +HWCLOCKACCESS=no
> diff --git a/meta-arago-distro/recipes-core/sysvinit/sysvinit_2.88dsf.bbappend b/meta-arago-distro/recipes-core/sysvinit/sysvinit_2.88dsf.bbappend
> new file mode 100644
> index 0000000..6e08c83
> --- /dev/null
> +++ b/meta-arago-distro/recipes-core/sysvinit/sysvinit_2.88dsf.bbappend
> @@ -0,0 +1,9 @@
> +PR_append = "-arago0"
> +
> +# look for files in this layer first
> +FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
> +SRC_URI += "file://hwclock.rcS"
> +do_install_append () {
> +# Add hwclock configuration
> +	cat ${WORKDIR}/hwclock.rcS >> ${D}${sysconfdir}/default/rcS
> +}
> -- 
> 1.7.9.5
> 
> _______________________________________________
> meta-arago mailing list
> meta-arago@arago-project.org
> http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago


      parent reply	other threads:[~2015-02-05 17:05 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-05 16:15 [PATCH] sysvinit: Changing default setting to add HWCLOCKACCESS=no Sam Nelson
2015-02-05 16:45 ` Cooper Jr., Franklin
2015-02-05 16:52   ` Denys Dmytriyenko
2015-02-05 17:08     ` Cooper Jr., Franklin
2015-02-05 17:14       ` Denys Dmytriyenko
2015-02-05 17:19         ` Cooper Jr., Franklin
2015-02-05 17:49           ` Denys Dmytriyenko
2015-02-05 18:14             ` Denys Dmytriyenko
2015-02-05 17:05 ` Denys Dmytriyenko [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=20150205170515.GK9943@edge \
    --to=denys@ti.com \
    --cc=meta-arago@arago-project.org \
    --cc=sam.nelson@ti.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.