From 619fe1103e7c2a0dcb4f66d986754b5711aef646 Mon Sep 17 00:00:00 2001 From: Martijn Braam Date: Sat, 3 Jun 2017 14:27:26 +0200 Subject: [PATCH] Hammerhead module loading functional --- linux-lg-hammerhead/APKBUILD | 24 +++++++++---------- .../config-lg-hammerhead.armhf | 24 +++++++++++++++++-- 2 files changed, 34 insertions(+), 14 deletions(-) diff --git a/linux-lg-hammerhead/APKBUILD b/linux-lg-hammerhead/APKBUILD index 3a7de4fde..f883c3661 100644 --- a/linux-lg-hammerhead/APKBUILD +++ b/linux-lg-hammerhead/APKBUILD @@ -94,10 +94,10 @@ build() { make ARCH="$_carch" CC="${CC:-gcc}" \ KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-Alpine" CONFIG_NO_ERROR_ON_MISMATCH=y \ || return 1 - #echo "--[ Build modules ]--" - #make ARCH="$_carch" CC="${CC:-gcc}" \ - # KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-Alpine" CONFIG_NO_ERROR_ON_MISMATCH=y \ - # modules || return 1 + echo "--[ Build modules ]--" + make ARCH="$_carch" CC="${CC:-gcc}" \ + KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-Alpine" CONFIG_NO_ERROR_ON_MISMATCH=y \ + modules || return 1 } package() { @@ -107,17 +107,17 @@ package() { install -D "$srcdir/build/include/config/kernel.release" \ "$pkgdir/usr/share/kernel/$_flavor/kernel.release" - #cd "$srcdir"/build - #unset LDFLAGS - #echo "--[ Installing modules ]--" - #make ARCH="$_carch" CC="${CC:-gcc}" \ - # KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-Alpine" CONFIG_NO_ERROR_ON_MISMATCH=y \ - # INSTALL_MOD_PATH="$pkgdir" modules_install \ - # || return 1 + cd "$srcdir"/build + unset LDFLAGS + echo "--[ Installing modules ]--" + make ARCH="$_carch" CC="${CC:-gcc}" \ + KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-Alpine" CONFIG_NO_ERROR_ON_MISMATCH=y \ + INSTALL_MOD_PATH="$pkgdir" modules_install \ + || return 1 } sha512sums="882ec7d4ce3eadb372c1279f53fab18c5c7f18109d3df2c8c4005ec5d06e6244c2c788c3183defa4d4aaf493a5c1bf905d8bd2aeb554e4b0680b0e1b45de6742 1dae34efb7d2399073ca371c953aafd2ed503849.zip -9e6c0bfc684fc271598208bdbf11e445df388166e6038271d6663ef863bcea10237ef435654db085cb64d669609382f58291aca0e0fbc4b302f540f916f4bfc0 config-lg-hammerhead.armhf +5060692fa56afce6e9c7dd42c6a6ee684ee59358563385f62c5d39f52d51344abb4fd1635b4ef6f8e1d37ca869632d10881b25a50882e1fabed5cd7625a8c143 config-lg-hammerhead.armhf d80980e9474c82ba0ef1a6903b434d8bd1b092c40367ba543e72d2c119301c8b2d05265740e4104ca1ac5d15f6c4aa49e8776cb44264a9a28dc551e0d1850dcc compiler-gcc6.h ea1d3b5a234fa565e3c1a792de48f4fc4e6023d281d303c8e319c7ef28edc5739ab0e4dea0139a41f0a5c7d03e27921ccaa214fd0ac5c72245a094ce60128864 aeea3592a13bf12861943e44fc48f1f270941f8d.patch 7be03a9e78b7ac330a54b1f00509caa0621a95c0c55901878ad757f9dd69cc05ba2c8b5ea987063ae1224f92c4d090d515fa5d369e7755181a4871b0d0f82881 gpu-msm-fix-gcc5-compile.patch" diff --git a/linux-lg-hammerhead/config-lg-hammerhead.armhf b/linux-lg-hammerhead/config-lg-hammerhead.armhf index 3495a8b35..d665cf770 100644 --- a/linux-lg-hammerhead/config-lg-hammerhead.armhf +++ b/linux-lg-hammerhead/config-lg-hammerhead.armhf @@ -158,6 +158,7 @@ CONFIG_PROFILING=y CONFIG_TRACEPOINTS=y # CONFIG_OPROFILE is not set CONFIG_HAVE_OPROFILE=y +# CONFIG_KPROBES is not set # CONFIG_JUMP_LABEL is not set CONFIG_HAVE_KPROBES=y CONFIG_HAVE_KRETPROBES=y @@ -184,7 +185,12 @@ CONFIG_HAVE_GENERIC_DMA_COHERENT=y CONFIG_SLABINFO=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 is not set +# CONFIG_MODULE_SRCVERSION_ALL is not set CONFIG_STOP_MACHINE=y CONFIG_BLOCK=y CONFIG_LBDAF=y @@ -1132,6 +1138,7 @@ CONFIG_XPS=y # CONFIG_NETPRIO_CGROUP is not set CONFIG_BQL=y CONFIG_HAVE_BPF_JIT=y +# CONFIG_BPF_JIT is not set # # Network testing @@ -1360,6 +1367,7 @@ CONFIG_SCSI_MULTI_LUN=y CONFIG_SCSI_CONSTANTS=y CONFIG_SCSI_LOGGING=y CONFIG_SCSI_SCAN_ASYNC=y +CONFIG_SCSI_WAIT_SCAN=m # # SCSI Transports @@ -1781,6 +1789,7 @@ CONFIG_I2C_QUP=y # # Other I2C/SMBus bus drivers # +# CONFIG_I2C_STUB is not set # CONFIG_I2C_DEBUG_CORE is not set # CONFIG_I2C_DEBUG_ALGO is not set # CONFIG_I2C_DEBUG_BUS is not set @@ -2177,6 +2186,7 @@ CONFIG_MSMB_JPEG=y CONFIG_MSM_VIDC_V4L2=y # CONFIG_MSM_WFD is not set CONFIG_MSM_VCAP=y +# CONFIG_MEDIA_ATTACH is not set CONFIG_MEDIA_TUNER=y CONFIG_MEDIA_TUNER_CUSTOMISE=y @@ -3010,12 +3020,15 @@ CONFIG_STAGING=y # CONFIG_PRISM2_USB is not set # CONFIG_ECHO is not set # CONFIG_ASUS_OLED is not set +# CONFIG_RTLLIB is not set # CONFIG_R8712U is not set # CONFIG_RTS5139 is not set # CONFIG_TRANZPORT is not set # CONFIG_LINE6_USB is not set +# CONFIG_VT6656 is not set # CONFIG_IIO is not set # CONFIG_FB_SM7XX is not set +# CONFIG_USB_ENESTORAGE is not set # CONFIG_BCM_WIMAX is not set # CONFIG_FT1000 is not set @@ -3112,7 +3125,11 @@ CONFIG_JBD2=y CONFIG_FS_MBCACHE=y # CONFIG_REISERFS_FS is not set # CONFIG_JFS_FS is not set -# CONFIG_XFS_FS is not set +CONFIG_XFS_FS=m +# CONFIG_XFS_QUOTA is not set +# CONFIG_XFS_POSIX_ACL is not set +# CONFIG_XFS_RT is not set +# CONFIG_XFS_DEBUG is not set # CONFIG_GFS2_FS is not set # CONFIG_BTRFS_FS is not set # CONFIG_NILFS2_FS is not set @@ -3125,6 +3142,7 @@ CONFIG_F2FS_FS_SECURITY=y # CONFIG_F2FS_FS_ENCRYPTION is not set # CONFIG_F2FS_IO_TRACE is not set CONFIG_FS_POSIX_ACL=y +CONFIG_EXPORTFS=m CONFIG_FILE_LOCKING=y CONFIG_FSNOTIFY=y CONFIG_DNOTIFY=y @@ -3338,6 +3356,7 @@ CONFIG_OLD_MCOUNT=y # CONFIG_DEBUG_USER is not set # CONFIG_DEBUG_LL is not set CONFIG_PID_IN_CONTEXTIDR=y +# CONFIG_DEBUG_SET_MODULE_RONX is not set # # Security options @@ -3393,6 +3412,7 @@ CONFIG_CRYPTO_NULL=y CONFIG_CRYPTO_WORKQUEUE=y # CONFIG_CRYPTO_CRYPTD is not set CONFIG_CRYPTO_AUTHENC=y +# CONFIG_CRYPTO_TEST is not set # # Authenticated Encryption with Associated Data