diff --git a/Config.in b/Config.in new file mode 100644 index 0000000..95cd912 --- /dev/null +++ b/Config.in @@ -0,0 +1,219 @@ + +choice + prompt "Radio Bundles" + optional + + config BR2_SUMMIT_SOM60_RADIO + bool "SOM60 Radio Bundle" + imply BR2_PACKAGE_SUMMIT_ADAPTIVE_BT if BR2_PACKAGE_BLUEZ5_UTILS + imply BR2_PACKAGE_SUMMIT_ADAPTIVE_WW + select BR2_PACKAGE_SUMMIT_FIRMWARE_60 + select BR2_PACKAGE_SUMMIT_FIRMWARE_60_SDIO_UART + select BR2_PACKAGE_SUMMIT_LINUX_BACKPORTS + select BR2_PACKAGE_SUMMIT_LINUX_BACKPORTS_60 + imply BR2_PACKAGE_SUMMIT_NETWORK_MANAGER + imply BR2_PACKAGE_SUMMIT_NETWORK_MANAGER_60 + imply BR2_PACKAGE_SUMMIT_SUPPLICANT + imply BR2_PACKAGE_SUMMIT_SUPPLICANT_WPA_CLI + imply BR2_PACKAGE_SUMMIT_SUPPLICANT_60 + help + This option selects the radio bundle for the 60 Series SOMs + + config BR2_SUMMIT_SOM8MP_RADIO + bool "Summit SOM8MP Radio Bundle" + imply BR2_PACKAGE_SUMMIT_ADAPTIVE_BT if BR2_PACKAGE_BLUEZ5_UTILS + imply BR2_PACKAGE_SUMMIT_ADAPTIVE_WW + select BR2_PACKAGE_SUMMIT_FIRMWARE_60 + select BR2_PACKAGE_SUMMIT_FIRMWARE_60_SOM8MP + select BR2_PACKAGE_SUMMIT_LINUX_BACKPORTS + select BR2_PACKAGE_SUMMIT_LINUX_BACKPORTS_60 + imply BR2_PACKAGE_SUMMIT_NETWORK_MANAGER + imply BR2_PACKAGE_SUMMIT_NETWORK_MANAGER_60 + imply BR2_PACKAGE_SUMMIT_SUPPLICANT + imply BR2_PACKAGE_SUMMIT_SUPPLICANT_WPA_CLI + imply BR2_PACKAGE_SUMMIT_SUPPLICANT_60 + help + This option selects the radio bundle for the Summit SOM 8M Plus + + config BR2_SUMMIT_WB50N_SYSD_RADIO + bool "WB50N SYSD Radio Bundle" + select BR2_PACKAGE_SUMMIT_FIRMWARE_MSD + select BR2_PACKAGE_SUMMIT_FIRMWARE_MSD_50 + select BR2_PACKAGE_SUMMIT_LINUX_BACKPORTS + select BR2_PACKAGE_SUMMIT_LINUX_BACKPORTS_MSD + imply BR2_PACKAGE_SUMMIT_NETWORK_MANAGER + imply BR2_PACKAGE_SUMMIT_NETWORK_MANAGER_MSD + imply BR2_PACKAGE_SUMMIT_SUPPLICANT + imply BR2_PACKAGE_SUMMIT_SUPPLICANT_WPA_CLI + imply BR2_PACKAGE_SUMMIT_SUPPLICANT_MSD + help + This option selects the radio bundle for the WB50N Modern + + config BR2_SUMMIT_WB50N_LEGACY_RADIO + bool "WB50N Legacy Radio Bundle" + select BR2_PACKAGE_SUMMIT_FIRMWARE_MSD + select BR2_PACKAGE_SUMMIT_FIRMWARE_MSD_50 + select BR2_PACKAGE_SUMMIT_LINUX_BACKPORTS + select BR2_PACKAGE_SUMMIT_LINUX_BACKPORTS_MSD + imply BR2_PACKAGE_SUMMIT_SUPPLICANT + imply BR2_PACKAGE_SUMMIT_SUPPLICANT_LEGACY + imply BR2_PACKAGE_SUMMIT_SUPPLICANT_MSD + help + This option selects the radio bundle for the WB50N Legacy + + config BR2_SUMMIT_WB45N_LEGACY_RADIO + bool "WB45N Legacy Radio Bundle" + select BR2_PACKAGE_SUMMIT_FIRMWARE_MSD + select BR2_PACKAGE_SUMMIT_FIRMWARE_MSD_45 + select BR2_PACKAGE_SUMMIT_LINUX_BACKPORTS + select BR2_PACKAGE_SUMMIT_LINUX_BACKPORTS_MSD + imply BR2_PACKAGE_SUMMIT_SUPPLICANT + imply BR2_PACKAGE_SUMMIT_SUPPLICANT_LEGACY + imply BR2_PACKAGE_SUMMIT_SUPPLICANT_MSD + help + This option selects the radio bundle for the WB45N Legacy + + config BR2_SUMMIT_BD_COMMON_IMAGE_RADIO + bool "BD SOM Common Image Radio Bundle" + select BR2_PACKAGE_SUMMIT_FIRMWARE_LWB_IF + select BR2_PACKAGE_SUMMIT_FIRMWARE_LWB_IF_LWB5PLUS_SDIO_DIV + select BR2_PACKAGE_SUMMIT_FIRMWARE_LWB_IF_IF573_SDIO + select BR2_PACKAGE_SUMMIT_FIRMWARE_BDSDMAC + select BR2_PACKAGE_SUMMIT_LINUX_BACKPORTS + imply BR2_PACKAGE_SUMMIT_LINUX_BACKPORTS_BDSDMAC + imply BR2_PACKAGE_SUMMIT_NETWORK_MANAGER + imply BR2_PACKAGE_SUMMIT_NETWORK_MANAGER_LWB + imply BR2_PACKAGE_SUMMIT_SUPPLICANT + imply BR2_PACKAGE_SUMMIT_SUPPLICANT_WPA_CLI + imply BR2_PACKAGE_SUMMIT_SUPPLICANT_LWB + help + This option selects the default radio bundle for the BD Common Image + + config BR2_SUMMIT_CORE_60_RADIO + bool "Core 60 Radio Bundle" + imply BR2_PACKAGE_SUMMIT_ADAPTIVE_BT if BR2_PACKAGE_BLUEZ5_UTILS + imply BR2_PACKAGE_SUMMIT_ADAPTIVE_WW + select BR2_PACKAGE_SUMMIT_FIRMWARE_60 + select BR2_PACKAGE_SUMMIT_LINUX_BACKPORTS + select BR2_PACKAGE_SUMMIT_LINUX_BACKPORTS_60 + imply BR2_PACKAGE_SUMMIT_NETWORK_MANAGER + imply BR2_PACKAGE_SUMMIT_NETWORK_MANAGER_60 + imply BR2_PACKAGE_SUMMIT_SUPPLICANT + imply BR2_PACKAGE_SUMMIT_SUPPLICANT_WPA_CLI + imply BR2_PACKAGE_SUMMIT_SUPPLICANT_60 + imply BR2_PACKAGE_SUMMIT_HOSTAPD + imply BR2_PACKAGE_SUMMIT_HOSTAPD_60 + help + This option selects the default radio bundle for the Core 60 Radio + User needs to manually select proper firmware variant for the radio + This option is suitable for customers purchased the standalone + 60 radio + + config BR2_SUMMIT_CORE_LWB_RADIO + bool "Core LWB/IF Radio Bundle" + imply BR2_PACKAGE_SUMMIT_ADAPTIVE_BT if BR2_PACKAGE_BLUEZ5_UTILS + imply BR2_PACKAGE_SUMMIT_ADAPTIVE_WW + select BR2_PACKAGE_SUMMIT_FIRMWARE_LWB_IF + select BR2_PACKAGE_SUMMIT_LINUX_BACKPORTS + select BR2_PACKAGE_SUMMIT_LINUX_BACKPORTS_LWB + imply BR2_PACKAGE_SUMMIT_NETWORK_MANAGER + imply BR2_PACKAGE_SUMMIT_NETWORK_MANAGER_LWB + imply BR2_PACKAGE_SUMMIT_SUPPLICANT + imply BR2_PACKAGE_SUMMIT_SUPPLICANT_WPA_CLI + imply BR2_PACKAGE_SUMMIT_SUPPLICANT_LWB + imply BR2_PACKAGE_SUMMIT_HOSTAPD + imply BR2_PACKAGE_SUMMIT_HOSTAPD_LWB + help + This option selects the default radio bundle for the Core LWB/IF Radios + User needs to manually select proper firmware variant for the radio + This option is suitable for customers purchased the standalone + LWB or IF radio + + config BR2_SUMMIT_CORE_NX_RADIO + bool "Core NX Radio Bundle" + imply BR2_PACKAGE_SUMMIT_ADAPTIVE_BT if BR2_PACKAGE_BLUEZ5_UTILS + imply BR2_PACKAGE_SUMMIT_ADAPTIVE_WW + select BR2_PACKAGE_SUMMIT_FIRMWARE_NX + select BR2_PACKAGE_SUMMIT_FIRMWARE_NX61X + select BR2_PACKAGE_SUMMIT_LINUX_BACKPORTS + select BR2_PACKAGE_SUMMIT_LINUX_BACKPORTS_NX + imply BR2_PACKAGE_SUMMIT_NETWORK_MANAGER + imply BR2_PACKAGE_SUMMIT_NETWORK_MANAGER_NX + imply BR2_PACKAGE_SUMMIT_SUPPLICANT + imply BR2_PACKAGE_SUMMIT_SUPPLICANT_WPA_CLI + imply BR2_PACKAGE_SUMMIT_SUPPLICANT_NX + imply BR2_PACKAGE_SUMMIT_HOSTAPD + imply BR2_PACKAGE_SUMMIT_HOSTAPD_NX + help + This option selects the default radio bundle for the Core LWB/IF Radios + User needs to manually select proper firmware variant for the radio + This option is suitable for customers purchased the standalone + NX radio + + config BR2_SUMMIT_CORE_TI_RADIO + bool "Core TI Radio Bundle" + imply BR2_PACKAGE_SUMMIT_ADAPTIVE_BT if BR2_PACKAGE_BLUEZ5_UTILS + imply BR2_PACKAGE_SUMMIT_ADAPTIVE_WW + select BR2_PACKAGE_SUMMIT_FIRMWARE_TI + select BR2_PACKAGE_SUMMIT_FIRMWARE_TI_351 + select BR2_PACKAGE_SUMMIT_LINUX_BACKPORTS + select BR2_PACKAGE_SUMMIT_LINUX_BACKPORTS_TI + imply BR2_PACKAGE_SUMMIT_NETWORK_MANAGER + imply BR2_PACKAGE_SUMMIT_NETWORK_MANAGER_TI + imply BR2_PACKAGE_SUMMIT_SUPPLICANT + imply BR2_PACKAGE_SUMMIT_SUPPLICANT_WPA_CLI + imply BR2_PACKAGE_SUMMIT_SUPPLICANT_TI + imply BR2_PACKAGE_SUMMIT_HOSTAPD + imply BR2_PACKAGE_SUMMIT_HOSTAPD_TI + help + This option selects the default radio bundle for the Core LWB/IF Radios + User needs to manually select proper firmware variant for the radio + This option is suitable for customers purchased the standalone + TI radio +endchoice + +config BR2_SUMMIT_60_RADIO + bool + default y if BR2_SUMMIT_SOM60_RADIO || BR2_SUMMIT_SOM8MP_RADIO || BR2_SUMMIT_CORE_60_RADIO + +config BR2_SUMMIT_50_RADIO + bool + default y if BR2_SUMMIT_WB50N_SYSD_RADIO || BR2_SUMMIT_WB50N_LEGACY_RADIO + +config BR2_SUMMIT_FIPS_RADIO + bool "FIPS Radio" + depends on BR2_SUMMIT_SOM60_RADIO || BR2_SUMMIT_50_RADIO || BR2_SUMMIT_WB45N_LEGACY_RADIO + select BR2_PACKAGE_SUMMIT_SUPPLICANT_FIPS + +config BR2_PACKAGE_SUMMIT_RADIO_STACK_ARCH + string + default "arm-eabihf" if BR2_arm && BR2_ARM_EABIHF + default "arm-eabi" if BR2_arm && BR2_ARM_EABI + default "aarch64" if BR2_aarch64 + default "powerpc64-e5500" if BR2_powerpc64 + default "powerpc" if BR2_powerpc + default "x86" if BR2_i386 + default "x86_64" if BR2_x86_64 + +source "$BR2_EXTERNAL_SUMMIT_RADIO_PATH/package/summit-adaptive_bt/Config.in" +source "$BR2_EXTERNAL_SUMMIT_RADIO_PATH/package/summit-adaptive_ww/Config.in" +source "$BR2_EXTERNAL_SUMMIT_RADIO_PATH/package/summit-brcm-patchram-plus/Config.in" +source "$BR2_EXTERNAL_SUMMIT_RADIO_PATH/package/summit-firmware-60/Config.in" +source "$BR2_EXTERNAL_SUMMIT_RADIO_PATH/package/summit-firmware-bdsdmac/Config.in" +source "$BR2_EXTERNAL_SUMMIT_RADIO_PATH/package/summit-firmware-lwb-if/Config.in" +source "$BR2_EXTERNAL_SUMMIT_RADIO_PATH/package/summit-firmware-msd/Config.in" +source "$BR2_EXTERNAL_SUMMIT_RADIO_PATH/package/summit-firmware-nx/Config.in" +source "$BR2_EXTERNAL_SUMMIT_RADIO_PATH/package/summit-firmware-ti/Config.in" +source "$BR2_EXTERNAL_SUMMIT_RADIO_PATH/package/summit-hostapd/Config.in" +source "$BR2_EXTERNAL_SUMMIT_RADIO_PATH/package/summit-linux-backports/Config.in" +source "$BR2_EXTERNAL_SUMMIT_RADIO_PATH/package/summit-mfg60/Config.in" +source "$BR2_EXTERNAL_SUMMIT_RADIO_PATH/package/summit-network-manager/Config.in" +source "$BR2_EXTERNAL_SUMMIT_RADIO_PATH/package/summit-reg45n/Config.in" +source "$BR2_EXTERNAL_SUMMIT_RADIO_PATH/package/summit-reg50n/Config.in" +source "$BR2_EXTERNAL_SUMMIT_RADIO_PATH/package/summit-regcypress/Config.in" +source "$BR2_EXTERNAL_SUMMIT_RADIO_PATH/package/summit-regif513/Config.in" +source "$BR2_EXTERNAL_SUMMIT_RADIO_PATH/package/summit-regif573/Config.in" +source "$BR2_EXTERNAL_SUMMIT_RADIO_PATH/package/summit-reglwb5plus/Config.in" +source "$BR2_EXTERNAL_SUMMIT_RADIO_PATH/package/summit-reglwbplus/Config.in" +source "$BR2_EXTERNAL_SUMMIT_RADIO_PATH/package/summit-supplicant/Config.in" +source "$BR2_EXTERNAL_SUMMIT_RADIO_PATH/package/summit-supplicant-libs/Config.in" diff --git a/external.desc b/external.desc new file mode 100644 index 0000000..c688741 --- /dev/null +++ b/external.desc @@ -0,0 +1,2 @@ +name: SUMMIT_RADIO +desc: Summit Radio Configuration diff --git a/external.mk b/external.mk new file mode 100644 index 0000000..94cbc22 --- /dev/null +++ b/external.mk @@ -0,0 +1,13 @@ +include $(BR2_EXTERNAL_SUMMIT_RADIO_PATH)/versions.mk + +SUMMIT_RADIO_STACK_ARCH = $(call qstrip,$(BR2_PACKAGE_SUMMIT_RADIO_STACK_ARCH)) + +SUMMIT_RADIO_URI_BASE_60 = https://github.com/LairdCP/Sterling-60-Release-Packages/releases/download/LRD-REL +SUMMIT_RADIO_URI_BASE_BDSDMAC = https://github.com/LairdCP/BDSDMAC-Release-Packages/releases/download/LRD-REL +SUMMIT_RADIO_URI_BASE_LWB = https://github.com/LairdCP/Sterling-LWB-and-LWB5-Release-Packages/releases/download/LRD-REL +SUMMIT_RADIO_URI_BASE_MSD = https://github.com/LairdCP/wb-package-archive/releases/download/LRD-REL +SUMMIT_RADIO_URI_BASE_NX = https://github.com/LairdCP/SonaNX-Release-Packages/releases/download/LRD-REL +SUMMIT_RADIO_URI_BASE_TI = https://github.com/LairdCP/SonaTI-Release-Packages/releases/download/LRD-REL +SUMMIT_RADIO_URI_BASE_INTERNAL = https://files.devops.rfpros.com/builds/linux + +include $(sort $(wildcard $(BR2_EXTERNAL_SUMMIT_RADIO_PATH)/package/*/*.mk)) diff --git a/package/summit-adaptive_bt/Config.in b/package/summit-adaptive_bt/Config.in new file mode 100644 index 0000000..cd84a26 --- /dev/null +++ b/package/summit-adaptive_bt/Config.in @@ -0,0 +1,6 @@ +config BR2_PACKAGE_SUMMIT_ADAPTIVE_BT + bool "Adaptive Bluetooth Power Service" + select BR2_PACKAGE_BLUEZ5_UTILS_HEADERS + select BR2_PACKAGE_LIBNL + help + 60 Series Radio's Adaptive Bluetooth Power Control diff --git a/package/summit-adaptive_bt/summit-adaptive_bt.mk b/package/summit-adaptive_bt/summit-adaptive_bt.mk new file mode 100644 index 0000000..4eb450b --- /dev/null +++ b/package/summit-adaptive_bt/summit-adaptive_bt.mk @@ -0,0 +1,36 @@ +############################################################# +# +# 60 Series Adaptive Bluetooth Power Daemon +# +############################################################# + +SUMMIT_ADAPTIVE_BT_VERSION = $(call qstrip,$(SUMMIT_60_RADIO_STACK_VERSION_VALUE)) +SUMMIT_ADAPTIVE_BT_SOURCE = adaptive_bt-src-$(SUMMIT_ADAPTIVE_BT_VERSION).tar.gz + +ifeq ($(MSD_BINARIES_SOURCE_LOCATION),laird_internal) + SUMMIT_ADAPTIVE_BT_SITE = $(SUMMIT_RADIO_URI_BASE_INTERNAL)/adaptive_bt/src/$(SUMMIT_ADAPTIVE_BT_VERSION) +else + SUMMIT_ADAPTIVE_BT_SITE = $(SUMMIT_RADIO_URI_BASE_60)-$(SUMMIT_ADAPTIVE_BT_VERSION) +endif + +SUMMIT_ADAPTIVE_BT_DEPENDENCIES = host-pkgconf libnl bluez5_utils-headers + +define SUMMIT_ADAPTIVE_BT_BUILD_CMDS + $(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D) +endef + +define SUMMIT_ADAPTIVE_BT_INSTALL_TARGET_CMDS + $(INSTALL) -D -m 0755 $(@D)/bin/adaptive_bt $(TARGET_DIR)/usr/bin/adaptive_bt + $(ABT_STARTUP_INSTALL_TARGET_CMDS) +endef + +define SUMMIT_ADAPTIVE_BT_INSTALL_INIT_SYSTEMD + $(INSTALL) -m 0644 -D $(@D)/support/adaptive_bt.service \ + $(TARGET_DIR)/usr/lib/systemd/system/adaptive_bt.service +endef + +define SUMMIT_ADAPTIVE_BT_INSTALL_INIT_SYSV + $(INSTALL) -m 0755 -D $(@D)/support/adaptive_bt $(TARGET_DIR)/etc/init.d/S96adaptive_bt +endef + +$(eval $(generic-package)) diff --git a/package/summit-adaptive_ww/Config.in b/package/summit-adaptive_ww/Config.in new file mode 100644 index 0000000..24cc03d --- /dev/null +++ b/package/summit-adaptive_ww/Config.in @@ -0,0 +1,59 @@ +config BR2_PACKAGE_SUMMIT_ADAPTIVE_WW + bool "Summit Adaptive World Mode Binaries Installer" + select BR2_PACKAGE_LIBNL + select BR2_PACKAGE_LIBCONFIG + select BR2_PACKAGE_ADAPTIVE_WW if BR2_LRD_DEVEL_BUILD + select BR2_PACKAGE_ADAPTIVE_WW_CFG_WW if BR2_LRD_DEVEL_BUILD + + help + Extracts adaptive_ww from adaptive_ww-arm release and installs them on the target. + +if BR2_PACKAGE_SUMMIT_ADAPTIVE_WW + +config BR2_PACKAGE_SUMMIT_ADAPTIVE_WW_CFG_FILE + string "Additional Configuration File" + help + Path and filename for runtinme configuration settings + +choice + prompt "AWM's interface preference" + default BR2_PACKAGE_SUMMIT_ADAPTIVE_WW_INTF_STA + +config BR2_PACKAGE_SUMMIT_ADAPTIVE_WW_INTF_STA + bool "STA" + help + Use managed interfaces when available. + +config BR2_PACKAGE_SUMMIT_ADAPTIVE_WW_INTF_AP + bool "AP" + help + Use AP interfaces when available. + +config BR2_PACKAGE_SUMMIT_ADAPTIVE_WW_INTF_NONE + bool "NONE" + help + Use the first available interface. + +endchoice + +choice + prompt "AWM's operating mode" + default BR2_PACKAGE_SUMMIT_ADAPTIVE_WW_MODE_FULL + +config BR2_PACKAGE_SUMMIT_ADAPTIVE_WW_MODE_FULL + bool "Full" + help + AWM mode which requires periodic geo-location validation. +config BR2_PACKAGE_SUMMIT_ADAPTIVE_WW_MODE_LITE + bool "Lite" + help + AWM mode which does not periodically validate geo-location. + +endchoice + +config BR2_PACKAGE_ADAPTIVE_WW_CFG_WW + bool "Configure World Wide Utility" + help + Extracts cww from adaptive_ww-arm release and installs it on the target. + +endif diff --git a/package/summit-adaptive_ww/summit-adaptive_ww.mk b/package/summit-adaptive_ww/summit-adaptive_ww.mk new file mode 100644 index 0000000..2e72ebe --- /dev/null +++ b/package/summit-adaptive_ww/summit-adaptive_ww.mk @@ -0,0 +1,60 @@ +ifneq ($(BR2_LRD_DEVEL_BUILD),y) +SUMMIT_ADAPTIVE_WW_VERSION = $(call qstrip,$(SUMMIT_60_RADIO_STACK_VERSION_VALUE)) +SUMMIT_ADAPTIVE_WW_LICENSE = LGPL-2.1 +SUMMIT_ADAPTIVE_WW_STRIP_COMPONENTS = 0 + +SUMMIT_ADAPTIVE_WW_SOURCE = adaptive_ww-$(SUMMIT_RADIO_STACK_ARCH)-$(SUMMIT_ADAPTIVE_WW_VERSION).tar.bz2 + +ifeq ($(MSD_BINARIES_SOURCE_LOCATION),laird_internal) + SUMMIT_ADAPTIVE_WW_SITE = $(SUMMIT_RADIO_URI_BASE_INTERNAL)/adaptive_ww/laird/$(SUMMIT_ADAPTIVE_WW_VERSION) +else + SUMMIT_ADAPTIVE_WW_SITE = $(SUMMIT_RADIO_URI_BASE_60)-$(SUMMIT_ADAPTIVE_WW_VERSION) +endif + +define AWM_BINARIES_INSTALL_TARGET_CMDS + $(INSTALL) -D -m 0755 $(@D)/usr/bin/adaptive_ww $(TARGET_DIR)/usr/bin/adaptive_ww +endef + +define SUMMIT_ADAPTIVE_WW_INSTALL_TARGET_CMDS + $(AWM_BINARIES_INSTALL_TARGET_CMDS) + $(AWM_BINARIES_CONFIG_INSTALL_TARGET_CMDS) + $(AWW_BINARIES_CFG_WW_INSTALL_TARGET_CMDS) +endef + +ifeq ($(BR2_PACKAGE_SUMMIT_ADAPTIVE_WW_MODE_LITE),y) +AWM_PARAMS += -M lite +endif + +ifeq ($(BR2_PACKAGE_SUMMIT_ADAPTIVE_WW_INTF_AP),y) +AWM_PARAMS += -F AP +else ifeq ($(BR2_PACKAGE_SUMMIT_ADAPTIVE_WW_INTF_NONE),y) +AWM_PARAMS += -F NONE +endif + +ifneq ($(BR2_PACKAGE_SUMMIT_ADAPTIVE_WW_CFG_FILE),"") +AWM_PARAMS += -C $(BR2_PACKAGE_SUMMIT_ADAPTIVE_WW_CFG_FILE) +endif + +define AWM_BINARIES_CONFIG_INSTALL_TARGET_CMDS + $(INSTALL) -d "$(TARGET_DIR)/etc/default" + echo "AWM_ARGS=$(AWM_PARAMS)" > $(TARGET_DIR)/etc/default/adaptive_ww +endef + +define SUMMIT_ADAPTIVE_WW_INSTALL_INIT_SYSTEMD + $(INSTALL) -m 0644 -D $(@D)/usr/lib/systemd/system/adaptive_ww.service \ + $(TARGET_DIR)/usr/lib/systemd/system/adaptive_ww.service +endef + +define SUMMIT_ADAPTIVE_WW_INSTALL_INIT_SYSV + $(INSTALL) -m 0755 -D $(@D)/etc/init.d/adaptive_ww $(TARGET_DIR)/etc/init.d/S30adaptive_ww +endef + +endif + +ifeq ($(BR2_PACKAGE_ADAPTIVE_WW_CFG_WW),y) +define AWW_BINARIES_CFG_WW_INSTALL_TARGET_CMDS + $(INSTALL) -D -m 0755 $(@D)/usr/bin/cww $(TARGET_DIR)/usr/bin/cww +endef +endif + +$(eval $(generic-package)) diff --git a/package/summit-brcm-patchram-plus/Config.in b/package/summit-brcm-patchram-plus/Config.in new file mode 100644 index 0000000..3d13bfa --- /dev/null +++ b/package/summit-brcm-patchram-plus/Config.in @@ -0,0 +1,6 @@ +config BR2_PACKAGE_SUMMIT_BRCM_PATCHRAM_PLUS + bool "Summit brcm-patchram-plus" + depends on BR2_PACKAGE_BLUEZ5_UTILS || BR2_PACKAGE_BLUEZ4_UTILS + help + Broadcom utility to flash Bluetooth firmwares, extended with + per-device Low Power Mode configuration. diff --git a/package/summit-brcm-patchram-plus/summit-brcm-patchram-plus.mk b/package/summit-brcm-patchram-plus/summit-brcm-patchram-plus.mk new file mode 100644 index 0000000..62e1e21 --- /dev/null +++ b/package/summit-brcm-patchram-plus/summit-brcm-patchram-plus.mk @@ -0,0 +1,32 @@ +################################################################################ +# +# summit-brcm-patchram-plus +# +################################################################################ + +SUMMIT_BRCM_PATCHRAM_PLUS_VERSION = $(SUMMIT_LWB_RADIO_STACK_VERSION_VALUE) +SUMMIT_BRCM_PATCHRAM_PLUS_LICENSE = Apache-2.0 +SUMMIT_BRCM_PATCHRAM_PLUS_LICENSE_FILES = LICENSE + +ifeq ($(MSD_BINARIES_SOURCE_LOCATION),laird_internal) + SUMMIT_BRCM_PATCHRAM_PLUS_SITE = https://github.com/rfpros/cp_linux-brcm_patchram.git + SUMMIT_BRCM_PATCHRAM_PLUS_SITE_METHOD = git +else + SUMMIT_BRCM_PATCHRAM_PLUS_SITE = $(call github,LairdCP,brcm_patchram,LRD-REL-$(SUMMIT_BRCM_PATCHRAM_PLUS_VERSION)) +endif + +ifeq ($(BR2_PACKAGE_BLUEZ4_UTILS),y) +SUMMIT_BRCM_PATCHRAM_PLUS_DEPENDENCIES = bluez4_utils +else +SUMMIT_BRCM_PATCHRAM_PLUS_DEPENDENCIES = bluez5_utils +endif + +define SUMMIT_BRCM_PATCHRAM_PLUS_BUILD_CMDS + $(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D) brcm_patchram_plus +endef + +define SUMMIT_BRCM_PATCHRAM_PLUS_INSTALL_TARGET_CMDS + $(INSTALL) -D -m 755 -t $(TARGET_DIR)/usr/bin/ $(@D)/brcm_patchram_plus +endef + +$(eval $(generic-package)) diff --git a/package/summit-firmware-60/Config.in b/package/summit-firmware-60/Config.in new file mode 100644 index 0000000..a32dd73 --- /dev/null +++ b/package/summit-firmware-60/Config.in @@ -0,0 +1,24 @@ +config BR2_PACKAGE_SUMMIT_FIRMWARE_60 + bool "60 Series Radio Firmware" + +if BR2_PACKAGE_SUMMIT_FIRMWARE_60 + +config BR2_PACKAGE_SUMMIT_FIRMWARE_60_SDIO_UART + bool "SDIO-UART" + +config BR2_PACKAGE_SUMMIT_FIRMWARE_60_SDIO_SDIO + bool "SDIO-SDIO" + +config BR2_PACKAGE_SUMMIT_FIRMWARE_60_PCIE_UART + bool "PCIE-UART" + +config BR2_PACKAGE_SUMMIT_FIRMWARE_60_PCIE_USB + bool "PCIE-USB" + +config BR2_PACKAGE_SUMMIT_FIRMWARE_60_USB_USB + bool "USB-USB" + +config BR2_PACKAGE_SUMMIT_FIRMWARE_60_SOM8MP + bool "Summit SOM8MP" + +endif diff --git a/package/summit-firmware-60/summit-firmware-60.mk b/package/summit-firmware-60/summit-firmware-60.mk new file mode 100644 index 0000000..0565b09 --- /dev/null +++ b/package/summit-firmware-60/summit-firmware-60.mk @@ -0,0 +1,46 @@ +ifeq ($(BR2_LRD_DEVEL_BUILD),y) +else +SUMMIT_FIRMWARE_VERSION = $(call qstrip,$(SUMMIT_60_RADIO_STACK_VERSION_VALUE)) +SUMMIT_FIRMWARE_SOURCE = +SUMMIT_FIRMWARE_LICENSE = Ezurio +SUMMIT_FIRMWARE_LICENSE_FILES = COPYING + +ifeq ($(MSD_60_SOURCE_LOCATION),laird_internal) + SUMMIT_FIRMWARE_SITE = $(SUMMIT_RADIO_URI_BASE_INTERNAL)/firmware/$(SUMMIT_FIRMWARE_VERSION) +else + SUMMIT_FIRMWARE_SITE = $(SUMMIT_RADIO_URI_BASE_60)-$(SUMMIT_FIRMWARE_VERSION) +endif + +ifeq ($(BR2_PACKAGE_SUMMIT_FIRMWARE_SDIO_UART),y) +SUMMIT_FIRMWARE_60_PKGS += sdio-uart +endif + +ifeq ($(BR2_PACKAGE_SUMMIT_FIRMWARE_SDIO_SDIO),y) +SUMMIT_FIRMWARE_60_PKGS += sdio-sdio +endif + +ifeq ($(BR2_PACKAGE_SUMMIT_FIRMWARE_PCIE_UART),y) +SUMMIT_FIRMWARE_60_PKGS += pcie-uart +endif + +ifeq ($(BR2_PACKAGE_SUMMIT_FIRMWARE_PCIE_USB),y) +SUMMIT_FIRMWARE_60_PKGS += pcie-usb +endif + +ifeq ($(BR2_PACKAGE_SUMMIT_FIRMWARE_USB_USB),y) +SUMMIT_FIRMWARE_60_PKGS += usb-usb +endif + +ifeq ($(BR2_PACKAGE_SUMMIT_FIRMWARE_SOM8MP),y) +SUMMIT_FIRMWARE_EXTRA_DOWNLOADS += laird-som8mp-radio-firmware-$(SUMMIT_FIRMWARE_VERSION).tar.bz2 +endif + +SUMMIT_FIRMWARE_EXTRA_DOWNLOADS += $(foreach n,$(SUMMIT_FIRMWARE_60_PKGS),summit-60-radio-firmware-$(n)-$(SUMMIT_FIRMWARE_VERSION).tar.bz2) + +define SUMMIT_FIRMWARE_INSTALL_TARGET_CMDS + $(foreach n,$(SUMMIT_FIRMWARE_EXTRA_DOWNLOADS),tar -xjf $($(PKG)_DL_DIR)/$(n) -C $(TARGET_DIR) --keep-directory-symlink --no-overwrite-dir --touch $(sep)) +endef + +endif + +$(eval $(generic-package)) diff --git a/package/summit-firmware-bdsdmac/Config.in b/package/summit-firmware-bdsdmac/Config.in new file mode 100644 index 0000000..fa1d20e --- /dev/null +++ b/package/summit-firmware-bdsdmac/Config.in @@ -0,0 +1,2 @@ +config BR2_PACKAGE_SUMMIT_FIRMWARE_BDSDMAC + bool "BD-SDMAC Radio Firmware" diff --git a/package/summit-firmware-bdsdmac/summit-firmware-bdsdmac.mk b/package/summit-firmware-bdsdmac/summit-firmware-bdsdmac.mk new file mode 100644 index 0000000..3128048 --- /dev/null +++ b/package/summit-firmware-bdsdmac/summit-firmware-bdsdmac.mk @@ -0,0 +1,23 @@ +ifneq ($(BR2_LRD_DEVEL_BUILD),y) +SUMMIT_FIRMWARE_BDSDMAC_VERSION = $(call qstrip,$(SUMMIT_BDSDMAC_RADIO_STACK_VERSION_VALUE)) +SUMMIT_FIRMWARE_BDSDMAC_SOURCE = +SUMMIT_FIRMWARE_BDSDMAC_LICENSE = GPL-2.0 +SUMMIT_FIRMWARE_BDSDMAC_LICENSE_FILES = COPYING + +ifeq ($(MSD_60_SOURCE_LOCATION),laird_internal) + SUMMIT_FIRMWARE_BDSDMAC_SITE = $(SUMMIT_RADIO_URI_BASE_INTERNAL)/firmware/$(SUMMIT_FIRMWARE_BDSDMAC_VERSION) +else + SUMMIT_FIRMWARE_BDSDMAC_SITE = https://github.com/LairdCP/BDSDMAC-Release-Packages/releases/tag/LRD-REL-$(SUMMIT_FIRMWARE_BDSDMAC_VERSION) +endif + +ifeq ($(BR2_PACKAGE_SUMMIT_FIRMWARE_BDSDMAC),y) +SUMMIT_FIRMWARE_BDSDMAC_EXTRA_DOWNLOADS += laird-bdsdmac-firmware-$(SUMMIT_FIRMWARE_BDSDMAC_VERSION).tar.bz2 +endif + +define SUMMIT_FIRMWARE_BDSDMAC_INSTALL_TARGET_CMDS + $(foreach n,$(SUMMIT_FIRMWARE_BDSDMAC_EXTRA_DOWNLOADS),tar -xjf $($(PKG)_DL_DIR)/$(n) -C $(TARGET_DIR) --keep-directory-symlink --no-overwrite-dir --touch $(sep)) +endef + +endif + +$(eval $(generic-package)) diff --git a/package/summit-firmware-lwb-if/Config.in b/package/summit-firmware-lwb-if/Config.in new file mode 100644 index 0000000..31742ed --- /dev/null +++ b/package/summit-firmware-lwb-if/Config.in @@ -0,0 +1,57 @@ +config BR2_PACKAGE_SUMMIT_FIRMWARE_LWB_IF + bool "LWB/IF Series Radio Firmware" + +if BR2_PACKAGE_SUMMIT_FIRMWARE_LWB_IF + +config BR2_PACKAGE_SUMMIT_FIRMWARE_LWB_IF_LWB_FCC + bool "LWB FCC" + +config BR2_PACKAGE_SUMMIT_FIRMWARE_LWB_IF_LWB_ETSI + bool "LWB ETSI" + +config BR2_PACKAGE_SUMMIT_FIRMWARE_LWB_IF_LWB_JP + bool "LWB JP" + +config BR2_PACKAGE_SUMMIT_FIRMWARE_LWB_IF_LWB5_FCC + bool "LWB5 FCC" + +config BR2_PACKAGE_SUMMIT_FIRMWARE_LWB_IF_LWB5_IC + bool "LWB5 IC" + +config BR2_PACKAGE_SUMMIT_FIRMWARE_LWB_IF_LWB5_ETSI + bool "LWB5 ETSI" + +config BR2_PACKAGE_SUMMIT_FIRMWARE_LWB_IF_LWB5_JP + bool "LWB5 JP" + +config BR2_PACKAGE_SUMMIT_FIRMWARE_LWB_IF_LWB5PLUS_SDIO_DIV + bool "LWB5+ SDIO-DIV" + +config BR2_PACKAGE_SUMMIT_FIRMWARE_LWB_IF_LWB5PLUS_SDIO_SA + bool "LWB5+ SDIO-SA" + +config BR2_PACKAGE_SUMMIT_FIRMWARE_LWB_IF_LWB5PLUS_SDIO_SA_M2 + bool "LWB5+ SDIO-SA-M2" + +config BR2_PACKAGE_SUMMIT_FIRMWARE_LWB_IF_LWB5PLUS_USB_DIV + bool "LWB5+ USB-DIV" + +config BR2_PACKAGE_SUMMIT_FIRMWARE_LWB_IF_LWB5PLUS_USB_SA + bool "LWB5+ USB-SA" + +config BR2_PACKAGE_SUMMIT_FIRMWARE_LWB_IF_LWB5PLUS_USB_SA_M2 + bool "LWB5+ USB-SA-M2" + +config BR2_PACKAGE_SUMMIT_FIRMWARE_LWB_IF_LWBPLUS + bool "LWB+" + +config BR2_PACKAGE_SUMMIT_FIRMWARE_LWB_IF_IF573_SDIO + bool "IF573 SDIO" + +config BR2_PACKAGE_SUMMIT_FIRMWARE_LWB_IF_IF573_PCIE + bool "IF573 PCIE" + +config BR2_PACKAGE_SUMMIT_FIRMWARE_LWB_IF_IF513 + bool "IF513" + +endif diff --git a/package/summit-firmware-lwb-if/summit-firmware-lwb-if.mk b/package/summit-firmware-lwb-if/summit-firmware-lwb-if.mk new file mode 100644 index 0000000..767fd5f --- /dev/null +++ b/package/summit-firmware-lwb-if/summit-firmware-lwb-if.mk @@ -0,0 +1,96 @@ +ifeq ($(BR2_LRD_DEVEL_BUILD),y) +else +SUMMIT_FIRMWARE_LWB_IF_VERSION = $(call qstrip,$(SUMMIT_LWB_RADIO_STACK_VERSION_VALUE)) +SUMMIT_FIRMWARE_LWB_IF_SOURCE = +SUMMIT_FIRMWARE_LWB_IF_LICENSE = GPL-2.0 +SUMMIT_FIRMWARE_LWB_IF_LICENSE_FILES = COPYING + +ifeq ($(MSD_60_SOURCE_LOCATION),laird_internal) + SUMMIT_FIRMWARE_LWB_IF_SITE = $(SUMMIT_RADIO_URI_BASE_INTERNAL)/firmware/$(SUMMIT_FIRMWARE_LWB_IF_VERSION) +else + SUMMIT_FIRMWARE_LWB_IF_SITE = https://github.com/LairdCP/Sterling-LWB-and-LWB5-Release-Packages/releases/tag/LRD-REL-$(SUMMIT_FIRMWARE_LWB_IF_VERSION) +endif + +ifeq ($(BR2_PACKAGE_SUMMIT_FIRMWARE_LWB_IF_LWB_FCC),y) +SUMMIT_FIRMWARE_LWB_IF_LWB_PKGS += fcc +endif + +ifeq ($(BR2_PACKAGE_SUMMIT_FIRMWARE_LWB_IF_LWB_ETSI),y) +SUMMIT_FIRMWARE_LWB_IF_LWB_PKGS += etsi +endif + +ifeq ($(BR2_PACKAGE_SUMMIT_FIRMWARE_LWB_IF_LWB_JP),y) +SUMMIT_FIRMWARE_LWB_IF_LWB_PKGS += jp +endif + +SUMMIT_FIRMWARE_LWB_IF_EXTRA_DOWNLOADS += $(foreach n,$(SUMMIT_FIRMWARE_LWB_IF_LWB_PKGS),laird-lwb-$(n)-firmware-$(SUMMIT_FIRMWARE_LWB_IF_VERSION).tar.bz2) + +ifeq ($(BR2_PACKAGE_SUMMIT_FIRMWARE_LWB_IF_LWB5_FCC),y) +SUMMIT_FIRMWARE_LWB_IF_LWB5_PKGS += fcc +endif + +ifeq ($(BR2_PACKAGE_SUMMIT_FIRMWARE_LWB_IF_LWB5_IC),y) +SUMMIT_FIRMWARE_LWB_IF_LWB5_PKGS += ic +endif + +ifeq ($(BR2_PACKAGE_SUMMIT_FIRMWARE_LWB_IF_LWB5_ETSI),y) +SUMMIT_FIRMWARE_LWB_IF_LWB5_PKGS += etsi +endif + +ifeq ($(BR2_PACKAGE_SUMMIT_FIRMWARE_LWB_IF_LWB5_JP),y) +SUMMIT_FIRMWARE_LWB_IF_LWB5_PKGS += jp +endif + +SUMMIT_FIRMWARE_LWB_IF_EXTRA_DOWNLOADS += $(foreach n,$(SUMMIT_FIRMWARE_LWB_IF_LWB5_PKGS),laird-lwb5-$(n)-firmware-$(SUMMIT_FIRMWARE_LWB_IF_VERSION).tar.bz2) + +ifeq ($(BR2_PACKAGE_SUMMIT_FIRMWARE_LWB_IF_LWB5PLUS_SDIO_DIV),y) +SUMMIT_FIRMWARE_LWB_IF_LWB5PLUS_PKGS += sdio-div +endif + +ifeq ($(BR2_PACKAGE_SUMMIT_FIRMWARE_LWB_IF_LWB5PLUS_SDIO_SA),y) +SUMMIT_FIRMWARE_LWB_IF_LWB5PLUS_PKGS += sdio-sa +endif + +ifeq ($(BR2_PACKAGE_SUMMIT_FIRMWARE_LWB_IF_LWB5PLUS_SDIO_SA_M2),y) +SUMMIT_FIRMWARE_LWB_IF_LWB5PLUS_PKGS += sdio-sa-m2 +endif + +ifeq ($(BR2_PACKAGE_SUMMIT_FIRMWARE_LWB_IF_LWB5PLUS_USB_DIV),y) +SUMMIT_FIRMWARE_LWB_IF_LWB5PLUS_PKGS += usb-div +endif + +ifeq ($(BR2_PACKAGE_SUMMIT_FIRMWARE_LWB_IF_LWB5PLUS_USB_SA),y) +SUMMIT_FIRMWARE_LWB_IF_LWB5PLUS_PKGS += usb-sa +endif + +ifeq ($(BR2_PACKAGE_SUMMIT_FIRMWARE_LWB_IF_LWB5PLUS_USB_SA_M2),y) +SUMMIT_FIRMWARE_LWB_IF_LWB5PLUS_PKGS += usb-sa-m2 +endif + +SUMMIT_FIRMWARE_LWB_IF_EXTRA_DOWNLOADS += $(foreach n,$(SUMMIT_FIRMWARE_LWB_IF_LWB5PLUS_PKGS),laird-lwb5plus-$(n)-firmware-$(SUMMIT_FIRMWARE_LWB_IF_VERSION).tar.bz2) + +ifeq ($(BR2_PACKAGE_SUMMIT_FIRMWARE_LWB_IF_LWBPLUS),y) +SUMMIT_FIRMWARE_LWB_IF_EXTRA_DOWNLOADS += laird-lwbplus-firmware-$(SUMMIT_FIRMWARE_LWB_IF_VERSION).tar.bz2 +endif + +ifeq ($(BR2_PACKAGE_SUMMIT_FIRMWARE_LWB_IF_IF573_SDIO),y) +SUMMIT_FIRMWARE_LWB_IF_IF573_PKGS += sdio +endif + +ifeq ($(BR2_PACKAGE_SUMMIT_FIRMWARE_LWB_IF_IF573_PCIE),y) +SUMMIT_FIRMWARE_LWB_IF_IF573_PKGS += pcie +endif + +SUMMIT_FIRMWARE_LWB_IF_EXTRA_DOWNLOADS += $(foreach n,$(SUMMIT_FIRMWARE_LWB_IF_IF573_PKGS),laird-if573-$(n)-firmware-$(SUMMIT_FIRMWARE_LWB_IF_VERSION).tar.bz2) + +ifeq ($(BR2_PACKAGE_SUMMIT_FIRMWARE_LWB_IF_IF513),y) +SUMMIT_FIRMWARE_LWB_IF_EXTRA_DOWNLOADS += laird-if513-firmware-$(SUMMIT_FIRMWARE_LWB_IF_VERSION).tar.bz2 +endif + +define SUMMIT_FIRMWARE_LWB_IF_INSTALL_TARGET_CMDS + $(foreach n,$(SUMMIT_FIRMWARE_LWB_IF_EXTRA_DOWNLOADS),tar -xjf $($(PKG)_DL_DIR)/$(n) -C $(TARGET_DIR) --keep-directory-symlink --no-overwrite-dir --touch $(sep)) +endef + +endif + +$(eval $(generic-package)) diff --git a/package/summit-firmware-msd/Config.in b/package/summit-firmware-msd/Config.in new file mode 100644 index 0000000..ac65127 --- /dev/null +++ b/package/summit-firmware-msd/Config.in @@ -0,0 +1,12 @@ +config BR2_PACKAGE_SUMMIT_FIRMWARE_MSD + bool "NX61X Radio Firmware" + +if BR2_PACKAGE_SUMMIT_FIRMWARE_MSD + +config BR2_PACKAGE_SUMMIT_FIRMWARE_MSD_45 + bool "MSD45/WB45" + +config BR2_PACKAGE_SUMMIT_FIRMWARE_MSD_50 + bool "MSD50/WB50" + +endif diff --git a/package/summit-firmware-msd/summit-firmware-msd.mk b/package/summit-firmware-msd/summit-firmware-msd.mk new file mode 100644 index 0000000..5d62e32 --- /dev/null +++ b/package/summit-firmware-msd/summit-firmware-msd.mk @@ -0,0 +1,29 @@ +ifneq ($(BR2_LRD_DEVEL_BUILD),y) + +SUMMIT_FIRMWARE_MSD_VERSION = $(call qstrip,$(SUMMIT_MSD_RADIO_STACK_VERSION_VALUE)) +SUMMIT_FIRMWARE_MSD_SOURCE = +SUMMIT_FIRMWARE_MSD_LICENSE = Ezurio +SUMMIT_FIRMWARE_MSD_LICENSE_FILES = COPYING + +ifeq ($(MSD_60_SOURCE_LOCATION),laird_internal) + SUMMIT_FIRMWARE_MSD_SITE = $(SUMMIT_RADIO_URI_BASE_INTERNAL)/firmware/$(SUMMIT_FIRMWARE_MSD_VERSION) +else + SUMMIT_FIRMWARE_MSD_SITE = https://github.com/LairdCP/SonaNX-Release-Packages/releases/tag/LRD-REL-$(SUMMIT_FIRMWARE_MSD_VERSION) +endif + + +ifeq ($(BR2_PACKAGE_SUMMIT_FIRMWARE_MSD_45),y) +SUMMIT_FIRMWARE_EXTRA_DOWNLOADS += laird-ath6k-6003-firmware-$(SUMMIT_FIRMWARE_VERSION).tar.bz2 +endif + +ifeq ($(BR2_PACKAGE_SUMMIT_FIRMWARE_MSD_50),y) +SUMMIT_FIRMWARE_EXTRA_DOWNLOADS += laird-ath6k-6004-firmware-$(SUMMIT_FIRMWARE_VERSION).tar.bz2 +endif + +define SUMMIT_FIRMWARE_MSD_INSTALL_TARGET_CMDS + $(foreach n,$(SUMMIT_FIRMWARE_MSD_EXTRA_DOWNLOADS),tar -xjf $($(PKG)_DL_DIR)/$(n) -C $(TARGET_DIR) --keep-directory-symlink --no-overwrite-dir --touch $(sep)) +endef + +endif + +$(eval $(generic-package)) diff --git a/package/summit-firmware-nx/Config.in b/package/summit-firmware-nx/Config.in new file mode 100644 index 0000000..bd615df --- /dev/null +++ b/package/summit-firmware-nx/Config.in @@ -0,0 +1,9 @@ +config BR2_PACKAGE_SUMMIT_FIRMWARE_NX + bool "NX Radio Firmware" + +if BR2_PACKAGE_SUMMIT_FIRMWARE_NX + +config BR2_PACKAGE_SUMMIT_FIRMWARE_NX61X + bool "NX61X" + +endif diff --git a/package/summit-firmware-nx/summit-firmware-nx61x.mk b/package/summit-firmware-nx/summit-firmware-nx61x.mk new file mode 100644 index 0000000..b7e27f9 --- /dev/null +++ b/package/summit-firmware-nx/summit-firmware-nx61x.mk @@ -0,0 +1,24 @@ +ifeq ($(BR2_LRD_DEVEL_BUILD),y) +else +SUMMIT_FIRMWARE_NX_VERSION = $(SUMMIT_NX_RADIO_STACK_VERSION_VALUE) +SUMMIT_FIRMWARE_NX_SOURCE = +SUMMIT_FIRMWARE_NX_LICENSE = GPL-2.0 +SUMMIT_FIRMWARE_NX_LICENSE_FILES = COPYING + +ifeq ($(MSD_60_SOURCE_LOCATION),laird_internal) + SUMMIT_FIRMWARE_NX_SITE = $(SUMMIT_RADIO_URI_BASE_INTERNAL)/firmware/$(SUMMIT_FIRMWARE_NX_VERSION) +else + SUMMIT_FIRMWARE_NX_SITE = https://github.com/LairdCP/SonaNX-Release-Packages/releases/tag/LRD-REL-$(SUMMIT_FIRMWARE_NX_VERSION) +endif + +ifeq ($(BR2_PACKAGE_SUMMIT_FIRMWARE_NX_NX61X),y) +SUMMIT_FIRMWARE_NX_EXTRA_DOWNLOADS += laird-nx61x-firmware-$(SUMMIT_FIRMWARE_NX_VERSION).tar.bz2 +endif + +define SUMMIT_FIRMWARE_NX_INSTALL_TARGET_CMDS + $(foreach n,$(SUMMIT_FIRMWARE_NX_EXTRA_DOWNLOADS),tar -xjf $($(PKG)_DL_DIR)/$(n) -C $(TARGET_DIR) --keep-directory-symlink --no-overwrite-dir --touch $(sep)) +endef + +endif + +$(eval $(generic-package)) diff --git a/package/summit-firmware-ti/Config.in b/package/summit-firmware-ti/Config.in new file mode 100644 index 0000000..0e371ac --- /dev/null +++ b/package/summit-firmware-ti/Config.in @@ -0,0 +1,9 @@ +config BR2_PACKAGE_SUMMIT_FIRMWARE_TI + bool "TI Radio Firmware" + +if BR2_PACKAGE_SUMMIT_FIRMWARE_TI + +config BR2_PACKAGE_SUMMIT_FIRMWARE_TI_351 + bool "TI351" + +endif diff --git a/package/summit-firmware-ti/summit-firmware-ti.mk b/package/summit-firmware-ti/summit-firmware-ti.mk new file mode 100644 index 0000000..72033bc --- /dev/null +++ b/package/summit-firmware-ti/summit-firmware-ti.mk @@ -0,0 +1,24 @@ +ifeq ($(BR2_LRD_DEVEL_BUILD),y) +else +SUMMIT_FIRMWARE_TI_VERSION = $(call qstrip,$(SUMMIT_TI_RADIO_STACK_VERSION_VALUE)) +SUMMIT_FIRMWARE_TI_SOURCE = +SUMMIT_FIRMWARE_TI_LICENSE = GPL-2.0 +SUMMIT_FIRMWARE_TI_LICENSE_FILES = COPYING + +ifeq ($(MSD_60_SOURCE_LOCATION),laird_internal) + SUMMIT_FIRMWARE_TI_SITE = $(SUMMIT_RADIO_URI_BASE_INTERNAL)/firmware/$(SUMMIT_FIRMWARE_TI_VERSION) +else + SUMMIT_FIRMWARE_TI_SITE = https://github.com/LairdCP/SonaTI-Release-Packages/releases/tag/LRD-REL-$(SUMMIT_FIRMWARE_TI_VERSION) +endif + +ifeq ($(BR2_PACKAGE_SUMMIT_FIRMWARE_TI_351),y) +SUMMIT_FIRMWARE_TI_EXTRA_DOWNLOADS += laird-ti351-firmware-$(SUMMIT_FIRMWARE_TI_VERSION).tar.bz2 +endif + +define SUMMIT_FIRMWARE_TI_INSTALL_TARGET_CMDS + $(foreach n,$(SUMMIT_FIRMWARE_TI_EXTRA_DOWNLOADS),tar -xjf $($(PKG)_DL_DIR)/$(n) -C $(TARGET_DIR) --keep-directory-symlink --no-overwrite-dir --touch $(sep)) +endef + +endif + +$(eval $(generic-package)) diff --git a/package/summit-hostapd/Config.in b/package/summit-hostapd/Config.in new file mode 100644 index 0000000..84a6237 --- /dev/null +++ b/package/summit-hostapd/Config.in @@ -0,0 +1,36 @@ +config BR2_PACKAGE_SUMMIT_HOSTAPD + bool "Summit hostapd" + select BR2_PACKAGE_LIBNL + select BR2_PACKAGE_OPENSSL + help + Summit hostapd + +if BR2_PACKAGE_SUMMIT_HOSTAPD + +choice + prompt "Package Source" + default BR2_PACKAGE_SUMMIT_HOSTAPD_60 + +config BR2_PACKAGE_SUMMIT_HOSTAPD_60 + bool "Using 60 series" + +config BR2_PACKAGE_SUMMIT_HOSTAPD_MSD + bool "Using MSD series" + +config BR2_PACKAGE_SUMMIT_HOSTAPD_LWB + bool "Using LWB/IF series" + +config BR2_PACKAGE_SUMMIT_HOSTAPD_NX + bool "Using NX series" + +config BR2_PACKAGE_SUMMIT_HOSTAPD_TI + bool "Using TI series" + +endchoice + +config BR2_PACKAGE_SUMMIT_HOSTAPD_CLI + bool "Install hostapd_cli binary" + help + Install hostapd_cli command line utility + +endif diff --git a/package/summit-hostapd/summit-hostapd.mk b/package/summit-hostapd/summit-hostapd.mk new file mode 100644 index 0000000..2611b31 --- /dev/null +++ b/package/summit-hostapd/summit-hostapd.mk @@ -0,0 +1,55 @@ +############################################################# +# +# Summit hostapd +# +############################################################# +ifeq ($(BR2_PACKAGE_SUMMIT_HOSTAPD_60),y) +SUMMIT_HOSTAPD_VERSION = $(SUMMIT_60_RADIO_STACK_VERSION_VALUE) +SUMMIT_HOSTAPD_SITE = $(SUMMIT_RADIO_URI_BASE_60)-$(SUMMIT_HOSTAPD_VERSION) +else ifeq ($(BR2_PACKAGE_SUMMIT_HOSTAPD_LWB),y) +SUMMIT_HOSTAPD_VERSION = $(SUMMIT_LWB_RADIO_STACK_VERSION_VALUE) +SUMMIT_HOSTAPD_SITE = $(SUMMIT_RADIO_URI_BASE_LWB)-$(SUMMIT_HOSTAPD_VERSION) +else ifeq ($(BR2_PACKAGE_SUMMIT_HOSTAPD_MSD),y) +SUMMIT_HOSTAPD_VERSION = $(SUMMIT_MSD_RADIO_STACK_VERSION_VALUE) +SUMMIT_HOSTAPD_SITE = $(SUMMIT_RADIO_URI_BASE_MSD)-$(SUMMIT_HOSTAPD_VERSION) +else ifeq ($(BR2_PACKAGE_SUMMIT_HOSTAPD_NX),y) +SUMMIT_HOSTAPD_VERSION = $(SUMMIT_NX_RADIO_STACK_VERSION_VALUE) +SUMMIT_HOSTAPD_SITE = $(SUMMIT_RADIO_URI_BASE_NX)-$(SUMMIT_HOSTAPD_VERSION) +else ifeq ($(BR2_PACKAGE_SUMMIT_HOSTAPD_TI),y) +SUMMIT_HOSTAPD_VERSION = $(SUMMIT_TI_RADIO_STACK_VERSION_VALUE) +SUMMIT_HOSTAPD_SITE = $(SUMMIT_RADIO_URI_BASE_TI)-$(SUMMIT_HOSTAPD_VERSION) +else ifeq ($(BR2_PACKAGE_SUMMIT_HOSTAPD)$(BR_BUILDING),yy) +$(error "No target radio selected $(BR_BUILDING)") +endif + +ifeq ($(MSD_BINARIES_SOURCE_LOCATION),laird_internal) +SUMMIT_HOSTAPD_SITE = $(SUMMIT_RADIO_URI_BASE_INTERNAL)/summit_hostapd/laird/$(SUMMIT_HOSTAPD_VERSION) +endif + +SUMMIT_HOSTAPD_SOURCE = summit_hostapd-src-$(SUMMIT_HOSTAPD_VERSION).tar.gz +SUMMIT_HOSTAPD_CPE_ID_VENDOR = w1.fi +SUMMIT_HOSTAPD_CPE_ID_PRODUCT = hostapd +SUMMIT_HOSTAPD_CPE_ID_VERSION = 2.10 +SUMMIT_HOSTAPD_LICENSE = BSD-3-Clause +SUMMIT_HOSTAPD_LICENSE_FILES = README +SUMMIT_HOSTAPD_DEPENDENCIES = host-pkgconf libnl openssl + +SUMMIT_HOSTAPD_CONFIG = $(@D)/hostapd/config_openssl + +define SUMMIT_HOSTAPD_BUILD_CMDS + cp $(SUMMIT_HOSTAPD_CONFIG) $(@D)/hostapd/.config + $(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D)/hostapd +endef + +ifeq ($(BR2_PACKAGE_SUMMIT_HOSTAPD_HOSTAPD_CLI),y) +define SUMMIT_HOSTAPD_INSTALL_HOSTAPD_CLI + $(INSTALL) -D -m 755 $(@D)/hostapd/hostapd_cli $(TARGET_DIR)/usr/sbin/hostapd_cli +endef +endif + +define SUMMIT_HOSTAPD_INSTALL_TARGET_CMDS + $(INSTALL) -D -m 755 $(@D)/hostapd/hostapd $(TARGET_DIR)/usr/sbin/hostapd + $(SUMMIT_HOSTAPD_INSTALL_HOSTAPD_CLI) +endef + +$(eval $(generic-package)) diff --git a/package/summit-linux-backports/Config.in b/package/summit-linux-backports/Config.in new file mode 100644 index 0000000..b967ab9 --- /dev/null +++ b/package/summit-linux-backports/Config.in @@ -0,0 +1,99 @@ +comment "summit-linux-backports needs a Linux kernel to be built" + depends on !BR2_LINUX_KERNEL + +config BR2_PACKAGE_SUMMIT_LINUX_BACKPORTS + bool "summit-linux-backports" + depends on BR2_LINUX_KERNEL + help + The linux-backports package includes many Linux drivers from + recent kernels, backported to older ones. + +if BR2_PACKAGE_SUMMIT_LINUX_BACKPORTS + +choice + prompt "Package Source" + default BR2_PACKAGE_SUMMIT_LINUX_BACKPORTS_60 + +config BR2_PACKAGE_SUMMIT_LINUX_BACKPORTS_60 + bool "Using 60 series" + +config BR2_PACKAGE_SUMMIT_LINUX_BACKPORTS_LWB + bool "Using LWB/IF series" + +config BR2_PACKAGE_SUMMIT_LINUX_BACKPORTS_MSD + bool "Using MSD series" + +config BR2_PACKAGE_SUMMIT_LINUX_BACKPORTS_NX + bool "Using NX series" + +config BR2_PACKAGE_SUMMIT_LINUX_BACKPORTS_TI + bool "Using TI series" + +config BR2_PACKAGE_SUMMIT_LINUX_BACKPORTS_BDSDMAC + bool "Using BDSDMAC series" + +config BR2_PACKAGE_SUMMIT_LINUX_BACKPORTS_LOCAL + bool "For Internal RDVK builds only" + +endchoice + +choice + prompt "Linux kernel driver backports configuration" + default BR2_PACKAGE_SUMMIT_LINUX_BACKPORTS_USE_DEFCONFIG + +config BR2_PACKAGE_SUMMIT_LINUX_BACKPORTS_USE_DEFCONFIG + bool "Using an in-tree defconfig file" + +config BR2_PACKAGE_SUMMIT_LINUX_BACKPORTS_USE_CUSTOM_CONFIG + bool "Using a custom (def)config file" + +endchoice + +config BR2_PACKAGE_SUMMIT_LINUX_BACKPORTS_DEFCONFIG + string "Backports defconfig name" + depends on BR2_PACKAGE_SUMMIT_LINUX_BACKPORTS_USE_DEFCONFIG + default "som60_fips" if BR2_SUMMIT_SOM60_RADIO && BR2_PACKAGE_BLUEZ5_UTILS && BR2_SUMMIT_FIPS_RADIO + default "som60_nbt_fips" if BR2_SUMMIT_SOM60_RADIO && BR2_SUMMIT_FIPS_RADIO + default "som60" if BR2_SUMMIT_SOM60_RADIO && BR2_PACKAGE_BLUEZ5_UTILS + default "som60_nbt" if BR2_SUMMIT_SOM60_RADIO + default "wb50n_fips" if BR2_SUMMIT_50_RADIO && BR2_SUMMIT_FIPS_RADIO && BR2_PACKAGE_BLUEZ5_UTILS + default "wb50n_nbt_fips" if BR2_SUMMIT_50_RADIO && BR2_SUMMIT_FIPS_RADIO + default "wb50n" if BR2_SUMMIT_50_RADIO && BR2_PACKAGE_BLUEZ5_UTILS + default "wb50n_nbt" if BR2_SUMMIT_50_RADIO + default "wb45n_fips" if BR2_SUMMIT_WB45N_LEGACY_RADIO && BR2_SUMMIT_FIPS_RADIO && BR2_PACKAGE_BLUEZ5_UTILS + default "wb45n_nbt_fips" if BR2_SUMMIT_WB45N_LEGACY_RADIO && BR2_SUMMIT_FIPS_RADIO + default "wb45n" if BR2_SUMMIT_WB45N_LEGACY_RADIO && BR2_PACKAGE_BLUEZ5_UTILS + default "wb45n_nbt" if BR2_SUMMIT_WB45N_LEGACY_RADIO + default "som8mplus" if BR2_SUMMIT_SOM8MP_RADIO && BR2_PACKAGE_BLUEZ5_UTILS + default "som8mplus_nbt" if BR2_SUMMIT_SOM8MP_RADIO + default "summit60" if BR2_SUMMIT_CORE_60_RADIO && BR2_PACKAGE_BLUEZ5_UTILS + default "summit60_nbt" if BR2_SUMMIT_CORE_60_RADIO + default "lwb" if BR2_SUMMIT_CORE_LWB_RADIO && BR2_PACKAGE_BLUEZ5_UTILS + default "lwb_nbt" if BR2_SUMMIT_CORE_LWB_RADIO + default "sona_nx611" if BR2_SUMMIT_CORE_NX_RADIO && BR2_PACKAGE_BLUEZ5_UTILS + default "sona_nx611_nbt" if BR2_SUMMIT_CORE_NX_RADIO + default "sona_ti" if BR2_SUMMIT_CORE_TI_RADIO && BR2_PACKAGE_BLUEZ5_UTILS + default "sona_ti_nbt" if BR2_SUMMIT_CORE_TI_RADIO + default "bdimx8" if BR2_SUMMIT_BD_COMMON_IMAGE_RADIO + help + Name of the backports defconfig file to use, without the + leading defconfig-. The defconfig is located in defconfigs/ + directory in the backports tree. + +config BR2_PACKAGE_SUMMIT_LINUX_BACKPORTS_CUSTOM_CONFIG_FILE + string "Configuration file path" + depends on BR2_PACKAGE_SUMMIT_LINUX_BACKPORTS_USE_CUSTOM_CONFIG + help + Path to the backports configuration file + + Note: this can be a defconfig file or a complete .config + file, which can later be saved back with make + linux-update-(def)config. + +config BR2_PACKAGE_SUMMIT_LINUX_BACKPORTS_CONFIG_FRAGMENT_FILES + string "Additional configuration fragment files" + help + A space-separated list of configuration fragment files, that + will be merged to the main linux-backports configuration file. + +endif # BR2_PACKAGE_SUMMIT_LINUX_BACKPORTS diff --git a/package/summit-linux-backports/summit-linux-backports.mk b/package/summit-linux-backports/summit-linux-backports.mk new file mode 100644 index 0000000..c023f59 --- /dev/null +++ b/package/summit-linux-backports/summit-linux-backports.mk @@ -0,0 +1,144 @@ +################################################################################ +# +# summit-linux-backports +# +################################################################################ + +ifeq ($(BR2_PACKAGE_SUMMIT_LINUX_BACKPORTS_60),y) +SUMMIT_LINUX_BACKPORTS_VERSION = $(SUMMIT_60_RADIO_STACK_VERSION_VALUE) +SUMMIT_LINUX_BACKPORTS_SITE = $(SUMMIT_RADIO_URI_BASE_60)-$(SUMMIT_LINUX_BACKPORTS_VERSION) +else ifeq ($(BR2_PACKAGE_SUMMIT_LINUX_BACKPORTS_BDSDMAC),y) +SUMMIT_LINUX_BACKPORTS_VERSION = $(SUMMIT_BDSDMAC_RADIO_STACK_VERSION_VALUE) +SUMMIT_LINUX_BACKPORTS_SITE = $(SUMMIT_RADIO_URI_BASE_BDSDMAC)-$(SUMMIT_LINUX_BACKPORTS_VERSION) +else ifeq ($(BR2_PACKAGE_SUMMIT_LINUX_BACKPORTS_LWB),y) +SUMMIT_LINUX_BACKPORTS_VERSION = $(SUMMIT_LWB_RADIO_STACK_VERSION_VALUE) +SUMMIT_LINUX_BACKPORTS_SITE = $(SUMMIT_RADIO_URI_BASE_LWB)-$(SUMMIT_LINUX_BACKPORTS_VERSION) +else ifeq ($(BR2_PACKAGE_SUMMIT_LINUX_BACKPORTS_MSD),y) +SUMMIT_LINUX_BACKPORTS_VERSION = $(SUMMIT_MSD_RADIO_STACK_VERSION_VALUE) +SUMMIT_LINUX_BACKPORTS_SITE = $(SUMMIT_RADIO_URI_BASE_MSD)-$(SUMMIT_LINUX_BACKPORTS_VERSION) +else ifeq ($(BR2_PACKAGE_SUMMIT_LINUX_BACKPORTS_NX),y) +SUMMIT_LINUX_BACKPORTS_VERSION = $(SUMMIT_NX_RADIO_STACK_VERSION_VALUE) +SUMMIT_LINUX_BACKPORTS_SITE = $(SUMMIT_RADIO_URI_BASE_NX)-$(SUMMIT_LINUX_BACKPORTS_VERSION) +else ifeq ($(BR2_PACKAGE_SUMMIT_LINUX_BACKPORTS_TI),y) +SUMMIT_LINUX_BACKPORTS_VERSION = $(SUMMIT_TI_RADIO_STACK_VERSION_VALUE) +SUMMIT_LINUX_BACKPORTS_SITE = $(SUMMIT_RADIO_URI_BASE_TI)-$(SUMMIT_LINUX_BACKPORTS_VERSION) +else ifeq ($(BR2_PACKAGE_SUMMIT_LINUX_BACKPORTS_LOCAL),y) +SUMMIT_LINUX_BACKPORTS_VERSION = 0.$(BR2_SUMMIT_BRANCH).0.0 +SUMMIT_LINUX_BACKPORTS_SITE = $(SUMMIT_RADIO_URI_BASE_60)-$(SUMMIT_LINUX_BACKPORTS_VERSION) +else ifeq ($(BR2_PACKAGE_SUMMIT_LINUX_BACKPORTS)$(BR_BUILDING),yy) +$(error "No target radio selected") +endif + +ifeq ($(MSD_BINARIES_SOURCE_LOCATION),laird_internal) +SUMMIT_LINUX_BACKPORTS_SITE = $(URI_BASE_INTERNAL)/backports/laird/$(SUMMIT_LINUX_BACKPORTS_VERSION) +endif + +SUMMIT_LINUX_BACKPORTS_SOURCE = summit-backports-$(SUMMIT_LINUX_BACKPORTS_VERSION).tar.bz2 + +SUMMIT_LINUX_BACKPORTS_MINIMAL_KVER_MAJOR = 3 +SUMMIT_LINUX_BACKPORTS_MINIMAL_KVER_MINOR = 0 +SUMMIT_LINUX_BACKPORTS_LICENSE = GPL-2.0 +SUMMIT_LINUX_BACKPORTS_LICENSE_FILES = \ + COPYING \ + LICENSES/exceptions/Linux-syscall-note \ + LICENSES/preferred/GPL-2.0 + +# flex and bison are needed to generate kconfig parser. We use the +# same logic as the linux kernel (we add host dependencies only if +# host does not have them). See linux/linux.mk and +# support/dependencies/check-host-bison-flex.mk. +SUMMIT_LINUX_BACKPORTS_KCONFIG_DEPENDENCIES = \ + $(BR2_BISON_HOST_DEPENDENCY) \ + $(BR2_FLEX_HOST_DEPENDENCY) + +ifeq ($(BR2_PACKAGE_SUMMIT_LINUX_BACKPORTS_USE_DEFCONFIG),y) +SUMMIT_LINUX_BACKPORTS_KCONFIG_FILE = $(SUMMIT_LINUX_BACKPORTS_DIR)/defconfigs/$(call qstrip,$(BR2_PACKAGE_SUMMIT_LINUX_BACKPORTS_DEFCONFIG)) +else ifeq ($(BR2_PACKAGE_SUMMIT_LINUX_BACKPORTS_USE_CUSTOM_CONFIG),y) +SUMMIT_LINUX_BACKPORTS_KCONFIG_FILE = $(call qstrip,$(BR2_PACKAGE_SUMMIT_LINUX_BACKPORTS_CUSTOM_CONFIG_FILE)) +endif + +SUMMIT_LINUX_BACKPORTS_KCONFIG_FRAGMENT_FILES = $(call qstrip,$(BR2_PACKAGE_SUMMIT_LINUX_BACKPORTS_CONFIG_FRAGMENT_FILES)) +SUMMIT_LINUX_BACKPORTS_KCONFIG_OPTS = $(SUMMIT_LINUX_BACKPORTS_MAKE_OPTS) + +SUMMIT_LINUX_BACKPORTS_MAKE_ENV = $(HOST_MAKE_ENV) + +# linux-backports' build system expects the config options to be present +# in the environment, and it is so when using their custom buildsystem, +# because they are set in the main Makefile, which then calls a second +# Makefile. +# +# In our case, we do not use that first Makefile. So, we parse the +# .config file, filter-out comment lines and put the rest as command +# line variables. +# +# SUMMIT_LINUX_BACKPORTS_MAKE_OPTS is used by the kconfig-package infra, while +# SUMMIT_LINUX_BACKPORTS_MODULE_MAKE_OPTS is used by the kernel-module infra. +# +SUMMIT_LINUX_BACKPORTS_MAKE_OPTS = \ + KLIB_BUILD=$(LINUX_DIR) \ + KLIB=$(TARGET_DIR)/lib/modules/$(LINUX_VERSION_PROBED) + +SUMMIT_LINUX_BACKPORTS_MODULE_MAKE_OPTS = $(SUMMIT_LINUX_BACKPORTS_MAKE_OPTS) + +# Checks to give errors that the user can understand +ifeq ($(BR_BUILDING),y) + +ifeq ($(BR2_PACKAGE_SUMMIT_LINUX_BACKPORTS_USE_DEFCONFIG),y) +ifeq ($(call qstrip,$(BR2_PACKAGE_SUMMIT_LINUX_BACKPORTS_DEFCONFIG)),) +$(error No linux-backports defconfig name specified, check your BR2_PACKAGE_SUMMIT_LINUX_BACKPORTS_DEFCONFIG setting) +endif +endif + +ifeq ($(BR2_PACKAGE_SUMMIT_LINUX_BACKPORTS_USE_CUSTOM_CONFIG),y) +ifeq ($(call qstrip,$(BR2_PACKAGE_SUMMIT_LINUX_BACKPORTS_CUSTOM_CONFIG_FILE)),) +$(error No linux-backports configuration file specified, check your BR2_PACKAGE_SUMMIT_LINUX_BACKPORTS_CUSTOM_CONFIG_FILE setting) +endif +endif + +endif # BR_BUILDING + +$(eval $(kernel-module)) +$(eval $(kconfig-package)) + +# linux-backports' own .config file needs options from the kernel's own +# .config file. The dependencies handling in the infrastructure does not +# allow to express this kind of dependencies. Besides, linux.mk might +# not have been parsed yet, so the Linux build dir LINUX_DIR is not yet +# known. Thus, we use a "secondary expansion" so the rule is re-evaluated +# after all Makefiles are parsed, and thus at that time we will have the +# LINUX_DIR variable set to the proper value. Moreover, since linux-4.19, +# the kernel's build system internally touches its .config file, so we +# can't use it as a stamp file. We use the LINUX_KCONFIG_STAMP_DOTCONFIG +# instead. +# +# Furthermore, we want to check the kernel version, since linux-backports +# only supports kernels >= 3.10. To avoid overriding linux-backports' +# KCONFIG_STAMP_DOTCONFIG rule defined in the kconfig-package infra, we +# use an intermediate stamp-file. +# +# Finally, it must also come after the call to kconfig-package, so we get +# SUMMIT_LINUX_BACKPORTS_DIR properly defined (because the target part of the +# rule is not re-evaluated). +# +$(SUMMIT_LINUX_BACKPORTS_DIR)/$(SUMMIT_LINUX_BACKPORTS_KCONFIG_STAMP_DOTCONFIG): $(SUMMIT_LINUX_BACKPORTS_DIR)/.stamp_check_kernel_version + +.SECONDEXPANSION: +$(SUMMIT_LINUX_BACKPORTS_DIR)/.stamp_check_kernel_version: $$(LINUX_DIR)/$$(LINUX_KCONFIG_STAMP_DOTCONFIG) | linux + $(Q)KVER=$(LINUX_VERSION_PROBED); \ + MIN_KVER_MAJOR=$(SUMMIT_LINUX_BACKPORTS_MINIMAL_KVER_MAJOR); \ + MIN_KVER_MINOR=$(SUMMIT_LINUX_BACKPORTS_MINIMAL_KVER_MINOR); \ + KVER_MAJOR=`echo $${KVER} | sed 's/^\([0-9]*\)\..*/\1/'`; \ + KVER_MINOR=`echo $${KVER} | sed 's/^[0-9]*\.\([0-9]*\).*/\1/'`; \ + if [ $${KVER_MAJOR} -lt $(SUMMIT_LINUX_BACKPORTS_MINIMAL_KVER_MAJOR) \ + -o \( $${KVER_MAJOR} -eq $(SUMMIT_LINUX_BACKPORTS_MINIMAL_KVER_MAJOR) \ + -a $${KVER_MINOR} -lt $(SUMMIT_LINUX_BACKPORTS_MINIMAL_KVER_MINOR) \ + \) ]; then \ + printf "Linux version '%s' is too old for linux-backports (needs %s.%s or later)\n" \ + "$${KVER}" \ + "$(SUMMIT_LINUX_BACKPORTS_MINIMAL_KVER_MAJOR)" \ + "$(SUMMIT_LINUX_BACKPORTS_MINIMAL_KVER_MINOR)"; \ + exit 1; \ + fi + $(Q)touch $(@) + +$(SUMMIT_LINUX_BACKPORTS_DIR)/.stamp_built: $$(LINUX_DIR)/.stamp_built | linux diff --git a/package/summit-mfg60/Config.in b/package/summit-mfg60/Config.in new file mode 100644 index 0000000..847347a --- /dev/null +++ b/package/summit-mfg60/Config.in @@ -0,0 +1,21 @@ +config BR2_PACKAGE_SUMMIT_MFG60N + bool "60 series manufacturing tools binaries" + select BR2_PACKAGE_LIBNL + select BR2_PACKAGE_LIBEDIT + help + This package installs 60 series manufacturing tools. + +if BR2_PACKAGE_SUMMIT_MFG60N +config BR2_PACKAGE_SUMMIT_MFG60N_LMU + bool "60 series manufacturing tool (lmu)" + default y + help + This package installs 60 series lmu for use in setting the regulatory domain. + +config BR2_PACKAGE_SUMMIT_MFG60N_REGULATORY + bool "60 series regulatory tools (lru, btlru)" + default y + help + This package installs 60 series lru and btlru for use in regulatory testing. + +endif diff --git a/package/summit-mfg60/summit-mfg60n.mk b/package/summit-mfg60/summit-mfg60n.mk new file mode 100644 index 0000000..a90f08b --- /dev/null +++ b/package/summit-mfg60/summit-mfg60n.mk @@ -0,0 +1,47 @@ +SUMMIT_MFG60N_VERSION = $(SUMMIT_60_RADIO_STACK_VERSION_VALUE) +SUMMIT_MFG60N_SOURCE = mfg60n-$(SUMMIT_RADIO_STACK_ARCH)-$(SUMMIT_MFG60N_VERSION).tar.bz2 +SUMMIT_MFG60N_STRIP_COMPONENTS = 0 +SUMMIT_MFG60N_LICENSE = GPL-2.0 + +ifeq ($(MSD_BINARIES_SOURCE_LOCATION),laird_internal) +SUMMIT_MFG60N_SITE = $(SUMMIT_RADIO_URI_BASE_INTERNAL)/mfg60n/laird/$(SUMMIT_MFG60N_VERSION) +else +SUMMIT_MFG60N_SITE = $(SUMMIT_RADIO_URI_BASE_60)/LRD-REL-$(SUMMIT_MFG60N_VERSION) +endif + +define SUMMIT_MFG60N_POST_EXTRACT + (cd $(@D) && ./$(SUMMIT_MFG60N_SOURCE:%.tar.bz2=%.sh) tar) + tar -xvjf $(@D)/$(SUMMIT_MFG60N_SOURCE) -C $(@D) + rm $(@D)/$(SUMMIT_MFG60N_SOURCE) $(@D)/$(SUMMIT_MFG60N_SOURCE:%.tar.bz2=%.sh) $(@D)/$(SUMMIT_MFG60N_SOURCE:%.tar.bz2=%.sha) +endef + +SUMMIT_MFG60N_POST_EXTRACT_HOOKS += SUMMIT_MFG60N_POST_EXTRACT + +ifeq ($(BR2_PACKAGE_SUMMIT_MFG60N_LMU),y) +define SUMMIT_MFG60N_LMU_INSTALL_TARGET_CMDS + $(INSTALL) -D -m 755 $(@D)/lmu $(TARGET_DIR)/usr/bin/lmu +endef +endif + +ifeq ($(BR2_PACKAGE_SUMMIT_MFG60N_REGULATORY),y) + +ifneq ($(BR2_PACKAGE_BLUEZ5_UTILS)$(BR2_PACKAGE_BLUEZ4_UTILS),) +define SUMMIT_MFG60N_BTLRU_INSTALL_TARGET_CMD + $(INSTALL) -D -m 755 $(@D)/btlru $(TARGET_DIR)/usr/bin/btlru +endef +endif + +define SUMMIT_MFG60N_REGULATORY_INSTALL_TARGET_CMDS + $(INSTALL) -D -m 755 -t $(TARGET_DIR)/usr/bin $(@D)/lru + $(INSTALL) -D -m 644 -t $(TARGET_DIR)/lib/firmware/lrdmwl/ $(@D)/88W8997_mfg* + $(SUMMIT_MFG60N_BTLRU_INSTALL_TARGET_CMD) +endef + +endif + +define SUMMIT_MFG60N_INSTALL_TARGET_CMDS + $(SUMMIT_MFG60N_LMU_INSTALL_TARGET_CMDS) + $(SUMMIT_MFG60N_REGULATORY_INSTALL_TARGET_CMDS) +endef + +$(eval $(generic-package)) diff --git a/package/summit-network-manager/Config.in b/package/summit-network-manager/Config.in new file mode 100644 index 0000000..cbf32fe --- /dev/null +++ b/package/summit-network-manager/Config.in @@ -0,0 +1,98 @@ +config BR2_PACKAGE_SUMMIT_NETWORK_MANAGER + bool "summit-networkmanager" + depends on !BR2_STATIC_LIBS # gnutls + depends on BR2_USE_MMU # dbus + depends on BR2_PACKAGE_HAS_UDEV + # Tested with 3.2, but may even work with earlier versions + depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_2 + depends on BR2_TOOLCHAIN_USES_GLIBC # CLOCK_BOOTTIME, IPTOS_CLASS_* + depends on BR2_TOOLCHAIN_HAS_THREADS # libglib2 + depends on BR2_USE_WCHAR # libglib2 + select BR2_PACKAGE_DBUS + select BR2_PACKAGE_OPENSSL + select BR2_PACKAGE_LIBGLIB2 + select BR2_PACKAGE_LIBNDP + select BR2_PACKAGE_UTIL_LINUX + select BR2_PACKAGE_UTIL_LINUX_LIBUUID + help + NetworkManager is a set of co-operative tools that make + networking simple and straightforward. Whether WiFi, wired, + 3G, or Bluetooth, NetworkManager allows you to quickly move + from one network to another: once a network has been + configured and joined once, it can be detected and re-joined + automatically the next time it's available. + + http://projects.gnome.org/NetworkManager/ + +if BR2_PACKAGE_SUMMIT_NETWORK_MANAGER + +choice + prompt "Package Source" + default BR2_PACKAGE_SUMMIT_NETWORK_MANAGER_60 + +config BR2_PACKAGE_SUMMIT_NETWORK_MANAGER_60 + bool "Using 60 series" + +config BR2_PACKAGE_SUMMIT_NETWORK_MANAGER_LWB + bool "Using LWB/IF series" + +config BR2_PACKAGE_SUMMIT_NETWORK_MANAGER_MSD + bool "Using MSD series" + +config BR2_PACKAGE_SUMMIT_NETWORK_MANAGER_NX + bool "Using NX series" + +config BR2_PACKAGE_SUMMIT_NETWORK_MANAGER_TI + bool "Using TI series" + +endchoice + +config BR2_PACKAGE_SUMMIT_NETWORK_MANAGER_TUI + bool "nmtui support" + select BR2_PACKAGE_NEWT + help + This option enables terminal based UI + +config BR2_PACKAGE_SUMMIT_NETWORK_MANAGER_CLI + bool "nmcli support" + select BR2_PACKAGE_READLINE + default y + help + This option enables support for the NetworkManager Command + Line Interface + +config BR2_PACKAGE_SUMMIT_NETWORK_MANAGER_MODEM_MANAGER + bool "modem-manager support" + select BR2_PACKAGE_MODEM_MANAGER + select BR2_PACKAGE_MOBILE_BROADBAND_PROVIDER_INFO + help + This option enables support for ModemManager + +config BR2_PACKAGE_SUMMIT_NETWORK_MANAGER_PPPD + bool "pppd support" + depends on !BR2_TOOLCHAIN_USES_MUSL # pppd + select BR2_PACKAGE_PPPD + help + This option enables support for PPPD daemon + +config BR2_PACKAGE_SUMMIT_NETWORK_MANAGER_OVS + bool "OpenVSwitch support" + select BR2_PACKAGE_JANSSON + help + This option enables support for OpenVSwitch + +config BR2_PACKAGE_SUMMIT_NETWORK_MANAGER_CONCHECK + bool "connection checking support" + select BR2_PACKAGE_LIBCURL + help + This option enables connection checking support + +endif + +comment "Summit NetworkManager needs udev /dev management and a glibc toolchain w/ headers >= 3.2, dynamic library, wchar, threads" + depends on BR2_USE_MMU + depends on !BR2_PACKAGE_HAS_UDEV || \ + !BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_2 || \ + !BR2_TOOLCHAIN_USES_GLIBC || BR2_STATIC_LIBS || \ + !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS + diff --git a/package/summit-network-manager/S45network-manager b/package/summit-network-manager/S45network-manager new file mode 100755 index 0000000..bc775d3 --- /dev/null +++ b/package/summit-network-manager/S45network-manager @@ -0,0 +1,41 @@ +#!/bin/sh + +# Allow a few customizations from a config file +test -r /etc/default/NetworkManager && . /etc/default/NetworkManager + +PID=`pidof NetworkManager` +case "$1" in + start) + printf "Starting NetworkManager ... " + [ ! -d /var/run/NetworkManager ] && install -d /var/run/NetworkManager + if [ -z "$PID" ]; then + /usr/sbin/NetworkManager $NETWORKMANAGER_ARGS + fi + if [ ! -z "$PID" -o $? -gt 0 ]; then + echo "failed!" + else + echo "done." + fi + ;; + stop) + printf "Stopping NetworkManager ... " + [ ! -z "$PID" ] && kill $PID > /dev/null 2>&1 + if [ $? -gt 0 ]; then + echo "failed!" + else + echo "done." + fi + ;; + restart) + $0 stop + sleep 1 + $0 start + ;; + *) + echo "usage: $0 {start|stop|restart|sleep|wake}" + ;; +esac +exit 0 + + + diff --git a/package/summit-network-manager/summit-network-manager.mk b/package/summit-network-manager/summit-network-manager.mk new file mode 100644 index 0000000..cfaec8d --- /dev/null +++ b/package/summit-network-manager/summit-network-manager.mk @@ -0,0 +1,205 @@ +################################################################################ +# +# Summit network-manager +# +################################################################################ +ifeq ($(BR2_PACKAGE_SUMMIT_NETWORK_MANAGER_60),y) +SUMMIT_NETWORK_MANAGER_VERSION = $(SUMMIT_60_RADIO_STACK_VERSION_VALUE) +SUMMIT_NETWORK_MANAGER_SITE = $(SUMMIT_RADIO_URI_BASE_60)-$(SUMMIT_NETWORK_MANAGER_VERSION) +else ifeq ($(BR2_PACKAGE_SUMMIT_NETWORK_MANAGER_LWB),y) +SUMMIT_NETWORK_MANAGER_VERSION = $(SUMMIT_LWB_RADIO_STACK_VERSION_VALUE) +SUMMIT_NETWORK_MANAGER_SITE = $(SUMMIT_RADIO_URI_BASE_LWB)-$(SUMMIT_NETWORK_MANAGER_VERSION) +else ifeq ($(BR2_PACKAGE_SUMMIT_NETWORK_MANAGER_MSD),y) +SUMMIT_NETWORK_MANAGER_VERSION = $(SUMMIT_MSD_RADIO_STACK_VERSION_VALUE) +SUMMIT_NETWORK_MANAGER_SITE = $(SUMMIT_RADIO_URI_BASE_MSD)-$(SUMMIT_NETWORK_MANAGER_VERSION) +else ifeq ($(BR2_PACKAGE_SUMMIT_NETWORK_MANAGER_NX),y) +SUMMIT_NETWORK_MANAGER_VERSION = $(SUMMIT_NX_RADIO_STACK_VERSION_VALUE) +SUMMIT_NETWORK_MANAGER_SITE = $(SUMMIT_RADIO_URI_BASE_NX)-$(SUMMIT_NETWORK_MANAGER_VERSION) +else ifeq ($(BR2_PACKAGE_SUMMIT_NETWORK_MANAGER_TI),y) +SUMMIT_NETWORK_MANAGER_VERSION = $(SUMMIT_TI_RADIO_STACK_VERSION_VALUE) +SUMMIT_NETWORK_MANAGER_SITE = $(SUMMIT_RADIO_URI_BASE_TI)-$(SUMMIT_NETWORK_MANAGER_VERSION) +else ifeq ($(BR2_PACKAGE_SUMMIT_NETWORK_MANAGER)$(BR_BUILDING),yy) +$(error "No target radio selected") +endif + +ifeq ($(MSD_BINARIES_SOURCE_LOCATION),laird_internal) + SUMMIT_NETWORK_MANAGER_SITE = $(SUMMIT_RADIO_URI_BASE_INTERNAL)/linux/lrd-network-manager/src/$(SUMMIT_NETWORK_MANAGER_VERSION) +endif + +SUMMIT_NETWORK_MANAGER_SOURCE = summit-network-manager-src-$(SUMMIT_NETWORK_MANAGER_VERSION).tar.xz +SUMMIT_NETWORK_MANAGER_INSTALL_STAGING = YES +SUMMIT_NETWORK_MANAGER_LICENSE = GPL-2.0+ (app), LGPL-2.1+ (libnm) +SUMMIT_NETWORK_MANAGER_LICENSE_FILES = COPYING COPYING.LGPL CONTRIBUTING.md +SUMMIT_NETWORK_MANAGER_CPE_ID_VENDOR = gnome +SUMMIT_NETWORK_MANAGER_CPE_ID_PRODUCT = networkmanager +SUMMIT_NETWORK_MANAGER_CPE_ID_VERSION = 1.46.0 +SUMMIT_NETWORK_MANAGER_SELINUX_MODULES = networkmanager + +SUMMIT_NETWORK_MANAGER_DEPENDENCIES = \ + host-pkgconf \ + dbus \ + libglib2 \ + libndp \ + udev \ + util-linux \ + openssl + +SUMMIT_NETWORK_MANAGER_CONF_OPTS = \ + -Ddocs=false \ + -Dtests=no \ + -Dqt=false \ + -Diptables=/usr/sbin/iptables \ + -Difupdown=false \ + -Difcfg_rh=false \ + -Dnm_cloud_setup=false \ + -Dsession_tracking_consolekit=false \ + -Dwext=false \ + -Dcrypto=openssl \ + -Diwd=false \ + -Dconfig_wifi_backend_default=wpa_supplicant + +ifeq ($(BR2_PACKAGE_AUDIT),y) +SUMMIT_NETWORK_MANAGER_DEPENDENCIES += audit +SUMMIT_NETWORK_MANAGER_CONF_OPTS += -Dlibaudit=yes +else +SUMMIT_NETWORK_MANAGER_CONF_OPTS += -Dlibaudit=no +endif + +ifeq ($(BR2_PACKAGE_DHCP_CLIENT),y) +SUMMIT_NETWORK_MANAGER_CONF_OPTS += -Ddhclient=/sbin/dhclient +else +SUMMIT_NETWORK_MANAGER_CONF_OPTS += -Ddhclient=no +endif + +ifeq ($(BR2_PACKAGE_DHCPCD),y) +SUMMIT_NETWORK_MANAGER_CONF_OPTS += -Ddhcpcd=/sbin/dhcpcd +else +SUMMIT_NETWORK_MANAGER_CONF_OPTS += -Ddhcpcd=no +endif + +ifeq ($(BR2_PACKAGE_SUMMIT_NETWORK_MANAGER_CONCHECK),y) +SUMMIT_NETWORK_MANAGER_DEPENDENCIES += libcurl +SUMMIT_NETWORK_MANAGER_CONF_OPTS += -Dconcheck=true +else +SUMMIT_NETWORK_MANAGER_CONF_OPTS += -Dconcheck=false +endif + +ifeq ($(BR2_PACKAGE_LIBPSL),y) +SUMMIT_NETWORK_MANAGER_DEPENDENCIES += libpsl +SUMMIT_NETWORK_MANAGER_CONF_OPTS += -Dlibpsl=true +else +SUMMIT_NETWORK_MANAGER_CONF_OPTS += -Dlibpsl=false +endif + +ifeq ($(BR2_PACKAGE_LIBSELINUX),y) +SUMMIT_NETWORK_MANAGER_DEPENDENCIES += libselinux +SUMMIT_NETWORK_MANAGER_CONF_OPTS += -Dselinux=true +else +SUMMIT_NETWORK_MANAGER_CONF_OPTS += -Dselinux=false +endif + +ifeq ($(BR2_PACKAGE_SUMMIT_NETWORK_MANAGER_MODEM_MANAGER),y) +SUMMIT_NETWORK_MANAGER_DEPENDENCIES += modem-manager mobile-broadband-provider-info +SUMMIT_NETWORK_MANAGER_CONF_OPTS += -Dmodem_manager=true + +ifeq ($(BR2_PACKAGE_OFONO),y) +SUMMIT_NETWORK_MANAGER_DEPENDENCIES += ofono +SUMMIT_NETWORK_MANAGER_CONF_OPTS += -Dofono=true +else +SUMMIT_NETWORK_MANAGER_CONF_OPTS += -Dofono=false +endif + +ifeq ($(BR2_PACKAGE_BLUEZ5_UTILS),y) +SUMMIT_NETWORK_MANAGER_DEPENDENCIES += bluez5_utils +SUMMIT_NETWORK_MANAGER_CONF_OPTS += -Dbluez5_dun=true +else +SUMMIT_NETWORK_MANAGER_CONF_OPTS += -Dbluez5_dun=false +endif + +else +SUMMIT_NETWORK_MANAGER_CONF_OPTS += -Dmodem_manager=false -Dofono=false -Dbluez5_dun=false +endif + +ifeq ($(BR2_PACKAGE_SUMMIT_NETWORK_MANAGER_OVS),y) +SUMMIT_NETWORK_MANAGER_CONF_OPTS += -Dovs=true +SUMMIT_NETWORK_MANAGER_DEPENDENCIES += jansson +else +SUMMIT_NETWORK_MANAGER_CONF_OPTS += -Dovs=false +endif + +ifeq ($(BR2_PACKAGE_SUMMIT_NETWORK_MANAGER_PPPD),y) +SUMMIT_NETWORK_MANAGER_DEPENDENCIES += pppd +SUMMIT_NETWORK_MANAGER_CONF_OPTS += \ + -Dppp=true \ + -Dpppd=/usr/sbin/pppd \ + -Dpppd_plugin_dir=/usr/lib/pppd/$(PPPD_VERSION) +else +SUMMIT_NETWORK_MANAGER_CONF_OPTS += -Dppp=false +endif + +ifeq ($(BR2_PACKAGE_SUMMIT_NETWORK_MANAGER_TUI),y) +SUMMIT_NETWORK_MANAGER_DEPENDENCIES += newt +SUMMIT_NETWORK_MANAGER_CONF_OPTS += -Dnmtui=true +else +SUMMIT_NETWORK_MANAGER_CONF_OPTS += -Dnmtui=false +endif + +ifeq ($(BR2_PACKAGE_SYSTEMD),y) +SUMMIT_NETWORK_MANAGER_DEPENDENCIES += systemd +SUMMIT_NETWORK_MANAGER_CONF_OPTS += \ + -Dsystemd_journal=true \ + -Dconfig_logging_backend_default=journal \ + -Dsession_tracking=systemd \ + -Dsuspend_resume=systemd +else +SUMMIT_NETWORK_MANAGER_CONF_OPTS += \ + -Dsystemd_journal=false \ + -Dconfig_logging_backend_default=syslog \ + -Dsession_tracking=no \ + -Dsuspend_resume=upower \ + -Dsystemdsystemunitdir=no +endif + +ifeq ($(BR2_PACKAGE_POLKIT),y) +SUMMIT_NETWORK_MANAGER_DEPENDENCIES += polkit +SUMMIT_NETWORK_MANAGER_CONF_OPTS += -Dpolkit=true +else +SUMMIT_NETWORK_MANAGER_CONF_OPTS += -Dpolkit=false +endif + +ifeq ($(BR2_PACKAGE_SUMMIT_NETWORK_MANAGER_CLI),y) +SUMMIT_NETWORK_MANAGER_DEPENDENCIES += readline +SUMMIT_NETWORK_MANAGER_CONF_OPTS += -Dnmcli=true +else +SUMMIT_NETWORK_MANAGER_CONF_OPTS += -Dnmcli=false +endif + +ifeq ($(BR2_PACKAGE_GOBJECT_INTROSPECTION),y) +SUMMIT_NETWORK_MANAGER_DEPENDENCIES += gobject-introspection +SUMMIT_NETWORK_MANAGER_CONF_OPTS += -Dintrospection=true +else +SUMMIT_NETWORK_MANAGER_CONF_OPTS += -Dintrospection=false +endif + +define SUMMIT_NETWORK_MANAGER_INSTALL_INIT_SYSV + $(INSTALL) -m 0755 -D $(SUMMIT_NETWORK_MANAGER_PKGDIR)/S45network-manager \ + $(TARGET_DIR)/etc/init.d/S45network-manager +endef + +define SUMMIT_NETWORK_MANAGER_INSTALL_INIT_SYSTEMD + ln -sf /usr/lib/systemd/system/NetworkManager.service \ + $(TARGET_DIR)/etc/systemd/system/dbus-org.freedesktop.NetworkManager.service + + $(SED) 's,--no-daemon,--no-daemon --state-file=/etc/NetworkManager/NetworkManager.state,' \ + $(TARGET_DIR)/usr/lib/systemd/system/NetworkManager.service +endef + +# create directories that may not be populated on certain builds +define SUMMIT_NETWORK_MANAGER_CREATE_EMPTY_DIRS + $(INSTALL) -d $(TARGET_DIR)/etc/NetworkManager/certs \ + $(TARGET_DIR)/etc/NetworkManager/system-connections +endef + +SUMMIT_NETWORK_MANAGER_TARGET_FINALIZE_HOOKS += SUMMIT_NETWORK_MANAGER_CREATE_EMPTY_DIRS + +$(eval $(meson-package)) diff --git a/package/summit-reg45n/Config.in b/package/summit-reg45n/Config.in new file mode 100644 index 0000000..58653ab --- /dev/null +++ b/package/summit-reg45n/Config.in @@ -0,0 +1,5 @@ +config BR2_PACKAGE_SUMMIT_REG45N + bool "45 series regulatory tools" + select BR2_PACKAGE_LIBEDIT + help + This package installs 45 series regulatory tools. diff --git a/package/summit-reg45n/summit-reg45n.mk b/package/summit-reg45n/summit-reg45n.mk new file mode 100644 index 0000000..e0d7a36 --- /dev/null +++ b/package/summit-reg45n/summit-reg45n.mk @@ -0,0 +1,25 @@ +SUMMIT_REG45N_VERSION = $(SUMMIT_MSD_RADIO_STACK_VERSION_VALUE) +SUMMIT_REG45N_SOURCE = reg45n-$(SUMMIT_RADIO_STACK_ARCH)-$(SUMMIT_REG45N_VERSION).tar.bz2 +SUMMIT_REG45N_STRIP_COMPONENTS = 0 +SUMMIT_REG45N_LICENSE = MIT + +ifeq ($(MSD_BINARIES_SOURCE_LOCATION),laird_internal) + SUMMIT_REG45N_SITE = $(SUMMIT_RADIO_URI_BASE_INTERNAL)/reg45n/laird/$(SUMMIT_REG45N_VERSION) +else + SUMMIT_REG45N_SITE = https://github.com/LairdCP/wb-package-archive/releases/download/LRD-REL-$(SUMMIT_REG45N_VERSION) +endif + +define SUMMIT_REG45N_POST_EXTRACT + (cd $(@D) && ./$(SUMMIT_REG45N_SOURCE:%.tar.bz2=%.sh) tar) + tar -xvjf $(@D)/$(SUMMIT_REG45N_SOURCE) -C $(@D) + rm $(@D)/$(SUMMIT_REG45N_SOURCE) $(@D)/$(SUMMIT_REG45N_SOURCE:%.tar.bz2=%.sh) $(@D)/$(SUMMIT_REG45N_SOURCE:%.tar.bz2=%.sha) +endef + +SUMMIT_REG45N_POST_EXTRACT_HOOKS += SUMMIT_REG45N_POST_EXTRACT + +define SUMMIT_REG45N_INSTALL_TARGET_CMDS + $(INSTALL) -D -m 755 -t $(TARGET_DIR)/usr/bin $(@D)/lru $(@D)/smu_cli $(@D)/tcmd.sh + $(INSTALL) -D -m 644 -t $(TARGET_DIR)/lib/firmware/ath6k/AR6003/hw2.1.1/ $(@D)/files/utf*.bin +endef + +$(eval $(generic-package)) diff --git a/package/summit-reg50n/Config.in b/package/summit-reg50n/Config.in new file mode 100644 index 0000000..8aa8b0f --- /dev/null +++ b/package/summit-reg50n/Config.in @@ -0,0 +1,5 @@ +config BR2_PACKAGE_SUMMIT_REG50N + bool "50 series regulatory tools" + select BR2_PACKAGE_LIBEDIT + help + This package installs 50 series regulatory tools. diff --git a/package/summit-reg50n/summit-reg50n.mk b/package/summit-reg50n/summit-reg50n.mk new file mode 100644 index 0000000..bddbc9e --- /dev/null +++ b/package/summit-reg50n/summit-reg50n.mk @@ -0,0 +1,25 @@ +SUMMIT_REG50N_VERSION = $(SUMMIT_MSD_RADIO_STACK_VERSION_VALUE) +SUMMIT_REG50N_SOURCE = reg50n-$(SUMMIT_RADIO_STACK_ARCH)-$(SUMMIT_REG50N_VERSION).tar.bz2 +SUMMIT_REG50N_STRIP_COMPONENTS = 0 +SUMMIT_REG50N_LICENSE = MIT + +ifeq ($(MSD_BINARIES_SOURCE_LOCATION),laird_internal) + SUMMIT_REG50N_SITE = $(SUMMIT_RADIO_URI_BASE_INTERNAL)/reg50n/laird/$(SUMMIT_REG50N_VERSION) +else + SUMMIT_REG50N_SITE = https://github.com/LairdCP/wb-package-archive/releases/download/LRD-REL-$(SUMMIT_REG50N_VERSION) +endif + +define SUMMIT_REG50N_POST_EXTRACT + (cd $(@D) && ./$(SUMMIT_REG50N_SOURCE:%.tar.bz2=%.sh) tar) + tar -xvjf $(@D)/$(SUMMIT_REG50N_SOURCE) -C $(@D) + rm $(@D)/$(SUMMIT_REG50N_SOURCE) $(@D)/$(SUMMIT_REG50N_SOURCE:%.tar.bz2=%.sh) $(@D)/$(SUMMIT_REG50N_SOURCE:%.tar.bz2=%.sha) +endef + +SUMMIT_REG50N_POST_EXTRACT_HOOKS += SUMMIT_REG50N_POST_EXTRACT + +define SUMMIT_REG50N_INSTALL_TARGET_CMDS + $(INSTALL) -D -m 755 -t $(TARGET_DIR)/usr/bin $(@D)/lru $(@D)/smu_cli $(@D)/tcmd.sh + $(INSTALL) -D -m 644 -t $(TARGET_DIR)/lib/firmware/ath6k/AR6004/hw3.0/ $(@D)/files/utf*.bin +endef + +$(eval $(generic-package)) diff --git a/package/summit-regcypress/Config.in b/package/summit-regcypress/Config.in new file mode 100644 index 0000000..8838b81 --- /dev/null +++ b/package/summit-regcypress/Config.in @@ -0,0 +1,6 @@ +config BR2_PACKAGE_SUMMIT_REGCYPRESS + bool "LWB & LWB5 manufacturing tools binaries" + select BR2_PACKAGE_LIBNL + select BR2_PACKAGE_LIBEDIT + help + This package installs LWB & LWB5 manufacturing tools. diff --git a/package/summit-regcypress/summit-regcypress.mk b/package/summit-regcypress/summit-regcypress.mk new file mode 100644 index 0000000..90cd311 --- /dev/null +++ b/package/summit-regcypress/summit-regcypress.mk @@ -0,0 +1,25 @@ +SUMMIT_REGCYPRESS_VERSION = $(SUMMIT_60_RADIO_STACK_VERSION_VALUE) +SUMMIT_REGCYPRESS_SOURCE = regCypress-$(SUMMIT_RADIO_STACK_ARCH)-$(SUMMIT_REGCYPRESS_VERSION).tar.bz2 +SUMMIT_REGCYPRESS_STRIP_COMPONENTS = 0 +SUMMIT_REGCYPRESS_LICENSE = GPL-2.0 + +ifeq ($(MSD_BINARIES_SOURCE_LOCATION),laird_internal) +SUMMIT_REGCYPRESS_SITE = $(SUMMIT_RADIO_URI_BASE_INTERNAL)/regCypress/laird/$(SUMMIT_REGCYPRESS_VERSION) +else +SUMMIT_REGCYPRESS_SITE = $(SUMMIT_RADIO_URI_BASE_60)/LRD-REL-$(SUMMIT_REGCYPRESS_VERSION) +endif + +define SUMMIT_REGCYPRESS_POST_EXTRACT + (cd $(@D) && ./$(SUMMIT_REGCYPRESS_SOURCE:%.tar.bz2=%.sh) tar) + tar -xvjf $(@D)/$(SUMMIT_REGCYPRESS_SOURCE) -C $(@D) + rm $(@D)/$(SUMMIT_REGCYPRESS_SOURCE) $(@D)/$(SUMMIT_REGCYPRESS_SOURCE:%.tar.bz2=%.sh) $(@D)/$(SUMMIT_REGCYPRESS_SOURCE:%.tar.bz2=%.sha) +endef + +SUMMIT_REGCYPRESS_POST_EXTRACT_HOOKS += SUMMIT_REGCYPRESS_POST_EXTRACT + +define SUMMIT_REGCYPRESS_INSTALL_TARGET_CMDS + $(INSTALL) -D -m 775 -t $(TARGET_DIR)/usr/bin $(@D)/wl + $(INSTALL) -D -m 644 -t $(TARGET_DIR)/lib/firmware/brcfmac $(@D)/brcmfmac* +endef + +$(eval $(generic-package)) diff --git a/package/summit-regif513/Config.in b/package/summit-regif513/Config.in new file mode 100644 index 0000000..ea677a7 --- /dev/null +++ b/package/summit-regif513/Config.in @@ -0,0 +1,6 @@ +config BR2_PACKAGE_SUMMIT_REGIF513 + bool "IF573 manufacturing tools binaries" + select BR2_PACKAGE_LIBNL + select BR2_PACKAGE_LIBEDIT + help + This package installs IF573 series manufacturing tools. diff --git a/package/summit-regif513/summit-regif513.mk b/package/summit-regif513/summit-regif513.mk new file mode 100644 index 0000000..27ae82a --- /dev/null +++ b/package/summit-regif513/summit-regif513.mk @@ -0,0 +1,32 @@ +SUMMIT_REGIF513_VERSION = $(SUMMIT_60_RADIO_STACK_VERSION_VALUE) +SUMMIT_REGIF513_SOURCE = regIF513-$(SUMMIT_RADIO_STACK_ARCH)-$(SUMMIT_REGIF513_VERSION).tar.bz2 +SUMMIT_REGIF513_STRIP_COMPONENTS = 0 +SUMMIT_REGIF513_LICENSE = GPL-2.0 + +ifeq ($(MSD_BINARIES_SOURCE_LOCATION),laird_internal) +SUMMIT_REGIF513_SITE = $(SUMMIT_RADIO_URI_BASE_INTERNAL)/regIF513/laird/$(SUMMIT_REGIF513_VERSION) +else +SUMMIT_REGIF513_SITE = $(SUMMIT_RADIO_URI_BASE_60)/LRD-REL-$(SUMMIT_REGIF513_VERSION) +endif + +define SUMMIT_REGIF513_POST_EXTRACT + (cd $(@D) && ./$(SUMMIT_REGIF513_SOURCE:%.tar.bz2=%.sh) tar) + tar -xvjf $(@D)/$(SUMMIT_REGIF513_SOURCE) -C $(@D) + rm $(@D)/$(SUMMIT_REGIF513_SOURCE) $(@D)/$(SUMMIT_REGIF513_SOURCE:%.tar.bz2=%.sh) $(@D)/$(SUMMIT_REGIF513_SOURCE:%.tar.bz2=%.sha) +endef + +SUMMIT_REGIF513_POST_EXTRACT_HOOKS += SUMMIT_REGIF513_POST_EXTRACT + +ifneq ($(BR2_PACKAGE_BLUEZ5_UTILS)$(BR2_PACKAGE_BLUEZ4_UTILS),) +define SUMMIT_REGIF513_BTLRU_INSTALL_TARGET_CMD + $(INSTALL) -D -m 755 -t $(TARGET_DIR)/usr/bin $(@D)/btlru +endef +endif + +define SUMMIT_REGIF513_INSTALL_TARGET_CMDS + $(SUMMIT_REGIF513_BTLRU_INSTALL_TARGET_CMD) + $(INSTALL) -D -m 775 -t $(TARGET_DIR)/usr/bin $(@D)/lru + $(INSTALL) -D -m 644 -t $(TARGET_DIR)/lib/firmware/cypress $(@D)/cyfmac* +endef + +$(eval $(generic-package)) diff --git a/package/summit-regif573/Config.in b/package/summit-regif573/Config.in new file mode 100644 index 0000000..ec1a07b --- /dev/null +++ b/package/summit-regif573/Config.in @@ -0,0 +1,6 @@ +config BR2_PACKAGE_SUMMIT_REGIF573 + bool "IF573 manufacturing tools binaries" + select BR2_PACKAGE_LIBNL + select BR2_PACKAGE_LIBEDIT + help + This package installs IF573 series manufacturing tools. diff --git a/package/summit-regif573/summit-regif573.mk b/package/summit-regif573/summit-regif573.mk new file mode 100644 index 0000000..a61b53f --- /dev/null +++ b/package/summit-regif573/summit-regif573.mk @@ -0,0 +1,32 @@ +SUMMIT_REGIF573_VERSION = $(SUMMIT_60_RADIO_STACK_VERSION_VALUE) +SUMMIT_REGIF573_SOURCE = regIF573-$(SUMMIT_RADIO_STACK_ARCH)-$(SUMMIT_REGIF573_VERSION).tar.bz2 +SUMMIT_REGIF573_STRIP_COMPONENTS = 0 +SUMMIT_REGIF573_LICENSE = GPL-2.0 + +ifeq ($(MSD_BINARIES_SOURCE_LOCATION),laird_internal) +SUMMIT_REGIF573_SITE = $(SUMMIT_RADIO_URI_BASE_INTERNAL)/regIF573/laird/$(SUMMIT_REGIF573_VERSION) +else +SUMMIT_REGIF573_SITE = $(SUMMIT_RADIO_URI_BASE_60)/LRD-REL-$(SUMMIT_REGIF573_VERSION) +endif + +define SUMMIT_REGIF573_POST_EXTRACT + (cd $(@D) && ./$(SUMMIT_REGIF573_SOURCE:%.tar.bz2=%.sh) tar) + tar -xvjf $(@D)/$(SUMMIT_REGIF573_SOURCE) -C $(@D) + rm $(@D)/$(SUMMIT_REGIF573_SOURCE) $(@D)/$(SUMMIT_REGIF573_SOURCE:%.tar.bz2=%.sh) $(@D)/$(SUMMIT_REGIF573_SOURCE:%.tar.bz2=%.sha) +endef + +SUMMIT_REGIF573_POST_EXTRACT_HOOKS += SUMMIT_REGIF573_POST_EXTRACT + +ifneq ($(BR2_PACKAGE_BLUEZ5_UTILS)$(BR2_PACKAGE_BLUEZ4_UTILS),) +define SUMMIT_REGIF573_BTLRU_INSTALL_TARGET_CMD + $(INSTALL) -D -m 755 -t $(TARGET_DIR)/usr/bin $(@D)/btlru +endef +endif + +define SUMMIT_REGIF573_INSTALL_TARGET_CMDS + $(SUMMIT_REGIF573_BTLRU_INSTALL_TARGET_CMD) + $(INSTALL) -D -m 775 -t $(TARGET_DIR)/usr/bin $(@D)/lru + $(INSTALL) -D -m 644 -t $(TARGET_DIR)/lib/firmware/cypress $(@D)/cyfmac* +endef + +$(eval $(generic-package)) diff --git a/package/summit-reglwb5plus/Config.in b/package/summit-reglwb5plus/Config.in new file mode 100644 index 0000000..007dad3 --- /dev/null +++ b/package/summit-reglwb5plus/Config.in @@ -0,0 +1,6 @@ +config BR2_PACKAGE_SUMMIT_REGLWB5PLUS + bool "LWB5+ manufacturing tools binaries" + select BR2_PACKAGE_LIBNL + select BR2_PACKAGE_LIBEDIT + help + This package installs LWB5+ manufacturing tools. diff --git a/package/summit-reglwb5plus/summit-reglwb5plus.mk b/package/summit-reglwb5plus/summit-reglwb5plus.mk new file mode 100644 index 0000000..6119112 --- /dev/null +++ b/package/summit-reglwb5plus/summit-reglwb5plus.mk @@ -0,0 +1,32 @@ +SUMMIT_REGLWB5PLUS_VERSION = $(SUMMIT_60_RADIO_STACK_VERSION_VALUE) +SUMMIT_REGLWB5PLUS_SOURCE = regLWB5plus-$(SUMMIT_RADIO_STACK_ARCH)-$(SUMMIT_REGLWB5PLUS_VERSION).tar.bz2 +SUMMIT_REGLWB5PLUS_STRIP_COMPONENTS = 0 +SUMMIT_REGLWB5PLUS_LICENSE = GPL-2.0 + +ifeq ($(MSD_BINARIES_SOURCE_LOCATION),laird_internal) +SUMMIT_REGLWB5PLUS_SITE = $(SUMMIT_RADIO_URI_BASE_INTERNAL)/regLWB5plus/laird/$(SUMMIT_REGLWB5PLUS_VERSION) +else +SUMMIT_REGLWB5PLUS_SITE = $(SUMMIT_RADIO_URI_BASE_60)/LRD-REL-$(SUMMIT_REGLWB5PLUS_VERSION) +endif + +define SUMMIT_REGLWB5PLUS_POST_EXTRACT + (cd $(@D) && ./$(SUMMIT_REGLWB5PLUS_SOURCE:%.tar.bz2=%.sh) tar) + tar -xvjf $(@D)/$(SUMMIT_REGLWB5PLUS_SOURCE) -C $(@D) + rm $(@D)/$(SUMMIT_REGLWB5PLUS_SOURCE) $(@D)/$(SUMMIT_REGLWB5PLUS_SOURCE:%.tar.bz2=%.sh) $(@D)/$(SUMMIT_REGLWB5PLUS_SOURCE:%.tar.bz2=%.sha) +endef + +SUMMIT_REGLWB5PLUS_POST_EXTRACT_HOOKS += SUMMIT_REGLWB5PLUS_POST_EXTRACT + +ifneq ($(BR2_PACKAGE_BLUEZ5_UTILS)$(BR2_PACKAGE_BLUEZ4_UTILS),) +define SUMMIT_REGLWB5PLUS_BTLRU_INSTALL_TARGET_CMD + $(INSTALL) -D -m 755 -t $(TARGET_DIR)/usr/bin $(@D)/btlru +endef +endif + +define SUMMIT_REGLWB5PLUS_INSTALL_TARGET_CMDS + $(SUMMIT_REGLWB5PLUS_BTLRU_INSTALL_TARGET_CMD) + $(INSTALL) -D -m 775 -t $(TARGET_DIR)/usr/bin $(@D)/lru + $(INSTALL) -D -m 644 -t $(TARGET_DIR)/lib/firmware/brcfmac $(@D)/brcmfmac* +endef + +$(eval $(generic-package)) diff --git a/package/summit-reglwbplus/Config.in b/package/summit-reglwbplus/Config.in new file mode 100644 index 0000000..75573f0 --- /dev/null +++ b/package/summit-reglwbplus/Config.in @@ -0,0 +1,6 @@ +config BR2_PACKAGE_SUMMIT_REGLWBPLUS + bool "LWB+ manufacturing tools binaries" + select BR2_PACKAGE_LIBNL + select BR2_PACKAGE_LIBEDIT + help + This package installs LWB+ series manufacturing tools. diff --git a/package/summit-reglwbplus/summit-reglwbplus.mk b/package/summit-reglwbplus/summit-reglwbplus.mk new file mode 100644 index 0000000..1533ea4 --- /dev/null +++ b/package/summit-reglwbplus/summit-reglwbplus.mk @@ -0,0 +1,32 @@ +SUMMIT_REGLWBPLUS_VERSION = $(SUMMIT_60_RADIO_STACK_VERSION_VALUE) +SUMMIT_REGLWBPLUS_SOURCE = regLWBplus-$(SUMMIT_RADIO_STACK_ARCH)-$(SUMMIT_REGLWBPLUS_VERSION).tar.bz2 +SUMMIT_REGLWBPLUS_STRIP_COMPONENTS = 0 +SUMMIT_REGLWBPLUS_LICENSE = GPL-2.0 + +ifeq ($(MSD_BINARIES_SOURCE_LOCATION),laird_internal) +SUMMIT_REGLWBPLUS_SITE = $(SUMMIT_RADIO_URI_BASE_INTERNAL)/regLWBplus/laird/$(SUMMIT_REGLWBPLUS_VERSION) +else +SUMMIT_REGLWBPLUS_SITE = $(SUMMIT_RADIO_URI_BASE_60)/LRD-REL-$(SUMMIT_REGLWBPLUS_VERSION) +endif + +define SUMMIT_REGLWBPLUS_POST_EXTRACT + (cd $(@D) && ./$(SUMMIT_REGLWBPLUS_SOURCE:%.tar.bz2=%.sh) tar) + tar -xvjf $(@D)/$(SUMMIT_REGLWBPLUS_SOURCE) -C $(@D) + rm $(@D)/$(SUMMIT_REGLWBPLUS_SOURCE) $(@D)/$(SUMMIT_REGLWBPLUS_SOURCE:%.tar.bz2=%.sh) $(@D)/$(SUMMIT_REGLWBPLUS_SOURCE:%.tar.bz2=%.sha) +endef + +SUMMIT_REGLWBPLUS_POST_EXTRACT_HOOKS += SUMMIT_REGLWBPLUS_POST_EXTRACT + +ifneq ($(BR2_PACKAGE_BLUEZ5_UTILS)$(BR2_PACKAGE_BLUEZ4_UTILS),) +define SUMMIT_REGLWBPLUS_BTLRU_INSTALL_TARGET_CMD + $(INSTALL) -D -m 755 -t $(TARGET_DIR)/usr/bin $(@D)/btlru +endef +endif + +define SUMMIT_REGLWBPLUS_INSTALL_TARGET_CMDS + $(SUMMIT_REGLWBPLUS_BTLRU_INSTALL_TARGET_CMD) + $(INSTALL) -D -m 775 -t $(TARGET_DIR)/usr/bin $(@D)/lru + $(INSTALL) -D -m 644 -t $(TARGET_DIR)/lib/firmware/brcfmac $(@D)/brcmfmac* +endef + +$(eval $(generic-package)) diff --git a/package/summit-supplicant-libs/Config.in b/package/summit-supplicant-libs/Config.in new file mode 100644 index 0000000..04de7b1 --- /dev/null +++ b/package/summit-supplicant-libs/Config.in @@ -0,0 +1,15 @@ +config BR2_PACKAGE_SUMMIT_SUPPLICANT_LIBS + bool "Summit Supplicant libs" + depends on BR2_PACKAGE_SUMMIT_SUPPLICANT + depends on !BR2_PACKAGE_SUMMIT_SUPPLICANT_LIBS_BUILD + +if BR2_PACKAGE_SUMMIT_SUPPLICANT_LIBS + +config BR2_PACKAGE_SUMMIT_SUPPLICANT_LIBS_LEGACY + bool "Summit Supplicant libs Legacy" + select BR2_PACKAGE_LIBNL + select BR2_PACKAGE_LIBEDIT + help + Installs required sdcsdk and sdccli + +endif diff --git a/package/summit-supplicant-libs/summit-supplicant-libs.mk b/package/summit-supplicant-libs/summit-supplicant-libs.mk new file mode 100644 index 0000000..5545fbd --- /dev/null +++ b/package/summit-supplicant-libs/summit-supplicant-libs.mk @@ -0,0 +1,38 @@ +############################################################# +# +# Summit Supplicant Libraries +# +############################################################# +ifeq ($(BR2_PACKAGE_SUMMIT_SUPPLICANT_LIBS_LEGACY),y) +SUMMIT_SUPPLICANT_LIBS_VERSION = $(call qstrip,$(SUMMIT_MSD_RADIO_STACK_VERSION_VALUE)) +SUMMIT_SUPPLICANT_LIBS_SITE = $(SUMMIT_RADIO_URI_BASE_MSD)/LRD-REL-$(SUMMIT_SUPPLICANT_LIBS_VERSION) +SUMMIT_SUPPLICANT_LIBS_EXTRA_DOWNLOADS = summit_supplicant_libs_legacy-$(SUMMIT_RADIO_STACK_ARCH)-$(SUMMIT_SUPPLICANT_LIBS_VERSION).tar.bz2 +else +SUMMIT_SUPPLICANT_LIBS_VERSION = $(call qstrip,$(SUMMIT_60_RADIO_STACK_VERSION_VALUE)) +SUMMIT_SUPPLICANT_LIBS_SITE = $(SUMMIT_RADIO_URI_BASE_60)/LRD-REL-$(SUMMIT_SUPPLICANT_LIBS_VERSION) +SUMMIT_SUPPLICANT_LIBS_EXTRA_DOWNLOADS = summit_supplicant_libs-$(SUMMIT_RADIO_STACK_ARCH)-$(SUMMIT_SUPPLICANT_LIBS_VERSION).tar.bz2 +endif + +ifeq ($(MSD_LIBS_SOURCE_LOCATION),laird_internal) +SUMMIT_SUPPLICANT_LIBS_SITE = $(SUMMIT_RADIO_URI_BASE_INTERNAL)/summit_supplicant/laird/$(SUMMIT_SUPPLICANT_LIBS_VERSION) +endif + +SUMMIT_SUPPLICANT_LIBS_SOURCE = +SUMMIT_SUPPLICANT_LIBS_LICENSE = BSD-3-Clause + +SUMMIT_SUPPLICANT_LIBS_INSTALL_STAGING = YES + +define SUMMIT_SUPPLICANT_LIBS_INSTALL_TARGET_CMDS + tar -xjf $($(PKG)_DL_DIR)/$(SUMMIT_SUPPLICANT_LIBS_EXTRA_DOWNLOADS) -C $(TARGET_DIR) --keep-directory-symlink --no-overwrite-dir --touch \ + --exclude=usr/include --exclude=usr/lib/libsdc_sdk.so +endef + +ifeq ($(BR2_PACKAGE_SUMMIT_SUPPLICANT_LIBS_LEGACY),y) +SUMMIT_SUPPLICANT_LIBS_EXTRACT=usr/include +endif +define SUMMIT_SUPPLICANT_LIBS_INSTALL_STAGING_CMDS + tar -xjf $($(PKG)_DL_DIR)/$(SUMMIT_SUPPLICANT_LIBS_EXTRA_DOWNLOADS) -C $(STAGING_DIR) --keep-directory-symlink --no-overwrite-dir --touch \ + --wildcards $(SUMMIT_SUPPLICANT_LIBS_EXTRACT) usr/lib/lib* +endef + +$(eval $(generic-package)) diff --git a/package/summit-supplicant/50-wpa_supplicant.preset b/package/summit-supplicant/50-wpa_supplicant.preset new file mode 100644 index 0000000..9af8562 --- /dev/null +++ b/package/summit-supplicant/50-wpa_supplicant.preset @@ -0,0 +1,4 @@ +disable wpa_supplicant@.service +disable wpa_supplicant-nl80211@.service +disable wpa_supplicant-wired@.service + diff --git a/package/summit-supplicant/Config.in b/package/summit-supplicant/Config.in new file mode 100644 index 0000000..97f178d --- /dev/null +++ b/package/summit-supplicant/Config.in @@ -0,0 +1,61 @@ +config BR2_PACKAGE_SUMMIT_SUPPLICANT + bool "Summit Supplicant" + select BR2_PACKAGE_LIBNL + select BR2_PACKAGE_OPENSSL + select BR2_PACKAGE_DBUS if !BR2_PACKAGE_SUMMIT_SUPPLICANT_LEGACY + help + Summit Supplicant + +if BR2_PACKAGE_SUMMIT_SUPPLICANT + +choice + prompt "Package Source" + default BR2_PACKAGE_SUMMIT_SUPPLICANT_MSD if BR2_PACKAGE_SUMMIT_SUPPLICANT_LEGACY + default BR2_PACKAGE_SUMMIT_SUPPLICANT_60 + +config BR2_PACKAGE_SUMMIT_SUPPLICANT_60 + bool "Using 60 series" + select BR2_PACKAGE_SUMMIT_SUPPLICANT_LIBS_BUILD if BR2_LRD_DEVEL_BUILD + select BR2_PACKAGE_SUMMIT_SUPPLICANT_LIBS if !BR2_PACKAGE_SUMMIT_SUPPLICANT_LIBS_BUILD + +config BR2_PACKAGE_SUMMIT_SUPPLICANT_LWB + bool "Using LWB/IF series" + +config BR2_PACKAGE_SUMMIT_SUPPLICANT_MSD + bool "Using MSD series" + select BR2_PACKAGE_SUMMIT_SUPPLICANT_LIBS_BUILD if BR2_LRD_DEVEL_BUILD + select BR2_PACKAGE_SUMMIT_SUPPLICANT_LIBS if !BR2_PACKAGE_SUMMIT_SUPPLICANT_LIBS_BUILD + +config BR2_PACKAGE_SUMMIT_SUPPLICANT_NX + bool "Using NX series" + +config BR2_PACKAGE_SUMMIT_SUPPLICANT_TI + bool "Using TI series" + +endchoice + +config BR2_PACKAGE_SUMMIT_SUPPLICANT_WPA_CLI + bool "Install wpa_cli binary" + help + Install wpa_cli command line utility + +config BR2_PACKAGE_SUMMIT_SUPPLICANT_WPA_PASSPHRASE + bool "Install wpa_passphrase binary" + help + Install wpa_passphrase command line utility. + +config BR2_PACKAGE_SUMMIT_SUPPLICANT_LEGACY + bool "Summit Supplicant Legacy" + select BR2_PACKAGE_SUMMIT_SUPPLICANT_LIBS_LEGACY if BR2_PACKAGE_SUMMIT_SUPPLICANT_LIBS + +config BR2_PACKAGE_SUMMIT_SUPPLICANT_FIPS + bool "Enable FIPS mode" + help + Enables FIPS mode + +config BR2_PACKAGE_SUMMIT_SUPPLICANT_LIBS_BUILD + bool "Internal build of the closed source libraries" + select BR2_PACKAGE_SDCSDK if BR2_PACKAGE_SUMMIT_SUPPLICANT_LEGACY + select BR2_PACKAGE_SDCCLI if BR2_PACKAGE_SUMMIT_SUPPLICANT_LEGACY + +endif diff --git a/package/summit-supplicant/summit-supplicant.mk b/package/summit-supplicant/summit-supplicant.mk new file mode 100644 index 0000000..a7b55a2 --- /dev/null +++ b/package/summit-supplicant/summit-supplicant.mk @@ -0,0 +1,153 @@ +############################################################# +# +# Summit Supplicant +# +############################################################# +ifeq ($(BR2_PACKAGE_SUMMIT_SUPPLICANT_60),y) +SUMMIT_SUPPLICANT_VERSION = $(SUMMIT_60_RADIO_STACK_VERSION_VALUE) +SUMMIT_SUPPLICANT_SITE = $(SUMMIT_RADIO_URI_BASE_60)-$(SUMMIT_SUPPLICANT_VERSION) +else ifeq ($(BR2_PACKAGE_SUMMIT_SUPPLICANT_LWB),y) +SUMMIT_SUPPLICANT_VERSION = $(SUMMIT_LWB_RADIO_STACK_VERSION_VALUE) +SUMMIT_SUPPLICANT_SITE = $(SUMMIT_RADIO_URI_BASE_LWB)-$(SUMMIT_SUPPLICANT_VERSION) +else ifeq ($(BR2_PACKAGE_SUMMIT_SUPPLICANT_MSD),y) +SUMMIT_SUPPLICANT_VERSION = $(SUMMIT_MSD_RADIO_STACK_VERSION_VALUE) +SUMMIT_SUPPLICANT_SITE = $(SUMMIT_RADIO_URI_BASE_MSD)-$(SUMMIT_SUPPLICANT_VERSION) +else ifeq ($(BR2_PACKAGE_SUMMIT_SUPPLICANT_NX),y) +SUMMIT_SUPPLICANT_VERSION = $(SUMMIT_NX_RADIO_STACK_VERSION_VALUE) +SUMMIT_SUPPLICANT_SITE = $(SUMMIT_RADIO_URI_BASE_NX)-$(SUMMIT_SUPPLICANT_VERSION) +else ifeq ($(BR2_PACKAGE_SUMMIT_SUPPLICANT_TI),y) +SUMMIT_SUPPLICANT_VERSION = $(SUMMIT_TI_RADIO_STACK_VERSION_VALUE) +SUMMIT_SUPPLICANT_SITE = $(SUMMIT_RADIO_URI_BASE_TI)-$(SUMMIT_SUPPLICANT_VERSION) +else ifeq ($(BR2_PACKAGE_SUMMIT_SUPPLICANT)$(BR_BUILDING),yy) +$(error "No target radio selected") +endif + +ifeq ($(MSD_BINARIES_SOURCE_LOCATION),laird_internal) +SUMMIT_SUPPLICANT_SITE = $(SUMMIT_RADIO_URI_BASE_INTERNAL)/summit_supplicant/laird/$(SUMMIT_SUPPLICANT_VERSION) +endif + +SUMMIT_SUPPLICANT_SOURCE = summit_supplicant-src-$(SUMMIT_SUPPLICANT_VERSION).tar.gz + +SUMMIT_SUPPLICANT_CPE_ID_VENDOR = w1.fi +SUMMIT_SUPPLICANT_CPE_ID_PRODUCT = wpa_supplicant +SUMMIT_SUPPLICANT_CPE_ID_VERSION = 2.10 +SUMMIT_SUPPLICANT_LICENSE = BSD-3-Clause +SUMMIT_SUPPLICANT_LICENSE_FILES = README +SUMMIT_SUPPLICANT_INSTALL_STAGING = YES +SUMMIT_SUPPLICANT_DEPENDENCIES = host-pkgconf libnl openssl + +ifeq ($(BR2_PACKAGE_SUMMIT_SUPPLICANT_LIBS),y) +SUMMIT_SUPPLICANT_DEPENDENCIES += summit-supplicant-libs +endif + +ifeq ($(BR2_PACKAGE_SUMMIT_SUPPLICANT_FIPS),y) +SUMMIT_SUPPLICANT_FIPS = CONFIG_FIPS=y +SUMMIT_SUPPLICANT_FIPS += CONFIG_FIPS_LAIRD=y +endif + +ifeq ($(BR2_PACKAGE_LIBOPENSSL_3_0),y) +ifeq ($(BR2_PACKAGE_LIBOPENSSL_ENABLE_FIPS),y) +SUMMIT_SUPPLICANT_FIPS = CONFIG_FIPS=y +SUMMIT_SUPPLICANT_FIPS += CONFIG_FIPS_LAIRD=y +endif +endif + +ifeq ($(BR2_PACKAGE_SUMMIT_SUPPLICANT_LEGACY),y) +ifeq ($(BR2_PACKAGE_SUMMIT_SUPPLICANT_LIBS_BUILD),y) + SUMMIT_SUPPLICANT_DEPENDENCIES += sdcsdk +endif + SUMMIT_SUPPLICANT_CONFIG = $(@D)/wpa_supplicant/config_legacy +else + SUMMIT_SUPPLICANT_DEPENDENCIES += dbus + SUMMIT_SUPPLICANT_CONFIG = $(@D)/wpa_supplicant/config_openssl +endif + +define SUMMIT_SUPPLICANT_BUILD_CMDS + cp $(SUMMIT_SUPPLICANT_CONFIG) $(@D)/wpa_supplicant/.config + $(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D)/wpa_supplicant BINDIR=/usr/sbin $(SUMMIT_SUPPLICANT_FIPS) + $(TARGET_OBJCOPY) $(@D)/wpa_supplicant/wpa_supplicant $(@D)/wpa_supplicant/sdcsupp +endef + +ifeq ($(BR2_PACKAGE_SUMMIT_SUPPLICANT_WPA_CLI),y) +define SUMMIT_SUPPLICANT_INSTALL_WPA_CLI + $(INSTALL) -D -m 755 -t $(TARGET_DIR)/usr/sbin $(@D)/wpa_supplicant/wpa_cli +endef +endif + +ifeq ($(BR2_PACKAGE_SUMMIT_SUPPLICANT_WPA_PASSPHRASE),y) +define SUMMIT_SUPPLICANT_INSTALL_WPA_PASSPHRASE + $(INSTALL) -D -m 755 -t $(TARGET_DIR)/usr/sbin $(@D)/wpa_supplicant/wpa_passphrase +endef +endif + +ifneq ($(BR2_PACKAGE_SUMMIT_SUPPLICANT_LEGACY),y) + +ifeq ($(BR2_PACKAGE_WPA_SUPPLICANT),y) + # both wpa_supplicant and sdcsupp installed, postfix to avoid collision + SUMMIT_SUPPLICANT_DBUS_SERVICE_POSTFIX = .summit +else + # only sdcsupp installed, no postfix needed + SUMMIT_SUPPLICANT_DBUS_SERVICE_POSTFIX = +endif + +define SUMMIT_SUPPLICANT_INSTALL_DBUS + $(INSTALL) -m 0644 -D $(@D)/wpa_supplicant/dbus/dbus-wpa_supplicant.conf \ + $(TARGET_DIR)/etc/dbus-1/system.d/wpa_supplicant.conf + $(INSTALL) -m 0644 -D $(@D)/wpa_supplicant/dbus/fi.w1.wpa_supplicant1.service \ + $(TARGET_DIR)/usr/share/dbus-1/system-services/fi.w1.wpa_supplicant1.service$(SUMMIT_SUPPLICANT_DBUS_SERVICE_POSTFIX) +endef + +define SUMMIT_SUPPLICANT_INSTALL_WPA_CLIENT_SO + $(INSTALL) -m 0644 -D $(@D)/$(WPA_SUPPLICANT_SUBDIR)/libwpa_client.so \ + $(TARGET_DIR)/usr/lib/libwpa_client.so +endef + +define SUMMIT_SUPPLICANT_INSTALL_STAGING_WPA_CLIENT_SO + $(INSTALL) -m 0644 -D -t $(STAGING_DIR)/usr/lib \ + $(@D)/$(WPA_SUPPLICANT_SUBDIR)/libwpa_client.so + $(INSTALL) -m 0644 -D -t $(STAGING_DIR)/usr/include \ + $(@D)/src/common/wpa_ctrl.h +endef + +endif + +ifeq ($(BR2_PACKAGE_SUMMIT_SUPPLICANT_LIBS_BUILD),y) +define SUMMIT_SUPPLICANT_INSTALL_SUMMIT_SUPPLICANT_SO + $(INSTALL) -m 0644 -D -t $(TARGET_DIR)/usr/lib \ + $(@D)/$(WPA_SUPPLICANT_SUBDIR)/libsdcsupp.so +endef + +define SUMMIT_SUPPLICANT_INSTALL_STAGING_SUMMIT_SUPPLICANT_SO + $(INSTALL) -m 0644 -D -t $(STAGING_DIR)/usr/lib \ + $(@D)/$(WPA_SUPPLICANT_SUBDIR)/libsdcsupp.so +endef +endif + +define SUMMIT_SUPPLICANT_INSTALL_STAGING_CMDS + $(SUMMIT_SUPPLICANT_INSTALL_STAGING_WPA_CLIENT_SO) + $(SUMMIT_SUPPLICANT_INSTALL_STAGING_SUMMIT_SUPPLICANT_SO) +endef + +define SUMMIT_SUPPLICANT_INSTALL_TARGET_CMDS + $(INSTALL) -D -m 755 -t $(TARGET_DIR)/usr/sbin $(@D)/wpa_supplicant/sdcsupp + $(SUMMIT_SUPPLICANT_INSTALL_WPA_CLI) + $(SUMMIT_SUPPLICANT_INSTALL_WPA_PASSPHRASE) + $(SUMMIT_SUPPLICANT_INSTALL_DBUS) + $(SUMMIT_SUPPLICANT_INSTALL_WPA_CLIENT_SO) + $(SUMMIT_SUPPLICANT_INSTALL_SUMMIT_SUPPLICANT_SO) +endef + +define SUMMIT_SUPPLICANT_INSTALL_INIT_SYSTEMD + $(INSTALL) -m 0644 -D $(@D)/wpa_supplicant/systemd/wpa_supplicant.service \ + $(TARGET_DIR)/usr/lib/systemd/system/wpa_supplicant.service + $(INSTALL) -m 0644 -D $(@D)/wpa_supplicant/systemd/wpa_supplicant@.service \ + $(TARGET_DIR)/usr/lib/systemd/system/wpa_supplicant@.service + $(INSTALL) -m 0644 -D $(@D)/wpa_supplicant/systemd/wpa_supplicant-nl80211@.service \ + $(TARGET_DIR)/usr/lib/systemd/system/wpa_supplicant-nl80211@.service + $(INSTALL) -m 0644 -D $(@D)/wpa_supplicant/systemd/wpa_supplicant-wired@.service \ + $(TARGET_DIR)/usr/lib/systemd/system/wpa_supplicant-wired@.service + $(INSTALL) -m 0644 -D $(SUMMIT_SUPPLICANT_PKGDIR)/50-wpa_supplicant.preset \ + $(TARGET_DIR)/usr/lib/systemd/system-preset/50-wpa_supplicant.preset +endef + +$(eval $(generic-package)) diff --git a/versions.mk b/versions.mk new file mode 100644 index 0000000..e186876 --- /dev/null +++ b/versions.mk @@ -0,0 +1,6 @@ +SUMMIT_60_RADIO_STACK_VERSION_VALUE = 0.0.0.0 +SUMMIT_BDSDMAC_RADIO_STACK_VERSION_VALUE = 0.0.0.0 +SUMMIT_LWB_RADIO_STACK_VERSION_VALUE = 0.0.0.0 +SUMMIT_MSD_RADIO_STACK_VERSION_VALUE = 0.0.0.0 +SUMMIT_NX_RADIO_STACK_VERSION_VALUE = 0.0.0.0 +SUMMIT_TI_RADIO_STACK_VERSION_VALUE = 0.0.0.0