Squashed backup commit (no shallow-clone history issues) of xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2 branch, upstream commit 9eece662e) plus all fixes applied to get everpal_defconfig building clean against a modern (GCC 15.2.0) toolchain -- see the previous commit message on the lineage-23.2 branch (also in this repo history is not available here since this is a squashed snapshot; full incremental history lives in the local DL380 checkout and the upstream GitHub remote). Upstream: https://github.com/xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2)
34 lines
654 B
C
34 lines
654 B
C
// SPDX-License-Identifier: GPL-2.0
|
|
#define BUILD_VDSO32
|
|
|
|
#ifndef CONFIG_CC_OPTIMIZE_FOR_SIZE
|
|
#undef CONFIG_OPTIMIZE_INLINING
|
|
#endif
|
|
|
|
#undef CONFIG_X86_PPRO_FENCE
|
|
|
|
#ifdef CONFIG_X86_64
|
|
|
|
/*
|
|
* in case of a 32 bit VDSO for a 64 bit kernel fake a 32 bit kernel
|
|
* configuration
|
|
*/
|
|
#undef CONFIG_64BIT
|
|
#undef CONFIG_X86_64
|
|
#undef CONFIG_PGTABLE_LEVELS
|
|
#undef CONFIG_ILLEGAL_POINTER_VALUE
|
|
#undef CONFIG_SPARSEMEM_VMEMMAP
|
|
#undef CONFIG_NR_CPUS
|
|
|
|
#define CONFIG_X86_32 1
|
|
#define CONFIG_PGTABLE_LEVELS 2
|
|
#define CONFIG_PAGE_OFFSET 0
|
|
#define CONFIG_ILLEGAL_POINTER_VALUE 0
|
|
#define CONFIG_NR_CPUS 1
|
|
|
|
#define BUILD_VDSO32_64
|
|
|
|
#endif
|
|
|
|
#include "../vclock_gettime.c"
|