All of lore.kernel.org
 help / color / mirror / Atom feed
* [OSSTEST PATCH] support XSM/FLASK via Kconfig
@ 2015-12-22 19:00 Doug Goldstein
  2016-01-04 12:47 ` Ian Campbell
  0 siblings, 1 reply; 3+ messages in thread
From: Doug Goldstein @ 2015-12-22 19:00 UTC (permalink / raw)
  To: xen-devel; +Cc: Doug Goldstein, Ian Jackson, Ian Campbell

In antcipation of XSM and FLASK migrating to Kconfig add support for
building them via Kconfig or the existing mechanism.

Signed-off-by: Doug Goldstein <cardoe@cardoe.com>
---
I have not tested this because I'm honestly not sure and I'm not sure if
this is correct. I'm just trying to write something to prevent a failure
once XSM/FLASK gets changed to Kconfig and education for myself on how
to do these patches in the future.
---
 ts-xen-build | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/ts-xen-build b/ts-xen-build
index 80b1faa..6616ed3 100755
--- a/ts-xen-build
+++ b/ts-xen-build
@@ -55,6 +55,8 @@ sub checkout () {
 	echo >>.config KERNELS=''
 END
                (nonempty($r{enable_xsm}) ? <<END : '').
+	echo >>xen/.config CONFIG_XSM='${build_xsm}'
+	echo >>xen/.config CONFIG_FLASK='${build_xsm}'
 	echo >>.config XSM_ENABLE='${build_xsm}'
 END
                (nonempty($r{tree_qemu}) ? <<END : '').
@@ -126,6 +128,7 @@ END
 END
 #/;
     buildcmd_stamped_logged(9000, 'build', '',<<END,'');
+            $make_prefix make -C xen olddefconfig
             $make_prefix make $makeflags @ARGV
 END
 
-- 
2.4.10

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [OSSTEST PATCH] support XSM/FLASK via Kconfig
  2015-12-22 19:00 [OSSTEST PATCH] support XSM/FLASK via Kconfig Doug Goldstein
@ 2016-01-04 12:47 ` Ian Campbell
  2016-01-05 15:34   ` Ian Jackson
  0 siblings, 1 reply; 3+ messages in thread
From: Ian Campbell @ 2016-01-04 12:47 UTC (permalink / raw)
  To: Doug Goldstein, xen-devel; +Cc: Ian Jackson

On Tue, 2015-12-22 at 13:00 -0600, Doug Goldstein wrote:
> In antcipation of XSM and FLASK migrating to Kconfig add support for
> building them via Kconfig or the existing mechanism.
> 
> Signed-off-by: Doug Goldstein <cardoe@cardoe.com>
> ---
> I have not tested this because I'm honestly not sure and I'm not sure if
> this is correct. I'm just trying to write something to prevent a failure
> once XSM/FLASK gets changed to Kconfig and education for myself on how
> to do these patches in the future.

The general shape looks plausible, but it needs to continue working even
with Xen 4.6 and older.

Not sure how best to achieve that, perhaps checking for the existence of
some well known piece of the Kconfig infrastructure and behaving
accordingly?

Another alternative would be to add a runvar (see osstest.git/README for
the terminology) which controls whether Kconfig is to be used expected, but
given that this is static and per branch I'm not sure there is too much
point in this case (and it would be more complex for a newcomer).

Ian J probably has an opinion.

> ---
>  ts-xen-build | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/ts-xen-build b/ts-xen-build
> index 80b1faa..6616ed3 100755
> --- a/ts-xen-build
> +++ b/ts-xen-build
> @@ -55,6 +55,8 @@ sub checkout () {
>  	echo >>.config KERNELS=''
>  END
>                 (nonempty($r{enable_xsm}) ? <<END : '').
> +	echo >>xen/.config CONFIG_XSM='${build_xsm}'
> +	echo >>xen/.config CONFIG_FLASK='${build_xsm}'
>  	echo >>.config XSM_ENABLE='${build_xsm}'
>  END
>                 (nonempty($r{tree_qemu}) ? <<END : '').
> @@ -126,6 +128,7 @@ END
>  END
>  #/;
>      buildcmd_stamped_logged(9000, 'build', '',<<END,'');
> +            $make_prefix make -C xen olddefconfig
>              $make_prefix make $makeflags @ARGV
>  END
>  

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [OSSTEST PATCH] support XSM/FLASK via Kconfig
  2016-01-04 12:47 ` Ian Campbell
@ 2016-01-05 15:34   ` Ian Jackson
  0 siblings, 0 replies; 3+ messages in thread
From: Ian Jackson @ 2016-01-05 15:34 UTC (permalink / raw)
  To: Ian Campbell; +Cc: Doug Goldstein, xen-devel

Ian Campbell writes ("Re: [OSSTEST PATCH] support XSM/FLASK via Kconfig"):
> On Tue, 2015-12-22 at 13:00 -0600, Doug Goldstein wrote:
> > In antcipation of XSM and FLASK migrating to Kconfig add support for
> > building them via Kconfig or the existing mechanism.
...
> The general shape looks plausible, but it needs to continue working even
> with Xen 4.6 and older.

Indeed.

> Not sure how best to achieve that, perhaps checking for the existence of
> some well known piece of the Kconfig infrastructure and behaving
> accordingly?

Yes.  This shouldn't be too hard and can probably be done entirely on
the target (rather than expliictly testing in osstest and adjusting
the rune).

> >      buildcmd_stamped_logged(9000, 'build', '',<<END,'');
> > +            $make_prefix make -C xen olddefconfig

Ie,

   if something; then
       $make_prefix make -C xen olddefconfig
   fi

> Another alternative would be to add a runvar (see osstest.git/README for
> the terminology) which controls whether Kconfig is to be used expected, but
> given that this is static and per branch I'm not sure there is too much
> point in this case (and it would be more complex for a newcomer).

I would definitely prefer not to do that.

Ian.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-01-05 15:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-12-22 19:00 [OSSTEST PATCH] support XSM/FLASK via Kconfig Doug Goldstein
2016-01-04 12:47 ` Ian Campbell
2016-01-05 15:34   ` Ian Jackson

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.