From 08a4f495f1a83a4ce121fbbd4b9ca34f284918f2 Mon Sep 17 00:00:00 2001 From: Giulio Date: Thu, 17 Sep 2020 10:23:56 +0200 Subject: [PATCH] Wifi kernel driver buildroot package draft --- buildroot/board/tiesse/tgr/permissions.config | 4 +++ buildroot/configs/tiesse_tgr_defconfig | 1 + buildroot/package/qcacld/Config.in | 4 +++ buildroot/package/qcacld/qcacld.mk | 30 +++++++++++++++++++ 4 files changed, 39 insertions(+) create mode 100644 buildroot/board/tiesse/tgr/permissions.config create mode 100644 buildroot/package/qcacld/Config.in create mode 100644 buildroot/package/qcacld/qcacld.mk diff --git a/buildroot/board/tiesse/tgr/permissions.config b/buildroot/board/tiesse/tgr/permissions.config new file mode 100644 index 0000000..913839d --- /dev/null +++ b/buildroot/board/tiesse/tgr/permissions.config @@ -0,0 +1,4 @@ +/var/www/html/index.php f 755 upgrade upgrade - - - - - +/var/www/html/update.php f 755 upgrade upgrade - - - - - +/var/www/html/utils.php f 755 upgrade upgrade - - - - - +/update.sh f 755 root root diff --git a/buildroot/configs/tiesse_tgr_defconfig b/buildroot/configs/tiesse_tgr_defconfig index 5ca53a3..a788b7d 100644 --- a/buildroot/configs/tiesse_tgr_defconfig +++ b/buildroot/configs/tiesse_tgr_defconfig @@ -51,6 +51,7 @@ BR2_TARGET_GENERIC_ISSUE="1337 Linux" BR2_TARGET_ENABLE_ROOT_LOGIN=y BR2_TARGET_GENERIC_ROOT_PASSWD="###ROOTPASSWORD###" BR2_ROOTFS_USERS_TABLES="board/tiesse/tgr/users.config" +BR2_ROOTFS_DEVICE_TABLE="board/tiesse/tgr/permissions.config" BR2_SYSTEM_DHCP="eth0" BR2_ROOTFS_OVERLAY="../overlay" BR2_PACKAGE_BUSYBOX_SHOW_OTHERS=y diff --git a/buildroot/package/qcacld/Config.in b/buildroot/package/qcacld/Config.in new file mode 100644 index 0000000..d912328 --- /dev/null +++ b/buildroot/package/qcacld/Config.in @@ -0,0 +1,4 @@ +config BR2_PACKAGE_QCACLD + bool "qcacld" + help + QCACLD kernel driver. diff --git a/buildroot/package/qcacld/qcacld.mk b/buildroot/package/qcacld/qcacld.mk new file mode 100644 index 0000000..3b653cf --- /dev/null +++ b/buildroot/package/qcacld/qcacld.mk @@ -0,0 +1,30 @@ +################################################################################ +# +# qcacld +# +################################################################################ + +QCACLD_VERSION = IMX_CNSS.LEA.NRT_2.0 +QCACLD_SITE = https://source.codeaurora.org/external/imx/qcacld-2.0-imx +QCACLD_SITE_METHOD = git +QCACLD_LICENSE = ISC +QCACLD_FILES = COPYING +QCACLD_MODULE_MAKE_OPTS = \ + CONFIG_CFG80211_INTERNAL_REGDB=y \ + CONFIG_HDD_WLAN_WAIT_TIME=10000 \ + CONFIG_LINUX_QCMBR=y \ + CONFIG_NON_QC_PLATFORM=y \ + CONFIG_PMF_SUPPORT=y \ + TARGET_BUILD_VARIANT=user \ + CONFIG_ROME_IF=pci \ + CONFIG_WLAN_FEATURE_11W=y \ + CONFIG_WLAN_FEATURE_FILS=y \ + CONFIG_WLAN_WAPI_MODE_11AC_DISABLE=y \ + MODNAME=qca6174 + +define KERNEL_MODULE_BUILD_CMDS + $(MAKE) -C '$(@D)' KERNEL_SRC='$(LINUX_DIR)' CC='$(TARGET_CC)' LD='$(TARGET_LD)' modules +endef + +$(eval $(kernel-module)) +$(eval $(generic-package))