Message ID | 20211123181650.8887-1-prabhakar.mahadev-lad.rj@bp.renesas.com (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | [1/2] customizations: Add support to include tools and Firmware required for WiFi testing | expand |
> -----Original Message----- > From: cip-dev@lists.cip-project.org <cip-dev@lists.cip-project.org> On Behalf Of Lad Prabhakar via > lists.cip-project.org > Sent: 23 November 2021 18:17 > To: cip-dev@lists.cip-project.org; Nobuhiro Iwamatsu <nobuhiro1.iwamatsu@toshiba.co.jp>; Pavel Machek > <pavel@denx.de>; Jan Kiszka <jan.kiszka@siemens.com> > Subject: [cip-dev] [PATCH 2/2] conf: hihope-rzg2m: Enable tools and firmware for testing WiFi > Sorry for the missing subject line. I will resend "[isar-cip-core]" in subject line. Cheers, Prabhakar > HiHope RZ/G2M platform has WiFi module (WL1837) which requires additional firmware (provided by > firmware-ti-connectivity) for the chip to work. > > This patch enables tools and firmware required for testing WiFi on HiHope RZ/G2M platform. > > Suggested-by: Jan Kiszka <jan.kiszka@siemens.com> > Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com> > --- > conf/machine/hihope-rzg2m.conf | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/conf/machine/hihope-rzg2m.conf b/conf/machine/hihope-rzg2m.conf index a2ae03d..4f4ee81 > 100644 > --- a/conf/machine/hihope-rzg2m.conf > +++ b/conf/machine/hihope-rzg2m.conf > @@ -17,3 +17,6 @@ KERNEL_DEFCONFIG = "cip-kernel-config/4.19.y-cip/arm64/renesas_defconfig" > USE_CIP_KERNEL_CONFIG = "1" > DTB_FILES = "r8a774a1-hihope-rzg2m-ex.dtb" > IMAGE_BOOT_FILES = "${KERNEL_IMAGE} ${DTB_FILES}" > + > +WIRELESS_FIRMWARE_PACKAGE = "firmware-ti-connectivity" > +INSTALL_WIRELESS_TOOLS ?= "1" > -- > 2.17.1
diff --git a/recipes-core/customizations/customizations.bb b/recipes-core/customizations/customizations.bb index 932b11c..d302b4a 100644 --- a/recipes-core/customizations/customizations.bb +++ b/recipes-core/customizations/customizations.bb @@ -18,10 +18,15 @@ SRC_URI = " \ file://ethernet \ file://99-silent-printk.conf" +WIRELESS_FIRMWARE_PACKAGE ?= "" +INSTALL_WIRELESS_TOOLS ??= "0" + DEPENDS += "sshd-regen-keys" DEBIAN_DEPENDS = " \ - ifupdown, isc-dhcp-client, net-tools, iputils-ping, ssh, sshd-regen-keys" + ifupdown, isc-dhcp-client, net-tools, iputils-ping, ssh, sshd-regen-keys \ + ${@(', iw, wireless-regdb, ' + d.getVar('WIRELESS_FIRMWARE_PACKAGE')) \ + if d.getVar('INSTALL_WIRELESS_TOOLS') == '1' else ''}" do_install() { install -v -d ${D}/etc/network/interfaces.d
Include iw tools, wireless-regdb (to include regulatory database) and any additional firmware pointed by WIRELESS_FIRMWARE_PACKAGE variable only if INSTALL_WIRELESS_TOOLS is set to "1". Suggested-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com> --- recipes-core/customizations/customizations.bb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)