Skip to content

Commit

Permalink
Initial Commit
Browse files Browse the repository at this point in the history
PROD-5697
  • Loading branch information
borkra committed May 14, 2024
0 parents commit 58b3a30
Show file tree
Hide file tree
Showing 50 changed files with 2,054 additions and 0 deletions.
219 changes: 219 additions & 0 deletions Config.in
Original file line number Diff line number Diff line change
@@ -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"
2 changes: 2 additions & 0 deletions external.desc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
name: SUMMIT_RADIO
desc: Summit Radio Configuration
13 changes: 13 additions & 0 deletions external.mk
Original file line number Diff line number Diff line change
@@ -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))
6 changes: 6 additions & 0 deletions package/summit-adaptive_bt/Config.in
Original file line number Diff line number Diff line change
@@ -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
36 changes: 36 additions & 0 deletions package/summit-adaptive_bt/summit-adaptive_bt.mk
Original file line number Diff line number Diff line change
@@ -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))
59 changes: 59 additions & 0 deletions package/summit-adaptive_ww/Config.in
Original file line number Diff line number Diff line change
@@ -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
Loading

0 comments on commit 58b3a30

Please sign in to comment.