public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
From: Henning Schild <henning.schild@siemens.com>
To: vijai kumar <vijaikumar.kanagarajan@gmail.com>
Cc: Jan Kiszka <jan.kiszka@siemens.com>,
	isar-users <isar-users@googlegroups.com>,
	Vijai Kumar K <Vijaikumar_Kanagarajan@mentor.com>
Subject: Re: [PATCH] linux-custom: Install config and map file to /boot
Date: Wed, 18 Mar 2020 08:34:43 +0100	[thread overview]
Message-ID: <20200318083443.57bfb489@md1za8fc.ad001.siemens.net> (raw)
In-Reply-To: <CALLGG_Kt9L98p9LPxcaptHTO-1TF2puKni1T9g6bvztPnm5aAw@mail.gmail.com>

On Wed, 18 Mar 2020 11:23:24 +0530
vijai kumar <vijaikumar.kanagarajan@gmail.com> wrote:

> On Tue, Mar 17, 2020 at 11:02 PM Jan Kiszka <jan.kiszka@siemens.com>
> wrote:
> >
> > On 17.03.20 18:14, Vijai Kumar K wrote:  
> > > Align with upstream debian linux-image package. Install the
> > > config and System.map file to /boot directory. Skip installation
> > > for User Mode Linux.
> > >
> > > Signed-off-by: Vijai Kumar K <Vijaikumar_Kanagarajan@mentor.com>
> > > ---
> > >   .../linux/files/debian/isar/install.tmpl           | 14
> > > ++++++++++++++ 1 file changed, 14 insertions(+)
> > >
> > > diff --git
> > > a/meta/recipes-kernel/linux/files/debian/isar/install.tmpl
> > > b/meta/recipes-kernel/linux/files/debian/isar/install.tmpl index
> > > 12d592d..4e1f850 100644 ---
> > > a/meta/recipes-kernel/linux/files/debian/isar/install.tmpl +++
> > > b/meta/recipes-kernel/linux/files/debian/isar/install.tmpl @@
> > > -37,6 +37,8 @@ do_install() { set -x
> > >
> > >       install_image

Looks like the "um" guard could move here to only have it once.

> > > +    install_config
> > > +    install_map
> > >       install_hooks
> > >       install_dtbs
> > >       install_kmods
> > > @@ -69,6 +71,18 @@ install_image() {
> > >       install_image_debug
> > >   }
> > >
> > > +install_config() {
> > > +    if [ "${ARCH}" != "um" ]; then
> > > +        cp ${O}/.config ${deb_img_dir}/$(dirname
> > > ${kimage_path})/config-${krel}
> > > +    fi
> > > +}
> > > +
> > > +install_map() {
> > > +    if [ "${ARCH}" != "um" ]; then
> > > +        cp ${O}/System.map ${deb_img_dir}/$(dirname
> > > ${kimage_path})/System.map-${krel}
> > > +    fi
> > > +}
> > > +
> > >   install_image_debug() {
> > >       # Different tools want the image in different locations
> > >       # perf
> > >  
> >
> > I think this should be made configurable. Not every embedded system
> > may need or even want these. Can be on be default nevertheless,
> > specifically if that is Debian behavior.  
> 
> Sure. I believe that can be investigated and done as a separate patch.
> We are now trying to match the contents wrt Debian upstream/ the
> previous Linux build procedure as some of our downstream test cases
> rely on the config file in /boot.

If the system under test has CONFIG_IKCONFIG_PROC and is running the
kernel, /proc/config.gz is probably the better source.
For the config i really do not see a point to not ship it, its not too
big. Some security gurus might argue that they do not want to ship it
for obfuscation ... but i would not listen to them.

I think your test should try /proc /boot and finally skip the test
instead of fail it ;).

Henning

> Thanks,
> Vijai Kumar K
> 
> >
> > That said, we may also look into shrinking the dtb installations,
> > only packaging what the target actually needs. Unrelated to this
> > patch, for sure.
> >
> > Jan
> >
> > --
> > Siemens AG, Corporate Technology, CT RDA IOT SES-DE
> > Corporate Competence Center Embedded Linux  
> 


  reply	other threads:[~2020-03-18  7:34 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-17 17:14 Vijai Kumar K
2020-03-17 17:19 ` vijai kumar
2020-03-17 17:39   ` Jan Kiszka
2020-03-25  7:07     ` cedric_hombourger
2020-04-03  7:28       ` vijai kumar
2020-04-03  7:29         ` vijai kumar
2020-03-17 17:32 ` Jan Kiszka
2020-03-18  5:53   ` vijai kumar
2020-03-18  7:34     ` Henning Schild [this message]
2020-03-18 13:03       ` vijai kumar
2020-03-18 13:21       ` [PATCH v2] " Vijai Kumar K
2020-03-23  6:12         ` Jan Kiszka
2020-03-23  6:53           ` Henning Schild
2020-03-23  6:55             ` Jan Kiszka
2020-03-23  7:49               ` vijai kumar
2020-03-23  9:13               ` Henning Schild
2020-03-23  9:24                 ` vijai kumar
2020-03-23 10:40                   ` Henning Schild
2020-03-23 13:40                     ` [PATCH v3 1/2] " Vijai Kumar K
2020-03-23 13:40                       ` [PATCH v3 2/2] meta/recipes-kernel: Replace cp with install Vijai Kumar K
2020-04-17 15:05                       ` [PATCH v3 1/2] linux-custom: Install config and map file to /boot Baurzhan Ismagulov
2020-04-17 18:44                         ` vijai kumar
2020-04-17 18:59                           ` vijai kumar
2020-04-20  9:28                             ` Baurzhan Ismagulov
2020-04-20 10:07                               ` vijai kumar
2020-04-20 16:03                                 ` Baurzhan Ismagulov
2020-04-20 19:46                                   ` Henning Schild
2020-04-20 19:51                                 ` Henning Schild

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=20200318083443.57bfb489@md1za8fc.ad001.siemens.net \
    --to=henning.schild@siemens.com \
    --cc=Vijaikumar_Kanagarajan@mentor.com \
    --cc=isar-users@googlegroups.com \
    --cc=jan.kiszka@siemens.com \
    --cc=vijaikumar.kanagarajan@gmail.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox