Skip to content

Commit 37a9bb4

Browse files
committed
ngci/tests: Add HPT disabled builds
1 parent 7012e25 commit 37a9bb4

2 files changed

Lines changed: 22 additions & 1 deletion

File tree

etc/configs/hpt-mmu-n.config

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
CONFIG_POWERPC64_CPU=n
2+
CONFIG_POWER10_CPU=y
3+
CONFIG_KVM_BOOK3S_64=n
4+
CONFIG_CXL=n
5+
CONFIG_PPC_PASEMI=n
6+
CONFIG_PPC_CELL=n
7+
CONFIG_PPC_IBM_CELL_BLADE=n
8+
CONFIG_PPC_PS3=n
9+
CONFIG_PPC_PMAC=n
10+
CONFIG_PPC_MAPLE=n
11+
CONFIG_PPC_RADIX_MMU=y
12+
CONFIG_PPC_64S_HASH_MMU=n

etc/tests.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,16 @@ def full_compile_test(args, suite=None):
300300
#########################################
301301
# specific disabled features
302302
#########################################
303-
for feature in ['radix', 'modules']:
303+
for feature in ['radix', 'hpt-mmu']:
304+
feat_image = image
305+
if feature == 'hpt-mmu' and not image_at_least(image, ['fedora@36', 'korg@12.1.0']):
306+
# Only GCC >= 12 can build HPT=n because it needs -mcpu=power10
307+
feat_image = 'korg@12.1.0'
308+
309+
k(f'ppc64_defconfig+no{feature}', feat_image, merge_config=[f'{feature}-n'])
310+
k(f'ppc64le_defconfig+no{feature}', feat_image, merge_config=[f'{feature}-n'])
311+
312+
for feature in ['modules']:
304313
k(f'ppc64_defconfig+no{feature}', image, merge_config=[f'{feature}-n'])
305314
k(f'ppc64le_defconfig+no{feature}', image, merge_config=[f'{feature}-n'])
306315

0 commit comments

Comments
 (0)