[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [XEN PATCH v5] xen: rework `checkpolicy` detection when using "randconfig"
- To: Anthony PERARD <anthony.perard@xxxxxxxxxx>
- From: Jan Beulich <jbeulich@xxxxxxxx>
- Date: Tue, 28 Sep 2021 17:12:00 +0200
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=suse.com; dmarc=pass action=none header.from=suse.com; dkim=pass header.d=suse.com; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=XjsjJx6G5ArgzBcZBGnwnFpbdO/W90V41M1wnE6Ykb8=; b=jTOHT8RiuL2M+XPlm93O8hjU5xpeyo+6JylWBpO25WcArA1rnPOhAwLbBLojG+uL0U+uc3OS9hDzvVksIZQYBdI7XQh4iuzYGcnHWoOs1XVssB/gxXxoNVGOTseYs8zRrSmmb9gn3g76IP1DCKqDuBARPSvsOvuNDIV18/y+ePZkxzuObLy/ggiiIKAps/OhOkvDGgSEWw14DKNVY8m+24jcyT7RwsEJ58WYB2VY7d2J/PKq4uN7/UbIhuDFwVvFtDZz0BicxaGlb9Wt2bsVFU9UyoB1q/CD3SgR+8CSONFSKB/6wcEKImSRJXP46v/YHk+amuk4sSz/KWcC/8CXDw==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=UUjHOOIXUNESJr03BwmXnDrvPHqTtXDLAUP9vejS6i1xUg9y857r9XhXF+xJIsYpWzboKwRabtaBV8zq/vgfwPNUuMFDMfwA3dOcLtLDRGeF3c4wj6JnhuxRDnq4MhCAaThJF62eiFJcClCIMR4jqxKDPHyR9jJ/Um6EBtSuvEG7VYThl4vp59fYMIDb+yfPMIs0GXbR62Mbq57wfIAe1I649VJZAdDSSG/oaNR0CW7XBtTiQBMxywinlpsybpjht3irx08WSOo2vdLE83AzYPONo+1dbB3c9RJJlAw1t8v9gKztp/GOnvpjWy1Ds0/hvySCGldPidJ6edGxYs1Obg==
- Authentication-results: lists.xenproject.org; dkim=none (message not signed) header.d=none;lists.xenproject.org; dmarc=none action=none header.from=suse.com;
- Cc: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, George Dunlap <george.dunlap@xxxxxxxxxx>, Ian Jackson <iwj@xxxxxxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxxx
- Delivery-date: Tue, 28 Sep 2021 15:12:12 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
On 28.09.2021 17:04, Anthony PERARD wrote:
> This will help prevent the CI loop from having build failures when
> `checkpolicy` isn't available when doing "randconfig" jobs.
>
> To prevent "randconfig" from selecting XSM_FLASK_POLICY when
> `checkpolicy` isn't available, we will actually override the config
> output with the use of KCONFIG_ALLCONFIG.
>
> Doing this way still allow a user/developer to set XSM_FLASK_POLICY
> even when "checkpolicy" isn't available. It also prevent the build
> system from reset the config when "checkpolicy" isn't available
> anymore. And XSM_FLASK_POLICY is still selected automatically when
> `checkpolicy` is available.
> But this also work well for "randconfig", as it will not select
> XSM_FLASK_POLICY when "checkpolicy" is missing.
>
> This patch allows to easily add more override which depends on the
> environment.
>
> Also, move the check out of Config.mk and into xen/ build system.
> Nothing in tools/ is using that information as it's done by
> ./configure.
>
> We named the new file ".allconfig.tmp" as ".*.tmp" are already ignored
> via .gitignore.
>
> Signed-off-by: Anthony PERARD <anthony.perard@xxxxxxxxxx>
Reviewed-by: Jan Beulich <jbeulich@xxxxxxxx>
|