acrn-hypervisor/misc/config_tools/xforms
Qiang Zhang 03a9c78e8d misc: config_tools: fix make deadloop on release build with debug scenario
When I build a release acrn with a debug scenario like this:
$ BOARD=nuc11tnbi5 SCENARIO=shared make -j1 RELEASE=y

Following logs are repeated endlessly.

/home/abc/workspace/mainline/acrn-hypervisor/build/hypervisor/configs/allocation.xml generated
/home/abc/workspace/mainline/acrn-hypervisor/build/hypervisor/configs/unified.xml generated
/home/abc/workspace/mainline/acrn-hypervisor/build/hypervisor/configs/config.mk generated
scripts/makefile/config.mk:191: The command line sets RELEASE to be 'y', but an existing build is configured with 'n'
scripts/makefile/config.mk:191: The configuration will be modified for RELEASE=y

Because "BUILD_TYPE" was moved out of "DEBUG_OPTIONS" in scenario file,
outdated transform script fails to extract information there and it always
set 'CONFIG_RELEASE=n'.

If a makefile is included with a rule for it, the rule will be executed
first to generated new makefile. If it's updated, the make process will
be reexecuted with new makefile.

In the case above, build/hypervisor/configs/config.mk rule is executed every
time make tries to include it. Unhandled different between `RELEASE` and
`CONFIG_RELEASE` causes determine_build_type to update .scenario.xml which
is a dependency of hypervisor/scripts/makefile/config.mk.

Tracked-On: #7657
Signed-off-by: Qiang Zhang <qiang4.zhang@intel.com>
2022-06-01 19:11:09 +08:00
..
board_info.h.xsl board_inspector: avoid hard-coded topo level names 2022-01-29 11:54:03 +08:00
config_common.xsl misc: config_tools: fix make deadloop on release build with debug scenario 2022-06-01 19:11:09 +08:00
config.h.xsl Remove "All rights reserved" string headers 2022-04-06 13:21:02 +08:00
config.mk.xsl Remove "All rights reserved" string headers 2022-04-06 13:21:02 +08:00
ivshmem_cfg.h.xsl Remove "All rights reserved" string headers 2022-04-06 13:21:02 +08:00
lib.xsl misc: refine cache config 2022-04-24 16:52:24 +08:00
misc_cfg.h.xsl misc: config_tool: Add udmabuf.list_limit=8192 to ServiceVM bootargs 2022-05-26 19:17:29 +08:00
pci_dev.c.xsl config_tools: merge data in launch XMLs into scenario XMLs 2022-03-15 10:22:37 +08:00
pt_intx.c.xsl Remove "All rights reserved" string headers 2022-04-06 13:21:02 +08:00
vm_configurations.c.xsl misc: refine clos and vCAT element 2022-05-27 17:55:20 +08:00
vm_configurations.h.xsl misc: config_tool: Add udmabuf.list_limit=8192 to ServiceVM bootargs 2022-05-26 19:17:29 +08:00