From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6805226701613694976 Date: Tue, 17 Mar 2020 10:19:19 -0700 (PDT) From: vijai kumar To: isar-users Message-Id: In-Reply-To: <20200317171455.17840-1-Vijaikumar_Kanagarajan@mentor.com> References: <20200317171455.17840-1-Vijaikumar_Kanagarajan@mentor.com> Subject: Re: [PATCH] linux-custom: Install config and map file to /boot MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_1171_1879868638.1584465559987" X-Google-Token: EJeNxPMFy-k4G3JMVTw0 X-Google-IP: 139.181.38.2 X-TUID: l15SdCFF0qgR ------=_Part_1171_1879868638.1584465559987 Content-Type: multipart/alternative; boundary="----=_Part_1172_516240766.1584465559988" ------=_Part_1172_516240766.1584465559988 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit I am not sure how to test the um use case in kernel in ISAR. Are there any specific targets in ISAR that I am missing? Thanks, Vijai Kumar K On Tuesday, March 17, 2020 at 10:45:13 PM UTC+5:30, vijai kumar 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 > --- > .../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 > + 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 > -- > 2.17.1 > > ------=_Part_1172_516240766.1584465559988 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
I am not sure how to test the um use case in kernel in ISA= R. Are there any specific targets in ISAR that I am missing?

=
Thanks,
Vijai Kumar K

On Tuesday, March 17, 2020= at 10:45:13 PM UTC+5:30, vijai kumar wrote:
Align with upstream debian linux-image package. Install the c= onfig and
System.map file to /boot directory. Skip installation for User Mode Lin= ux.

Signed-off-by: Vijai Kumar K <Vijaikumar_Kanagarajan@mentor.com>
---
=C2=A0.../linux/files/debian/isar/install.tmpl =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 | 14 ++++++++++++++
=C2=A01 file changed, 14 insertions(+)

diff --git a/meta/recipes-kernel/linux/files/debian/isar/install.t= mpl 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() {
=C2=A0 =C2=A0 =C2=A0set -x
=C2=A0
=C2=A0 =C2=A0 =C2=A0install_image
+ =C2=A0 =C2=A0install_config
+ =C2=A0 =C2=A0install_map
=C2=A0 =C2=A0 =C2=A0install_hooks
=C2=A0 =C2=A0 =C2=A0install_dtbs
=C2=A0 =C2=A0 =C2=A0install_kmods
@@ -69,6 +71,18 @@ install_image() {
=C2=A0 =C2=A0 =C2=A0install_image_debug
=C2=A0}
=C2=A0
+install_config() {
+ =C2=A0 =C2=A0if [ "${ARCH}" !=3D "um" ]; then
+ =C2=A0 =C2=A0 =C2=A0 =C2=A0cp ${O}/.config ${deb_img_dir}/$(dirname $= {kimage_path})/config-${krel}
+ =C2=A0 =C2=A0fi
+}
+
+install_map() {
+ =C2=A0 =C2=A0if [ "${ARCH}" !=3D "um" ]; then
+ =C2=A0 =C2=A0 =C2=A0 =C2=A0cp ${O}/System.map ${deb_img_dir}/$(dirnam= e ${kimage_path})/System.map-${krel}
+ =C2=A0 =C2=A0fi
+}
+
=C2=A0install_image_debug() {
=C2=A0 =C2=A0 =C2=A0# Different tools want the image in different locat= ions
=C2=A0 =C2=A0 =C2=A0# perf
--=20
2.17.1

------=_Part_1172_516240766.1584465559988-- ------=_Part_1171_1879868638.1584465559987--