Skip to content

Commit

Permalink
Changelog:
Browse files Browse the repository at this point in the history
- Review kernel config and headers generation code
  • Loading branch information
sebanc committed Jun 9, 2024
1 parent b57c541 commit fb17e53
Show file tree
Hide file tree
Showing 4 changed files with 7,582 additions and 55 deletions.
35 changes: 20 additions & 15 deletions build_kernels.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,20 +23,25 @@ for kernel in $kernels; do
SRCARCH="x86"
KCONFIG_CONFIG="$objtree/.config"
destdir="$srctree/headers"
(cd $srctree; find . -name Makefile\* -o -name Kconfig\* -o -name \*.pl) > "$objtree/hdrsrcfiles"
(cd $srctree; find arch/*/include include scripts -type f -o -type l) >> "$objtree/hdrsrcfiles"
(cd $srctree; find arch/$SRCARCH -name module.lds -o -name Kbuild.platforms -o -name Platform) >> "$objtree/hdrsrcfiles"
(cd $srctree; find $(find arch/$SRCARCH -name include -o -name scripts -type d) -type f) >> "$objtree/hdrsrcfiles"
if grep -q '^CONFIG_STACK_VALIDATION=y' $KCONFIG_CONFIG ; then
(cd $objtree; find tools/objtool -type f -executable) >> "$objtree/hdrobjfiles"
fi
(cd $objtree; find arch/$SRCARCH/include Module.symvers include scripts -type f) >> "$objtree/hdrobjfiles"
if grep -q '^CONFIG_GCC_PLUGINS=y' $KCONFIG_CONFIG ; then
(cd $objtree; find scripts/gcc-plugins -name \*.so -o -name gcc-common.h) >> "$objtree/hdrobjfiles"
fi
mkdir -p "$destdir"
(cd $srctree; tar -c -f - -T -) < "$objtree/hdrsrcfiles" | (cd $destdir; tar -xf -)
(cd $objtree; tar -c -f - -T -) < "$objtree/hdrobjfiles" | (cd $destdir; tar -xf -)
cp $objtree/.config $destdir/.config
mkdir -p "${destdir}"
(
cd "${srctree}"
echo Makefile
find "arch/${SRCARCH}" -maxdepth 1 -name 'Makefile*'
find include scripts -type f -o -type l
find "arch/${SRCARCH}" -name Kbuild.platforms -o -name Platform
find "arch/${SRCARCH}" -name include -o -name scripts -type d
) | tar -c -f - -C "${srctree}" -T - | tar -xf - -C "${destdir}"
{
cd "${objtree}"
if grep -q "^CONFIG_OBJTOOL=y" include/config/auto.conf; then
echo tools/objtool/objtool
fi
find "arch/${SRCARCH}/include" Module.symvers include scripts -type f
if grep -q "^CONFIG_GCC_PLUGINS=y" include/config/auto.conf; then
find scripts/gcc-plugins -name '*.so'
fi
} | tar -c -f - -C "${objtree}" -T - | tar -xf - -C "${destdir}"
cp "${KCONFIG_CONFIG}" "${destdir}/.config"
done

90 changes: 53 additions & 37 deletions kernel-patches/brunch_configs
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@
# CONFIG_ERROR_ON_WARNING is not set
# CONFIG_FW_DEVLINK_SYNC_STATE_TIMEOUT is not set
# CONFIG_INPUT_EVBUG is not set
# CONFIG_INTEL_IOMMU_DEFAULT_ON is not set
# CONFIG_NETFILTER_XT_MATCH_OWNER is not set
# CONFIG_LOCALVERSION_AUTO is not set
# CONFIG_NUMA is not set
# CONFIG_PANIC_ON_OOPS is not set
# CONFIG_RT_GROUP_SCHED is not set
Expand All @@ -21,18 +20,10 @@
# CONFIG_SECURITY_CHROMIUMOS_READONLY_PROC_SELF_MEM is not set
# CONFIG_SECURITY_DMESG_RESTRICT is not set
# CONFIG_SECURITY_LOADPIN is not set
# CONFIG_SECURITY_LOCKDOWN_LSM is not set
# CONFIG_STAGING_MEDIA is not set
# CONFIG_WERROR is not set
CONFIG_ACPI_CHROMEOS=y
CONFIG_ALT_SYSCALL=y
CONFIG_ALT_SYSCALL_CHROMIUMOS=y
CONFIG_ANDROID=y
CONFIG_ANDROID_BINDER_IPC=y
CONFIG_ESD_FS=y
CONFIG_LOW_MEM_NOTIFY=y
CONFIG_NETFILTER_XT_MATCH_QUOTA2=y
CONFIG_PKGLIST=y
CONFIG_PKGLIST_USE_CONFIGFS=y
CONFIG_DEBUG_INFO_NONE=y
CONFIG_MODULE_ALLOW_MISSING_NAMESPACE_IMPORTS=y
CONFIG_PANIC_ON_OOPS_VALUE=0
Expand All @@ -43,23 +34,14 @@ CONFIG_FW_LOADER_COMPRESS_ZSTD=y
CONFIG_KERNEL_XZ=y
CONFIG_MODULE_COMPRESS_XZ=y
CONFIG_SQUASHFS=y
# CONFIG_SQUASHFS_FILE_CACHE is not set
CONFIG_SQUASHFS_FILE_DIRECT=y
# CONFIG_SQUASHFS_DECOMP_SINGLE is not set
# CONFIG_SQUASHFS_DECOMP_MULTI is not set
CONFIG_SQUASHFS_DECOMP_MULTI_PERCPU=y
CONFIG_SQUASHFS_COMPILE_DECOMP_MULTI_PERCPU=y
# CONFIG_SQUASHFS_CHOICE_DECOMP_BY_MOUNT is not set
# CONFIG_SQUASHFS_MOUNT_DECOMP_THREADS is not set
CONFIG_SQUASHFS_XATTR=y
CONFIG_SQUASHFS_ZLIB=y
CONFIG_SQUASHFS_LZ4=y
CONFIG_SQUASHFS_LZO=y
CONFIG_SQUASHFS_XZ=y
CONFIG_SQUASHFS_ZSTD=y
CONFIG_SQUASHFS_4K_DEVBLK_SIZE=y
# CONFIG_SQUASHFS_EMBEDDED is not set
CONFIG_SQUASHFS_FRAGMENT_CACHE_SIZE=3
CONFIG_CPU_SUP_INTEL=y
CONFIG_CPU_SUP_AMD=y
CONFIG_EFI=y
Expand All @@ -76,46 +58,69 @@ CONFIG_DRM=y
CONFIG_DRM_KMS_HELPER=y
CONFIG_DRM_LOAD_EDID_FIRMWARE=y
CONFIG_DRM_AMDGPU=m
CONFIG_DRM_DP_AUX_CHARDEV=y
CONFIG_DRM_DP_CEC=y
CONFIG_DRM_EVDI=m
CONFIG_DRM_I915=m
CONFIG_DRM_I915_FORCE_PROBE="*"
CONFIG_DRM_NOUVEAU=m
CONFIG_DRM_QXL=m
CONFIG_DRM_RADEON=m
CONFIG_DRM_VGEM=m
CONFIG_DRM_VIRTIO_GPU=y
CONFIG_DRM_VMWGFX=m
CONFIG_HSA_AMD=y
CONFIG_INTEL_HID_EVENT=m
CONFIG_INTEL_VBTN=m
CONFIG_HAVE_KVM_CPU_RELAX_INTERCEPT=y
CONFIG_HAVE_KVM_EVENTFD=y
CONFIG_HAVE_KVM_IRQCHIP=y
CONFIG_HAVE_KVM_IRQFD=y
CONFIG_HAVE_KVM_IRQ_ROUTING=y
CONFIG_HAVE_KVM_MSI=y
CONFIG_KVM=y
# CONFIG_KVM_MMU_AUDIT is not set
# CONFIG_KVM_APIC_ARCHITECTURE is not set
# CONFIG_KVM_ASYNC_PF is not set
CONFIG_KVM_AMD=y
CONFIG_KVM_AMD_SEV=y
CONFIG_KVM_INTEL=y
CONFIG_KVM_MMIO=y
CONFIG_KVM_VIRT_SUSPEND_TIMING=y
CONFIG_VSOCKETS=m
CONFIG_VHOST_VSOCK=m
CONFIG_VIRTUALIZATION=y
CONFIG_INTEL_HID_EVENT=m
CONFIG_INTEL_VBTN=m
CONFIG_9P_FS=y
CONFIG_9P_FS_POSIX_ACL=y
CONFIG_9P_FS_SECURITY=y
CONFIG_GART_IOMMU=y
CONFIG_IOMMU_IOVA=y
CONFIG_IOMMU_API=y
CONFIG_IOMMU_SUPPORT=y
# CONFIG_IOMMU_DEBUGFS is not set
# CONFIG_IOMMU_DEFAULT_PASSTHROUGH is not set
CONFIG_IOMMU_DMA=y
CONFIG_AMD_IOMMU=y
CONFIG_AMD_IOMMU_V2=y
CONFIG_INTEL_IOMMU_SVM=y
# CONFIG_INTEL_IOMMU_DEFAULT_ON is not set
CONFIG_INTEL_IOMMU_FLOPPY_WA=y
CONFIG_INTEL_IOMMU_SCALABLE_MODE_DEFAULT_ON=y
CONFIG_INTEL_IOMMU_PERF_EVENTS=y
CONFIG_FB=y
CONFIG_FB_EFI=y
CONFIG_FB_VESA=y
CONFIG_FRAMEBUFFER_CONSOLE=y
CONFIG_VT=y
CONFIG_VT_CONSOLE=y
CONFIG_HDMI_LPE_AUDIO=m
CONFIG_I2C_DESIGNWARE_CORE=y
CONFIG_I2C_DESIGNWARE_SLAVE=y
CONFIG_I2C_DESIGNWARE_PLATFORM=y
CONFIG_I2C_DESIGNWARE_BAYTRAIL=y
CONFIG_I2C_DESIGNWARE_PCI=y
CONFIG_PINCTRL_AMD=y
CONFIG_PINCTRL_MCP23S08=y
CONFIG_PINCTRL_SX150X=y
CONFIG_PINCTRL_BAYTRAIL=y
CONFIG_PINCTRL_CHERRYVIEW=y
CONFIG_PINCTRL_BROXTON=y
CONFIG_PINCTRL_CANNONLAKE=y
CONFIG_PINCTRL_CEDARFORK=y
CONFIG_PINCTRL_DENVERTON=y
CONFIG_PINCTRL_GEMINILAKE=y
CONFIG_PINCTRL_ICELAKE=y
CONFIG_PINCTRL_JASPERLAKE=y
CONFIG_PINCTRL_LEWISBURG=y
CONFIG_PINCTRL_SUNRISEPOINT=y
CONFIG_PINCTRL_TIGERLAKE=y
CONFIG_HID_SENSOR_HUB=m
CONFIG_HID_SENSOR_IIO_COMMON=m
CONFIG_BRCMFMAC=m
Expand All @@ -124,6 +129,17 @@ CONFIG_IWLWIFI_LEDS=y
CONFIG_IWLDVM=m
CONFIG_IWLMVM=m
CONFIG_IWLWIFI_OPMODE_MODULAR=y
CONFIG_MT7601U=m
CONFIG_MT76x0U=m
CONFIG_MT76x0E=m
CONFIG_MT76x2E=m
CONFIG_MT76x2U=m
CONFIG_MT7603E=m
CONFIG_MT7615E=m
CONFIG_MT7663U=m
CONFIG_MT7663S=m
CONFIG_MT7915E=m
CONFIG_MT7921E=m
CONFIG_R8712U=m
CONFIG_R8188EU=m
CONFIG_RTW88=m
Expand Down Expand Up @@ -158,8 +174,6 @@ CONFIG_BT_MTK=m
CONFIG_BT_HCIUART_BCM=y
CONFIG_WIREGUARD=y
CONFIG_USB_DWC3_DUAL_ROLE=y
CONFIG_USB_NET_CDC_MBIM=m
CONFIG_USB_NET_QMI_WWAN=m
CONFIG_VMD=y
CONFIG_BLK_DEV_MD=y
CONFIG_BLK_DEV_SR=y
Expand Down Expand Up @@ -225,6 +239,7 @@ CONFIG_TCG_CR50_SPI=m
# CONFIG_TCG_INFINEON is not set
# CONFIG_TCG_CRB is not set
CONFIG_TCG_VTPM_PROXY=y
CONFIG_TCG_VIRTIO_VTPM=y
# CONFIG_TCG_TIS_ST33ZP24 is not set
# CONFIG_TCG_TIS_ST33ZP24_I2C is not set
# CONFIG_TCG_TIS_ST33ZP24_SPI is not set
Expand Down Expand Up @@ -368,6 +383,7 @@ CONFIG_SONY_LAPTOP=m
CONFIG_SYSTEM76_ACPI=m
CONFIG_TOPSTAR_LAPTOP=m
CONFIG_X86_ANDROID_TABLETS=m
CONFIG_HDMI_LPE_AUDIO=m
# CONFIG_SND_SUPPORT_OLD_API is not set
# CONFIG_SND_INTEL_BYT_PREFER_SOF is not set
# CONFIG_SND_SOC_INTEL_BYT_CHT_NOCODEC_MACH is not set
Expand Down
Loading

0 comments on commit fb17e53

Please sign in to comment.