Skip to content

Commit

Permalink
Merge pull request kata-containers#1899 from Amulyam24/fragments
Browse files Browse the repository at this point in the history
kernel: add ppc64le fragments
  • Loading branch information
bergwolf authored May 25, 2021
2 parents 9fb301f + 7dde0b5 commit 35f297a
Show file tree
Hide file tree
Showing 10 changed files with 35 additions and 2 deletions.
1 change: 1 addition & 0 deletions tools/packaging/kernel/configs/fragments/arm64/base.conf
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,4 @@ CONFIG_ARM64_UAO=y

CONFIG_NO_HZ_FULL=y
CONFIG_GENERIC_MSI_IRQ_DOMAIN=y
CONFIG_RANDOMIZE_BASE=y
2 changes: 1 addition & 1 deletion tools/packaging/kernel/configs/fragments/common/acpi.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# !s390x
# !s390x !powerpc

# enable ACPI support.
# This could do with REVIEW
Expand Down
1 change: 0 additions & 1 deletion tools/packaging/kernel/configs/fragments/common/base.conf
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ CONFIG_SHMEM=y

# For security...
CONFIG_RELOCATABLE=y
CONFIG_RANDOMIZE_BASE=y
# FIXME - check if we should be setting this
# https://github.com/kata-containers/packaging/issues/483
# I have a feeling it effects our memory hotplug maybe?
Expand Down
2 changes: 2 additions & 0 deletions tools/packaging/kernel/configs/fragments/common/mmu.conf
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!powerpc

# MMU specific items

# vmap the kernel stacks - detects stack over-runs better and reduces
Expand Down
9 changes: 9 additions & 0 deletions tools/packaging/kernel/configs/fragments/powerpc/base.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
CONFIG_PPC64=y
CONFIG_PPC_PSERIES=y
CONFIG_64BIT=y
CONFIG_HW_RANDOM_PSERIES=y

CONFIG_HAS_IOMEM=y
CONFIG_SYS_SUPPORTS_HUGETLBFS=y
CONFIG_VIRTUALIZATION=y
CONFIG_PPC_OF_BOOT_TRAMPOLINE=y
6 changes: 6 additions & 0 deletions tools/packaging/kernel/configs/fragments/powerpc/cpu.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Items related to CPU

CONFIG_POWER8_CPU=y
CONFIG_CPU_LITTLE_ENDIAN=y
CONFIG_CPU_ISOLATION=y
CONFIG_PPC_DT_CPU_FTRS=y
11 changes: 11 additions & 0 deletions tools/packaging/kernel/configs/fragments/powerpc/mmu.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# ppc64le specific memory related items

CONFIG_SPARSEMEM=y
CONFIG_PHYS_ADDR_T_64BIT=y
CONFIG_ARCH_ENABLE_MEMORY_HOTPLUG=y
CONFIG_PPC_TRANSACTIONAL_MEM=y
CONFIG_PPC64_SUPPORTS_MEMORY_FAILURE=y
CONFIG_NUMA=y
CONFIG_NODES_SHIFT=8
CONFIG_PPC_RADIX_MMU_DEFAULT=y
CONFIG_PPC_RADIX_MMU=y
3 changes: 3 additions & 0 deletions tools/packaging/kernel/configs/fragments/powerpc/ptp.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# PTP clock support

CONFIG_PTP_1588_CLOCK=y
1 change: 1 addition & 0 deletions tools/packaging/kernel/configs/fragments/s390/base.conf
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ CONFIG_KVM=y

CONFIG_MODULES=y
CONFIG_MODULE_SIG=y
CONFIG_RANDOMIZE_BASE=y
1 change: 1 addition & 0 deletions tools/packaging/kernel/configs/fragments/x86_64/base.conf
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,4 @@ CONFIG_PVH=y

CONFIG_NO_HZ_FULL=y
CONFIG_GENERIC_MSI_IRQ_DOMAIN=y
CONFIG_RANDOMIZE_BASE=y

0 comments on commit 35f297a

Please sign in to comment.