From a050f6d2a66a9b0e12be1917de065475440622bc Mon Sep 17 00:00:00 2001 From: viktorxda <35473052+viktorxda@users.noreply.github.com> Date: Fri, 31 Mar 2023 16:12:30 +0200 Subject: [PATCH] Add exfat kernel module package (#699) Thank you Co-authored-by: Viktor --- br-ext-chip-sigmastar/Config.in | 1 + .../kernel/ssc338q.sdcard.config.camhi | 2 +- .../configs/ssc338q_sdcard_defconfig | 2 ++ br-ext-chip-sigmastar/package/exfat-openipc | 1 + general/overlay/etc/modules | 3 ++- general/package/exfat-openipc/Config.in | 7 +++++++ general/package/exfat-openipc/exfat-openipc.mk | 17 +++++++++++++++++ 7 files changed, 31 insertions(+), 2 deletions(-) create mode 120000 br-ext-chip-sigmastar/package/exfat-openipc create mode 100644 general/package/exfat-openipc/Config.in create mode 100644 general/package/exfat-openipc/exfat-openipc.mk diff --git a/br-ext-chip-sigmastar/Config.in b/br-ext-chip-sigmastar/Config.in index 3cd6389c..af5df556 100644 --- a/br-ext-chip-sigmastar/Config.in +++ b/br-ext-chip-sigmastar/Config.in @@ -4,6 +4,7 @@ source "$BR2_EXTERNAL_SIGMASTAR_PATH/package/aura-httpd/Config.in" source "$BR2_EXTERNAL_SIGMASTAR_PATH/package/baresip-openipc/Config.in" source "$BR2_EXTERNAL_SIGMASTAR_PATH/package/comgt/Config.in" source "$BR2_EXTERNAL_SIGMASTAR_PATH/package/dropbear-openipc/Config.in" +source "$BR2_EXTERNAL_SIGMASTAR_PATH/package/exfat-openipc/Config.in" source "$BR2_EXTERNAL_SIGMASTAR_PATH/package/fdk-aac-openipc/Config.in" source "$BR2_EXTERNAL_SIGMASTAR_PATH/package/ffmpeg-openipc/Config.in" source "$BR2_EXTERNAL_SIGMASTAR_PATH/package/fwprintenv-openipc/Config.in" diff --git a/br-ext-chip-sigmastar/board/infinity6e/kernel/ssc338q.sdcard.config.camhi b/br-ext-chip-sigmastar/board/infinity6e/kernel/ssc338q.sdcard.config.camhi index 624ba649..a1d4337d 100755 --- a/br-ext-chip-sigmastar/board/infinity6e/kernel/ssc338q.sdcard.config.camhi +++ b/br-ext-chip-sigmastar/board/infinity6e/kernel/ssc338q.sdcard.config.camhi @@ -260,7 +260,7 @@ CONFIG_MODULE_UNLOAD=y # CONFIG_TRIM_UNUSED_KSYMS is not set CONFIG_MODULES_TREE_LOOKUP=y CONFIG_BLOCK=y -# CONFIG_LBDAF is not set +CONFIG_LBDAF=y # CONFIG_BLK_DEV_BSG is not set # CONFIG_BLK_DEV_BSGLIB is not set # CONFIG_BLK_DEV_INTEGRITY is not set diff --git a/br-ext-chip-sigmastar/configs/ssc338q_sdcard_defconfig b/br-ext-chip-sigmastar/configs/ssc338q_sdcard_defconfig index a8460842..23182af3 100644 --- a/br-ext-chip-sigmastar/configs/ssc338q_sdcard_defconfig +++ b/br-ext-chip-sigmastar/configs/ssc338q_sdcard_defconfig @@ -78,6 +78,8 @@ BR2_PACKAGE_SIGMASTAR_OSDRV_INFINITY6E=y BR2_PACKAGE_SIGMASTAR_OSDRV_SENSOR="imx415" BR2_PACKAGE_DOSFSTOOLS=y BR2_PACKAGE_DOSFSTOOLS_FSCK_FAT=y +BR2_PACKAGE_EXFAT_OPENIPC=y +BR2_PACKAGE_EXFATPROGS=y # BR2_PACKAGE_SSHPASS is not set BR2_PACKAGE_UACME_OPENIPC=y BR2_PACKAGE_VTUND_OPENIPC=y diff --git a/br-ext-chip-sigmastar/package/exfat-openipc b/br-ext-chip-sigmastar/package/exfat-openipc new file mode 120000 index 00000000..12fcbb0c --- /dev/null +++ b/br-ext-chip-sigmastar/package/exfat-openipc @@ -0,0 +1 @@ +../../general/package/exfat-openipc \ No newline at end of file diff --git a/general/overlay/etc/modules b/general/overlay/etc/modules index 6ee165b3..343f9637 100644 --- a/general/overlay/etc/modules +++ b/general/overlay/etc/modules @@ -1,5 +1,6 @@ f2fs vfat +exfat # For XM530 SD cards -# sdio0_sd \ No newline at end of file +# sdio0_sd diff --git a/general/package/exfat-openipc/Config.in b/general/package/exfat-openipc/Config.in new file mode 100644 index 00000000..a2fb3e0f --- /dev/null +++ b/general/package/exfat-openipc/Config.in @@ -0,0 +1,7 @@ +config BR2_PACKAGE_EXFAT_OPENIPC + bool "exfat-openipc" + help + exFAT kernel module + +comment "exFAT needs a Linux kernel to be built" + depends on !BR2_LINUX_KERNEL diff --git a/general/package/exfat-openipc/exfat-openipc.mk b/general/package/exfat-openipc/exfat-openipc.mk new file mode 100644 index 00000000..5f4984ee --- /dev/null +++ b/general/package/exfat-openipc/exfat-openipc.mk @@ -0,0 +1,17 @@ +################################################################################ +# +# exfat-openipc +# +################################################################################ + +EXFAT_OPENIPC_VERSION = 7f592ba5718e3e757cd0edd2d934fe2fe87f7d61 +EXFAT_OPENIPC_SITE = $(call github,namjaejeon,linux-exfat-oot,$(EXFAT_OPENIPC_VERSION)) +EXFAT_OPENIPC_LICENSE = GPL-2.0 +EXFAT_OPENIPC_LICENSE_FILES = COPYING + +EXFAT_OPENIPC_MODULE_MAKE_OPTS = \ + CONFIG_EXFAT_FS=m \ + KDIR=$(LINUX_DIR) + +$(eval $(kernel-module)) +$(eval $(generic-package))