From 68b1dfcd20b14d5859f560a906943d416b78ec97 Mon Sep 17 00:00:00 2001 From: Denis Date: Sat, 10 Jun 2023 16:06:12 +0500 Subject: [PATCH] xiaomi-pine: enable kernel module support (MR 4180) --- device/testing/linux-xiaomi-pine/APKBUILD | 8 +++-- .../config-xiaomi-pine.aarch64 | 29 ++++++++++++++++++- 2 files changed, 34 insertions(+), 3 deletions(-) diff --git a/device/testing/linux-xiaomi-pine/APKBUILD b/device/testing/linux-xiaomi-pine/APKBUILD index 30a9c650d..3a5457cd5 100644 --- a/device/testing/linux-xiaomi-pine/APKBUILD +++ b/device/testing/linux-xiaomi-pine/APKBUILD @@ -3,7 +3,7 @@ pkgname=linux-xiaomi-pine pkgver=4.9.337 -pkgrel=0 +pkgrel=1 pkgdesc="Xiaomi Redmi 7A kernel fork" arch="aarch64" _carch="arm64" @@ -47,9 +47,13 @@ build() { package() { downstreamkernel_package "$builddir" "$pkgdir" "$_carch" \ "$_flavor" "$_outdir" + unset LDFLAGS + make O="$_outdir" ARCH="$_carch" CC="${CC:-gcc}" \ + KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-postmarketOS" \ + INSTALL_MOD_PATH="$pkgdir" modules_install } sha512sums=" 491349581f0e0ffcbf59c20367f6d2e1a4f82d909b17398bc80db2711f543f845ddad4b8f0d0ae31f5a876e2ce1873315935700c1a42cd1f9abff1aa0d4253ae linux-xiaomi-pine-2bcfae17be1b3e70d41ee89f6fed7825627d952b.tar.gz -8cff7c83c012b4bfcd34a53a01f3c53949fc77bb976e784840b5c389bd19c0ff872e6d32a62e80bc5fbfb3537afbbac6858f9003ad8fef89bb8dce545a8b4e52 config-xiaomi-pine.aarch64 +a70d088f147e52fb35e60dad7807a1fa6eac5e320f0391cdf320926dcfed64696d5e8c9c8c5a539cb46e7b577766537248ad5f0511b0b2abd6a6d88350c48058 config-xiaomi-pine.aarch64 " diff --git a/device/testing/linux-xiaomi-pine/config-xiaomi-pine.aarch64 b/device/testing/linux-xiaomi-pine/config-xiaomi-pine.aarch64 index 2b6109888..23f9d3cb6 100644 --- a/device/testing/linux-xiaomi-pine/config-xiaomi-pine.aarch64 +++ b/device/testing/linux-xiaomi-pine/config-xiaomi-pine.aarch64 @@ -229,6 +229,7 @@ CONFIG_SLUB_CPU_PARTIAL=y # CONFIG_SYSTEM_DATA_VERIFICATION is not set CONFIG_PROFILING=y CONFIG_TRACEPOINTS=y +# CONFIG_KPROBES is not set # CONFIG_JUMP_LABEL is not set # CONFIG_UPROBES is not set # CONFIG_HAVE_64BIT_ALIGNED_ACCESS is not set @@ -270,6 +271,7 @@ CONFIG_HAVE_VIRT_CPU_ACCOUNTING_GEN=y CONFIG_HAVE_IRQ_TIME_ACCOUNTING=y CONFIG_HAVE_ARCH_TRANSPARENT_HUGEPAGE=y CONFIG_HAVE_ARCH_HUGE_VMAP=y +CONFIG_HAVE_MOD_ARCH_SPECIFIC=y CONFIG_MODULES_USE_ELF_RELA=y CONFIG_ARCH_HAS_ELF_RANDOMIZE=y CONFIG_HAVE_ARCH_MMAP_RND_BITS=y @@ -292,7 +294,15 @@ CONFIG_ARCH_HAS_GCOV_PROFILE_ALL=y CONFIG_HAVE_GENERIC_DMA_COHERENT=y CONFIG_RT_MUTEXES=y CONFIG_BASE_SMALL=0 -# CONFIG_MODULES is not set +CONFIG_MODULES=y +# CONFIG_MODULE_FORCE_LOAD is not set +CONFIG_MODULE_UNLOAD=y +# CONFIG_MODULE_FORCE_UNLOAD is not set +CONFIG_MODVERSIONS=y +# CONFIG_MODULE_SRCVERSION_ALL is not set +# CONFIG_MODULE_SIG is not set +# CONFIG_MODULE_COMPRESS is not set +# CONFIG_TRIM_UNUSED_KSYMS is not set CONFIG_MODULES_TREE_LOOKUP=y CONFIG_BLOCK=y # CONFIG_BLK_DEV_BSG is not set @@ -519,6 +529,8 @@ CONFIG_ARM64_PAN=y # ARMv8.2 architectural features # CONFIG_ARM64_UAO=y +CONFIG_ARM64_MODULE_CMODEL_LARGE=y +CONFIG_ARM64_MODULE_PLTS=y CONFIG_RELOCATABLE=y CONFIG_RANDOMIZE_BASE=y @@ -1076,6 +1088,7 @@ CONFIG_XPS=y # CONFIG_CGROUP_NET_CLASSID is not set CONFIG_NET_RX_BUSY_POLL=y CONFIG_BQL=y +# CONFIG_BPF_JIT is not set CONFIG_NET_FLOW_LIMIT=y # CONFIG_SOCKEV_NLMCAST is not set @@ -2024,6 +2037,7 @@ CONFIG_I2C_HELPER_AUTO=y # Other I2C/SMBus bus drivers # CONFIG_I2C_MSM_V2=y +# CONFIG_I2C_STUB is not set # CONFIG_I2C_SLAVE is not set # CONFIG_I2C_DEBUG_CORE is not set # CONFIG_I2C_DEBUG_ALGO is not set @@ -2057,6 +2071,7 @@ CONFIG_SPI_QUP=y # SPI Protocol Masters # CONFIG_SPI_SPIDEV=y +# CONFIG_SPI_LOOPBACK_TEST is not set # CONFIG_SPI_TLE62X0 is not set # CONFIG_SPI_DYNAMIC is not set CONFIG_SLIMBUS=y @@ -3633,6 +3648,8 @@ CONFIG_UIO_MSM_SHAREDMEM=y # CONFIG_VSERVICES_SUPPORT is not set CONFIG_STAGING=y # CONFIG_PRISM2_USB is not set +# CONFIG_COMEDI is not set +# CONFIG_RTLLIB is not set # CONFIG_R8712U is not set # CONFIG_R8188EU is not set @@ -3730,6 +3747,8 @@ CONFIG_ION=y CONFIG_ION_MSM=y # CONFIG_ALLOC_BUFFERS_IN_4K_CHUNKS is not set # CONFIG_STAGING_BOARD is not set +# CONFIG_LTE_GDM724X is not set +# CONFIG_LNET is not set # CONFIG_GS_FPGABOOT is not set # CONFIG_FB_TFT is not set # CONFIG_FSL_MC_BUS is not set @@ -4678,6 +4697,8 @@ CONFIG_TRACING_EVENTS_GPIO=y # CONFIG_TEST_LIST_SORT is not set # CONFIG_BACKTRACE_SELF_TEST is not set # CONFIG_RBTREE_TEST is not set +# CONFIG_INTERVAL_TREE_TEST is not set +# CONFIG_PERCPU_TEST is not set # CONFIG_ATOMIC64_SELFTEST is not set # CONFIG_TEST_HEXDUMP is not set # CONFIG_TEST_STRING_HELPERS is not set @@ -4688,9 +4709,13 @@ CONFIG_TRACING_EVENTS_GPIO=y # CONFIG_TEST_RHASHTABLE is not set # CONFIG_TEST_HASH is not set # CONFIG_DMA_API_DEBUG is not set +# CONFIG_TEST_LKM is not set +# CONFIG_TEST_USER_COPY is not set +# CONFIG_TEST_BPF is not set # CONFIG_TEST_FIRMWARE is not set # CONFIG_TEST_UDELAY is not set # CONFIG_MEMTEST is not set +# CONFIG_TEST_STATIC_KEYS is not set # CONFIG_PANIC_ON_DATA_CORRUPTION is not set # CONFIG_BUG_ON_DATA_CORRUPTION is not set # CONFIG_CC_WERROR is not set @@ -4705,6 +4730,7 @@ CONFIG_ARCH_HAS_DEVMEM_IS_ALLOWED=y # CONFIG_ARM64_PTDUMP is not set # CONFIG_PID_IN_CONTEXTIDR is not set # CONFIG_ARM64_RANDOMIZE_TEXT_OFFSET is not set +CONFIG_DEBUG_SET_MODULE_RONX=y CONFIG_DEBUG_ALIGN_RODATA=y # CONFIG_ARM64_STRICT_BREAK_BEFORE_MAKE is not set # CONFIG_CORESIGHT is not set @@ -4793,6 +4819,7 @@ CONFIG_CRYPTO_WORKQUEUE=y CONFIG_CRYPTO_CRYPTD=y # CONFIG_CRYPTO_MCRYPTD is not set CONFIG_CRYPTO_AUTHENC=y +# CONFIG_CRYPTO_TEST is not set CONFIG_CRYPTO_ABLK_HELPER=y #